Skip to content
Skip to Content

Update my brand

Changes the fields given, at least one; a field left out stays. notes replaces the whole notes document. Null clears a field, except name. Free. Same as the MCP tool update_my_brand.

patch/api/v1/workspace/brand

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.

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.

Body · application/json

  • namestring

    1 to 80 characters.

  • nichestring or null

    A niche slug from List niches.

  • site_urlstring or null

    A public site, as a domain or URL.

  • meta_urlstring or null

    A facebook.com page, or a Meta Ad Library link with view_all_page_id.

  • notesstring or null

    The whole notes document, in markdown.

Response fields

  • brandobject

    With name, niche, site_url, meta_url, notes, updated_at.

  • set_upboolean

    False while neither notes nor a site are saved.

  • savedboolean

    On Update my brand only: true.

  • urlstring (uri)

    The Your brand page on the site.

  • workspaceobject

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

Responses

  • 200

    Saved. Body: MyBrand.

  • 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. 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

    workspace_not_found: the organization has no workspace with that id or name. List workspaces lists them. 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.