POST
/
entities
/
site
/
{site_id}
/
token
curl --request POST \
  --url http://localhost:8002/entities/site/{site_id}/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "refresh_token": "<string>",
  "access_token": "<string>",
  "token_type": "<string>",
  "expires_utc": "2023-11-07T05:31:56Z",
  "expires_in": 123
}'
"<any>"

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

site_id
string
required

Body

application/json

Request model for providing an auth token to enable Axle to access assets at a site.

refresh_token
string
required

Refresh token for acquiring fresh access tokens after they expire

access_token
string

Access token for dispatching and monitoring assets

token_type
string

Type of token (e.g. 'Bearer')

expires_utc
string

Time in UTC at which the token expires

expires_in
integer

Time in seconds until the token expires

Response

200
application/json
Token successfully processed

The response is of type any.