The Workplace Service Delivery (WSD) Reservation API provides endpoints for managing workplace reservations.

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 Reservation - GET /api/sn_wsd_rsv/reservation/get

Retrieves the specified workplace reservation.

URL format

Versioned URL: /api/sn_wsd_rsv/{api_version}/reservation/get

Default URL: /api/sn_wsd_rsv/reservation/get

Note: Available versions are specified in the REST API Explorer. For scripted REST APIs there is additional version information on the Scripted REST Service form.

Supported request parameters

Table 1. Path 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

Table 3. Request body parameters
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.

Table 4. Request headers
Header Description
Accept Data format of the request body. Supported types: application/json, application/xml or, text/xml.

Default: application/json

Table 5. Response headers
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 and include the standard services information.

curl "https://instance.servicenow.com/api/sn_wsd_rsv/reservation/get?sys_id=8e87c722870741106342b846dabb3573&include_standard_services=true" \
--request GET \
--header "Accept:application/json" \
--user "username":"password"

Return results:


  "result": {
    "reservation": {
      "sys_id": "bf3621de842c2110fa9b813be354f327",
      "number": "WRES0001005",
      "location": {
        "sys_id": "9841e94adb7210106c731dcd13961914",
        "name": "A1-02-02",
        "description": "General desk available for reservation.",
        "display_value": "A1-02-02",
        "capacity": 1,
        "label_value": "Workspace/Desk name",
        "wsd_email": null,
        "reservable_module": {
          "sys_id": "5db44502dbb650106c731dcd13961937",
          "name": "Desks",
          "title": "Desks",
          "inline_title": "desk",
          "table": "sn_wsd_core_space"
        },
        "region": {
          "sys_id": "3752ac8edb3650106c731dcd139619e0",
          "display_value": "Americas",
          "active": true
        },
        "site": {
          "sys_id": "628eec06db7650106c731dcd139619dd",
          "display_value": "North America",
          "active": true
        },
        "campus": {
          "sys_id": "82b2a0cedb3650106c731dcd139619e9",
          "display_value": "California Campus",
          "active": true
        },
        "building": {
          "sys_id": "94e264cedb3650106c731dcd13961919",
          "display_value": "CAL-B1",
          "active": true,
          "timezone": {
            "value": "US/Pacific",
            "displayValue": "US/Pacific"
          }
        },
        "floor": {
          "sys_id": "fc7368cedb3650106c731dcd13961902",
          "display_value": "Floor 1",
          "active": true
        },
        "area": {
          "sys_id": "",
          "display_value": "",
          "active": false
        },
        "is_favorite": false,
        "reservation": {
          "sys_id": "bf3621de842c2110fa9b813be354f327",
          "number_of_attendees": 1,
          "state": {
            "value": "confirmed",
            "display_value": "Confirmed"
          },
          "auto_conflict_resolution_state": {
            "value": null,
            "display_value": null
          },
          "requested_for": {
            "sys_id": "6816f79cc0a8016401c5a33be04be441",
            "name": "System Administrator",
            "user_name": "admin"
          },
          "number": "WRES0001005",
          "active": true
        },
        "number_of_attendees": 1,
        "state": {
          "value": "confirmed",
          "display_value": "Confirmed"
        },
        "number": "WRES0001005",
        "requested_for": {
          "sys_id": "6816f79cc0a8016401c5a33be04be441",
          "name": "System Administrator",
          "user_name": "admin"
        },
        "is_private": true
      },
      "start": "2023-01-24T16:00:00Z",
      "end": "2023-01-24T17:00:00Z",
      "sys_created_on": "2023-01-24T15:49:49Z",
      "sys_updated_on": "2023-01-24T15:49:50Z",
      "source_reservation": null,
      "check_in_state": {
        "value": "awaiting_check_in",
        "display_value": "Awaiting check-in"
      },
      "external_id": null,
      "external_ical": null,
      "building": {
        "active": true,
        "sys_id": "94e264cedb3650106c731dcd13961919",
        "display_value": "CAL-B1",
        "campus": {
          "display_value": "California Campus",
          "value": "82b2a0cedb3650106c731dcd139619e9",
          "active": true
        },
        "site": {
          "display_value": "North America",
          "value": "628eec06db7650106c731dcd139619dd",
          "active": true
        },
        "timezone": {
          "value": "US/Pacific",
          "displayValue": "US/Pacific"
        }
      },
      "active": true,
      "state": {
        "value": "confirmed",
        "display_value": "Confirmed"
      },
      "sensitivity": {
        "value": "normal",
        "display_value": "Normal"
      },
      "reservation_type": {
        "value": "space",
        "display_value": "Space"
      },
      "reservation_subtype": {
        "value": "single",
        "display_value": "Single"
      },
      "reservation_purpose": {
        "value": "meeting",
        "display_value": "Meeting"
      },
      "attendees": [
        {
          "sys_id": "6816f79cc0a8016401c5a33be04be441",
          "value": "6816f79cc0a8016401c5a33be04be441",
          "displayValue": "System Administrator",
          "display_value": "System Administrator",
          "name": "System Administrator",
          "user_name": "admin",
          "table": "sys_user",
          "avatar": "a5d3c898c3222010ae17dd981840dd8b.iix?t=small",
          "initials": "SA",
          "email": "admin@example.com",
          "label": "System Administrator, Finance"
        }
      ],
      "number_of_attendees": 1,
      "is_parent": false,
      "is_private": true,
      "subject": "Reservation for A1-02-02",
      "virtual_meeting": null,
      "recording_details": [],
      "sync_state": {
        "value": "not_required",
        "display_value": "Synchronization not required"
      },
      "sub_source": {
        "value": "servicenow_workplace_service_delivery",
        "display_value": "ServiceNow Workplace Service Delivery"
      },
      "last_updated_sub_source": {
        "value": "servicenow_workplace_service_delivery",
        "display_value": "ServiceNow Workplace Service Delivery"
      },
      "reservable_module": {
        "sys_id": "5db44502dbb650106c731dcd13961937",
        "name": "Desks",
        "title": "Desks",
        "inline_title": "desk",
        "font_awesome_icon": "fa-desktop",
        "reservable_table": "sn_wsd_core_space",
        "reservable_filter": "active=true^is_reservable=true^location_type=5f017383eb512010b89bfdfc9c5228c8^building.is_reservable=true^floor.is_reservable=true^EQ",
        "short_description": "Reserve a single desks",
        "reservable_type": "location",
        "require_subject": null,
        "require_cancel_notes": false,
        "virtual_meeting_provider": null,
        "enable_reservation_privacy": true,
        "allow_invitees": "1",
        "display_number_of_attendees": null,
        "display_on_behalf_of": "1",
        "display_sensitivity": null,
        "max_days_in_future": "90",
        "allow_recurring": "1",
        "auto_resolve_conflict": null,
        "allow_whole_day": "1",
        "allow_multi_building": "1",
        "require_whole_day": null,
        "selection_type": "unit",
        "reservable_container_field": null,
        "reservable_quantity_field": null,
        "apply_to_shift": null,
        "max_occurrences": "90",
        "enable_facet_filter": false,
        "search_limit": 10000,
        "enable_ical_generation": null,
        "enable_group_reservations": null,
        "enable_browse_near_a_person": "1",
        "enable_browse_by_area": "1",
        "enable_floor_search": null,
        "enable_browse_by_neighborhood": null,
        "require_cc_dept_check": false,
        "display_value": "Desks",
        "browse_near_a_person_enabled": true,
        "browse_by_area_enabled": true,
        "browse_by_neighborhood_enabled": false,
        "reservable_columns": [
          "sys_id",
          "external_id",
          "wsd_email",
          "name",
          "title",
          "description",
          "image",
          "number",
          "site",
          "campus",
          "building",
          "floor",
          "area",
          "capacity",
          "reservable_quantity",
          "location_type",
          "order",
          "requires_check_in",
          "is_reservable"
        ],
        "layout_mapping": {
          "title": [
            "name"
          ],
          "description": [
            "description"
          ],
          "subtitle": [
            "campus",
            "building",
            "floor",
            "area"
          ],
          "subtitle_asc": [
            "area",
            "floor",
            "building",
            "campus"
          ],
          "image": "image",
          "body": [
            {
              "label": "Capacity",
              "icon": "fa-users",
              "field": "capacity",
              "field_to_display": ""
            },
            {
              "label": "Standard services",
              "icon": "fa-check",
              "field": "standard_services",
              "field_to_display": "name"
            },
            {
              "label": "Reservable purposes",
              "icon": "fa-tags",
              "field": "reservable_purposes",
              "field_to_display": "name"
            }
          ]
        },
        "timeSlots": [
          {
            "sys_id": "d5331cf2dbb5f01038e42b24ca961906",
            "name": "All day",
            "short_description": "8am - 6pm",
            "slot_start": "08:00",
            "slot_end": "18:00"
          },
          {
            "sys_id": "de131cf2dbb5f01038e42b24ca961931",
            "name": "Before noon",
            "short_description": "8am - 12pm",
            "slot_start": "08:00",
            "slot_end": "12:00"
          },
          {
            "sys_id": "6e99ab5ddbb930102e8e853e68961929",
            "name": "After noon",
            "short_description": "1pm - 6pm",
            "slot_start": "13:00",
            "slot_end": "18:00"
          }
        ],
        "buildingSysIds": [
          "03c45bf7dba41010d7981dcd1396196d",
          "07c45bf7dba41010d7981dcd1396196b",
          "07c45bf7dba41010d7981dcd13961972",
          "0bc45bf7dba41010d7981dcd13961970",
          "0fc45bf7dba41010d7981dcd1396196e",
          "1aa39b1977220110b3d7be377b5a9953",
          "2130659ae7321010809a268b03f6a91e",
          "22c41bf7dba41010d7981dcd139619fe",
          "2ac45bf7dba41010d7981dcd13961901",
          "2ec41bf7dba41010d7981dcd139619ff",
          "32c45bf7dba41010d7981dcd13961905",
          "32c45bf7dba41010d7981dcd1396190c",
          "32c45bf7dba41010d7981dcd13961943",
          
          "e2c41bf7dba41010d7981dcd139619fb"
        ],
        "reservable_views": [
          {
            "type": "card",
            "label": "Card view",
            "iconClass": "fa-th-large",
            "isDefault": true,
            "order": "1"
          },
          {
            "type": "schedule",
            "label": "Schedule view",
            "iconClass": "fa-calendar-o",
            "isDefault": false,
            "order": "2"
          }
        ],
        "checkin_before_minutes": 30,
        "reservation_paths": [
          {
            "value": "browse_all",
            "displayValue": "Browse all",
            "availableFor": true
          },
          {
            "value": "browse_favorites",
            "displayValue": "Browse favorites",
            "availableFor": false
          },
          {
            "value": "browse_near_a_person",
            "displayValue": "Browse near a person",
            "availableFor": true
          },
          {
            "value": "browse_by_area",
            "displayValue": "Browse by area",
            "availableFor": true
          }
        ],
        "override_approval_policy": "never_required"
      },
      "notification_recipients": null,
      "notification_custom_message": null,
      "opened_by": {
        "sys_id": "6816f79cc0a8016401c5a33be04be441",
        "value": "6816f79cc0a8016401c5a33be04be441",
        "displayValue": "System Administrator",
        "display_value": "System Administrator",
        "name": "System Administrator",
        "user_name": "admin",
        "table": "sys_user",
        "avatar": "a5d3c898c3222010ae17dd981840dd8b.iix?t=small",
        "initials": "SA",
        "email": "admin@example.com",
        "label": "System Administrator, Finance"
      },
      "requested_for": {
        "sys_id": "6816f79cc0a8016401c5a33be04be441",
        "value": "6816f79cc0a8016401c5a33be04be441",
        "displayValue": "System Administrator",
        "display_value": "System Administrator",
        "name": "System Administrator",
        "user_name": "admin",
        "table": "sys_user",
        "avatar": "a5d3c898c3222010ae17dd981840dd8b.iix?t=small",
        "initials": "SA",
        "email": "admin@example.com",
        "label": "System Administrator, Finance"
      },
      "auto_conflict_resolution_state": {
        "value": null,
        "display_value": null
      },
      "parent_reservation": {},
      "edit_restriction": {
        "value": "no_restriction",
        "display_value": "No restriction"
      },
      "source": {
        "value": "servicenow",
        "display_value": "Workplace Services"
      },
      "source_icon": {
        "classNames": "fa fa-calendar-check-o",
        "tooltip": "Reservation is confirmed",
        "imgSrc": ""
      },
      "shift": null,
      "hasPrivateReservation": true,
      "reservationAcl": {
        "write": {
          "record": true,
          "fields": {
            "subject": true,
            "sensitivity": true,
            "requested_for": true,
            "number_of_attendees": true,
            "location": true,
            "is_private": true
          },
          "allFields": true
        },
        "read": true
      }
    },
    "reservationAcl": {
      "write": {
        "record": true,
        "fields": {
          "subject": true,
          "sensitivity": true,
          "requested_for": true,
          "number_of_attendees": true,
          "location": true,
          "is_private": true
        },
        "allFields": true
      },
      "read": true
    }
  }
}

WSD Reservation - GET /api/sn_wsd_rsv/reservation/get_user_reservations

Retrieves the list of reservation for a specified user for the next seven days.

URL format

Versioned URL: /api/sn_wsd_rsv/{api_version}/reservation/get_user_reservations

Default URL: /api/sn_wsd_rsv/reservation/get_user_reservations

Note: Available versions are specified in the REST API Explorer. For scripted REST APIs there is additional version information on the Scripted REST Service form.

Supported request parameters

Table 7. Path 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

Table 8. Query parameters
Name Description
userId Sys_id of the user whose reservations to return.

Data type: String

Table: User [sys_user]

Table 9. Request body parameters
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.

Table 10. Request headers
Header Description
Accept Data format of the request body. Supported types: application/json, application/xml or, text/xml.

Default: application/json

Table 11. Response headers
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.

curl "https://instance.servicenow.com/api/sn_wsd_rsv/reservation/get_user_reservations?userId=2de07e1887cb89106342b846dabb35fe" \
--request GET \
--header "Accept:application/json" \
--user "username":"password"

Return results:

{
  "result": {
    "sortedReservationDates": [
      "2023-01-24"
    ],
    "workplaceProfile": {
      "location": {
        "displayValue": "DDC-A2.0016A",
        "value": "96d3139977220110b3d7be377b5a9918",
        "externalId": "0e7bddfb475a011064062782846d43c2",
        "type": "Workspace/Desk"
      },
      "floor": {
        "displayValue": "Floor 2",
        "value": "68d31f5977220110b3d7be377b5a991b"
      },
      "building": {
        "displayValue": "Building A",
        "value": "dea39b1977220110b3d7be377b5a9955",
        "timezone": {
          "value": "Europe/Paris",
          "displayValue": "Europe/Paris"
        }
      }
    },
    "reservationsByDate": {
      "2023-01-24": [
        {
          "location": {
            "displayValue": "A1-02-04",
            "value": "3e41e94adb7210106c731dcd1396198c",
            "externalId": "",
            "type": "Workspace/Desk"
          },
          "floor": {
            "displayValue": "Floor 1",
            "value": "fc7368cedb3650106c731dcd13961902"
          },
          "building": {
            "displayValue": "CAL-B1",
            "value": "94e264cedb3650106c731dcd13961919",
            "timezone": {
              "value": "US/Pacific",
              "displayValue": "US/Pacific"
            }
          }
        },
        {
          "location": {
            "displayValue": "A1-02-02",
            "value": "9841e94adb7210106c731dcd13961914",
            "externalId": "",
            "type": "Workspace/Desk"
          },
          "floor": {
            "displayValue": "Floor 1",
            "value": "fc7368cedb3650106c731dcd13961902"
          },
          "building": {
            "displayValue": "CAL-B1",
            "value": "94e264cedb3650106c731dcd13961919",
            "timezone": {
              "value": "US/Pacific",
              "displayValue": "US/Pacific"
            }
          }
        },
        {
          "location": {
            "displayValue": "A1-02-03",
            "value": "fd41a94adb7210106c731dcd1396195a",
            "externalId": "",
            "type": "Workspace/Desk"
          },
          "floor": {
            "displayValue": "Floor 1",
            "value": "fc7368cedb3650106c731dcd13961902"
          },
          "building": {
            "displayValue": "CAL-B1",
            "value": "94e264cedb3650106c731dcd13961919",
            "timezone": {
              "value": "US/Pacific",
              "displayValue": "US/Pacific"
            }
          }
        }
      ]
    },
    "searchStartDate": "2023-01-24",
    "searchEndDate": "2023-01-31",
    "informEmployeePrivacy": true
  }
}

WSD Reservation - GET /api/sn_wsd_rsv/reservation/icalendar/{sys_id}

Generates an iCalendar file body for a specified reservation.

URL format

Versioned URL: /api/sn_wsd_rsv/{api_version}/reservation/icalendar/{sys_id}

Default URL: /api/sn_wsd_rsv/reservation/icalendar/{sys_id}

Note: Available versions are specified in the REST API Explorer. For scripted REST APIs there is additional version information on the Scripted REST Service form.

Supported request parameters

Table 13. Path 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

sys_id Sys_id of the reservation for which to generate an iCalendar file body.

Data type: String

Table: Workplace Reservation [sn_wsd_rsv_reservation]

Table 14. Query parameters
Name Description
None
Table 15. Request body parameters (XML or JSON)
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.

Table 16. Request headers
Header Description
Accept Data format of the request body. Supported types: application/json, application/xml or, text/xml.

Default: application/json

Table 17. Response headers
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 iCalendar file body for the specified reservation.

Data type: String

Example: cURL request

The following code example shows how to call this endpoint to create an iCalender body.

curl "https://instance.servicenow.com/api/sn_wsd_rsv/reservation/icalendar/60d26a0f47578910003a4587746d4331" \
--request GET \
--header "Accept:application/json" \
--user "username":"password"

Return results:

{
  "result": "BEGIN:VCALENDAR\nPRODID:-//Service-now.com//Outlook 11.0 MIMEDIR//EN\nVERSION:2.0\nMETHOD:REQUEST\nBEGIN:VEVENT\nATTENDEE;ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:workplace_user@example.com\nDTSTART:20220521T050000Z\nDTEND:20220521T060000Z\nUID:60d26a0f47578910003a4587746d4331\nDTSTAMP:20220511T044018Z\nSUMMARY:For user 1\nDESCRIPTION:Dear System Administrator,\\n\\nThank you for your reservation.\\n\\nYou can find more details on your reservation, or manage your reservation using the following link: https://damay2.service-now.com/ws?id=wsd_reservation_summary&reservation_id=60d26a0f47578910003a4587746d4331\\n\\nKind regards,\\nWorkplace Services Team\nLOCATION:Berlin\nCLASS:PUBLIC\nORGANIZER;CN=Workplace User:MAILTO:workplace_user@example.com\nATTENDEE;ROLE=REQ-PARTICIPANT;CN=Workplace User:RSVP=TRUE:MAILTO:workplace_user@example.com\nEND:VEVENT\nEND:VCALENDAR"
}

WSD Reservation - GET /api/sn_wsd_rsv/reservation/list

Retrieves the list of reservations belonging to a specified user.

This endpoint only returns reservations that were requested for or opened by the specified user.

URL format

Versioned URL: /api/sn_wsd_rsv/{api_version}/reservation/list

Default URL: /api/sn_wsd_rsv/reservation/list

Note: Available versions are specified in the REST API Explorer. For scripted REST APIs there is additional version information on the Scripted REST Service form.

Supported request parameters

Table 19. Path 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

Table 21. Request body parameters
Header Description
Accept Data format of the request body. Supported types: application/json, application/xml or, text/xml.

Default: application/json

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.

Table 22. Request headers
Header Description
Accept Data format of the response body. Supported types: application/json or application/xml.

Default: application/json

Table 23. Response headers
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 code example shows how to call this endpoint to retrieve a list of reservations associated with the specified user.

curl "https://instance.servicenow.com/api/sn_wsd_rsv/reservation/list" \
--request GET \
--header "Accept:application/json" \
--user "username":"password"

Return results:

{
  "result": {
    "reservations": [
      {
      "sys_id": "12e2da5e87c701106342b846dabb354d",
      "number": "WRES0001010",
      "location": {
        "sys_id": "02000d4edb7650106c731dcd13961914",
        "name": "Eureka",
        "description": "A comfortable meeting room with leather chairs and a wooden table. Client meeting room.",
        "display_value": "Eureka",
        "capacity": 12,
        "label_value": "Room name",
        "email": "eureka@example.com",
        "reservable_module": {
          "sys_id": "c31241cedb7650106c731dcd13961917",
          "name": "Meeting rooms",
          "title": "Meeting rooms",
          "inline_title": "meeting room"
        },
        "region": {
          "sys_id": "2d626c4edb3650106c731dcd1396194b",
          "display_value": "Europe",
          "active": true
        },
        "site": {
          "sys_id": "b17220cedb3650106c731dcd1396197a",
          "display_value": "Western Europe",
          "active": true
        },
        "campus": {
          "sys_id": "44d2e0cedb3650106c731dcd13961988",
          "display_value": "Amsterdam Campus",
          "active": true
        },
        "building": {
          "sys_id": "9e0364cedb3650106c731dcd1396192b",
          "display_value": "AMS-B1",
          "active": true,
          "timezone": {
            "value": "Europe/Amsterdam",
            "displayValue": "Europe/Amsterdam"
          }
        },
        "floor": {
          "sys_id": "5373a8cedb3650106c731dcd1396198a",
          "display_value": "Floor 3",
          "active": true
        },
        "area": {
          "sys_id": "",
          "display_value": "",
          "active": false
        },
        "reservation": {
          "sys_id": "12e2da5e87c701106342b846dabb354d",
          "number_of_attendees": 1,
          "state": {
            "value": "confirmed",
            "display_value": "Confirmed"
          },
          "requested_for": {
            "sys_id": "2de07e1887cb89106342b846dabb35fe",
            "name": "Workplace User",
            "user_name": "workplace_user"
          },
          "number": "WRES0001010",
          "active": true
        },
        "number_of_attendees": 1,
        "state": {
          "value": "confirmed",
          "display_value": "Confirmed"
        },
        "number": "WRES0001010",
        "requested_for": {
          "sys_id": "2de07e1887cb89106342b846dabb35fe",
          "name": "Workplace User",
          "user_name": "workplace_user"
        }
      },
      "start": "2022-05-15T16:00:00Z",
      "end": "2022-05-15T17:00:00Z",
      "sys_created_on": "2022-04-26T09:19:37Z",
      "sys_updated_on": "2022-04-26T09:20:04Z",
      "source_reservation": null,
      "check_in_state": {
        "value": "not_required",
        "display_value": "Not required"
      },
      "external_id": null,
      "external_ical": null,
      "active": true,
      "state": {
        "value": "confirmed",
        "display_value": "Confirmed"
      },
      "sensitivity": {
        "value": "normal",
        "display_value": "Normal"
      },
      "reservation_type": {
        "value": "space",
        "display_value": "Space"
      },
      "reservation_subtype": {
        "value": "single",
        "display_value": "Single"
      },
      "reservation_purpose": {
        "value": "meeting",
        "display_value": "Meeting"
      },
      "attendees": [
        {
          "sys_id": "2de07e1887cb89106342b846dabb35fe",
          "value": "2de07e1887cb89106342b846dabb35fe",
          "displayValue": "Workplace User",
          "display_value": "Workplace User",
          "name": "Workplace User",
          "user_name": "workplace_user",
          "table": "sys_user",
          "avatar": "eb513744c3222010ae17dd981840dd97",
          "initials": "WU",
          "email": "workplace_user@example.com",
          "label": ""
        }
      ],
      "number_of_attendees": 1,
      "is_parent": false,
      "subject": "Add rsv_1",
      "virtual_meeting": "https://samplemeetingurl.com",
      "recording_details": [
        {
          "recording_url": "https://samplerecordingurl.com"
        }
      ],
      "sync_state": {
        "value": "not_required",
        "display_value": "Synchronization not required"
      },
      "sub_source": {
        "value": "servicenow_workplace_service_delivery",
        "display_value": "ServiceNow Workplace Service Delivery"
      },
      "last_updated_sub_source": {
        "value": "servicenow_workplace_service_delivery",
        "display_value": "ServiceNow Workplace Service Delivery"
      },
      "reservable_module": {
        "sys_id": "c31241cedb7650106c731dcd13961917",
        "name": "Meeting rooms",
        "title": "Meeting rooms",
        "inline_title": "meeting room",
        "font_awesome_icon": "fa-building",
        "reservable_table": "sn_wsd_core_room",
        "reservable_filter": "active=true^is_reservable=true^building!=6c0364cedb3650106c731dcd13961927^building.is_reservable=true^floor.is_reservable=true^EQ",
        "short_description": "Reserve a meeting room",
        "reservable_type": "location",
        "require_subject": "1",
        "require_cancel_notes": true,
        "virtual_meeting_provider": {
          "sys_id": "e33d9e6853c201103cf7ddeeff7b1205",
          "display_value": "Template"
        },
        "allow_invitees": "1",
        "display_number_of_attendees": "1",
        "display_on_behalf_of": "1",
        "display_sensitivity": "1",
        "max_days_in_future": "180",
        "allow_whole_day": "1",
        "selection_type": "unit",
        "reservable_container_field": null,
        "reservable_quantity_field": null,
        "apply_to_shift": null,
        "max_occurrences": "180",
        "enable_facet_filter": false,
        "search_limit": 10000,
        "enable_ical_generation": null,
        "enable_group_reservations": null,
        "enable_browse_near_a_person": "1",
        "enable_browse_by_area": "1",
        "display_value": "Meeting rooms",
        "browse_near_a_person_enabled": true,
        "browse_by_area_enabled": true,
        "reservable_columns": [
          "sys_id",
          "external_id",
          "email",
          "name",
          "title",
          "description",
          "image",
          "number",
          "site",
          "campus",
          "building",
          "floor",
          "area",
          "capacity",
          "reservable_quantity",
          "location_type",
          "order",
          "requires_check_in",
          "is_reservable"
        ],
        "layout_mapping": {
          "title": [
            "name"
          ],
          "description": [
            "description"
          ],
          "subtitle": [
            "campus",
            "building",
            "floor",
            "area"
          ],
          "subtitle_asc": [
            "area",
            "floor",
            "building",
            "campus"
          ],
          "image": "image",
          "body": [
            {
              "label": "Capacity",
              "icon": "fa-users",
              "field": "capacity",
              "field_to_display": ""
            },
            {
              "label": "Standard services",
              "icon": "fa-check",
              "field": "standard_services",
              "field_to_display": "name"
            },
            {
              "label": "Reservable purposes",
              "icon": "fa-tags",
              "field": "reservable_purposes",
              "field_to_display": "name"
            }
          ]
        },
        "timeSlots": [
          {
            "sys_id": "d5331cf2dbb5f01038e42b24ca961906",
            "name": "All day",
            "short_description": "8am - 6pm",
            "slot_start": "08:00",
            "slot_end": "18:00"
          }
        ],
        "buildingSysIds": [
          "4703a4cedb3650106c731dcd13961945",
          "6c0364cedb3650106c731dcd13961927",
          "94e264cedb3650106c731dcd13961919",
          "9e0364cedb3650106c731dcd1396192b"
        ],
        "reservable_views": [
          {
            "type": "card",
            "label": "Card view",
            "iconClass": "fa-th-large",
            "isDefault": true,
            "order": "1"
          },
          {
            "type": "schedule",
            "label": "Schedule view",
            "iconClass": "fa-calendar-o",
            "isDefault": false,
            "order": "2"
          }
        ],
        "checkin_before_minutes": 30,
        "reservation_paths": [
          {
            "value": "browse_all",
            "displayValue": "Browse all"
          },
          {
            "value": "browse_near_a_person",
            "displayValue": "Browse near a person"
          },
          {
            "value": "browse_by_area",
            "displayValue": "Browse by area"
          }
        ],
        "override_approval_policy": "never_required"
      },
      "notification_recipients": [
        {
          "sys_id": "7016f79cc0a8016401c5a33be04be441",
          "name": "workplace user",
          "user_name": "workplace.user"
        }
      ],
      "notification_custom_message": "Demo notification message",
      "opened_by": {
        "sys_id": "6816f79cc0a8016401c5a33be04be441",
        "value": "6816f79cc0a8016401c5a33be04be441",
        "displayValue": "System Administrator",
        "display_value": "System Administrator",
        "name": "System Administrator",
        "user_name": "admin",
        "table": "sys_user",
        "avatar": "eb513744c3222010ae17dd981840dd97",
        "initials": "SA",
        "email": "admin@example.com",
        "label": "System Administrator"
      },
      "requested_for": {
        "sys_id": "2de07e1887cb89106342b846dabb35fe",
        "value": "2de07e1887cb89106342b846dabb35fe",
        "displayValue": "Workplace User",
        "display_value": "Workplace User",
        "name": "Workplace User",
        "user_name": "workplace_user",
        "table": "sys_user",
        "avatar": "d3513744c3222010ae17dd981840dd97",
        "initials": "WU",
        "email": "workplace_user@example.com",
        "label": ""
      },
      "edit_restriction": {
        "value": "no_restriction",
        "display_value": "No restriction"
      },
      "source": {
        "value": "servicenow",
        "display_value": "Workplace Services"
      },
      "source_icon": {
        "classNames": "fa fa-calendar-check-o",
        "tooltip": "Reservation is confirmed",
        "imgSrc": ""
      },
      "shift": {
        "sys_id": "e5d23acfdb42a01097acc9003996193a",
        "name": "Test shift AMS-B1",
        "display_value": "Test shift AMS-B1",
        "shiftDetails": "8-5 weekdays excluding holidays\n  - Monday-Friday 8-5"
      },
      "reservationAcl": {
        "write": {
          "record": true,
          "fields": {
            "subject": true,
            "sensitivity": true,
            "requested_for": true,
            "number_of_attendees": true,
            "location": true
          },
          "allFields": true
        },
        "read": true
      }
      }
     ]
   }
}

WSD Reservation - PATCH /api/sn_wsd_rsv/reservation/cancel/{sys_id}

Cancels a specified workplace reservation.

URL format

Versioned URL: /api/sn_wsd_rsv/{api_version}/reservation/cancel/{sys_id}

Default URL: /api/sn_wsd_rsv/reservation/cancel/{sys_id}

Note: Available versions are specified in the REST API Explorer. For scripted REST APIs there is additional version information on the Scripted REST Service form.

Supported request parameters

Table 25. Path 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

sys_id Sys_id of the reservation to cancel.

Data type: String

Table: Workplace Reservation [sn_wsd_rsv_reservation]

Table 26. Query parameters
Name Description
None
Table 27. Request body parameters
Name Description
cancel_notes Reason for cancelling the reservation.

Data type: String

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.

Table 28. Request 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.
Table 29. Response headers
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
sys_id Sys_id of the cancelled reservation record.

Data type: String

Table: Workplace Reservation [sn_wsd_rsv_reservation]

Example: cURL request

The following code example shows how to cancel a reservation using this endpoint.

curl "https://instance.servicenow.com/api/sn_wsd_rsv/reservation/cancel/12e2da5e87c701106342b846dabb354d" \
--request PATCH \
--header "Accept:application/json" \
--user ‘username’:’password’

Return results:

"result": {
  "sys_id": "73c316d2474b0150003a4587746d4337"
}

WSD Reservation - PATCH /api/sn_wsd_rsv/reservation/share_details/{sys_id}

Updates and shares the reservation details with a specified list of recipients through an email notification. Optionally you can send a specified message along with the reservation.

URL format

Versioned URL: /api/sn_wsd_rsv/{api_version}/reservation/share_details/{sys_id}

Default URL: /api/sn_wsd_rsv/reservation/share_details/{sys_id}

Note: Available versions are specified in the REST API Explorer. For scripted REST APIs there is additional version information on the Scripted REST Service form.

Supported request parameters

Table 31. Path 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

sys_id Sys_id of the reservation to share.

Data type: String

Table: Workplace Reservation [sn_wsd_rsv_reservation]

Table 32. Query parameters
Name Description
None
Table 33. Request body parameters (XML or JSON)
Name Description
notification_custom_message Message to send to the specified recipients.

Data Type: String

notification_recipients Required. List of sys_ids of the users to send the email notification to.

Data Type: Array

Table: User [sys_user]

notification_type Type of notification to send.
Valid types:
  • reservation_cancelled
  • reservation_created
  • reservation_updated

Data Type: String

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.

Table 34. Request 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.
Table 35. Response headers
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
sys_id Sys_id of the reservation record that was shared.

Data type: String

Table: Workplace Reservation [sn_wsd_rsv_reservation]

Example: cURL request

The following code example shows how to use this endpoint to share a reservation.

curl "https://instance.servicenow.com/api/sn_wsd_rsv/reservation/share_details/60d26a0f47578910003a4587746d4331" \
--request PATCH \
--header "Accept:application/json" \
--header "Content-Type:application/json" \
--data "{
\"notification_recipients\": [\"5dfb9fcf47d78910003a4587746d4367\"],
\"notification_type\":\"reservation_updated\",
\"notification_custom_message\": \"Please join our design brainstorming meeting!\"
}" \
--user "username":"password"

Return results:

"result": {
  "sys_id": "60d26a0f47578910003a4587746d4331"
}

WSD Reservation - PATCH /api/sn_wsd_rsv/reservation/update/{sys_id}

Updates a specified workplace reservation.

URL format

Versioned URL: /api/sn_wsd_rsv/{api_version}/reservation/update/{sys_id}

Default URL: /api/sn_wsd_rsv/reservation/update/{sys_id}

Note: Available versions are specified in the REST API Explorer. For scripted REST APIs there is additional version information on the Scripted REST Service form.

Supported request parameters

Table 37. Path 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

sys_id Sys_id of the reservation to modify.

Data type: String

Table: Workplace Reservation [sn_wsd_rsv_reservation]

Table 38. Query parameters
Name Description
ignore_same_day_validation Flag that indicates whether the reservation search ignores the change of the date validation between the start and end parameters.
Valid values:
  • true: Ignore the change date validation.
  • false: Don't ignore the change date validation.

Data type: Boolean

Default: false

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.

Table 40. Request 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.
Table 41. Response headers
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)

Example: cURL request

The following code example shows how to update a reservation using this endpoint.

curl "https://instance.servicenow.com/api/sn_wsd_rsv/reservation/update/b537abc947db4510003a4587746d4351" \
--request PATCH \
--header "Accept:application/json" \
--header "Content-Type:application/json" \
--data "{
\"subject\": \"Rsv Update_1\",
\"start\": \"2022-07-21 14:00:00\",
\"end\": \"2022-07-21 15:00:00\",
\"requested_for\": \"workplace_user@example.com\",
\"workplace_location\": \"fe1f744edb7650106c731dcd139619ca\",
\"is_private\": \false\
}" \
--user "username":"password"

Return results:

{
  "result": {
    "sys_id": "b537abc947db4510003a4587746d4351",
    "location_id": "fe1f744edb7650106c731dcd139619ca",
    "type_of_change": "location"
  }
}

WSD Reservation - POST /api/sn_wsd_rsv/reservation/add

Creates a new workplace reservation.

URL format

Versioned URL: /api/sn_wsd_rsv/{api_version}/reservation/add

Default URL: /api/sn_wsd_rsv/reservation/add

Note: Available versions are specified in the REST API Explorer. For scripted REST APIs there is additional version information on the Scripted REST Service form.

Supported request parameters

Table 43. Path 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

Table 44. Query parameters
Name Description
ignore_same_day_validation Flag that indicates whether the reservation search ignores the change of the date validation between the start and end parameters.
Valid values:
  • true: Ignore the change date validation.
  • false: Don't ignore the change date validation.

Data type: Boolean

Default: false

timezone Preferred time zone for performing the request validations. For example: Europe/Amsterdam. This validation checks whether the start and end time fall on the same day.

Data type: String

Default: User time zone

Table 45. Request body parameters
NameDescription
end Required if the shift parameter isn't passed in. Requested end time of the reservation.

Data type: String

Format: UTC or local time (yyyy-mm-dd hh:mm:ss)

is_private Flag that indicates whether the reservation is private. If private, the reservation doesn't appear to anyone except the owner.

For additional information on these privacy settings, see Location privacy settings and impact.

Valid values:
  • true: Reservation is private.
  • false: Reservation isn't private.

Data type: Boolean

Default: Value set for privacy in the system properties.

location Required.
Sys_id of the location to reserve.

Data type: String

Table: Workplace Location [sn_wsd_core_workplace_location]

requested_for Sys_id or email address of the user for which the reservation is being made.

Data type: String

Table: User [sys_user]

reservable_module Required. Sys_id of the reservable module to associate with the reservation. A reservable module defines the workplace items needed for a reservation.

Data type: String

Table: Reservable Module [sn_wsd_rsv_reservable_module]

shift
Sys_id of the shift to associate with the reservation. If this parameter is passed in, the end parameter isn't required.

For additional information on shift-based reservations, see Enable shift-based reservation.

Data type: String

Table: Shift [sn_wsd_core_shift]

start Required. Requested start time of the reservation.

Data type: String

Format: UTC or local time (yyyy-mm-dd hh:mm:ss)

subject Required.
Subject of the meeting associated with the reservation.

Data type: String

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.

Table 46. Request 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.
Table 47. Response headers
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
sys_id Sys_id of the created reservation record.

Data type: String

Table: Workplace Reservation [sn_wsd_rsv_reservation]

Example: cURL request

The following code example shows how to use this endpoint to create a reservation.

curl "https://instance.servicenow.com/api/sn_wsd_rsv/reservation/add" \
--request POST \
--header "Accept:application/json" \
--header "Content-Type:application/json" \
--data "{
  \"reservable_module\": \"c31241cedb7650106c731dcd13961917\",
  \"subject\": \"Test-123\",
  \"reservation_purpose\": \"meeting\",
  \"timezone\": \"US/Pacific\",
  \"requested_for\": \"6816f79cc0a8016401c5a33be04be441\",
  \"location\": \"5eafb44edb7650106c731dcd13961943\",
  \"is_private\": false,
  \"start\": \"2023-01-12T11:00:00Z\",
  \"end\": \"2023-01-12T12:00:00Z\"
}" \
--user "username":"password"

Return results:

"result": {
  "sys_id": "4b036a9e474b0150003a4587746d43b1"
}

WSD Reservation - POST /api/sn_wsd_rsv/reservation/quick_reserve

Creates a new workplace reservation using quick reserve.

URL format

Versioned URL: /api/sn_wsd_rsv/{api_version}/reservation/quick_reserve

Default URL: /api/sn_wsd_rsv/reservation/quick_reserve

Note: Available versions are specified in the REST API Explorer. For scripted REST APIs there is additional version information on the Scripted REST Service form.

Supported request parameters

Table 49. Path 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

Table 50. Query parameters
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.

Table 52. Request 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.
Table 53. Response headers
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
sys_id Sys_id of the created reservation record.

Data type: String

Table: Workplace Reservation [sn_wsd_rsv_reservation]

Example: cURL request

The following code example shows how to use the quick reserve endpoint to create a reservation.

curl "https://instance.servicenow.com/api/sn_wsd_rsv/reservation/quick_reserve" \
--request POST \
--header "Accept:application/json" \
--header "Content-Type:application/json" \
--data "{
  \"start\":\"2022-05-23 16:00:00\",
  \"end\": \"2022-05-23 17:00:00\",
  \"reservable_module\": \"5db44502dbb650106c731dcd13961937\",
  \"reference_location_id\": \"05f5290edb7210106c731dcd13961951\",
  \"ignore_same_day_validation\": \"true\"
}" \
--user "username":"password"

Return results:

"result": {
  "sys_id": "4b036a9e474b0150003a4587746d43b1"
}