Skip to content

Update role

Request

Security
Bearer
Path
roleIdstring, (uuid)required

Identifier for role.

Example:4974a66b-7493-4f41-908c-58ba81093947
Bodyapplication/jsonrequired
namestringrequired

Name of the role.

Example:"User Admin"
descriptionstringrequired

A short description of the role mentioning what can it do.

Example:"Manage users for the company."
permissionsArray of objects(PermissionWithActions)required

Permissions granted to the role.

curl -i -X PUT \
  https://api-ext-sboxmeta.partners.spotnana.com/v3/roles/4974a66b-7493-4f41-908c-58ba81093947 \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "User Admin",
    "description": "Manage users for the company.",
    "permissions": [
      {
        "permission": "USER_MANAGEMENT",
        "actions": [
          "READ",
          "WRITE"
        ]
      }
    ]
  }'

Responses

OK

Response
No content