Skip to content
Connect an agent

Organisations

Read one of an organisation's patterns

The pattern with its source for each flavour, its slots and its notes.

GET/orgs/{org}/patterns/{name}

TL;DR

QuestionAnswer
What does it do?Read one of an organisation's patterns.
What does it take?org, name in the path.
What does it return?Status 200 with a body of type OrganisationPattern.
What can go wrong?401 not signed in, or the key is not valid; 404 no such organisation or pattern, or the caller is not a member of it; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

The pattern with its source for each flavour, its slots and its notes. Every member and a key of the organisation.

Path parameters

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

Responses

StatusMeaningBody
200The pattern.OrganisationPattern
401Not signed in, or the key is not valid.ErrorResponse
404No such organisation or pattern, or the caller is not a member of it.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