The Workplace Service Delivery (WSD) Reservable V2 API provides endpoints to retrieve details of a reservable, an entity that can be reserved, such as a workplace location, from a ServiceNow instance.
The WSD Reservable V2 API is a new version of the WSD Reservable API. The WSD Reservable V2 API fetches details of all reservable space(s) on the WSD Portal that you select while making a reservation. The original WSD Reservable API version used a GET call but limited the sys_ID path parameter to 35 characters. The new WSD Reservable V2 API version is a POST call and takes all the sys_ids in the request body to avoid character limitations.
To access this API, the caller must have the sn_wsd_core.workplace_user role.
This API runs in the sn_wsd_rsv namespace. To access this API, the Workplace Reservation Management (sn_wsd_rsv) plugin must be activated.
WSD Reservable V2 API - POST /sn_wsd_rsv/v2/reservable/list_reservables
Returns the details for one or more specified reservables.
URL format
Default URL: POST api/sn_wsd_rsv/v2/reservable/list_reservables
Supported request parameters
Name
Description
api\_version
Required. Version of the endpoint to access. Specify `v2` to employ this API, otherwise using `v1` employs the default version of the WSD Reservable API.Data type: String
Name
Description
None
Name
Description
include\_flexible\_services
Flag that indicates whether to return the flexible services associated with the reservable in to the response.A flexible service is an additional provision available with a reservable workplace item when a reservation is made. For example, Classroom style - Rows of tables arranged with all participants facing towards the front of the room. For additional information on flexible services, see Create a flexible service. Valid values: - true: Return the flexible service information. - false: Do not return the flexible service information. Data type: Boolean Default: false
include\_standard\_services
Flag that indicates whether to return the standard services information in the response. This information is located in the Standard Service \[sn\_wsd\_rsv\_standard\_service\] table.A standard service describes basic provisions available with a reservable workplace item when the reservation is made, such as white boards, additional monitors, and similar services. For additional information on standard services, see Standard services. Valid values: - true: Return the standard services information. - false: Don't return the standard services information. Data type: Boolean Default: false
include\_reservable\_purposes
Optional. Flag that indicates whether to return the purpose associated with the reservable.Valid values: - true: Return the purpose of the reservable. - false: Do not return the purpose of the reservable. Data type: Boolean Default: false
include\_layouts
Flag that indicates whether to return the location layout information in the response.Location layout information include such things as capacity, max capacity, preparation, and clean up duration. Valid values: - true: Return the location layout information. - false: Don't return the location layout information. Data type: Boolean Default: false Table: Location Layout \[sn\_wsd\_rsv\_m2m\_location\_layout\]
reservable\_module\_sys\_id
Required. Sys\_id of the reservable module, for example: desk, meeting room, etc.A reservable module groups similar types of workplace items. For additional information on reservable modules, see Configure a reservable module. Data type: String Default: Empty value Table: Reservable Module \[sn\_wsd\_rsv\_reservable\_module\]
reservation\_start\_time
Reservation start time to validate the lead time of extra services.Format: UTC format, yyyy-MM-dd HH:mm:ss Data type: String
space\_sys\_ids
Required. Comma-separated sys\_ids of selected spaces.Data type: String Default: Empty value
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header
Description
Accept
Data format of the response body. Supported types: application/json or application/xml. Default: application/json
Content-Type
Data format of the response body. Only supports application/json.
Header
Description
None
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Status code
Description
200
Successful. The request was successfully processed.
404
Could not find reservables.Look for the WSD Core Spaces \[sn\_wsd\_core\_spaces\] table and verify the space record is present.
500
Error occurred! Unable to retrieve reservables. This is a server error. Contact system administration.
Response body parameters
Name
Description
result
Details on each matching reservable.Data type: Array of Objects
Flag that indicates whether employees are able to add invitees to the reservation. Valid values: - true: Allow employees to add invitees to the reservation. - false: Don't allow employees to add invitees to the reservation. Data type: Boolean
result.area
Area where the reservable is located. Data type: Object
Sys\_id of the associated campus record.Data type: String
result.capacity
Number of people that the reservable can accommodate.Data type: Number
result.description
Description of the reservable.Data type: String
result.display\_number\_of\_attendees
Flag that indicates whether users can specify the number of attendees in the reservation. Valid values: - true: Users can specify the number of attendees. - false: Users can't specify the display number of attendees. Data type: Boolean
result.display\_on\_behalf\_of
Flag that indicates whether reservations can be made on behalf of someone else. Valid values: - true: On behalf of supported. - false: On behalf of not supported. Data type: Boolean
result.display\_sensitivity
Flag that indicates whether users can set the sensitivity of the reservation, such as normal or private.Valid values: - true: Able to set sensitivity. - false: Not able to set sensitivity. Defaults to normal. Data type: Boolean
result.email
Email address associated with the reservable.Data type: String
result.employee\_override\_privacy
Flag that indicates whether users can override the privacy setting for the associated reservable.For additional information on these privacy settings, see Location privacy settings and impact. Valid values: - true: Users can override the privacy setting for the associated reservable. - false: Users cannot override the privacy setting for the associated reservable.
result.enable\_group\_reservations
Flag that indicates whether users can make a group reservation.Valid values: - true: Able to make group reservations. - false: Not able to make group reservations. Data type: Boolean
result.enable\_reservation\_privacy
Flag that indicates the default setting for reservation privacy. For additional information on these privacy settings, see Location privacy settings and impact. Possible values: - true: Reservations are private by default. - false: Reservations are not private by default. Data type: Boolean
result.external\_id
External ID of the reservable.Data type: String
result.flexible\_services
Populated only if the include_flexible_services parameter is set to true and the workplace case management plugin is installed. Description of the flexible services associated with the reservables. There can be a parent flexible service, and several child flexible services.Data type: Array of Objects
Flag that indicates whether users can select only one service item among the group of flexible services within a reservation.Valid values: - true: Only able to make a single selection. - false: Able to make multiple selections. Data type: Boolean
result.flexible\_services.category
Category of the flexible services.Data type: String
result.flexible\_services.currency\_code
Currency code used to calculate the amount of currency when ordering flexible services.Data type: String
result.flexible\_services.flexible\_service
Flexible services corresponding to a parent flexible service.Data type: Array of Objects
Flag that indicates whether the capacity of the room should appear in the reservation. If this is set to true, quantity_enabled will always be false.Valid values:
Details of the cost of adding the flexible service to the reservable.Data type: Object ``` "price_per_unit": { "code": "String", "value": "String" }
</td></tr><tr><td>
result.flexible\_services.flexible\_service.flexible\_service.price\_per\_unit.code
</td><td>
Currency code to use when calculating the cost, such as GBP or USD.Data type: String
</td></tr><tr><td>
result.flexible\_services.flexible\_service.flexible\_service.price\_per\_unit.value
</td><td>
Cost for each unit of the flexible service in the currency defined in the code parameter.Data type: String
</td></tr><tr><td>
result.flexible\_services.flexible\_service.flexible\_service.quantity\_enabled
</td><td><p>Flag that indicates whether the quantity field should appear in the reservation. If this is set to true, <strong>capacity_enabled</strong> will always be false.Valid values:</p>
<ul>
<li>true: Quantity should appear.</li>
<li>false: Quantity should not appear.</li>
</ul>
<p>Data type: Boolean</p></td></tr><tr><td>
result.flexible\_services.flexible\_service.flexible\_service.quantity\_required
</td><td>
Flag that indicates whether the quantity is required.Valid values:
- true: Quantity is required.
- false: Quantity is not required.
Data type: Boolean
</td></tr><tr><td>
result.flexible\_services.flexible\_service.flexible\_service.short\_description
</td><td>
Brief description of the flexible service.Data type: String
</td></tr><tr><td>
result.flexible\_services.flexible\_service.flexible\_service.sub\_category
</td><td>
Sub-category name of the flexible service, such as chair\_layout.Data type: String
</td></tr><tr><td>
result.flexible\_services.flexible\_service.flexible\_service.sub\_category\_label
</td><td>
Sub-category label of the flexible service, such as Chair layout.Data type: String
</td></tr><tr><td>
result.flexible\_services.flexible\_service.flexible\_service.sub\_title
</td><td>
Sub-title name of the child flexible service.Data type: String
</td></tr><tr><td>
result.flexible\_services.flexible\_service.flexible\_service.sys\_id
</td><td>
Sys\_id of flexible service. Data type: String
</td></tr><tr><td>
result.flexible\_services.flexible\_service.flexible\_service.text
</td><td>
Text used to prompt a user to select flexible services.Data type: String
</td></tr><tr><td>
result.flexible\_services.flexible\_service.flexible\_service.title
</td><td>
Details for the titles to use when adding and editing the child flexible service in the UI.Data type: Object
```
"title": {
"add": "String",
"edit": "String"
}
Sub-title name of the parent flexible service.Data type: String
result.flexible\_services.flexible\_service.text
Text used to prompt a user to select a parent flexible services.Data type: String
result.flexible\_services.flexible\_service.title
Details for the titles to use when adding and editing the parent flexible service in the UI.Data type: Object ``` "title": { "add": "String", "edit": "String" }
</td></tr><tr><td>
result.flexible\_services.flexible\_service.title.add
</td><td>
Title used when adding a parent flexible service in the UI.Data type: String
</td></tr><tr><td>
result.flexible\_services.flexible\_service.title.edit
</td><td>
Title used when editing a parent flexible service in the UI.Data type: String
</td></tr><tr><td>
result.floor
</td><td>
Details about the floor on which the reservable is located.Data type: Object
Table: Floor \[sn\_wsd\_core\_floor\]
</td></tr><tr><td>
result.floor.display\_value
</td><td id="floor_display_value-reserv-entry">
Display number of the floor on which the reservable resides, such as 12.Data type: String
</td></tr><tr><td>
result.floor.sys\_id
</td><td>
Sys\_id of the associated record.Data type: String
Table: Floor \[sn\_wsd\_core\_floor\]
</td></tr><tr><td>
result.image
</td><td>
Details about an image that represents the associated reservable.Data type: Object
"image": { "link": "String", "sys_id": "String" }
Table: Images \[db\_image\]
</td></tr><tr><td>
result.image.link
</td><td>
Link to an image that represents the reservable.Data type: String
</td></tr><tr><td>
result.image.sys\_id
</td><td>
Sys\_id of the associated image record.Data type: String
Table: Images \[db\_image\]
</td></tr><tr><td>
result.is\_reservable
</td><td>
Flag that indicates whether the flexible service can be reserved.Valid values:
- true: Flexible service can be reserved.
- false: Flexible service can't be reserved.
Data type: Boolean
</td></tr><tr><td>
results.layouts
</td><td id="layouts-reserv-entry"><p>Only populated if the <strong>include_layouts</strong> parameter is set to true.List of the layouts associated with the reservable.</p>
<p>Data type: Array of Objects</p>
<div class="highlight"><pre><span></span><code>"layouts": [
{
"capacity": Number,
"cleanup_duration": "String",
"image": {Object},
"is_default": Boolean,
"max_capacity": Number,
"name": "String",
"preparation_duration": "String",
"short_description": "String",
"sys_id": "String"
}
]
</code></pre></div></td></tr><tr><td>
result.layouts.capacity
</td><td id="layouts_capacity-reserv-entry">
Number of people that will attend the meeting.Data type: Number
</td></tr><tr><td>
result.layouts.cleanup\_duration
</td><td id="layouts_cleanup_duration-reserv-entry">
Amount of time it takes to clean the reservable for this layout.Data type: Number
Unit: Milliseconds
</td></tr><tr><td>
result.layouts.image
</td><td id="layouts_image-reserv-entry">
Details about an image that represents the layout for the associated reservable.Data type: Object
"image": { "link": "String", "sys_id": "String" }
Table: Images \[db\_image\]
</td></tr><tr><td>
result.layouts.image.link
</td><td id="layouts_image_link-reserv-entry">
Link to an image that represents the layout for this reservable.Data type: String
Table: Images \[db\_image\]
</td></tr><tr><td>
result.layouts.image.sys\_id
</td><td id="layouts_image_sys_id-reserv-entry">
Sys\_id of the associated image record.Data type: String
</td></tr><tr><td>
result.layouts.is\_default
</td><td id="layouts_is_default-reserv-entry">
Flag that indicates whether the associated layout is the default for the reservable. Valid values:
- true: Default.
- false: Not default.
Data type: Boolean
</td></tr><tr><td>
result.layouts.max\_capacity
</td><td id="layouts_max_capacity-reserv-entry">
Maximum number of people that the layout associated with the reservable can accommodate.Data type: Number
</td></tr><tr><td>
result.layouts.name
</td><td id="layouts_name-reserv-entry">
Name of the location layout. Data type: String
</td></tr><tr><td>
result.layouts.preparation\_duration
</td><td id="layouts_preparation_duration-reserv-entry">
Amount of time it takes to prepare the associated location layout.Data type: Number
Unit: Milliseconds
</td></tr><tr><td>
result.layouts.short\_description
</td><td id="layouts_short_description-reserv-entry">
Brief description of the location layout.Data type: String
</td></tr><tr><td>
result.layouts.sys\_id
</td><td id="layouts_sys_id-reserv-entry">
Sys\_id of the location layout.Data type: String
Table: Layout \[sn\_wsd\_rsv\_layout\]
</td></tr><tr><td>
result.location\_type
</td><td id="location_type-reserv-entry">
Details about the type of location of the reservable, such as workplace/desk, cafe, or gym.Data type: Object
Table: Space Type \[sn\_wsd\_core\_space\_type\]
</td></tr><tr><td>
result.location\_type.display\_value
</td><td id="location_type_display_value-reserv-entry">
Display value of the location type.Data type: String
</td></tr><tr><td>
result.location\_type.sys\_id
</td><td id="location_type_sys_id-reserv-entry">
Sys\_id of the associated record.Data type: String
Table: Space Type \[sn\_wsd\_core\_space\_type\]
</td></tr><tr><td>
result.meetingProviders
</td><td>
Details about the virtual meeting providers associated with the reservable. Data type: Array of Objects
Table: Virtual Meeting Provider \[sn\_wsd\_rsv\_virtual\_meeting\_provider\]
</td></tr><tr><td>
result.meetingProviders.display\_value
</td><td>
Display value of the virtual provider's name.Data type: String
</td></tr><tr><td>
result.meetingProviders.value
</td><td>
Actual value for the virtual provider's name in the record.Data type: String
</td></tr><tr><td>
result.moduleType
</td><td>
Reservable module associated with the reservable, such as desks or meeting room.Data type: String
</td></tr><tr><td>
result.name
</td><td id="name-reserv-entry">
Name of the reservable.Data type: String
</td></tr><tr><td>
result.number
</td><td id="number-reserv-entry">
Unique identifier of the reservable. This value is more human readable than the sys\_id.Data type: String
</td></tr><tr><td>
result.order
</td><td id="order-reserv-entry">
Order number for the reservable.Data type: Number
</td></tr><tr><td>
result.require\_approval
</td><td id="require_approval-reserv-entry">
Flag that indicates whether reserving the reservable requires an approval.Possible values:
- true: Approval required.
- false: Approval isn't required.
Data type: Boolean
</td></tr><tr><td>
result.requires\_check\_in
</td><td id="requires_check_in-reserv-entry">
Flag that indicates whether the reservable requires the user to check in.Valid values:
- true: Check in required.
- false: Check in isn't required.
Data type: Boolean
</td></tr><tr><td>
result.require\_subject
</td><td id="require_subject-reserv_mod-entry">
Flag that indicates whether the user must enter a subject when making the reservation.Valid values:
- true: Subject required.
- false: Subject isn't required.
Data type: Boolean
</td></tr><tr><td>
result.reservable\_quantity
</td><td id="reservable_quantity-reserv-entry">
Maximum number of times the associated reservable can be reserved for the same time. This value is used when assigning neighborhood spaces to an area.Data type: Integer
</td></tr><tr><td>
result.site
</td><td id="site-reserv-entry">
Details about the site where the reservable resides.Data type: Object
Table: Site \[sn\_wsd\_core\_site\]
</td></tr><tr><td>
result.site.display\_value
</td><td id="site_display_value-reserv-entry">
Display value of the site.Data type: String
</td></tr><tr><td>
result.standard\_services
</td><td id="std_serv-reserv-entry"><p>Only populated if the <strong>include_standard_services</strong> parameter is set to true. Associated standard services, such as flip chart, projector screen, and whiteboard and markers.</p>
<p>Data type: Array of Objects</p>
<div class="highlight"><pre><span></span><code>"standard_services": [
{
"font_awesome_icon": "String",
"name": "String",
"short_description": "String",
"sys_id": "String"
}
]
</code></pre></div></td></tr><tr><td>
result.standard\_services.font\_awesome\_icon
</td><td id="std_serv_font-awesome_icon-reserv-entry">
Name of the thumbnail icon associated with the standard service.Data type: String
</td></tr><tr><td>
result.standard\_services.name
</td><td id="std_serv_name-reserv-entry">
Name of the standard service.Data type: String
</td></tr><tr><td>
result.standard\_services.short\_description
</td><td id="std_serv_short_description-reserv-entry">
Brief description of the standard service.Data type: String
</td></tr><tr><td>
result.standard\_services.sys\_id
</td><td id="std_serv_sys_id-reserv-entry">
Sys\_id of the standard service record.Data type: String
Table: Standard Service \[sn\_wsd\_rsv\_standard\_service\]
</td></tr><tr><td>
result.site.sys\_id
</td><td id="site_sys_id-reserv-entry">
Sys\_id of the associated site record.Data type: String
Table: Site \[sn\_wsd\_core\_site\]
</td></tr><tr><td>
result.tableName
</td><td id="tableName-reserv-entry">
Name of the table in which the reservable record resides. Data type: String
</td></tr><tr><td>
result.title
</td><td id="title-reserv-entry">
Title of the reservable.Data type: String
</td></tr><tr><td>
result.type
</td><td id="type-reserv-entry">
Type of a reservable, such as location.Data type: String
</td></tr></tbody>
</table>
### cURL request
The following code example shows how to call this endpoint to return details about the specified reservables.