Skip to content
Connect an agent

Organisations

Change one of an organisation's patterns

Replaces everything but the name, with the same checks as saving one.

PUT/orgs/{org}/patterns/{name}

TL;DR

QuestionAnswer
What does it do?Change one of an organisation's patterns.
What does it take?A JSON body of type UpdateOrganisationPatternBody.
What does it return?Status 200 with a body of type OrganisationPattern.
What can go wrong?400 the body is not valid; 401 not signed in; 403 the role may not (orgs.forbidden), the plan does not include the policies (plan.governance_not_included), or the request came from an origin that may not make changes; 404 no such organisation or pattern, or the caller is not a member of it; 422 the pattern has problems (orgs.pattern_invalid, every problem in details); 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

Replaces everything but the name, with the same checks as saving one. The owner and admins, on Enterprise. Agents see the change within a minute.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or slug.
namestringyesThe name after org:.

Request body

The body has the type UpdateOrganisationPatternBody.

FieldTypeRequiredDescription
titlestringyesat most 80 characters.
summarystringyesOne sentence: what the diagram shows. at most 300 characters.
whenToUsestringnoTwo or three sentences: when to start from it, and when not to. at most 600 characters.
tagsstring[]noWords a search should match, such as payments.
templatesobjectyesThe Plotwork source of each flavour (neutral, aws, azure, gcp), at least one, with {{slot}} markers inside quoted labels.
templates.neutralstringnoat most 10000 characters.
templates.awsstringnoat most 10000 characters.
templates.azurestringnoat most 10000 characters.
templates.gcpstringnoat most 10000 characters.
slotsobject[]no
slots[].idstringyesLowercase words joined with hyphens; written {{id}} inside a quoted label of the source. at least 1 character; at most 40 characters.
slots[].defaultstringyesThe text the slot has when nothing replaces it. No quotes or line breaks. at most 60 characters.
slots[].meaningstringyesOne line on what belongs in the slot, so an agent fills it with the right thing. at most 200 characters.
notesobjectnoWhat to keep, what to rename, and when to split. Left out, each has a plain default.
notes.keepstringnoat most 400 characters.
notes.renamestringnoat most 400 characters.
notes.splitstringnoat most 400 characters.

Responses

StatusMeaningBody
200The pattern as saved.OrganisationPattern
400The body is not valid.ErrorResponse
401Not signed in.ErrorResponse
403The role may not (orgs.forbidden), the plan does not include the policies (plan.governance_not_included), or the request came from an origin that may not make changes.ErrorResponse
404No such organisation or pattern, or the caller is not a member of it.ErrorResponse
422The pattern has problems (orgs.pattern_invalid, every problem in details).ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 200 answer has the type OrganisationPattern.

FieldTypeRequiredDescription
idstringyesWhat the tools take: org:<name>.
namestringyesThe name after org:.
titlestringyes
summarystringyes
whenToUsestringyes
kindstringyesThe kind of diagram, such as flow.
tagsstring[]yes
flavours("neutral" | "aws" | "azure" | "gcp")[]yes
slotCountintegeryesminimum 0.
createdAtintegeryes
updatedAtintegeryes
updatedBystring | nullyesThe account that last saved it, or null once that account is gone.
templatesobjectyesThe Plotwork source of each flavour (neutral, aws, azure, gcp), at least one, with {{slot}} markers inside quoted labels.
templates.neutralstringnoat most 10000 characters.
templates.awsstringnoat most 10000 characters.
templates.azurestringnoat most 10000 characters.
templates.gcpstringnoat most 10000 characters.
slotsobject[]yes
slots[].idstringyesLowercase words joined with hyphens; written {{id}} inside a quoted label of the source. at least 1 character; at most 40 characters.
slots[].defaultstringyesThe text the slot has when nothing replaces it. No quotes or line breaks. at most 60 characters.
slots[].meaningstringyesOne line on what belongs in the slot, so an agent fills it with the right thing. at most 200 characters.
notesobjectyes
notes.keepstringyesWhat to leave exactly as it is.
notes.renamestringyesWhat to rename or replace, and how.
notes.splitstringyesWhen the diagram has grown too big, and where to cut it.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools