ReDoc documentation
Returns the list of roles and permissions for a specified company.
200 Success.
401 Unauthorized
Internal Server error
Unexpected error
{- "items": [- {- "id": 0,
- "role_name": "string",
- "permissions": [- {- "id": 0,
- "role_id": 0,
- "resource_id": "string",
- "permission": "string"
 }
 ],
- "company_id": 0,
- "extension_attributes": { }
 }
 ],
- "search_criteria": {- "filter_groups": [- {- "filters": [- {- "field": "string",
- "value": "string",
- "condition_type": "string"
 }
 ]
 }
 ],
- "sort_orders": [- {- "field": "string",
- "direction": "string"
 }
 ],
- "page_size": 0,
- "current_page": 0
 },
- "total_count": 0
}Create or update a role for a selected company.
| required | object (company-data-role-interface)  Role data transfer object interface. | 
200 Success.
400 Bad Request
401 Unauthorized
Unexpected error
{- "role": {- "id": 0,
- "role_name": "string",
- "permissions": [- {- "id": 0,
- "role_id": 0,
- "resource_id": "string",
- "permission": "string"
 }
 ],
- "company_id": 0,
- "extension_attributes": { }
 }
}{- "id": 0,
- "role_name": "string",
- "permissions": [- {- "id": 0,
- "role_id": 0,
- "resource_id": "string",
- "permission": "string"
 }
 ],
- "company_id": 0,
- "extension_attributes": { }
}