POST
/
access-tokens
/
{token_id}
/
permissions
curl --request POST \
  --url https://api.live.paisr.tech/{version}/access-tokens/{token_id}/permissions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "scopes": [
    "<string>"
  ]
}'
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

token_id
string
required

The Token ID.

Body

application/json
The details required to add a permissio.
scopes
string[]
required

List of scopes to attach to the token.

Response

200
application/json
Successfully added permissions.
success
boolean

Indicates if the request was successful.

message
string

A descriptive message regarding the result.