[DRAFT] Basic Operations
Overview
Check the list of available endpoints and methods to create and modify users using the Provisioning API.
Endpoints and methods | Description |
---|---|
GETÂ | Returns a list of all the tokens for the provided account. |
GET | Returns all the information of a single token, including the actual token. |
POST | Creates a new token. |
PUT | Enables a token. |
PUT | Disables a token. |
PUT | Changes the name associated with a token. |
DELETE | Deletes a token. |
Endpoints and methods
GET /v2/accounts/{accountName}/tokens
Lists all the tokens for the provided account. This endpoint returns information about the tokens and their IDs but does not include the actual token values for security reasons.
GET /v2/accounts/{accountName}/tokens/{tokenId}
Returns full details of a single token identified by its ID. The response to this request includes the actual token value.
POST /v2/accounts/{accountName}/tokens
Creates a new token.
PUT /v2/accounts/{accountName}/tokens/{tokenId}/enable
Enable token by ID.
PUT /v2/accounts/{accountName}/tokens/{tokenId}/disable
Disable token by ID.
PUT /v2/accounts/{accountName}/tokens/{tokenId}/rename
This endpoint updates the name associated with a token, identified by its ID.
DELETE /v2/accounts/{accountName}/tokens/{tokenId}
Deletes a token from an account.
Only to be used when the token is to be removed from the service. There is no coming back from this, and once a token is deleted then it's gone for good.