Resource access tokens
Get all resource access tokens
Returns all resource access tokens based on resource access token identifiers, reservations or interval. One of them must be specified in the request. Note this operation uses Pagination and supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/resourceAccessTokens/getAll
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
EnterpriseIds
array of string
optional, max 1000 items
ResourceAccessTokenIds
array of string
optional, max 1000 items
ServiceOrderIds
array of string
optional, max 1000 items
Unique identifiers of reservations. Required if no other filter is provided.
CollidingUtc
optional, max length 3 months
UpdatedUtc
optional, max length 3 months
ActivityStates
optional
Whether to return only active, only deleted or both records.
Limitation
required
Limitation on the quantity of tokens returned.
Response
ResourceAccessTokens
required
Resource access tokens.
Cursor
string
required
Resource access token
Id
string
required
EnterpriseId
string
required
ServiceOrderId
string
required
Unique identifier of a reservation.
CompanionshipId
string
optional
ResourceId
string
optional
Type
required
Type of stored value.
Value
string
required
Value of resource access token
SerialNumber
string
optional
ValidityStartUtc
string
required
Marks the start of interval in which the resource access token can be used.
ValidityEndUtc
string
required
Marks the end of interval in which the resource access token can be used.
CreatedUtc
string
required
Creation date and time of the resource access token in UTC timezone in ISO 8601 format.
UpdatedUtc
string
required
Last update date and time of the resource access token in UTC timezone in ISO 8601 format.
IsActive
boolean
required
Whether the resource access token is still active.
Permissions
required
Resource access token type
PinCode
RfidTag
Resource access token permissions
Bed
bool
required
Room
bool
required
Floor
bool
required
Building
bool
required
Add resource access tokens
Adds new resource access tokens with the specified data.
Request
[PlatformAddress]/api/connector/v1/resourceAccessTokens/add
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
ResourceAccessTokenParameters
required, max 1000 items
Resource access token parameter
ServiceOrderId
string
required
Unique identifier of a reservation.
CompanionshipId
string
optional
ResourceId
string
optional
Type
required
Type of stored value.
Value
string
required
Value of resource access token
SerialNumber
string
optional
ValidityStartUtc
string
required
Marks the start of interval in which the resource access token can be used.
ValidityEndUtc
string
required
Marks the end of interval in which the resource access token can be used.
Permissions
required
Resource access token permission parameter
Bed
optional
Room
optional
Floor
optional
Building
optional
Response
ResourceAccessTokens
required
Resource access tokens.
Update resource access tokens
Updates the Resource access token validity interval and permissions that it grants.
Request
[PlatformAddress]/api/connector/v1/resourceAccessTokens/update
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
ResourceAccessTokenUpdates
required
Resource access token update
ResourceAccessTokenId
required
ValidityStartUtc
optional
Marks the start of interval in which the resource access token can be used.
ValidityEndUtc
optional
Marks the end of interval in which the resource access token can be used.
Permissions
optional
Response
ResourceAccessTokens
required
Resource access tokens.
Delete resource access tokens
Delete specified resource access tokens.
Request
[PlatformAddress]/api/connector/v1/resourceAccessTokens/delete
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
Ids
Array of string
required
Response
Last updated