All URIs are relative to /api/v2
| Method | HTTP request | Description |
|---|---|---|
| deleteToken | DELETE /tokens/{tokenId} | Delete an access token by ID. |
| getToken | GET /tokens/{tokenId} | Get a single access token by ID. |
| getTokens | GET /tokens | Returns a list of tokens in the account. |
| patchToken | PATCH /tokens/{tokenId} | Modify an access token by ID. |
| postToken | POST /tokens | Create a new token. |
| resetToken | POST /tokens/{tokenId}/reset | Reset an access token's secret key with an optional expiry time for the old key. |
Delete an access token by ID.
deleteToken tokenId=value| Name | Type | Description | Notes |
|---|---|---|---|
| tokenId | string | The access token ID. |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Get a single access token by ID.
getToken tokenId=value| Name | Type | Description | Notes |
|---|---|---|---|
| tokenId | string | The access token ID. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Returns a list of tokens in the account.
getTokens showAll=value| Name | Type | Description | Notes |
|---|---|---|---|
| showAll | boolean | If set to true, and the authentication access token has the "Admin" role, personal access tokens for all members will be retrieved. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Modify an access token by ID.
patchToken tokenId=value| Name | Type | Description | Notes |
|---|---|---|---|
| tokenId | string | The access token ID. | |
| patchDelta | array[PatchOperation] | Requires a JSON Patch representation of the desired changes to the project. 'http://jsonpatch.com/' |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Create a new token.
postToken| Name | Type | Description | Notes |
|---|---|---|---|
| tokenBody | TokenBody | Create a new access token. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Reset an access token's secret key with an optional expiry time for the old key.
resetToken tokenId=value expiry=value| Name | Type | Description | Notes |
|---|---|---|---|
| tokenId | string | The access token ID. | |
| expiry | integer | An expiration time for the old token key, expressed as a Unix epoch time in milliseconds. By default, the token will expire immediately. | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]