How can we help?

Searching:

0 results found

Roles/Get (Specific)

GET odata/roles/[id]

Description

Gets the details of a specific Role. This endpoint does not return the Tasks associated with a specific Role.

See the following for request and response details ‒

See Also

Request ‒ Roles/Get (Specific)

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/Get (Specific) Request

curl -X GET \

  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 ‘AppId: 289a7624-c590-4b4c-b15a-7801d8902ce9’ \

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

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

Response ‒ Roles/Get (Specific)

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
modifiedDate Date  The time when the Role was updated.
modifiedBy String The user id that last updated the Role.
createdBy String The user id that created the Role.

Example JSON Roles/Get (Specific) Response

Status 200 – OK

{

    “@odata.context”: “https://dev-axonizeapi-axonize.dev-ase-axonize.p.azurewebsites.net/odata/$metadata#Roles/$entity”,

    “name”: “NewRole”,

    “displayName”: “Role”,

    “isShared”: 1,

    “taskIds”: [],

    “id”: “9939D515-852A-4CAB-A676-6C214CB09A47”,

    “appId”: “289a7624-c590-4b4c-b15a-7801d8902ce9”,

    “creationDate”: “2018-10-25T12:48:03.567Z”

}