POST User/renewtoken
Renews a user token.
Request Information
URI Parameters
None.
Body Parameters
RenewRequestName | Description | Type | Additional information |
---|---|---|---|
code |
Security code |
string |
None. |
token |
API access token |
globally unique identifier |
Required |
Request Formats
application/json, text/json
Sample:
{ "code": "sample string 1", "token": "263cd6e0-afe7-43c8-a7e0-0a2ecf08a67a" }
application/xml, text/xml
Sample:
<RenewRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API.Models.User"> <token xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API.Models">263cd6e0-afe7-43c8-a7e0-0a2ecf08a67a</token> <code>sample string 1</code> </RenewRequest>
Response Information
Resource Description
TokenName | Description | Type | Additional information |
---|---|---|---|
token | globally unique identifier |
None. |
|
userID | integer |
None. |
|
isEmployee | boolean |
None. |
|
expirationDateUtc | date |
None. |
|
code |
API result code |
integer |
None. |
error |
API error message |
string |
None. |
APIVersion |
API Version |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "APIVersion": 1, "token": "c1328889-4006-4064-9621-6c6ef9256a69", "userID": 2, "isEmployee": true, "expirationDateUtc": "2025-05-23T09:39:44.0851835-07:00", "code": 200, "error": "sample string 5" }
application/xml, text/xml
Sample:
<Token xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API.Models.Mobile"> <APIVersion xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API">1</APIVersion> <error xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API">sample string 5</error> <expirationDateUtc>2025-05-23T09:39:44.0851835-07:00</expirationDateUtc> <isEmployee>true</isEmployee> <token>c1328889-4006-4064-9621-6c6ef9256a69</token> <userID>2</userID> </Token>