cURL
curl --request PUT \ --url https://test-api.afrainity.com/api/v1/school/roles/{id}/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "description": "<string>", "permission_codenames": "<unknown>", "parent_role": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } '
{}
Update an existing school role
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
A UUID string identifying this School Role.
Auto-populate created_by from request.user when available.
1 - 100
List of "app_label.codename" strings
Inherit all permission_codenames from this role.