Registration routes: update, delete
The Registration Verbs update, delete as api.sb routes, with inputs, result, refusals and an example.
Reference for Registration, one group of Registration routes.
Registration.update
Changes the given properties of a Registration. Verb page.
PATCH /{namespace}/ registrations/ {id}Path: id. Body, as JSON: the other inputs. Emits Registration.updated.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Registration. |
registeredAt | datetime | When the place was confirmed. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
registration | Registration | required | The Registration. |
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/ registrations/ registration_95lvb7R17L \
-H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
-H "Content-Type: application/ json" \
-d '{"registeredAt": "2026-10-22T12: 00: 00Z"}'{
"api": "https: //api.sb/ leaseline.app",
"registration": {
"$id": "https: //api.sb/ leaseline.app/ registrations/ registration_95lvb7R17L",
"$type": "Registration",
"status": "invited",
"registeredAt": "2026-10-22T12: 00: 00Z"
},
"action": {
"$id": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG",
"operation": "Registration.update",
"status": "done"
},
"links": {
"self": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG"
}
}Registration.delete
Deletes a Registration: a soft delete that keeps its history, undone by Thing.restore. Verb page.
DELETE /{namespace}/ registrations/ {id}Path: id. Emits Registration.deleted.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Registration. |
Returns
| Output | Type | Required | Description |
|---|---|---|---|
registration | Registration | required | The Registration. |
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/ registrations/ registration_95lvb7R17L \
-H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"{
"api": "https: //api.sb/ leaseline.app",
"registration": {
"$id": "https: //api.sb/ leaseline.app/ registrations/ registration_95lvb7R17L",
"$type": "Registration",
"status": "invited"
},
"action": {
"$id": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG",
"operation": "Registration.delete",
"status": "done"
},
"links": {
"self": "https: //api.sb/ leaseline.app/ actions/ act_br07HsG8MG"
}
}