Create an Appointment against an Incident via API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2023 03:45 AM
I am trying to create an Appointment via the API (Book Appointment) using the platform. Below is my payload that is used via API Explorer that has the Catalog sys_id which works when submitted via Portal, The User sys_ID & the submitted Incident sys_id.
This returns an error 'Appointment does not exist for the task'. Please assist if any of you are using the API to create Appointments & if any best practices. Thanks
API: https://xxx.service-now.com/api/sn_apptmnt_booking/appointment/appointment
Method: POST
{
"startDateUTC" : "2023-10-15 06:00:00",
"endDateUTC" : "2023-10-15 06:30:00",
"actualStart":"2023-10-15 11:30:00",
"actualEnd":"2023-10-15 12:00:00",
"timezone":"IST",
"recordProducer":"16554e141b7bc1901d3b5fc4464bcb03",
"taskTable":"incident",
"taskId":"ca15f85d1bbd75101d3b5fc4464bcb21",
"openedFor":"2018b2d11b6b69109d0743f5e34bcb79",
"catalogId":"16554e141b7bc1901d3b5fc4464bcb03",
"location":"a8761a981bea045031f3dac7bd4bcb69"
}