POST Api/UserToken/Add

Request Information

URI Parameters

None.

Body Parameters

UserTokenDto
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

Token

string

None.

ExpireTime

date

None.

ExpireTimeToString

string

None.

IsGetNew

boolean

None.

PageIndex

integer

None.

PageSize

integer

None.

Total

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "e241a5d1-c8f6-4636-b148-c593d839d8bc",
  "Token": "sample string 2",
  "ExpireTime": "2026-03-02T19:49:53.5028319+08:00",
  "ExpireTimeToString": "2026-03-02 19:49:53",
  "IsGetNew": true,
  "PageIndex": 4,
  "PageSize": 5,
  "Total": 6
}

application/xml, text/xml

Sample:
<UserTokenDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZShOil.Model">
  <_x003C_PageIndex_x003E_k__BackingField>4</_x003C_PageIndex_x003E_k__BackingField>
  <_x003C_PageSize_x003E_k__BackingField>5</_x003C_PageSize_x003E_k__BackingField>
  <_x003C_Total_x003E_k__BackingField>6</_x003C_Total_x003E_k__BackingField>
  <ExpireTime>2026-03-02T19:49:53.5028319+08:00</ExpireTime>
  <IsGetNew>true</IsGetNew>
  <Token>sample string 2</Token>
  <UserId>e241a5d1-c8f6-4636-b148-c593d839d8bc</UserId>
</UserTokenDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.