How can we help?

Searching:

0 results found

Roles/Post/[roleId]/addTask

POST odata/roles/[id]/addTask

Description

Adds a Task to a specific Role. Tasks are automatically predefined by Axonize and cannot be added by the user.

See the following for request and response details ‒

See Also

Request ‒ Roles/Post/[roleId]/addTask

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.
tasks String Specifies the tasks IDs to add to the Role.

Example JSON Roles/Post/[roleId]/addTask Request

curl -X POST \

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

-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 ‘{“tasks”:[“15B8BC56-81ED-402E-95CA-3842BBA386BD”]}’

Response ‒ Roles/Post/[roleId]/addTask

The response that is returned contains the following property –

Property Type Description
value Boolean Indicates whether or not the operation succeeded.

Example JSON Roles/Post/[roleId]/addTask Response

Status 200 – OK

{

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

“value”: true

}