Resource categories
Get all resource categories
Returns all categories of resources. This operation uses Pagination.
Request
[PlatformAddress]/api/connector/v1/resourceCategories/getAll
{
"ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
"AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
"Client": "Sample Client 1.0.0",
"EnterpriseIds": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"4d0201db-36f5-428b-8d11-4f0a65e960cc"
],
"ResourceCategoryIds": [
"5c0804f9-d03a-4b13-a57d-b00300781a41",
"47d6b462-35ec-467e-a565-b00300781a41"
],
"ServiceIds": [
"9b3a6c54-63aa-4383-b50e-b0030078184b",
"c0f71466-6c0b-4993-88ac-1794f6b7e958"
],
"UpdatedUtc": {
"StartUtc": "2023-05-05T00:00:00Z",
"EndUtc": "2023-05-10T00:00:00Z"
},
"ActivityStates": [
"Active"
],
"Limitation": {
"Count": 10
}
}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
Unique identifiers of the Enterprises. If not specified, the operation returns data for all enterprises within scope of the Access Token.
ResourceCategoryIds
array of string
optional, max 1000 items
Unique identifiers of Resource categories.
ServiceIds
array of string
required, max 1000 items
Unique identifiers of Services to which the resource categories belong.
UpdatedUtc
optional, max length 3 months
Interval in which the resource categories were updated.
ActivityStates
array of Activity state
optional
Whether to return only active, only deleted or both records.
Limitation
required
Limitation on the quantity of data returned and optional Cursor for the starting point of data.
Response
ResourceCategories
array of Resource category
required, max 1000 items
Resource categories of the resources.
Cursor
string
optional
Unique identifier of the last and hence oldest resource category returned. This can be used in Limitation in a subsequent request to fetch the next batch of older resource categories.
Get all resource category assignments
Returns all resource category assignments. This operation uses Pagination.
Request
[PlatformAddress]/api/connector/v1/resourceCategoryAssignments/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
Unique identifiers of the Enterprises. If not specified, the operation returns data for all enterprises within scope of the Access Token.
ResourceCategoryAssignmentIds
array of string
optional, max 1000 items
Unique identifiers of Resource category assignment.
ResourceCategoryIds
array of string
required, max 1000 items
Unique identifiers of Resource categories to which the resource category assignment belong.
ActivityStates
array of Activity state
optional
Whether to return only active, only deleted or both records. The ActivityState filter applies only to record’s own status. The IsActive response property also considers the parent’s status, so some returned records may have IsActive = false if their parent is deleted.
ResourceIds
array of string
optional, max 1000 items
Unique identifiers of resources to which the resource category assignments belong.
Limitation
required
Limitation on the quantity of data returned and optional Cursor for the starting point of data.
Response
ResourceCategoryAssignments
array of Resource category assignment
required, max 1000 items
Resource category assignments.
Cursor
string
optional
Unique identifier of the last and hence oldest resource category assignment returned. This can be used in Limitation in a subsequent request to fetch the next batch of older resource category assignments.
Resource category assignment
Id
string
required
Unique identifier of the assignment.
IsActive
boolean
required
Whether the assignment is still active.
CreatedUtc
string
required
Creation date and time of the assignment in UTC timezone in ISO 8601 format.
UpdatedUtc
string
required
Last update date and time of the assignment in UTC timezone in ISO 8601 format.
Get all resource category image assignments
Returns all resource category image assignments. This operation uses Pagination.
Request
[PlatformAddress]/api/connector/v1/resourceCategoryImageAssignments/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
Unique identifiers of the Enterprises. If not specified, the operation returns data for all enterprises within scope of the Access Token.
ResourceCategoryImageAssignmentIds
array of string
optional, max 1000 items
Unique identifiers of Resource category image assignments.
ResourceCategoryIds
array of string
required, max 1000 items
Unique identifiers of Resource categories to which the resource category image assignments belong.
UpdatedUtc
optional
Interval in which the resource category image assignments were updated.
ActivityStates
array of Activity state
optional
Whether to return only active, only deleted or both records.
Limitation
required
Limitation on the quantity of data returned and optional Cursor for the starting point of data.
Response
ResourceCategoryImageAssignments
array of Resource category image assignment
required, max 1000 items
Resource category image assignments.
Cursor
string
optional
Unique identifier of the last and hence oldest resource category image assignment returned. This can be used in Limitation in a subsequent request to fetch the next batch of older resource category image assignments.
Resource category image assignment
Id
string
required
Unique identifier of the assignment.
IsActive
boolean
required
Whether the assignment is still active.
ImageId
string
required
Unique identifier of the image assigned to the Resource category.
CreatedUtc
string
required
Creation date and time of the assignment in UTC timezone in ISO 8601 format.
UpdatedUtc
string
required
Last update date and time of the assignment in UTC timezone in ISO 8601 format.
Ordering
integer
required
Ordering of the image in the resource category.
Add resource categories
Restricted!
This operation is currently in beta-test and as such it is subject to change.
Adds one or more resource categories (also known as space categories or room types) to the specified services. Note this operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/resourceCategories/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.
EnterpriseId
string
optional
Unique identifier of the enterprise. Required when using Portfolio Access Tokens, ignored otherwise.
ResourceCategories
array of Resource category add parameters
required, max 100 items
Parameters of the new resource categories to be created.
Resource category add parameters
ServiceId
string
required
Unique identifier of the Service the resource category belongs to.
Capacity
integer
required
Capacity that can be served (e.g. bed count). Must be a positive number.
ExtraCapacity
integer
optional
Extra capacity that can be served (e.g. extra bed count). Must not be negative.
Ordering
integer
optional
Ordering of the category, lower number corresponds to lower category (note that neither uniqueness nor continuous sequence is guaranteed).
ExternalIdentifier
string
optional, max length 255 characters
Identifier of the resource category from an external system.
AccountingCategoryId
string
optional
Unique identifier of the accounting category.
Resource classification
StandardSingleStandardDoubleSuperiorTwinSuperiorDoubleJuniorSuiteSharedOrDormOtherSuperiorSingleTripleFamilyStandardTwinStudioSuperiorTripleRoomOneBedroomApartmentThreeBedroomsApartmentTwoBedroomsApartment
Response
ResourceCategories
array of Resource category
required, max 100 items
Resource categories affected by the operation.
Update resource categories
Restricted!
This operation is currently in beta-test and as such it is subject to change.
Updates one or more existing resource categories. Only the fields that are set are updated. Note this operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/resourceCategories/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.
EnterpriseId
string
optional
Unique identifier of the enterprise. Required when using Portfolio Access Tokens, ignored otherwise.
ResourceCategoryUpdates
array of Resource category update parameters
required, max 100 items
Details of the resource categories to be updated.
Resource category update parameters
ResourceCategoryId
string
required
Unique identifier of the resource category to be updated.
Names
optional
All translations of the name (or null if it should not be updated).
ShortNames
optional
All translations of the short name (or null if it should not be updated).
Descriptions
optional
All translations of the description (or null if it should not be updated).
Type
optional
Type of the category (or null if it should not be updated).
Capacity
optional
Capacity that can be served, e.g. bed count. Must be a positive number (or null if it should not be updated).
ExtraCapacity
optional
Extra capacity that can be served, e.g. extra bed count. Must not be negative (or null if it should not be updated).
Ordering
optional
Ordering of the category, lower number corresponds to lower category (or null if it should not be updated).
Classification
optional
Classification of the resource category. Set the inner value to null to clear it (or null if it should not be updated).
ExternalIdentifier
optional
Identifier of the resource category from an external system. Set the inner value to null to clear it (or null if it should not be updated).
AccountingCategoryId
optional
Unique identifier of the accounting category. Set the inner value to null to clear it (or null if it should not be updated).
Localized text update value
Resource category type update value
Resource classification update value
Response
ResourceCategories
array of Resource category
required, max 100 items
Resource categories affected by the operation.
Delete resource categories
Restricted!
This operation is currently in beta-test and as such it is subject to change.
Deletes the specified resource categories. A resource category cannot be deleted while it still has active resources, overbookings, rate adjustments, channel manager mappings, product rules, promotions, restrictions or active reservations. Note this operation supports Portfolio Access Tokens.
Request
[PlatformAddress]/api/connector/v1/resourceCategories/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.
EnterpriseId
string
optional
Unique identifier of the enterprise. Required when using Portfolio Access Tokens, ignored otherwise.
ResourceCategoryIds
array of string
required, max 100 items
Unique identifiers of the resource categories to be deleted.
Response
Last updated
Was this helpful?