Skip to content

Handle routes: update

The Handle Verbs update as api.sb routes, with inputs, result, refusals and an example.

Reference for Handle, one group of Handle routes.

Handle.update

Changes the given properties of a Handle. Verb page.

Text
PATCH /{namespace}/handles/{id}

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

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Handle.
venuestringThe venue it lives on, by id.
namestringThe name as the platform shows it, such as @example.
sharedbooleanTrue for a Studio account shared across sibling Startups; every Post names the Startup it speaks for.
agentbooleanTrue when an Agent runs it; its bio says so.
integrationIntegrationThe Integration credential it publishes through.

Returns

OutputTypeRequiredDescription
handleHandlerequiredThe Handle.

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/handles/handle_FcnNwYQujc \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Leaseline"}'
JSON
{
  "api": "https://api.sb/leaseline.app",
  "handle": {
    "$id": "https://api.sb/leaseline.app/handles/handle_FcnNwYQujc",
    "$type": "Handle",
    "venue": "Example venue",
    "name": "Leaseline"
  },
  "action": {
    "$id": "https://api.sb/leaseline.app/actions/act_br07HsG8MG",
    "operation": "Handle.update",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/leaseline.app/actions/act_br07HsG8MG"
  }
}