WSD Group Reservation API
-
- UpdatedJan 30, 2025
- 21 minutes to read
- Yokohama
- API reference
The Workplace Service Delivery (WSD) Group Reservation API provides endpoints for managing group reservations.
Group reservations allow you to reserve different locations for various people (groups) for the same meeting.
This API runs in the sn_wsd_rsv
namespace. To access this API, the caller
must have the sn_wsd_core.workplace_user role and the Workplace Reservation Management
(sn_wsd_rsv) plugin must be activated.
For additional information on Workplace Reservation Management, see Workplace Reservation Management.
WSD Group Reservation - GET /api/sn_wsd_rsv/group_reservation/{parent_id}
Returns the parent and all child reservations for a specified group reservation.
URL format
Versioned URL: /api/sn_wsd_rsv/{api_version}/group_reservation/{parent_id}
Default URL: /api/sn_wsd_rsv/group_reservation/{parent_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 |
parent_id | Sys_id of the parent reservation record. When a group reservation is created, one group parent record and one or more child reservation records are created. Reservation records contain a field called reservation_subtype, that indicates the type of reservation record. For group parent records, this field is set to "Group parent" to indicate that it is a group parent record. For child records, this field is set to "Single". Within a child record, the sys_id of the associated parent reservation record is in the source_reservation field. Data type: String Table: Workplace Reservation [sn_wsd_rsv_reservation] |
Name | Description |
---|---|
None |
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
Name | Description |
---|---|
result | Details about the parent and children reservations associated with the group reservation. Data type: Object |
Example: cURL request
The following code example shows how to retrieve the details for a group reservation.
Return results:
WSD Group Reservation - PATCH /api/sn_wsd_rsv/group_reservation/cancel/{id}
Cancels a specified group reservation.
URL format
Versioned URL: /api/sn_wsd_rsv/{api_version}/group_reservation/cancel/{id}
Default URL: /api/sn_wsd_rsv/group_reservation/cancel/{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 |
id | Sys_id of the parent reservation record. When a group reservation is created, one group parent record and one or more child reservation records are created. Reservation records contain a field called reservation_subtype, that indicates the type of reservation record. For group parent records, this field is set to "Group parent" to indicate that it is a group parent record. For child records, this field is set to "Single". Within a child record, the sys_id of the associated parent reservation record is in the source_reservation field. Data type: String Table: Workplace Reservation [sn_wsd_rsv_reservation] |
Name | Description |
---|---|
None |
Name | Description |
---|---|
cancel_notes | Reason for cancelling the reservation. Data type: String Default: "Canceled reservation via Group cancel" |
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 |
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 cancel a group reservation.
Return results:
WSD Group Reservation - PATCH /api/sn_wsd_rsv/group_reservation/update/{id}
Updates a specified group reservation.
- Subject
- Start date and time
- End date and time
- Shift associated with the reservation
- Workplace location of any child reservation
URL format
Versioned URL: /api/sn_wsd_rsv/{api_version}/group_reservation/update/{id}
Default URL: /api/sn_wsd_rsv/group_reservation/update/{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 |
id | Sys_id of the parent reservation record. When a group reservation is created, one group parent record and one or more child reservation records are created. Reservation records contain a field called reservation_subtype, that indicates the type of reservation record. For group parent records, this field is set to "Group parent" to indicate that it is a group parent record. For child records, this field is set to "Single". Within a child record, the sys_id of the associated parent reservation record is in the source_reservation field. Data type: String Table: Workplace Reservation [sn_wsd_rsv_reservation] |
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 |
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 example shows how to call this endpoint to update a group reservation.
Return results:
WSD Group Reservation - POST /api/sn_wsd_rsv/group_reservation/add
Creates a group reservation.
URL format
Versioned URL: /api/sn_wsd_rsv/{api_version}/group_reservation/add
Default URL: /api/sn_wsd_rsv/group_reservation/add
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 |
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 use this endpoint to create a group reservations.
Return results: