ValidateToken

 

TokenService / ValidateToken

 

Description: Update the token last activity time

URL: http://{your-server-url}/api/v1/token/request

Method: PUT

Token Required: False


Request Headers:
content-type: application/json or content-type: application/xml
Request:

Type: Nexus.AppSpace.Service.Contract.Messages.Token.TokenRequest

Parameter Type Nullable
Request.Authentication Nexus.AppSpace.Service.Contract.Messages.Authentication False

Response:

Type: Nexus.AppSpace.Service.Contract.Messages.Token.TokenResponse

Parameter Type
Response.SecurityToken string

The following is an example request Xml body:
<TokenRequest xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.Token" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Authentication xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">
    <AccountId>String</AccountId>
    <SecurityToken>String</SecurityToken>
  </Authentication>
</TokenRequest>

The following is an example request Json body:
{
	"Authentication":{
		"AccountId":"String",
		"SecurityToken":"String"
	}
}

The following is an example response Xml body:
<TokenResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.Token" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <DebugMessage xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">String</DebugMessage>
  <Errors xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">
    <Error>
      <Code>String</Code>
      <Message>String</Message>
      <StackTrace>String</StackTrace>
    </Error>
  </Errors>
  <Status xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">Success</Status>
  <SecurityToken>String</SecurityToken>
</TokenResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"SecurityToken":"String"
}