Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
minLevel | 2 | |||||||||||
maxLevel | 2 | |||||||||||
outline | false | |||||||||||
type | flat | separator | ||||||||||
Table of Contents | ||||||||||||
|
Overview
...
Endpoints and methods | Description | ||||||
---|---|---|---|---|---|---|---|
/v2/accounts/{accountName}/tokens  see below | Get Returns a list of all the tokens for the provided account. | ||||||
/v2/accounts/{accountName}/tokens /{tokenId} Â see below | Returns all the information of a single token, including the actual token. | ||||||
/v2/accounts/{accountName}/tokens  see below | Create Creates a new token. | ||||||
/v2/accounts/{accountName}/tokens/{tokenId}/enable  see below | Enable Enables a token. | ||||||
/v2/accounts/{accountName}/tokens/{tokenId}/disable  see below | Disable Disables a token. | ||||||
/v2/accounts/{accountName}/tokens/{tokenId}/rename  see below | Change Changes the name associated with a token. | ||||||
/v2/accounts/{accountName}/tokens/{tokenId} Â see below | Delete Deletes a token. |
Endpoints and methods
Anchor |
---|
...
|
...
|
/v2/accounts/{accountName}/tokens
Lists all the tokens for the provided account. This endpoint returns the information about the tokens and their IDs , but NOT the tokens themselves does not include the actual token values for security reasons.
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Path parametersAdd the following path parameters as part of the endpoint:
Find below a request example:
|
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
...
Anchor |
---|
...
|
...
|
/v2/accounts/{accountName}/tokens/{tokenId}
Returns the full information on details of a single token , identified by its ID. The response to this request includes the actual token value.
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
Path parametersAdd the following path parameters as part of the endpoint:
Find below a request example:
|
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
...
Anchor |
---|
...
|
...
|
/v2/accounts/{accountName}
...
/tokens
Creates a new token.
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Path parametersAdd the following path parameters as part of the endpoint:
Payload:
|
...
Expand | ||
---|---|---|
| ||
Path parametersAdd the following path parameters as part of the endpoint: | ||
Parameter | Type | Description |
|
| The name of the account
Code Block |
---|
https://api-us.devo.com/xxx/v2/accounts/sampleAccount/tokens |
Expand | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|
Info |
---|
Creating a token returns the |
...
Set the roles of a user in a given domain.
Expand | ||
---|---|---|
| ||
Path parametersAdd the following path parameters as part of the endpoint: | ||
Parameter | Type | Description |
|
| Enter the email of the required user. |
|
| Enter the name of the required domain. You must enter the full domain name using the format {domainName}@{resellerName} |
|
...
Anchor | ||||
---|---|---|---|---|
|
/v2/accounts/{accountName}/tokens/{tokenId}/enable
Enable token by ID.
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
Path parametersAdd the following path parameters as part of the endpoint:
Find below a request example:
|
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
...
Anchor | ||||
---|---|---|---|---|
|
/v2/accounts/{accountName}/tokens/{tokenId}/disable
Disable token by ID.
Expand | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
Path parametersAdd the following path parameters as part of the endpoint:
keepExisting
Set this to Request bodyThe request JSON body must include the following key-value pairs: | ||||||||||||
Parameter | Type | Description | ||||||||||
|
| Enter the list of role names separated by commas. Basic roles in Devo are:
Custom roles must match the expression "^(([a-zA-Z0-9])+([ _-]))([a-zA-Z0-9])$". |
Code Block |
---|
https://api-us.devo.com/probio/user/email/user@devo.com/domain/domainName@resellerName/role?keepExisting=true |
And this is an example of a request body, including the required JSON object:
Code Block |
---|
[
"role1", "role2", "role3"
] |
title | Response |
---|
Code
Description
200
Successful response. Roles updated.
4xx
Bad request.
| The name of the account. | |
|
| The ID of the token. |
Find below a request example:
Code Block |
---|
https://api-us.devo.com/xxx/v2/accounts/sampleAccount/tokens/3/disable |
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
...
Anchor | ||||
---|---|---|---|---|
|
/v2/accounts/{accountName}/tokens/{tokenId}/rename
This endpoint updates the name associated with a token, identified by its ID.
Expand | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||
Path parametersAdd the following path parameters as part of the endpoint:
Payload:
|
...
Removes the indicated roles from the user in the specified domain.
Expand | ||
---|---|---|
| ||
Path parametersAdd the following path parameters as part of the endpoint: | ||
Parameter | Type | Description |
|
| Enter the email of the required user. |
|
| Enter the name of the required domain. You must enter the full domain name using the format {domainName}@{resellerName} |
Parameter | Type | Description |
|
| List of role names to be deleted, separated by commas. Basic roles in Devo are:
Custom roles must match the expression "^(([a-zA-Z0-9])+([ _-]))([a-zA-Z0-9])$". |
Code Block |
---|
https://api-us.devo.com/probio/user/email/user@devo.com/domain/domainName@resellerName/role |
And this is an example of a request body, including the required JSON object:
Code Block |
---|
[ "role1", "role2", "role3" ]your new token name" } |
If the new name is empty or null, the service will still return OK, but the token name will remain unchanged.
Find below a request example:
Code Block |
---|
https://api-us.devo.com/xxx/v2/accounts/sampleAccount/tokens/3/rename |
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
...
Anchor | ||||
---|---|---|---|---|
|
/v2/accounts/{accountName}/tokens/{tokenId}
Deletes a token from an account.
Note |
---|
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. |
Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
Path parametersAdd the following path parameters as part of the endpoint:
Find below a request example:
|
Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
|