Skip to main content
POST
Plan Pipeline Change

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"

pipelineId
string<uuid>
required
Example:

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

Body

application/json
aggregates
object[]

Replaces the board's rollups wholesale. The board's rollups over its deals: each {key, label?, source?, op?, stages?, groupBy?}. op is sum (default) | min | max | avg | median | count; source is a money, percent, number or (min/max) date field, or expectedRevenue, optional for count; stages narrows to some columns; groupBy: stage turns the number into one point per column.

color
null | string

The board's hue, from the chip palette.

description
string

What the board is for: which relationships go on it. Sonar reads it to pick the board for a new deal. "" removes it.

Maximum string length: 20000
Pattern: ^(?:[^<\p{C}]|[\t\n\r‍]|<+(?:[^<A-Za-z/!?\p{C}]|[\t\n\r‍]|$))*$
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
fieldSchema
object[]

Replaces the board's card wholesale: an ordered list of {key, kind, entity?, set?, required?, label?, options?, unit?, section?, format?, description?, onCard?, deprecated?}. kind is text|number|money|percent|bool|date|enum|ref|stage; ref needs entity (contact|organization|document|engagement|task); enum needs options, each a string or {value, label?, color?, deprecated?}: value is what a card stores, label the words people read, which may be written in its place; unit is free text, required on money and optional on number; set:true makes the field hold several values, on enum and ref only; format (multiline|url|email) is a text rendering hint; section is the heading the field groups under; deprecated retires a field or an option: records keep what they hold and take no new value. Position is display order.

migrate
object

What becomes of the deals the change strands: deals on a removed stage, values in a removed field, a value a field no longer takes, a field made required that deals leave empty. A change that strands any is refused until it says; POST /pipelines/{id}/change-plan lists them. Deprecating a field, option or stage strands nothing.

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

Computes a deal's expectedRevenue from its card when nobody wrote one: card keys and numbers joined by + - * /, with parentheses and max(a, b). Every key must be a plain money, percent or number field on the card. "" removes it.

revenueUnit
string

What every deal's expectedRevenue on this board is counted in, e.g. USD. "" leaves it unstated.

Maximum string length: 200
Pattern: ^(?:[^<\p{C}]|‍|<+(?:[^<A-Za-z/!?\p{C}]|‍|$))*$
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
stages
object[]

The board's funnel, in order. Names must be distinct and at least one stage must be initial.

Response

OK

records
integer
strands
object[] | null