Close a service for a span
post/bookings/services/{id}/blocks
Close a service for a span: nothing of it can be held or booked there. Its sessions inside are closed (not deleted) and their holds released, each raising bookings.hold.expired with reason blocked; bookings already made are listed for the business to decide.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
bookings:admin- Sdk
bookings.serviceBlock.create- Cli
bookings service block create- Events
bookings.hold.expired
Parameters
- idstring (uuid)requiredIn the path
Request bodyapplication/json, required
- fromstring (date-time)required
- tostring (date-time)required
- reasonstringDefault: . At most 300 characters.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring