Skip to main content
PATCH
/
v1
/
decision-roles
/
{id}
Update decision role
curl --request PATCH \
  --url https://staging.api.us.aptlydone.com/settings/v1/decision-roles/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "roleName": "Approver",
  "isDeleted": false,
  "status": "ACTIVE"
}'
{
  "statusCode": 200,
  "timestamp": "2025-06-24T08:51:42.214Z",
  "message": "Success",
  "data": {
    "id": "4e2e1f93-4a15-45a8-b9c1-635e9fc2fe14",
    "tenantId": "2ef55a4e-d3ad-48df-97dd-e547819299e7",
    "roleName": "Approver",
    "isDeleted": false,
    "status": "ACTIVE"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/json
roleName
string

Role name

Maximum length: 50
Example:

"Approver"

isDeleted
boolean

Is deleted flag

Example:

false

status
enum<string>

Status

Available options:
ACTIVE,
INACTIVE

Response

200 - application/json

Decision role updated successfully

statusCode
number
required

HTTP Status code

Example:

200

timestamp
string
required

Timestamp of the response

Example:

"2025-06-24T08:51:42.214Z"

message
string
required

Response message

Example:

"Success"

data
object
required

Response data