roles

Updates an role

Updates an role

patch/roles/{roleId}

Request

  • Base URL
    https://provisioning.commercelayer.io
  • URL
    https://provisioning.commercelayer.io/roles/{roleId}
  • Auth
    HTTP bearer

Path parameters

roleIdstring required

The ID of the resource.

Request body

Example request

{
  "data": {
    "id": "XGZwpOSrWL",
    "attributes": {
      "name": "Custom role",
      "_add_missing_base_permissions": true,
      "reference": "ANY-EXTERNAL-REFEFERNCE",
      "reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
      "metadata": {
        "foo": "bar"
      }
    }
  }
}

Response

The updated role object

Changes

No recorded changes to this operation across all 1 revision of this API.