Skip to content

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.

Text
PATCH /{namespace}/registrations/{id}

Path: id. Body, as JSON: the other inputs. Emits Registration.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Registration.
registeredAtdatetimeWhen the place was confirmed.

Returns

OutputTypeRequiredDescription
registrationRegistrationrequiredThe Registration.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

Terminal
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"}'
JSON
{
  "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.

Text
DELETE /{namespace}/registrations/{id}

Path: id. Emits Registration.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Registration.

Returns

OutputTypeRequiredDescription
registrationRegistrationrequiredThe Registration.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

Terminal
curl -X DELETE https://api.sb/leaseline.app/registrations/registration_95lvb7R17L \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
JSON
{
  "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"
  }
}