Skip to content
Skip to Content

Update brief

Saves the whole document as a new version, made from base_version at base_at (the version and version_at Get brief returned). When the brief changed since, nothing is written: 409 conflict names the latest, so read it again and merge. Free. Same as the MCP tool write_brief with brief_id.

put/api/v1/briefs/{brief}

Authentication

API key, OAuth token or signed-in session, sent as Authorization: Bearer <key or token> (a session rides on its cookie). An OAuth token needs mcp:read and mcp:write. See authentication.

Path parameters

  • briefstring (uuid)required

    The brief id, from List briefs.

Query parameters

  • workspacestring

    A workspace id or exact name from List workspaces, case-insensitive. Defaults to the current workspace. Only your own organization's workspaces resolve. 1 to 120 characters.

Response fields

  • idstring (uuid)

  • keystring

  • versioninteger

    The version just saved.

  • createdboolean

  • staleboolean

    Present when someone saved at the same moment: this edit is the newest version, theirs the one before.

  • droppedarray of string

    Embedded ad ids the library lacks, left out.

  • urlstring (uri)

  • workspaceobject

    The workspace a call read or changed: the one workspace named, else the current one.

Responses

  • 200

    Saved. Body: BriefWritten.

  • 400

    The body, an id or workspace is not valid. Body: Problem.

  • 401

    No credentials, or the token is invalid or expired. The oauth2 security scheme says how to get one. Body: Problem.

  • 403

    forbidden: the token lacks mcp:write, or a session call came from another site. The WWW-Authenticate header carries an insufficient_scope challenge naming mcp:read and mcp:write. plan_limit: the plan does not include writing briefs. Show detail and resolution to the person. workspace_locked: the workspace is past the plan's workspace count. Use an open one, or ask an admin to change the plan. read_only: the caller reads this workspace but may not change it. Body: Problem.

  • 404

    No brief with that id in this workspace. workspace_not_found: the organization has no workspace with that id or name. List workspaces lists them. Body: Problem.

  • 409

    conflict: the brief changed since base_version at base_at was read; nothing was written. latest and latest_at name the newest version: read it with Get brief, merge, and retry. Body: Problem.

  • 429

    rate_limited: more than 60 requests, or more than 30 writes, a minute from this account. Body: Problem.

  • 503

    The account could not be read or changed; retry shortly. Body: Problem.