How can we help?

Searching:

0 results found

Roles/Patch

PATCH odata/roles/[id]

Description

Updates an existing Role based on the roleId.

See the following for request and response details ‒

See Also

Request ‒ Roles/Patch

In the request, specify the ID of the Role whose definition to change and the name of the property(s) to change. These properties are described in Roles/Post.

Property Type Description
id String This is the unique identifier automatically assigned by Axonize when a Role is created. This id is returned in the response of the Roles/Post.

Example JSON Roles/Patch Request

curl -X PATCH \

https://api.dev.axonize.com/odata/Roles/9939D515-852A-4CAB-A676-6C214CB09A47 \

-H ‘Accept: application/json, text/plain, */*’ \

-H ‘Accept-Language: en-US,en;q=0.9’ \

-H ‘Content-Type: application/json’ \

-H ‘appId: 1aaf017c-b987-4f53-94d6-ad9afb8e4767’ \

-H ‘cache-control: no-cache’ \

-d ‘{

“displayName” : “New Display”

}’

Response ‒ Roles/Patch

For the requested role, the response provides the properties in Request ‒ Roles/Post and Response ‒ Roles/Post. The response that is returned also contains the following properties –

Property Type Description
id String This is the unique identifier automatically assigned by Axonize when a Role is created. This id is returned in the response of the Roles/Post.
appId String The appId of the Master Application that created the Role.
createDate See Common Response Properties.

Example JSON Roles/Patch Response

Status 204 – No Content