Create a new access token
Create an access token for the customer portal
Try this request in your browser
URL
https://connectapi.dial9.co.uk/api/v2/access_tokens/create
Access
Must be authenticated as a reseller.
If not authorised, a MustBeAReseller
error will be returned.
Parameters
Parameter | Type | Default |
---|---|---|
entity Required The record_id of the entity to provide access to |
String | null |
role Required The record_id or name of the role |
String | null |
options Any additional options, see expansion for valid values |
Hash | {} |
Errors
Error | Attributes |
---|---|
InvalidEntity The entity provided is invalid |
|
EntityNotFound No entity was found given the ID provided |
|
NoAccessToEntity Your authenticated identity is not permitted to access this entity |
|
RoleNotFound No role was found given the ID provided |
|
ValidationError A validation error occurred |
|
Response Data
This action will return a access token structure.
You'll receive all attributes for this structure (basic and extended attributes). You'll receive all expansions for this stucture.