Skip to main content
PUT
Update Organization

Authorizations

Authorization
string
header
required

A Turtle API key (sk_...) as a bearer token.

Path Parameters

organizationId
string<uuid>
required
Example:

"248df4b7-aa70-47b8-a036-33ac447e668d"

orgId
string<uuid>
required
Example:

"248df4b7-aa70-47b8-a036-33ac447e668d"

Body

application/json
domain
string

The company's own site, as a bare domain (acme.com); "" clears it. A host anybody can use is refused, matched on the exact host (scheme, path and a leading www. aside): free mail (gmail.com, googlemail.com, outlook.com, hotmail.com, live.com, yahoo.com, icloud.com, me.com, proton.me, protonmail.com, aol.com, gmx.com) and social or link sites (x.com, twitter.com, t.me, telegram.me, telegram.org, linktr.ee, github.com, medium.com, substack.com, mirror.xyz, linkedin.com, youtube.com, youtu.be, discord.gg, discord.com, facebook.com, instagram.com, tiktok.com, reddit.com, docs.google.com, google.com, notion.so, notion.site, gitbook.io, calendly.com, warpcast.com, lu.ma). Leave it empty when the company has no site of its own.

Maximum string length: 200
Pattern: ^(?:[^<\p{C}]|‍|<+(?:[^<A-Za-z/!?\p{C}]|‍|$))*$
draft
boolean

Hold this write as a draft, even where the permissions would let it through: the agent's waits for a person to approve, a person's own waits for them to confirm it (owner: its author). The response is applied=false with the draft.

evidence
object[] | null
fields
object

The organization card's declared values — verticals, legal entity, relationship state. GET /entity-cards lists what it accepts; anything else is refused. Patches the card: absent keys keep their value, null or "" clears one.

name
string

The company's name, from any author: better casing ("nesa ai" → "Nesa AI") or a rename ("Acme <> Turtle" → "Acme"). A name another organization already holds is refused: two rows for one company are a merge.

Maximum string length: 200
Pattern: ^(?:[^<\p{C}]|‍|<+(?:[^<A-Za-z/!?\p{C}]|‍|$))*$
partner
null | boolean

Whether the tenant counts the organization among its partners.

rationale
string
Maximum string length: 20000
Pattern: ^(?:[^<\p{C}]|[\t\n\r‍]|<+(?:[^<A-Za-z/!?\p{C}]|[\t\n\r‍]|$))*$
source
enum<string>

With a personal API key only: ai records the write as the key owner's agent's (source ai, with the owner as its user), owing the rationale and evidence, and passing the permissions, of any agent write. Omit for a person's own write.

Available options:
ai

Response

OK

applied
boolean
budgets
object[]

How full each budgeted text the write set is, in characters (a note in a list is its own entry, notes[2].text). Never enforced: a text over its budget was written as sent; tighten it when you next rewrite it.

draft
object
entityId
string<uuid>
Example:

"248df4b7-aa70-47b8-a036-33ac447e668d"

migrated
integer
mutation
object