Updates multiple roles and super roles
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/global/role/batch
curl \
--request POST 'https://wyzio.app/api-v1/global/role/batch' \
--header "Content-Type: application/json" \
--data '[{"id":12345678,"type":"ROLE","description":"string","isDefault":false,"name":"string","permissions":[{"id":12345678,"module":"CONTACTS","canView":true,"canCreate":true,"canModify":false,"canDelete":false,"canExport":false,"viewType":"NONE","modifyType":"NONE","deleteType":"NONE"}]}]'
Request examples
# Headers
# Payload
[
{
"id": 12345678,
"type": "ROLE",
"description": "string",
"isDefault": false,
"name": "string",
"permissions": [
{
"id": 12345678,
"module": "CONTACTS",
"canView": true,
"canCreate": true,
"canModify": false,
"canDelete": false,
"canExport": false,
"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
}
]
}