POST v1/Token/RegenerateAuthToken

Request Information

URI Parameters

None.

Body Parameters

RefreshAuthTokenRequest
NameDescriptionTypeAdditional information
AuthToken

string

Required

RefreshToken

string

Required

Request Formats

application/json, text/json

Sample:
{
  "AuthToken": "sample string 1",
  "RefreshToken": "sample string 2"
}

application/xml, text/xml

Sample:
<RefreshAuthTokenRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <AuthToken>sample string 1</AuthToken>
  <RefreshToken>sample string 2</RefreshToken>
</RefreshAuthTokenRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RefreshAuthTokenRequest'.

Response Information

Resource Description

MidnightAuthResponse
NameDescriptionTypeAdditional information
access_token

string

None.

refresh_token

string

None.

token_type

string

None.

expires_in

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "access_token": "sample string 1",
  "refresh_token": "sample string 2",
  "token_type": "sample string 3",
  "expires_in": 4
}

application/xml, text/xml

Sample:
<MidnightAuthResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <access_token>sample string 1</access_token>
  <refresh_token>sample string 2</refresh_token>
  <token_type>sample string 3</token_type>
  <expires_in>4</expires_in>
</MidnightAuthResponse>