POST api/v1/OpenAPIToken?token={token}&inCaseOfErrorReturnHttpCode={inCaseOfErrorReturnHttpCode}
Save a new OpenAPI Token to the database
Request Information
URI Parameters
Name | Description | Type/Additional information |
---|---|---|
token | string | |
inCaseOfErrorReturnHttpCode |
Default value is BadRequest |
Body Parameters
The OpenAPI token details: { "AccessToken": "AAIgNmNlNmI2MDA4YjU3YjNjMGRiZjZmNTk5ZDhhNjI0MjXsKK9mEBiIGafBus-J69J3BxEP8mM33x80J-WUjS5a8VuIT9WO9l6TGw_Hydoj6jCB3TDNlSgIwqXJJtYls4zrQZvzEBTLcmmJdI6hre3mgA", "AccessTokenValidDate": "2023-10-12T18:11:19.363", "RefreshToken": "AALvK5Tt1IyH2hc46L80LMTyt94krs0_B-vVCc7y4106EcTK1xfUggVYIpXYRBS9Lz9jxOHa3DmBZqM1Hf8XMzx0nH-BiXXULS_9a0_6kFW2jg", "RefreshTokenValidDate": "2024-01-10T18:01:18.363" }
Request Formats
application/json, text/json
Sample:
{ "AccessToken": "sample string 3", "AccessTokenValidDate": "2024-12-03T15:56:31.3638672+02:00", "RefreshToken": "sample string 5", "RefreshTokenValidDate": "2024-12-03T15:56:31.3638672+02:00" }
application/xml, text/xml
Sample:
<OpenAPIToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaspitWebTiles.Web.Models"> <AccessToken>sample string 3</AccessToken> <AccessTokenValidDate>2024-12-03T15:56:31.3638672+02:00</AccessTokenValidDate> <RefreshToken>sample string 5</RefreshToken> <RefreshTokenValidDate>2024-12-03T15:56:31.3638672+02:00</RefreshTokenValidDate> </OpenAPIToken>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Description
A Token. Example: B0D18327C19E8AED74D9FB3BEF7B0C14D9E0F52B4016138E