Upsert Case Field
Declare a field on a case, rename it, or mark a date as a deadline
- The
keyidentifies the field and never changes. To rename a field, send a newname. - A field that does not exist yet needs a
type. - The call is idempotent: replaying it lands on the same field.
Deadlines
A deadline is adate field with is_deadline: true. Its name says what the deadline is
(an appeal deadline, a hearing), its value says when. Only a date field can be a deadline:
is_deadline on any other type is refused with a 422.
Deadlines show in Get Case under schema.data, with
is_deadline: true. To clear a deadline’s date and keep the deadline, write null to its
value with Update Case Data. To remove the deadline itself, use
Delete Case Field.
Authorizations
API token (starts with pnbx_). Create at https://app.penbox.io/workspace/settings/api. Include as: Authorization: Bearer {token}
Path Parameters
Body
Response
The case, as Get Case returns it
Human-readable label of the current status. Custom statuses return the label configured on the case template, in the language it was written in. Built-in statuses (draft, pending, in_progress, closed, cancelled) return an English label, as the API has no notion of the reader's language.
"Waiting for documents"
Who decided to create the case: human a person, ai a model, automation a rule configured on a case template, partner a partner integration, system Penbox itself or an API token. Read-only, and null on cases created before this was recorded.
human, ai, automation, partner, system The surface the case came through: the Penbox app, the Outlook add-in, an AI assistant, this API, an email, a completed form, a connection or Penbox itself. Read-only, and null on cases created before this was recorded.
app, outlook, mcp, api, email, form, connection, system