POST /api/roles { "role": { "name": "staff", "organizations": [], "locations": [] } } 201 { "builtin": 0, "cloned_from_id": null, "name": "staff", "id": 18, "description": null, "origin": null, "filters": [], "locations": [], "organizations": [] }
Param Name | Description |
---|---|
location_id Optional |
Set the current location context for the request Validations:
|
organization_id Optional |
Set the current organization context for the request Validations:
|
role Required |
Validations:
|
role[name] Required |
Validations:
|
role[description] Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span> |
Rol beschrijving Validations:
|
role[location_ids] Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span> |
Vervang locaties met de opgegeven ids Validations:
|
role[organization_ids] Optional , <span class="translation_missing" title="translation missing: nl-NL.apipie.nil_allowed">Nil Allowed</span> |
Vervang organisaties met de opgegeven ids. Validations:
|