Organization Token API
Generate a new organization token
POST /organizations/:organization_name/authentication-token
Parameter | Description |
---|---|
:organization_name | The name of the organization to generate a token for. |
Generates a new organization API token, replacing any existing token.
Only members of the owners team, the owners team API token, and the organization API token can access this endpoint.
Status | Response | Reason |
---|---|---|
201 | JSON API document (type: "authentication-tokens" ) | Success |
404 | JSON API error object | User not authorized |
Sample Request
Sample Response
Delete the organization token
DELETE /organizations/:organization/authentication-token
Parameter | Description |
---|---|
:organization_name | Which organization's token should be deleted. |
Only members of the owners team, the owners team API token, and the organization API token can access this endpoint.
Status | Response | Reason |
---|---|---|
204 | Nothing | Success |
404 | JSON API error object | User not authorized |
Sample Request