POST API/Auth/SetPersonRole
Request Information
URI Parameters
None.
Body Parameters
PersonRoleRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| person_id | globally unique identifier |
None. |
|
| role_id | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"person_id": "3454fea7-3d57-4417-993d-8094dde4d0b6",
"role_id": 1
}
application/xml, text/xml
Sample:
<PersonRoleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CarPark.Models.Interaction"> <person_id>3454fea7-3d57-4417-993d-8094dde4d0b6</person_id> <role_id>1</role_id> </PersonRoleRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>