Confirm a booking
Changed onConfirms or cancels the specified pending booking. Nylas also updates the associated event on the provider.
Nylas validates the provided session ID and uses it to retrieve the related Configuration object. If you created a public Configuration, you don't need to include the Authorization request header with a session ID, but you do need to pass the Configuration object ID as a query parameter.
When you make a PUT request, Nylas replaces all data in the nested object with the information included in your request. For more information, see Updating objects.
Request
- Base URLhttps://api.us.nylas.com
- AuthHTTP bearer
Request body
Response
Booking confirmed or cancelled
Example response
{
"request_id": "5967ca40-a2d8-4ee0-a0e0-6f18ace39a90",
"data": {
"booking_id": "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx",
"description": "Come ready to talk philosophy!",
"event_id": "5d3qmne77v32r8l4phyuksl2x",
"organizer": {
"email": "leyah@example.com",
"name": "Leyah Miller"
},
"status": "booked",
"title": "Annual Philosophy Club Meeting"
}
}Changes
- info
the response property
/became required for the status - info
the response property
/became required for the status
- info
- info
added the optional property
/to the response with the status
- info