---
title: "Submit or autosave an item"
method: PATCH
path: "/portal/{slug}/items/{key}"
tags: ["Portal"]
---

# Submit or autosave an item

`PATCH /portal/{slug}/items/{key}`

## Request

- Base URL: `https://api.briefgate.dev`
- URL: `https://api.briefgate.dev/portal/{slug}/items/{key}`
- Auth: none required

Submit a value for an item. Set `draft: true` for autosave (partial value, does not advance the state machine). Set `draft: false` (the default) to mark the item as submitted. Files must be uploaded first via the upload endpoint.

## Path parameters

- `slug` string, required
- `key` string, required

## Request body

- SubmitItem
  - `value` unknown
  - `draft` boolean

## Response `200`

Item submitted or autosaved

- object
  - `key` string
  - `status` 'pending' | 'submitted' | 'needs_revision' | 'approved'
  - `draft` boolean

## Other responses

- `400`: Invalid request — malformed body or query parameters
- `401`: No valid portal session
- `404`: Resource not found
- `413`: Payload too large
- `422`: Validation error — the body shape is correct but values are invalid

---

[API](https://skmtc.dev/briefgate/apis/briefgate-api.md) · [All operations](https://skmtc.dev/briefgate/apis/briefgate-api/llms.txt) · [OpenAPI document](https://skmtc.dev/briefgate/apis/briefgate-api/revisions/b21afed4748b?raw)
