Skip to content

Create resource

Request

Create a resource in a specific tenant.

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

Security
ClientAccessToken
Bodyapplication/jsonrequired
namestringrequired

Name of the resource

Example:"My Resource"
descriptionstring

Short description of the resource

uristringrequired

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

access_token_ttlnumberrequired

Access token expiration in seconds

refresh_token_ttlnumberrequired

Refresh token expiration in seconds

max_refresh_rotatenumberrequired

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

curl -i -X POST \
  https://api.sbx.transmitsecurity.io/cis/v1/resources \
  -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" } }