Organization
List the organizations the authenticated user belongs to
Section titled “List the organizations the authenticated user belongs to”GET /api/v1/organizations
Authentication: BearerAuth.
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
200 | OK | array of MemberOrganization |
401 | Unauthorized | ErrorResponse |
500 | Internal Server Error | ErrorResponse |
Create an organization owned by the authenticated user
Section titled “Create an organization owned by the authenticated user”POST /api/v1/organizations
Authentication: BearerAuth.
Request body
Section titled “Request body”application/json, required: CreateOrganizationRequest
Organization
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | At most 100 characters. |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
201 | Created | MemberOrganization |
400 | Bad Request | ErrorResponse |
401 | Unauthorized | ErrorResponse |
403 | Forbidden | ErrorResponse |
500 | Internal Server Error | ErrorResponse |
Get an organization the authenticated user belongs to
Section titled “Get an organization the authenticated user belongs to”GET /api/v1/organizations/{org_id}
Authentication: BearerAuth.
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string | Yes | Organization ID |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
200 | OK | MemberOrganization |
401 | Unauthorized | ErrorResponse |
404 | Not Found | ErrorResponse |
500 | Internal Server Error | ErrorResponse |
List the members of an organization the authenticated user belongs to
Section titled “List the members of an organization the authenticated user belongs to”GET /api/v1/organizations/{org_id}/members
Authentication: BearerAuth.
Parameters
Section titled “Parameters”| Name | In | Type | Required | Description |
|---|---|---|---|---|
org_id | path | string | Yes | Organization ID |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
200 | OK | array of OrganizationMember |
401 | Unauthorized | ErrorResponse |
404 | Not Found | ErrorResponse |
500 | Internal Server Error | ErrorResponse |
Part of Crewlet. Generated from the OpenAPI document of the API, version 0.1.0.