Access Tokens
GET /api/v1/users/:user_id/tokens/:id
GET /api/v1/users/:user_id/tokens/:id
Scope: url:GET|/api/v1/users/:user_id/tokens/:id
The ID can be the actual database ID of the token, or the ‘token_hint’ value.
POST /api/v1/users/:user_id/tokens
POST /api/v1/users/:user_id/tokens
Scope: url:POST|/api/v1/users/:user_id/tokens
Create a new access token for the specified user. If the user is not the current user, the token will be created as “pending”, and must be activated by the user before it can be used.
Request Parameters:
Parameter | Type | Description |
---|---|---|
| Required | The purpose of the token. |
|
| The time at which the token will expire. |
|
| The scopes to associate with the token. |
PUT /api/v1/users/:user_id/tokens/:id
PUT /api/v1/users/:user_id/tokens/:id
Scope: url:PUT|/api/v1/users/:user_id/tokens/:id
Update an existing access token.
The ID can be the actual database ID of the token, or the ‘token_hint’ value.
Request Parameters:
Parameter | Type | Description |
---|---|---|
|
| The purpose of the token. |
|
| The time at which the token will expire. |
|
| The scopes to associate with the token. |
|
| Regenerate the actual token. |
DELETE /api/v1/users/:user_id/tokens/:id
DELETE /api/v1/users/:user_id/tokens/:id
Scope: url:DELETE|/api/v1/users/:user_id/tokens/:id
The ID can be the actual database ID of the token, or the ‘token_hint’ value.
© Instructure, Inc. Generated on Wed Nov 6 14:20:04 2024 This documentation is generated directly from the Canvas LMS source code, available on Github.
Last updated