latestOpenAPI 3.0.12026-08-103995881.2 MB

053edab62415

roles

Update single permission

put/app/v1/roles/{role_id}/permissions/{permission_name}

Path parameters

role_idstring uuid required

Role ID

permission_namestring required

Permission name

Request body

activeboolean
filterobject

A filter object for Permission where it can filter based on any of these following fields. Name can be substring matched. All other values are exact matched.

Example request

{
  "filter": {
    "$or": [
      {
        "custom_attributes.region": "US"
      },
      {
        "name": {
          "$like": "Facility 1"
        }
      }
    ]
  }
}

Response

A successful operation

created_atstring date-time
updated_atstring date-time
created_bystring uuid
updated_bystring uuid
namestring
activeboolean
filterobject

A filter object for Permission where it can filter based on any of these following fields. Name can be substring matched. All other values are exact matched.

company_idstring uuid
role_idstring uuid

Example response

[
  {
    "name": "facilities:read",
    "filter": {
      "$or": [
        {
          "custom_attributes.region": "US"
        },
        {
          "name": {
            "$like": "Facility 1"
          }
        }
      ]
    }
  }
]