Meeting Type routes: update, delete
The Meeting Type Verbs update, delete as api.sb routes, with inputs, result, refusals and an example.
Reference for Meeting Type, one group of Meeting Type routes.
MeetingType.update
Changes the given properties of a Meeting Type. Verb page.
PATCH /{namespace}/ meeting-types/ {id}Path: id. Body, as JSON: the other inputs. Emits MeetingType.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Meeting Type. |
name | string | What the booking page calls it, such as Intro call. | |
duration | integer | Minutes each Meeting runs. | |
medium | string | How people meet: video, phone or inPerson. | |
availability | Availability | The hours it books into. | |
url | url | The booking link, served on the Startup’s Domain once published. | |
questions | string[] | What the booker answers before the time is held. | |
offer | Offer | The Offer a paid booking accepts first, with its deposit and no-show rule. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
meetingType | Meeting Type | required | The Meeting Type. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
curl -X PATCH https: //api.sb/ leaseline.app/ meeting-types/ mtgtype_qw2d5yGLVN \
-H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
-H "Content-Type: application/ json" \
-d '{"name": "Problem interview"}'{
"api": "https: //api.sb/ leaseline.app",
"meetingType": {
"$id": "https: //api.sb/ leaseline.app/ meeting-types/ mtgtype_qw2d5yGLVN",
"$type": "MeetingType",
"name": "Problem interview",
"duration": 20,
"medium": "video",
"availability": "availability_8Zj0a7vvRl"
},
"action": {
"$id": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG",
"operation": "MeetingType.update",
"status": "done"
},
"links": {
"self": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG"
}
}MeetingType.delete
Deletes a Meeting Type: a soft delete that keeps its history, undone by Thing.restore. Verb page.
DELETE /{namespace}/ meeting-types/ {id}Path: id. Emits MeetingType.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Meeting Type. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
meetingType | Meeting Type | required | The Meeting Type. |
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |
Example
curl -X DELETE https: //api.sb/ leaseline.app/ meeting-types/ mtgtype_qw2d5yGLVN \
-H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"{
"api": "https: //api.sb/ leaseline.app",
"meetingType": {
"$id": "https: //api.sb/ leaseline.app/ meeting-types/ mtgtype_qw2d5yGLVN",
"$type": "MeetingType",
"name": "Problem interview",
"duration": 20,
"medium": "video",
"availability": "availability_8Zj0a7vvRl"
},
"action": {
"$id": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG",
"operation": "MeetingType.delete",
"status": "done"
},
"links": {
"self": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG"
}
}