WSD Search API
-
- UpdatedJan 30, 2025
- 39 minutes to read
- Yokohama
- API reference
The Workplace Service Delivery (WSD) Search API provides endpoints to search for available locations and workplace items such as reservables, reservable modules, and available shifts.
To access this API, the caller must have the sn_wsd_core.workplace_user role and the Workplace Safety Management (sn_wsd_core) and Workplace Reservation Management (sn_wsd_rsv) plugins must be activated.
This API runs in the sn_wsd_rsv
namespace.
For additional information on Workplace Reservation Management, see Workplace Reservation Management.
WSD Search - GET /api/sn_wsd_rsv/search/availability
Checks whether the specified reservables are available for the specified times.
URL format
Versioned URL: /api/sn_wsd_rsv/{api_version}/search/availability
Default URL: /api/sn_wsd_rsv/search/availability
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
Name | Description |
---|---|
None |
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
request body. Supported types: application/json,
application/xml or,
text/xml.
Default: 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.
Response body parameters
Example: cURL request
The following code example shows how to call this endpoint. Note: Line breaks have been added to the query parameters for easier reading.
Return results:
WSD Search - GET /api/sn_wsd_rsv/search/best_match
Searches for the best reservable item match based on provided search criteria.
URL format
Versioned URL: /api/sn_wsd_rsv/{api_version}/search/best_match
Default URL: /api/sn_wsd_rsv/search/best_match
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
Header | Description |
---|---|
None |
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 |
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.
Response body parameters
Example: cURL request
The following code example shows how to call this endpoint.
Return results:
WSD Search - GET /api/sn_wsd_rsv/search/overlapping_reservation
Determines whether an overlapping reservation exists based on the passed parameters.
URL format
Versioned URL: /api/sn_wsd_rsv/{api_version}/search/overlapping_reservation
Default URL: /api/sn_wsd_rsv/search/overlapping_reservation
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
Name | Description |
---|---|
None |
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 |
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.
Response body parameters (JSON or XML)
Name | Description |
---|---|
results | Details of the results of the overlap check. Data type: Object |
results.isOverlapped | Flag that indicates whether an overlapping reservation exists. Valid values:
Data type: Boolean |
results.reservableId | In the case of a group reservation, the sys_id of the reservable for which the overlap occurs. Data type: String |
Example: cURL request
The following code example shows how to check for a reservation overlap for a specific user and for a specific period of time denoted by the start and end parameters.
Return results:
WSD Search - GET /api/sn_wsd_rsv/search/reservable
Searches for available reservable items using a specified reservable model configuration.
URL format
Versioned URL: /api/sn_wsd_rsv/{api_version}/search/reservable
Default URL: /api/sn_wsd_rsv/search/reservable
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
Name | Description |
---|---|
None |
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
request body. Supported types: application/json,
application/xml or,
text/xml.
Default: 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.
Response body parameters
Example: cURL request
This example shows how to search for reservables using this endpoint. Note: Line breaks have been added to the query parameters for easier reading.
Return results:
WSD Search - GET /api/sn_wsd_rsv/search/shift/{building_id}/{module_id}
Returns an encoded query that you can use to search for available shifts in the Shift [sn_wsd_core_shift] table.
Only applicable if the appy_to_shift field in the specified reservable module is enabled. Otherwise, the returned encoded query string will be empty.
URL format
Versioned URL: /api/sn_wsd_rsv/{api_version}/search/shift/{building_id}/{module_id}
Default URL: /api/sn_wsd_rsv/search/shift/{building_id}/{module_id}
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
building_id | Sys_id of the building to include in the search query. Data type: String Table: Building [sn_wsd_core_building] |
module_id | Sys_id of the reservable module to include in the search query. A reservable module groups similar types of workplace items, such a chairs or desks. Data type: String Table: Reservable Module [sn_wsd_core_reservable_module] |
Name | Description |
---|---|
None |
Name | Description |
---|---|
end_date | Shift end date and time to include in the encoded query. Data type: String Format: yyyy-mm-dd hh:mm:ss |
start_date | Shift start date and time to include in the encoded query. Data type: String Format: yyyy-mm-dd hh:mm:ss |
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
request body. Supported types: application/json,
application/xml or,
text/xml.
Default: 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.
Response body parameters
Name | Description |
---|---|
result | Encoded query to use to acquire the specified available shifts. Data type: Object |
moduleHasShift | Flag that indicates whether the specified reservable module has shifts enabled. Valid values:
Data type: Boolean |
query | Encoded query to use to retrieve shift information for the specified reservable
module. Data type: String |
Example: cURL request
The following code example shows how to use this endpoint to obtain a shift encoded query.
Return results:
WSD Search - POST /api/sn_wsd_rsv/search/availability_score
Returns an availability score for reservable items for specified timeslots.
URL format
Versioned URL: /api/sn_wsd_rsv/{api_version}/search/availability_score
Default URL: /api/sn_wsd_rsv/search/availability_score
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
Name | Description |
---|---|
None |
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 request 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.
Response body parameters
Example: cURL request
The following code example shows how to call this endpoint.
Return results:
On this page
- WSD Search - GET /api/sn_wsd_rsv/search/availability
- WSD Search - GET /api/sn_wsd_rsv/search/best_match
- WSD Search - GET /api/sn_wsd_rsv/search/overlapping_reservation
- WSD Search - GET /api/sn_wsd_rsv/search/reservable
- WSD Search - GET /api/sn_wsd_rsv/search/shift/{building_id}/{module_id}
- WSD Search - POST /api/sn_wsd_rsv/search/availability_score