The resource objects describe all type of bookable (short term bookings or long term assignments) resources in the system.
Resource types can be extended and modified, but the default ones are:
- meeting rooms - meeting_room
- private offices - team_room
- private office desk - desk_tr
- dedicated desks - desk
- hot desks - hotdesk
You can retrieve individual resources as well as a list of all your resources or all of a specific type.
Resource
Property | Type | Required | Description |
---|---|---|---|
name | string | true | The name of the resource in hand. |
rate | Rate | false | The resource rate used for pricing bookings for this particular resource. |
office | Location | true | The location the resource is assigned to. |
room | Floor | false | The floorplan the resource is assigned to. |
type | enum | true | The type of the resource. One of the types listed above. |
target | read-only | true | The _id of the floor plan object to which the resource is associated. This shouldn't be edited apart from adjusting your floor plan through the admin UI. |
targetPlan | enum | true | The _id of the plan associated with the resource, if it's an assignable resource. This determines the plan that will be used when assigning a membership for the resource. |
availability | array of objects | true | Contains a single object with two parameters - startDate and endDate. The two dates determine the availability of the resourcee. The "endDate" parameter can be set to null if the resource is available indefinitely. |
access.full | boolean | false | Available only for bookable resources. Determines whether a resource is publicly available to non-members and members. |
access.public | boolean | false | Available only for bookable resources. Determines whether a resource is available to active members. |
access.teams | boolean | false | Available only for bookable resources. Determines whether a resource is visible only to specific companies. |
access.plans | boolean | false | Available only for bookable resources. Determines whether a resource is visible only to companies and members who've been assigned a specific plan. |
parents | array | false | Array of resource ids which are parents of the current resource. Parents are only present for resource types with hierarchicalResourcesEnabled option set to true . |
createdAt | date | readonly | The date when the resource has been created. |
createdBy | id | readonly | The user that created the resource. |