POST api/unitedweb/saveDeviceToken
Request Information
URI Parameters
None.
Body Parameters
CommonRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| deviceToken | string |
None. |
|
| userId | integer |
None. |
|
| file | HttpPostedFileBase |
None. |
Request Formats
application/json, text/json
Sample:
{
"deviceToken": "sample string 1",
"userId": 2,
"file": null
}
application/xml, text/xml
Sample:
<CommonRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models"> <deviceToken>sample string 1</deviceToken> <file xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" /> <userId>2</userId> </CommonRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
APICreateResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| code | integer |
None. |
|
| message | string |
None. |
|
| status | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"message": "sample string 2",
"status": "sample string 3"
}
application/xml, text/xml
Sample:
<APICreateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models"> <code>1</code> <message>sample string 2</message> <status>sample string 3</status> </APICreateResponse>