Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/role/batch
curl \
--request POST 'https://wyzio.app/api-v1/role/batch' \
--header "Content-Type: application/json" \
--data '[{"id":42,"type":"string","name":"string","description":"string","isDefault":true,"global":true,"permissions":[{"id":42,"module":"ALL","canView":true,"canCreate":true,"canModify":true,"canDelete":true,"canExport":true,"viewType":"NONE","modifyType":"NONE","deleteType":"NONE"}]}]'
Request examples
# Headers
# Payload
[
{
"id": 42,
"type": "string",
"name": "string",
"description": "string",
"isDefault": true,
"global": true,
"permissions": [
{
"id": 42,
"module": "ALL",
"canView": true,
"canCreate": true,
"canModify": true,
"canDelete": true,
"canExport": true,
"viewType": "NONE",
"modifyType": "NONE",
"deleteType": "NONE"
}
]
}
]
Response examples (200)
{
"items": [
{
"errorCode": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"possibleWorkflows": [
{
"id": 42,
"name": "string"
}
],
"error": true,
"severeError": true
}
]
}