Tokens
Available API Paths
/api/projects/{projectId}/tokens/{tokenId}
The following methods are available for this path:
DELETE
Deletes project token specified by passed token id.
Parameters
Name | Location | Type | Description |
---|---|---|---|
projectId | path | string | A project id |
tokenId | path | string | A token id |
Responses
Status | Description | Response Content or Scheme |
200 | Flag indicating if deletion was successful or not. | |
401 | Unauthorized request error |
|
403 | Request is not allowed error |
|
404 | Resource is not found error |
|
500 | Internal server error |
|
/api/projects/{projectId}/tokens
The following methods are available for this path:
GET
Returns a list of all currently available project tokens.
Parameters
Name | Location | Type | Description |
---|---|---|---|
projectId | path | string | A project id |
Responses
Status | Description | Response Content or Scheme |
200 | A list of project tokens. | |
401 | Unauthorized request error |
|
403 | Request is not allowed error |
|
404 | Resource is not found error |
|
500 | Internal server error |
|
POST
Creates a new project token with given name and valid date.
Parameters
Name | Location | Type | Description |
---|---|---|---|
projectId | path | string | A project id |
Request Body
Name | Location | Type | Description |
body | body | object | Properties:
|
Responses
Status | Description | Response Content or Scheme |
200 | The newly created token. |
|
401 | Unauthorized request error |
|
403 | Request is not allowed error |
|
404 | Resource is not found error |
|
500 | Internal server error |
|