POST api/application/roles
Request Information
URI Parameters
None.
Body Parameters
ApplicationRoleModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| name | string |
Required |
|
| department_id | integer |
None. |
|
| department_name | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 1",
"department_id": 1,
"department_name": "sample string 2"
}
text/html
Sample:
{"id":1,"name":"sample string 1","department_id":1,"department_name":"sample string 2"}
application/xml, text/xml
Sample:
<ApplicationRoleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LSAtlas_WebAPI.Models"> <department_id>1</department_id> <department_name>sample string 2</department_name> <id>1</id> <name>sample string 1</name> </ApplicationRoleModel>
multipart/form-data
Sample:
<ApplicationRoleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LSAtlas_WebAPI.Models"><department_id>1</department_id><department_name>sample string 2</department_name><id>1</id><name>sample string 1</name></ApplicationRoleModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |