Skip to main content
PATCH
/
roles
/
{roleId}
cURL
curl --request PATCH \
  --url https://api.lucidtech.ai/{basePath}/roles/{roleId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "metadata": {},
  "permissions": [
    {
      "resourceId": "<string>",
      "effect": "allow",
      "action": "read"
    }
  ],
  "name": "<string>",
  "description": "<string>"
}
'
{
  "updatedTime": "<string>",
  "metadata": {},
  "updatedBy": "<string>",
  "createdBy": "<string>",
  "roleId": "<string>",
  "permissions": [
    {
      "resourceId": "<string>",
      "effect": "allow",
      "action": "read"
    }
  ],
  "name": "<string>",
  "createdTime": "<string>",
  "description": "<string>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

Content-Type
string
required

Path Parameters

roleId
string
required

Body

application/json
metadata
object
permissions
object[]
name
string | null
Maximum string length: 4096
description
string | null
Maximum string length: 4096

Response

200 response

updatedTime
string | null
required
metadata
object
required
updatedBy
string | null
required
Maximum string length: 4096
createdBy
string
required
Maximum string length: 4096
roleId
string
required
permissions
object[]
required
name
string | null
required
Maximum string length: 4096
createdTime
string
required
description
string | null
required
Maximum string length: 4096