ing.opn.booking.cancel
Cancels a booking, as its host or a holder of its manage token.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | booking.opn.ing |
| Commit rev | 3n2uk73bkfw2l |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Cancels a booking, as its host or a holder of its manage token.",
"errors": [
{
"name": "BookingNotFound"
},
{
"name": "BookingNotActive"
},
{
"name": "CancellingDisabled"
},
{
"name": "InvalidAnswer"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"reason": {
"maxLength": 2000,
"type": "string"
},
"token": {
"description": "The booking's manage token, from the email sent to its guest. Not needed by the host.",
"maxLength": 128,
"type": "string"
},
"uid": {
"description": "The booking's id.",
"maxLength": 64,
"type": "string"
}
},
"required": [
"uid"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"booking": {
"ref": "ing.opn.booking.defs#bookingView",
"type": "ref"
}
},
"required": [
"booking"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "ing.opn.booking.cancel",
"lexicon": 1
}