Create a profile type role​
This endpoint can create a profile type role. NOTE- The ability to toggle Allow/Block is done through the Profile Type
application/json
Request Body required
form object
profile_type_id string
The id of the profile type
role_id string
The id of the role
Responses
- 200
- 400
- 500
Expected response to a valid request
application/json
Schema
Example (from schema)
Schema
form object
profile_type_id string
The id of the profile type
role_id string
The id of the role
id string
The id of the profile type role
{
"form": {
"profile_type_id": "2eb5773f-2486-452f-bdb3-796133b30862",
"role_id": "2eb5773f-2486-452f-bdb3-796133b30862",
"id": "2e06b876-f456-473d-bd65-b6435e0b6b2d"
}
}
Bad Request - unable to complete.
application/json
Schema
Example (from schema)
Schema
oneOf
InvalidJson
ValidationErrors
error
error
errors
{}
Internal Server Error - returned on unhandled exceptions.
application/json
Schema
Example (from schema)
Schema
error
A message describing the error
{
"error": "Sorry something went wrong"
}
Loading...