POST api/IntegrationTokens
Request Information
URI Parameters
None.
Body Parameters
IntegrationTokenName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
ClientId | integer |
None. |
|
AccessCode | string |
None. |
|
AuthToken | string |
None. |
|
RefreshToken | string |
None. |
|
Secret | string |
None. |
|
ExpirationValue | integer |
None. |
|
Url | string |
None. |
|
TokenCreation | date |
None. |
|
ValidFrom | date |
None. |
|
ValidTo | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "ClientId": 2, "AccessCode": "sample string 3", "AuthToken": "sample string 4", "RefreshToken": "sample string 5", "Secret": "sample string 6", "ExpirationValue": 7, "Url": "sample string 8", "TokenCreation": "2025-01-28T01:01:53.3667806-06:00", "ValidFrom": "2025-01-28T01:01:53.3667806-06:00", "ValidTo": "2025-01-28T01:01:53.3667806-06:00" }
application/xml, text/xml
Sample:
<IntegrationToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OptiPort.Entities.Model"> <AccessCode>sample string 3</AccessCode> <AuthToken>sample string 4</AuthToken> <ClientId>2</ClientId> <ExpirationValue>7</ExpirationValue> <Id>1</Id> <RefreshToken>sample string 5</RefreshToken> <Secret>sample string 6</Secret> <TokenCreation>2025-01-28T01:01:53.3667806-06:00</TokenCreation> <Url>sample string 8</Url> <ValidFrom>2025-01-28T01:01:53.3667806-06:00</ValidFrom> <ValidTo>2025-01-28T01:01:53.3667806-06:00</ValidTo> </IntegrationToken>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IntegrationTokenName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
ClientId | integer |
None. |
|
AccessCode | string |
None. |
|
AuthToken | string |
None. |
|
RefreshToken | string |
None. |
|
Secret | string |
None. |
|
ExpirationValue | integer |
None. |
|
Url | string |
None. |
|
TokenCreation | date |
None. |
|
ValidFrom | date |
None. |
|
ValidTo | date |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "ClientId": 2, "AccessCode": "sample string 3", "AuthToken": "sample string 4", "RefreshToken": "sample string 5", "Secret": "sample string 6", "ExpirationValue": 7, "Url": "sample string 8", "TokenCreation": "2025-01-28T01:01:53.36731-06:00", "ValidFrom": "2025-01-28T01:01:53.36731-06:00", "ValidTo": "2025-01-28T01:01:53.36731-06:00" }
application/xml, text/xml
Sample:
<IntegrationToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OptiPort.Entities.Model"> <AccessCode>sample string 3</AccessCode> <AuthToken>sample string 4</AuthToken> <ClientId>2</ClientId> <ExpirationValue>7</ExpirationValue> <Id>1</Id> <RefreshToken>sample string 5</RefreshToken> <Secret>sample string 6</Secret> <TokenCreation>2025-01-28T01:01:53.36731-06:00</TokenCreation> <Url>sample string 8</Url> <ValidFrom>2025-01-28T01:01:53.36731-06:00</ValidFrom> <ValidTo>2025-01-28T01:01:53.36731-06:00</ValidTo> </IntegrationToken>