Resources
Get all resources
Returns all resources of an enterprise associated with the connector integration. Note that when any of the extents is set to true
, the response contains the entities that are associated to a resource. If the extent is not associated to a resource (e.g. resource category not assigned to any resource), this information is not returned. Note this operation uses Pagination and supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/resources/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
ResourceIds
array of string
optional, max 1000 items
CreatedUtc
optional, max length 3 months
UpdatedUtc
optional, max length 3 months
Extent
required
Extent of data to be returned.
Limitation
required
Limitation on the quantity of data returned.
Resource extent
Resources
bool
optional
Whether the response should contain resources.
ResourceCategories
bool
optional
ResourceCategoryAssignments
bool
optional
ResourceCategoryImageAssignments
bool
optional
ResourceFeatures
bool
optional
ResourceFeatureAssignments
bool
optional
Inactive
bool
optional
Whether the response should contain inactive entities.
Response
Resources
optional
The resources of the enterprise.
ResourceCategories
optional
Categories of resources in the enterprise. Deprecated!
ResourceCategoryAssignments
optional
Assignments of resources to categories. Deprecated!
ResourceCategoryImageAssignments
optional
Assignments of images to categories. Deprecated!
ResourceFeatures
optional
Features of resources in the enterprise. Deprecated!
ResourceFeatureAssignments
optional
Assignments of resource features to resources. Deprecated!
Cursor
string
optional
Unique identifier of the item one newer in time order than the items to be returned. If Cursor is not specified, i.e. null, then the latest or most recent items will be returned.
Resource
Id
string
required
Unique identifier of the resource.
EnterpriseId
string
required
IsActive
bool
required
Whether the resource is still active.
Name
string
required
Name of the resource (e.g. room number).
ParentResourceId
string
optional
State
required
State of the resource.
Data
required
Additional data of the resource.
CreatedUtc
string
required
Creation date and time of the resource in UTC timezone in ISO 8601 format.
UpdatedUtc
string
required
Last update date and time of the resource in UTC timezone in ISO 8601 format.
Resource state
Dirty
Clean
Inspected
OutOfService
OutOfOrder
Resource data
Discriminator
required
If resource is space, object or person.
Value
object
required
Resource data discriminator
Space
Object
Person
Space resource data
FloorNumber
string
required
Number of the floor the space is on.
LocationNotes
string
optional
Location notes for the space. It can be eg. Building number the space is located in or the Parking area the particular parking space is at.
Object resource data
Person resource data
Resource category
Id
string
required
Unique identifier of the category.
IsActive
bool
required
Whether the category is still active.
Type
required
Type of the category.
Names
required
All translations of the name.
ShortNames
required
All translations of the short name.
Descriptions
required
All translations of the description.
Ordering
number
required
Ordering of the category, lower number corresponds to lower category (note that neither uniqueness nor continuous sequence is guaranteed).
ExtraCapacity
number
required
Extra capacity that can be served (e.g. extra bed count).
ExternalIdentifier
string
optional, max 255 characters
Identifier of the resource category from external system.
Resource category type
Room
Dorm
Bed
...
Update resources
Updates details of the resources.
Request
[PlatformAddress]/api/connector/v1/resources/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.
ResourceUpdates
required
Resource updates.
Resource update
ResourceId
string
required
Name
optional
New name of the resource (e.g. room number).
ParentResourceId
optional
Data
optional
New additional data of the resource.
State
optional
StateReason
optional
New reason for the state of the resource.
Resource data update
Discriminator
required
Defines the type of the resource.
Value
object
required
Space resource data update
FloorNumber
required
New number of the floor the space is on.
LocationNotes
optional
New location notes for the space.
Response
Last updated
Was this helpful?