Skip to content

Update resource

Request

Update a specific resource.

Required permissions: resources:edit, apps:edit, [appId]:edit.

Security
ClientAccessToken
Path
resourceIdstringrequired
Bodyapplication/jsonrequired
namestring

Name of the resource

Example:"My Resource"
descriptionstring

Short description of the resource

uristring

URI that identifies the resource, which is reflected in the audience (aud claim) of the access token

access_token_ttlnumber

Access token expiration in seconds

refresh_token_ttlnumber

Refresh token expiration in seconds

max_refresh_rotatenumber

Absolute lifetime of a refresh token in seconds, after which it can no longer be used or rotated

curl -i -X PUT \
  'https://api.sbx.transmitsecurity.io/cis/v1/resources/{resourceId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "My Resource",
    "description": "string",
    "uri": "string",
    "access_token_ttl": 0,
    "refresh_token_ttl": 0,
    "max_refresh_rotate": 0
  }'

Responses

Bodyapplication/json
resultobjectrequired
Response
{ "result": { "resource_id": "string", "tenant_id": "string", "name": "string", "description": "string", "uri": "string", "access_token_ttl": 0, "refresh_token_ttl": 0, "max_refresh_rotate": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } }