POST User/renewtoken

Renews a user token.

Request Information

URI Parameters

None.

Body Parameters

RenewRequest
NameDescriptionTypeAdditional 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": "56ece495-7c04-4725-b28f-48eeb9c7fdb9"
}

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">56ece495-7c04-4725-b28f-48eeb9c7fdb9</token>
  <code>sample string 1</code>
</RenewRequest>

Response Information

Resource Description

Token
NameDescriptionTypeAdditional 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": "eea5824e-7eed-4dbf-a8b9-a11e2ed44d1c",
  "userID": 2,
  "isEmployee": true,
  "expirationDateUtc": "2024-12-08T00:06:09.2067457-08: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>2024-12-08T00:06:09.2067457-08:00</expirationDateUtc>
  <isEmployee>true</isEmployee>
  <token>eea5824e-7eed-4dbf-a8b9-a11e2ed44d1c</token>
  <userID>2</userID>
</Token>