Skip to Content
Docs

Update resource server by id

PUT
/organizations/{organizationId}/resource-servers/{id}

required scopes: contextual:resource-servers:update

Authorization

jwt
headerAuthorizationBearer <JWT>

Path Parameters

Request Body

application/json
  1. body
name*string
allow_offline_access*boolean
token_lifetime*number
signing_alg*string
scopes*array<>
system*boolean
Defaultfalse

Response Body

application/json
  1. response
id*string
name*string
identifier*string
allow_offline_access*boolean
token_lifetime*number
signing_alg*string
scopes*array<>
system*boolean
Defaultfalse
_metaData*
Example Request
curl -X PUT 'https://auth.your-tenant-id.my.contextual.io/api/v1/organizations/{organizationId}/resource-servers/{id}' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "allow_offline_access": false,  "token_lifetime": 0,  "signing_alg": "RS256",  "scopes": [    {      "value": "string"    }  ],  "system": false}'
Example Response
{  "id": "string",  "name": "string",  "identifier": "string",  "allow_offline_access": false,  "token_lifetime": 0,  "signing_alg": "RS256",  "scopes": [    {      "value": "string",      "description": "string"    }  ],  "system": false,  "_metaData": {    "id": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}