{"openapi":"3.1.0","info":{"title":"Farkitect API","version":"1.0.0-preview","description":"Read and change Farkitect's models from your own applications.\n\n**Free during early access.** A paid plan will be needed later, with notice.\n\nAuthenticate with an API key in the `Authorization` header: `Authorization: Bearer fk_live_…`. Keys are made by an organisation's owners and admins (or a project's admins, for one project) on the website: Organisation › Developers. Keep keys on a server: the API refuses calls from web browsers.\n\n**Preview.** The API is still being shaped: until it is declared stable, a change may break a working program. Every such change is marked **Breaking** in the [changelog](https://docs.farkitect.com/api/changelog/). Ignore fields and values you don't recognise.\n\nGuides: [quick start](https://docs.farkitect.com/api/quick-start/), [API keys](https://docs.farkitect.com/api/keys/), [errors](https://docs.farkitect.com/api/errors/), [rate limits](https://docs.farkitect.com/api/rate-limits/), [building with an AI assistant](https://docs.farkitect.com/api/build-with-ai/). For AI assistants: https://docs.farkitect.com/llms.txt","contact":{"name":"Farkitect support","url":"https://farkitect.com"}},"servers":[{"url":"https://api.farkitect.com","description":"This server"}],"tags":[{"name":"Keys","description":"The key you are calling with."},{"name":"Projects","description":"The projects a key reaches."},{"name":"Metamodels","description":"The types, property types and values a project's models are built from. Read only."},{"name":"Models","description":"A project's models: packages, elements with their values, and relationships."},{"name":"Views","description":"A project's diagrams, catalogs, boards and chart views."},{"name":"Events","description":"What changed in a project, kept 30 days, to follow without reading everything again."},{"name":"Webhooks","description":"Events posted to your own address as they happen, signed (Standard Webhooks)."},{"name":"Checks","description":"The project's integrity check."},{"name":"Exports","description":"Exporting a package as a .farki file, in the background."}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"fk_live_… or fk_test_…","description":"An API key from Organisation › Developers on the website."}},"schemas":{"ApiKeyInfo":{"type":"object","properties":{"object":{"type":"string","enum":["apiKey"]},"id":{"type":"string","description":"The key's id (not the key itself)."},"name":{"type":"string","example":"Architecture report"},"organization":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"scope":{"type":"string","enum":["organization","project"],"description":"`organization`: every project in the organisation, including ones made later. `project`: exactly one."},"role":{"$ref":"#/components/schemas/Role"},"webhooks":{"type":"boolean","description":"Whether this key may manage the organisation's webhook endpoints."},"expiresAt":{"type":"string","format":"date-time","example":"2027-02-03T00:00:00.000Z"},"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"$ref":"#/components/schemas/Role"}},"required":["id","name","role"]},"description":"The projects this key reaches, with its role in each."},"tier":{"type":"string","example":"free","description":"The organisation's API tier."},"limits":{"$ref":"#/components/schemas/Limits"}},"required":["object","id","name","organization","scope","role","webhooks","expiresAt","projects","tier","limits"],"description":"The key making the request.","example":{"object":"apiKey","id":"px756dbffd1aemjxsydsw04axh8hny3q","name":"Architecture report","organization":{"id":"m5746x47x6xa8dx7jvyc7sz8jh83q5aw","name":"Acme Ltd"},"scope":"organization","role":"viewer","webhooks":false,"expiresAt":"2027-02-03T03:33:42.218Z","projects":[{"id":"k57c71kfykh96rqe0x9tce7kg58a3xcm","name":"Customer platform","role":"viewer"},{"id":"k57ej6z6thkts7330h0hd8vtzs8gn230","name":"Application portfolio","role":"viewer"}],"tier":"free","limits":{"requestsPerMinutePerKey":120,"burstPerKey":10,"requestsAtOncePerKey":4,"writesPerMinutePerKey":30,"requestsPerMinutePerOrganization":300,"requestsPerDayPerOrganization":10000,"heavyPerMinutePerOrganization":6,"heavyAtOncePerOrganization":1,"heavyPerDayPerOrganization":200,"jobsAtOnce":1,"webhookEndpoints":5,"eventRetentionDays":30}}},"Role":{"type":"string","enum":["viewer","contributor","admin"],"description":"What a key may do in a project, with the same meaning as a project member's role: a viewer reads; a contributor also changes models (M1); an admin also metamodels (M2), which v1 of the API only reads."},"Limits":{"type":"object","properties":{"requestsPerMinutePerKey":{"type":"integer"},"burstPerKey":{"type":"integer","description":"Requests a key may make at once before the per-minute rate applies."},"requestsAtOncePerKey":{"type":"integer","description":"Requests a key may have running at the same moment. More get `429`: wait for one to finish."},"writesPerMinutePerKey":{"type":"integer"},"requestsPerMinutePerOrganization":{"type":"integer"},"requestsPerDayPerOrganization":{"type":"integer"},"heavyPerMinutePerOrganization":{"type":"integer","description":"Heavy calls (a whole package at once) a minute, across the organisation's keys."},"heavyAtOncePerOrganization":{"type":"integer","description":"Heavy calls running at once in the organisation."},"heavyPerDayPerOrganization":{"type":"integer","description":"Heavy calls a UTC day in the organisation."},"jobsAtOnce":{"type":"integer"},"webhookEndpoints":{"type":"integer"},"eventRetentionDays":{"type":"integer"}},"required":["requestsPerMinutePerKey","burstPerKey","requestsAtOncePerKey","writesPerMinutePerKey","requestsPerMinutePerOrganization","requestsPerDayPerOrganization","heavyPerMinutePerOrganization","heavyAtOncePerOrganization","heavyPerDayPerOrganization","jobsAtOnce","webhookEndpoints","eventRetentionDays"],"description":"What the organisation's API tier allows."},"Problem":{"type":"object","properties":{"type":{"type":"string","format":"uri","description":"A page in the docs explaining this kind of problem."},"title":{"type":"string","description":"A short summary of the kind of problem."},"status":{"type":"integer","description":"The HTTP status code."},"detail":{"type":"string","description":"What went wrong this time, and how to put it right."},"code":{"type":"string","enum":["bad_request","key_in_url","invalid_cursor","validation_failed","idempotency_key_reused","missing_key","invalid_key","key_revoked","key_expired","browser_not_allowed","forbidden","organization_suspended","api_disabled_for_organization","plan_required","not_found","job_not_ready","resync_required","precondition_failed","use_export_job","too_large","rate_limited","quota_exceeded","internal_error","api_disabled","unavailable","busy"],"description":"Machine-readable. New codes may be added: treat an unknown one by its status."},"requestId":{"type":"string","description":"Quote this when asking for help."},"errors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","description":"Where the problem is, such as `query.limit` or `body.name`."},"message":{"type":"string"}},"required":["field","message"]},"description":"For `validation_failed`: one entry per field."}},"required":["type","title","status","detail","code","requestId"],"description":"An error, as RFC 9457 `application/problem+json`.","example":{"type":"https://docs.farkitect.com/api/errors/missing-key","title":"No API key was given","status":401,"detail":"Send your API key in the Authorization header: Authorization: Bearer fk_live_…","code":"missing_key","requestId":"req_46075e91719e4bd0a9a4"}},"ProjectList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Project"}},"hasMore":{"type":"boolean","description":"Whether more items follow. Keep asking with `nextCursor` until this is false."},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}},"required":["object","data","hasMore","nextCursor"],"description":"A page of projects."},"Project":{"type":"object","properties":{"object":{"type":"string","enum":["project"]},"id":{"type":"string"},"name":{"type":"string","example":"Customer platform"},"description":{"type":["string","null"]},"role":{"allOf":[{"$ref":"#/components/schemas/Role"},{"description":"What this key may do in the project."}]},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":["string","null"],"description":"Who made the project, as their name was then."},"updatedAt":{"type":"string","format":"date-time","description":"When the project or its model last changed."},"updatedBy":{"type":["string","null"],"description":"Who made that change: a person's name, or `API · <key name>`."}},"required":["object","id","name","description","role","createdAt","createdBy","updatedAt","updatedBy"],"description":"A project this key reaches.","example":{"object":"project","id":"k57c71kfykh96rqe0x9tce7kg58a3xcm","name":"Customer platform","description":"Applications and services behind the customer portal.","role":"viewer","createdAt":"2026-08-01T22:10:00.000Z","createdBy":"Olive Owner","updatedAt":"2026-11-05T03:02:11.000Z","updatedBy":"API · Inventory sync"}},"MetamodelList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Metamodel"}},"hasMore":{"type":"boolean","description":"Whether more items follow. Keep asking with `nextCursor` until this is false."},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}},"required":["object","data","hasMore","nextCursor"],"description":"A page of metamodels."},"Metamodel":{"type":"object","properties":{"object":{"type":"string","enum":["metamodel"]},"id":{"type":"string"},"projectId":{"type":"string"},"name":{"type":"string","example":"M2 ArchiMate 4"},"description":{"type":["string","null"],"description":"Markdown."},"kind":{"type":"string","enum":["standard","common"],"description":"`common`: types shared by models built on other metamodels."},"version":{"type":["string","null"]},"included":{"$ref":"#/components/schemas/Included"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["object","id","projectId","name","description","kind","version","included","createdAt","updatedAt"],"description":"A metamodel (M2): the types a project's models are built from."},"Included":{"type":["object","null"],"properties":{"sourceProjectId":{"type":"string","description":"The project it is included from."},"originProjectId":{"type":"string","description":"The project that defines it; differs from `sourceProjectId` when it comes through another project's copy."},"version":{"type":"integer","description":"The published version it holds: 1, 2, 3…"},"label":{"type":"string","description":"That version's name, as its authors gave it.","example":"2027 edition"},"state":{"type":"string","enum":["upToDate","waiting","updating","failed","sourceGone"],"description":"`waiting`: a newer version is published and not yet accepted. `failed`: an update stopped part-way. `sourceGone`: the project it came from no longer offers it."}},"required":["sourceProjectId","originProjectId","version","label","state"],"description":"Set when the metamodel is **included** from another project of the organisation: a read-only copy, changed only where it is defined, so writes to it are refused. Null for the project's own metamodels."},"MetamodelDetail":{"allOf":[{"$ref":"#/components/schemas/Metamodel"},{"type":"object","properties":{"layers":{"type":"array","items":{"$ref":"#/components/schemas/Ref"},"description":"Its layers, in the order the app shows them. Each element type is in one."}},"required":["layers"]}],"description":"A metamodel (M2): the types a project's models are built from."},"Ref":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"description":"Another item, by id and name."},"ElementTypeList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/ElementType"}},"hasMore":{"type":"boolean","description":"Whether more items follow. Keep asking with `nextCursor` until this is false."},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}},"required":["object","data","hasMore","nextCursor"],"description":"A page of element types."},"ElementType":{"type":"object","properties":{"object":{"type":"string","enum":["elementType"]},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"],"description":"Markdown."},"abstract":{"type":"boolean","description":"No element can be of an abstract type; it exists to be inherited from."},"superclasses":{"type":"array","items":{"$ref":"#/components/schemas/Ref"}},"propertyTypes":{"type":"array","items":{"$ref":"#/components/schemas/PropertyType"},"description":"Own and inherited, in the type's order (as the app shows them)."},"retired":{"$ref":"#/components/schemas/Retired"},"layer":{"allOf":[{"$ref":"#/components/schemas/Ref"},{"description":"The layer of the metamodel it is in."}]},"subordinate":{"type":"boolean","description":"Its elements exist only inside another element (an attribute, say)."},"attachment":{"type":["string","null"],"enum":["image","file",null],"description":"What its elements may have attached (`PUT /v1/elements/{elementId}/attachment`): `image`, images only; `file`, any file; null, none."}},"required":["object","id","name","description","abstract","superclasses","propertyTypes","retired","layer","subordinate","attachment"],"description":"A type of element a model can contain."},"PropertyType":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","example":"Annual Cost"},"dataType":{"type":"string","enum":["String","Integer","Boolean","Real","Date","DateTime","UnlimitedNatural","Enumeration","Element"],"description":"What its values are. `Enumeration`: one of `enumeration`'s values. `Element`: refers to an element of `elementType`."},"enumeration":{"allOf":[{"$ref":"#/components/schemas/Ref"},{"type":["object","null"],"description":"For `Enumeration`: which one (see the metamodel's enumerations)."}]},"elementType":{"allOf":[{"$ref":"#/components/schemas/Ref"},{"type":["object","null"]}]},"format":{"type":["string","null"],"description":"How a value is shown or entered, such as `multiline`, `url`, `email`, `richtext` (Markdown), `currency:NZD` or `percent`. New formats may appear.","example":"currency:NZD"},"multiplicity":{"type":"object","properties":{"lower":{"type":"integer","description":"1 or more: a value is required."},"upper":{"type":["integer","null"],"description":"null: no upper bound."}},"required":["lower","upper"]},"defaultValue":{"type":["string","null"]},"inheritedFrom":{"allOf":[{"$ref":"#/components/schemas/Ref"},{"type":["object","null"],"description":"The superclass it comes from; null when the type's own."}]},"retired":{"$ref":"#/components/schemas/Retired"}},"required":["id","name","dataType","enumeration","elementType","format","multiplicity","defaultValue","inheritedFrom","retired"],"description":"A property an element of the type can have a value for."},"Retired":{"type":["object","null"],"properties":{"since":{"type":"string","description":"The metamodel version it was retired in."},"reason":{"type":["string","null"]}},"required":["since","reason"],"description":"Set when this was retired by a metamodel upgrade: existing values and elements are kept, but nothing new should use it."},"RelationshipTypeList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/RelationshipType"}},"hasMore":{"type":"boolean","description":"Whether more items follow. Keep asking with `nextCursor` until this is false."},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}},"required":["object","data","hasMore","nextCursor"],"description":"A page of relationship types."},"RelationshipType":{"type":"object","properties":{"object":{"type":"string","enum":["relationshipType"]},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"],"description":"Markdown."},"abstract":{"type":"boolean","description":"No element can be of an abstract type; it exists to be inherited from."},"superclasses":{"type":"array","items":{"$ref":"#/components/schemas/Ref"}},"propertyTypes":{"type":"array","items":{"$ref":"#/components/schemas/PropertyType"},"description":"Own and inherited, in the type's order (as the app shows them)."},"retired":{"$ref":"#/components/schemas/Retired"},"verb":{"type":["string","null"],"description":"Read from source to target.","example":"serves"},"reverseVerb":{"type":["string","null"],"description":"Read from target to source.","example":"is served by"},"validPairs":{"type":["array","null"],"items":{"type":"object","properties":{"source":{"allOf":[{"$ref":"#/components/schemas/Ref"},{"type":["object","null"]}]},"target":{"allOf":[{"$ref":"#/components/schemas/Ref"},{"type":["object","null"]}]}},"required":["source","target"]},"description":"The element types it may join, source to target; a null end means any type. A subtype is accepted wherever its superclass is. null: any pair."}},"required":["object","id","name","description","abstract","superclasses","propertyTypes","retired","verb","reverseVerb","validPairs"],"description":"A type of relationship between elements."},"EnumerationList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Enumeration"}},"hasMore":{"type":"boolean","description":"Whether more items follow. Keep asking with `nextCursor` until this is false."},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}},"required":["object","data","hasMore","nextCursor"],"description":"A page of enumerations."},"Enumeration":{"type":"object","properties":{"object":{"type":"string","enum":["enumeration"]},"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"values":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"As people see it.","example":"In production"},"storedValue":{"type":"string","description":"As it is stored; never changes when the value is renamed.","example":"production"},"retired":{"$ref":"#/components/schemas/Retired"}},"required":["name","storedValue","retired"]},"description":"In the metamodel's order."},"retired":{"$ref":"#/components/schemas/Retired"}},"required":["object","id","name","description","values","retired"],"description":"A fixed list of values a property type can take."},"PackageList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Package"}},"hasMore":{"type":"boolean","description":"Whether more items follow. Keep asking with `nextCursor` until this is false."},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}},"required":["object","data","hasMore","nextCursor"],"description":"A page of packages."},"Package":{"type":"object","properties":{"object":{"type":"string","enum":["package"]},"id":{"type":"string"},"uid":{"type":["string","null"],"description":"The permanent id: it never changes, and survives what changes `id` (a Restore Project, a Replace, FarkiBot's Modify). Store this to find the item again later; look it up with `?uid=`. Every item has one.","example":"0f08fza5n3g24hqrkbw0hsr51w"},"originUid":{"type":["string","null"],"description":"On a copy included from another project: the original's `uid`. null otherwise."},"projectId":{"type":"string"},"parentId":{"type":["string","null"],"description":"The package it's in; null for a model (a top-level package)."},"name":{"type":"string"},"notes":{"type":["string","null"],"description":"Markdown."},"included":{"allOf":[{"$ref":"#/components/schemas/Included"},{"description":"Set on a model (a top-level package) **included** from another project of the organisation: a read-only copy, changed only where it is defined, so writes to it and to everything in it are refused (`403 forbidden`). Null otherwise."}]},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":["string","null"],"description":"Who made it, as their name was then."},"updatedAt":{"type":"string","format":"date-time","description":"When it, or one of its values, last changed. `updatedSince` compares with this."},"updatedBy":{"type":["string","null"],"description":"Who made that change: a person's name, or `API · <key name>`."}},"required":["object","id","uid","originUid","projectId","parentId","name","notes","included","createdAt","createdBy","updatedAt","updatedBy"],"description":"A package of a model."},"PackageCreate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":500,"description":"Up to 500 characters; spaces at either end are removed."},"parentId":{"type":"string","minLength":1,"description":"The package to make it in. A new model (a top-level package) is made in the app."},"notes":{"type":["string","null"],"description":"Markdown. null or an empty string clears them."}},"required":["name","parentId"],"additionalProperties":false},"PackageUpdate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":500,"description":"Up to 500 characters; spaces at either end are removed."},"notes":{"type":["string","null"],"description":"Markdown. null or an empty string clears them."},"parentId":{"type":"string","minLength":1,"description":"Move it into this package (of the same model, or another model's)."}},"additionalProperties":false,"description":"Only the fields sent change."},"Job":{"type":"object","properties":{"object":{"type":"string","enum":["job"]},"id":{"type":"string"},"kind":{"type":"string","enum":["export","delete"],"description":"What the job does: an export, or a delete too large for one call. New kinds may appear."},"status":{"type":"string","enum":["queued","running","done","failed"],"description":"`queued` and `running`: ask again in a few seconds. `done`: an export's file is ready, or a delete is finished. `failed`: see `error`, and start another."},"projectId":{"type":"string"},"packageId":{"type":"string","description":"The package exported, or the package or element deleted."},"file":{"type":["object","null"],"properties":{"fileName":{"type":"string","example":"Customer platform.farki"},"size":{"type":"integer","description":"Bytes."}},"required":["fileName","size"],"description":"When `done`: download it with `GET /v1/jobs/{jobId}/file`."},"deleted":{"type":["integer","null"],"description":"For a delete, once `done`: how many elements and relationships it deleted. null otherwise."},"error":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"startedAt":{"type":["string","null"],"format":"date-time"},"finishedAt":{"type":["string","null"],"format":"date-time"},"expiresAt":{"type":"string","format":"date-time","description":"When the job and its file are deleted: a day after it finished."}},"required":["object","id","kind","status","projectId","packageId","file","deleted","error","createdAt","startedAt","finishedAt","expiresAt"],"description":"Work done in the background: an export, or a large delete."},"ElementList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Element"}},"hasMore":{"type":"boolean","description":"Whether more items follow. Keep asking with `nextCursor` until this is false."},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}},"required":["object","data","hasMore","nextCursor"],"description":"A page of elements."},"Element":{"type":"object","properties":{"object":{"type":"string","enum":["element"]},"id":{"type":"string"},"uid":{"type":["string","null"],"description":"The permanent id: it never changes, and survives what changes `id` (a Restore Project, a Replace, FarkiBot's Modify). Store this to find the item again later; look it up with `?uid=`. Every item has one.","example":"0f08fza5n3g24hqrkbw0hsr51w"},"originUid":{"type":["string","null"],"description":"On a copy included from another project: the original's `uid`. null otherwise."},"projectId":{"type":"string"},"packageId":{"type":["string","null"]},"ownerId":{"type":["string","null"],"description":"The element it belongs to, for a subordinate element (an attribute, say); otherwise null."},"name":{"type":"string","example":"Customer Portal"},"type":{"$ref":"#/components/schemas/TypeRef"},"notes":{"type":["string","null"],"description":"Markdown."},"properties":{"type":["object","null"],"additionalProperties":{"$ref":"#/components/schemas/PropertyValue"},"description":"Every property type of the item's type, by name, with its value. Always on a single item; on a list only with `include=properties`, otherwise null."},"attachment":{"$ref":"#/components/schemas/AttachmentInfo"},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":["string","null"],"description":"Who made it, as their name was then."},"updatedAt":{"type":"string","format":"date-time","description":"When it, or one of its values, last changed. `updatedSince` compares with this."},"updatedBy":{"type":["string","null"],"description":"Who made that change: a person's name, or `API · <key name>`."}},"required":["object","id","uid","originUid","projectId","packageId","ownerId","name","type","notes","properties","attachment","createdAt","createdBy","updatedAt","updatedBy"],"description":"An element of a model."},"TypeRef":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"metamodel":{"allOf":[{"$ref":"#/components/schemas/Ref"},{"type":["object","null"]}]}},"required":["id","name","metamodel"],"description":"The element or relationship type, and the metamodel it's from."},"PropertyValue":{"type":"object","properties":{"propertyTypeId":{"type":"string"},"dataType":{"type":"string","enum":["String","Integer","Boolean","Real","Date","DateTime","UnlimitedNatural","Enumeration","Element"]},"format":{"type":["string","null"]},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}],"description":"In its natural type: a number for Integer, Real and UnlimitedNatural (`\"*\"` for no limit), true or false for Boolean, `YYYY-MM-DD` for Date, ISO 8601 in UTC for DateTime, the value's name for Enumeration, an element's id for Element, text otherwise (Markdown for `richtext`). null when the element has no value."},"storedValue":{"type":["string","null"],"description":"For an enumeration: the value as stored, which never changes when it's renamed. Match on this."},"fits":{"type":"boolean","description":"false when the stored value doesn't fit its data type (it is then given as stored text)."}},"required":["propertyTypeId","dataType","format","value","storedValue","fits"]},"AttachmentInfo":{"type":["object","null"],"properties":{"fileName":{"type":"string"},"mimeType":{"type":"string"},"size":{"type":"integer","description":"Bytes."}},"required":["fileName","mimeType","size"],"description":"Always given on a single element; on a list only with `include=properties`."},"ElementCreate":{"type":"object","properties":{"type":{"type":"string","minLength":1,"description":"The element type: its id, `\"Metamodel/Type name\"`, or a type name alone when only one metamodel the model imports has it.","example":"M2 ArchiMate 4/Application Component"},"name":{"type":"string","minLength":1,"maxLength":500,"description":"Up to 500 characters; spaces at either end are removed."},"packageId":{"type":"string","minLength":1,"description":"The package to make it in. Required unless `ownerId` is given."},"ownerId":{"type":"string","minLength":1,"description":"The element it belongs to (for a subordinate type, such as an attribute). It is kept in its owner's package."},"notes":{"type":["string","null"],"description":"Markdown. null or an empty string clears them."},"properties":{"$ref":"#/components/schemas/PropertiesInput"}},"required":["type","name"],"additionalProperties":false},"PropertiesInput":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"description":"Values to set, by property type name or id, each in its natural type, as values are read: a number for Integer, Real and UnlimitedNatural (`\"*\"` for no limit), true or false for Boolean, `YYYY-MM-DD` for Date, `YYYY-MM-DDTHH:MM:SSZ` for DateTime, an enumeration value's name (or its `storedValue`), an element's id for Element, text otherwise. null clears a value. Property types not given are left as they are.","example":{"Annual Cost":130000,"Lifecycle":"Production","Go Live":"2026-03-01"}},"ElementUpdate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":500,"description":"Up to 500 characters; spaces at either end are removed."},"notes":{"type":["string","null"],"description":"Markdown. null or an empty string clears them."},"packageId":{"type":"string","minLength":1,"description":"Move it into this package."},"ownerId":{"type":["string","null"],"minLength":1,"description":"Put it under this element, or null to take it out from under its owner (it stays in the package)."},"properties":{"$ref":"#/components/schemas/PropertiesInput"}},"additionalProperties":false,"description":"Only the fields sent change; in `properties`, only the values sent."},"RelationshipList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Relationship"}},"hasMore":{"type":"boolean","description":"Whether more items follow. Keep asking with `nextCursor` until this is false."},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}},"required":["object","data","hasMore","nextCursor"],"description":"A page of relationships."},"Relationship":{"type":"object","properties":{"object":{"type":"string","enum":["relationship"]},"id":{"type":"string"},"uid":{"type":["string","null"],"description":"The permanent id: it never changes, and survives what changes `id` (a Restore Project, a Replace, FarkiBot's Modify). Store this to find the item again later; look it up with `?uid=`. Every item has one.","example":"0f08fza5n3g24hqrkbw0hsr51w"},"originUid":{"type":["string","null"],"description":"On a copy included from another project: the original's `uid`. null otherwise."},"projectId":{"type":"string"},"packageId":{"type":["string","null"]},"name":{"type":"string"},"type":{"$ref":"#/components/schemas/TypeRef"},"source":{"$ref":"#/components/schemas/RelationshipEnd"},"target":{"$ref":"#/components/schemas/RelationshipEnd"},"notes":{"type":["string","null"]},"properties":{"type":["object","null"],"additionalProperties":{"$ref":"#/components/schemas/PropertyValue"},"description":"Every property type of the item's type, by name, with its value. Always on a single item; on a list only with `include=properties`, otherwise null."},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":["string","null"],"description":"Who made it, as their name was then."},"updatedAt":{"type":"string","format":"date-time","description":"When it, or one of its values, last changed. `updatedSince` compares with this."},"updatedBy":{"type":["string","null"],"description":"Who made that change: a person's name, or `API · <key name>`."}},"required":["object","id","uid","originUid","projectId","packageId","name","type","source","target","notes","properties","createdAt","createdBy","updatedAt","updatedBy"],"description":"A relationship between two elements, of one model or of two. It is kept in a package (`packageId`) of one of its ends' models, its source's when made; each end says which model it is in."},"RelationshipEnd":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"model":{"allOf":[{"$ref":"#/components/schemas/Ref"},{"type":["object","null"],"description":"The model (root package) the element is in. A relationship may join elements of two models."}]}},"required":["id","name","model"],"description":"One end of a relationship: the element, and the model it is in."},"DeletionList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Deletion"}},"hasMore":{"type":"boolean","description":"Whether more items follow. Keep asking with `nextCursor` until this is false."},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}},"required":["object","data","hasMore","nextCursor"],"description":"A page of deletions, oldest first."},"Deletion":{"type":"object","properties":{"object":{"type":"string","enum":["deletion"]},"kind":{"type":"string","enum":["package","element","relationship","diagram","catalog","board","chart"]},"id":{"type":"string","description":"The deleted item's id."},"deletedAt":{"type":"string","format":"date-time"}},"required":["object","kind","id","deletedAt"],"description":"Something deleted from the project's models or views, however it was deleted."},"EventList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"hasMore":{"type":"boolean","description":"Whether more items follow. Keep asking with `nextCursor` until this is false."},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}},"required":["object","data","hasMore","nextCursor"],"description":"A page of events, oldest first."},"Event":{"type":"object","properties":{"object":{"type":"string","enum":["event"]},"id":{"type":"string","description":"The event's id."},"type":{"type":"string","enum":["package.created","package.updated","package.deleted","element.created","element.updated","element.deleted","relationship.created","relationship.updated","relationship.deleted","view.created","view.updated","view.deleted"],"description":"What happened: `<item>.created`, `.updated` or `.deleted`; every kind of view is `view`. New types may be added."},"occurredAt":{"type":"string","format":"date-time","description":"When the change was made."},"projectId":{"type":"string"},"item":{"type":"object","properties":{"kind":{"type":"string","enum":["package","element","relationship","diagram","catalog","board","chart"],"description":"`package`, `element`, `relationship`, or the view's kind (`diagram`, `catalog`, `board`, `chart`), as in deletions."},"id":{"type":"string"},"uid":{"type":["string","null"],"description":"The item's permanent id. null for events recorded before permanent ids were added (a view's before Release 384)."}},"required":["kind","id","uid"],"description":"What changed."},"changes":{"type":"array","items":{"type":"string","enum":["name","notes","packageId","ownerId","sourceId","targetId","type","properties","attachment","contents","settings"]},"description":"For `.updated`: what changed, by the API's field names (`properties`: one or more values; `attachment`: its file; for a view, `contents`: its shapes, lines, links or card appearances, and `settings`: anything else about it). Empty for `.created` and `.deleted`. New names may be added."},"actor":{"type":"object","properties":{"kind":{"type":"string","enum":["user","apiKey","system"],"description":"`user`: a person in the app; `apiKey`: a program; `system`: Farkitect itself (an upgrade, a scheduled job)."},"name":{"type":["string","null"],"description":"The person's or the key's name."}},"required":["kind","name"],"description":"Who made the change."},"current":{"anyOf":[{"$ref":"#/components/schemas/Package"},{"$ref":"#/components/schemas/Element"},{"$ref":"#/components/schemas/Relationship"},{"$ref":"#/components/schemas/View"},{"type":"null"}],"description":"With `include=item` only: the item as it is **now**, as a GET on it gives it (not as it was then); null once it's deleted."}},"required":["object","id","type","occurredAt","projectId","item","changes","actor"],"description":"A change to a project's models or views, however it was made (in the app, by the API, by an import)."},"View":{"type":"object","properties":{"object":{"type":"string","enum":["view"]},"kind":{"type":"string","enum":["diagram","catalog","board","chart"],"description":"New kinds may appear."},"id":{"type":"string"},"uid":{"type":["string","null"],"description":"The permanent id: it never changes, and survives what changes `id` (a Restore Project, a Replace, FarkiBot's Modify). Store this to find the item again later; look it up with `?uid=`. Every item has one.","example":"0f08fza5n3g24hqrkbw0hsr51w"},"originUid":{"type":["string","null"],"description":"On a copy included from another project: the original's `uid`. null otherwise."},"projectId":{"type":"string"},"packageId":{"type":"string","description":"The package the view is kept in."},"name":{"type":"string"},"notes":{"type":["string","null"],"description":"Markdown."},"type":{"allOf":[{"$ref":"#/components/schemas/Ref"},{"type":["object","null"],"description":"Catalogs and boards: the element type they list."}]},"groupBy":{"allOf":[{"$ref":"#/components/schemas/Ref"},{"type":["object","null"],"description":"Boards: the property type whose values make their columns."}]},"scope":{"type":["object","null"],"properties":{"rules":{"type":"array","items":{"type":"object","properties":{"packageId":{"type":"string"},"include":{"type":"boolean"}},"required":["packageId","include"]}}},"required":["rules"],"description":"Catalogs, boards and chart views: the part of the project they show. The nearest rule on a package or above it decides whether an item is in. null: every model."},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":["string","null"],"description":"Who made it, as their name was then."},"updatedAt":{"type":"string","format":"date-time","description":"When it, or one of its values, last changed. `updatedSince` compares with this."},"updatedBy":{"type":["string","null"],"description":"Who made that change: a person's name, or `API · <key name>`."}},"required":["object","kind","id","uid","originUid","projectId","packageId","name","notes","type","groupBy","scope","createdAt","createdBy","updatedAt","updatedBy"],"description":"A diagram, catalog, board or chart view. Catalog rows and board cards aren't given yet; read the elements with the view's `type`."},"WebhookEndpoint":{"type":"object","properties":{"object":{"type":"string","enum":["webhookEndpoint"]},"id":{"type":"string"},"url":{"type":"string","description":"Where events are posted (HTTPS)."},"description":{"type":["string","null"]},"types":{"type":"array","items":{"type":"string","enum":["package.created","package.updated","package.deleted","element.created","element.updated","element.deleted","relationship.created","relationship.updated","relationship.deleted","view.created","view.updated","view.deleted"]},"description":"The event types sent; empty means every type."},"projectIds":{"type":"array","items":{"type":"string"},"description":"The projects whose events are sent; empty means every project of the organisation."},"enabled":{"type":"boolean","description":"Whether events are being sent to it."},"disabledReason":{"type":["string","null"],"enum":["by_request","failing",null],"description":"Why it's off: `by_request` (switched off with PATCH), `failing` (every delivery failed for 5 days; the organisation's owners and admins were emailed)."},"lastSuccessAt":{"type":["string","null"],"format":"date-time"},"lastFailureAt":{"type":["string","null"],"format":"date-time"},"failingSince":{"type":["string","null"],"format":"date-time","description":"Since when every delivery has failed; null once one succeeds."},"createdBy":{"type":"string","description":"The name of the key that added it."},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"secret":{"type":"string","description":"Only when it's added or its secret rotated, shown this once: `whsec_…`, to verify each delivery's `webhook-signature` (Standard Webhooks)."}},"required":["object","id","url","description","types","projectIds","enabled","disabledReason","lastSuccessAt","lastFailureAt","failingSince","createdBy","createdAt","updatedAt"],"description":"An address the organisation's events are posted to."},"WebhookEndpointCreate":{"type":"object","properties":{"url":{"type":"string","description":"An HTTPS address on the internet.","example":"https://example.com/farkitect/webhooks"},"description":{"type":["string","null"],"maxLength":500},"types":{"type":"array","items":{"type":"string"},"description":"Only these event types; all when left out."},"projectIds":{"type":"array","items":{"type":"string"},"description":"Only these projects' events; every project of the organisation when left out."}},"required":["url"]},"WebhookEndpointList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}},"hasMore":{"type":"boolean","description":"Whether more items follow. Keep asking with `nextCursor` until this is false."},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}},"required":["object","data","hasMore","nextCursor"],"description":"The organisation's webhook endpoints (at most 5), oldest first."},"WebhookEndpointUpdate":{"type":"object","properties":{"url":{"type":"string"},"description":{"type":["string","null"],"maxLength":500},"types":{"type":"array","items":{"type":"string"},"description":"Only these event types; `[]` for all."},"projectIds":{"type":"array","items":{"type":"string"},"description":"Only these projects; `[]` for all."},"enabled":{"type":"boolean","description":"`false` stops sending; `true` starts again (and forgets past failures)."}},"description":"Only the fields sent change."},"WebhookDelivery":{"type":"object","properties":{"object":{"type":"string","enum":["webhookDelivery"]},"id":{"type":"string"},"endpointId":{"type":"string"},"eventId":{"type":["string","null"],"description":"The event sent; null for a ping."},"type":{"type":"string","description":"The event's type, or `ping`."},"status":{"type":"string","enum":["pending","sending","delivered","failed"],"description":"`pending`: waiting for its next try; `sending`: under way; `delivered`: the receiver answered 2xx; `failed`: given up (send again with retry)."},"attempts":{"type":"integer"},"nextAttemptAt":{"type":["string","null"],"format":"date-time","description":"When it's tried next, while pending."},"lastStatus":{"type":["integer","null"],"description":"The status the receiver last answered with; null when it didn't answer."},"lastMs":{"type":["number","null"],"description":"How long the last attempt took, in milliseconds."},"lastResponse":{"type":["string","null"],"description":"The first 2 KB of the receiver's last answer."},"lastError":{"type":["string","null"],"description":"Why the last attempt failed, when it did."},"createdAt":{"type":"string","format":"date-time"},"deliveredAt":{"type":["string","null"],"format":"date-time"}},"required":["object","id","endpointId","eventId","type","status","attempts","nextAttemptAt","lastStatus","lastMs","lastResponse","lastError","createdAt","deliveredAt"],"description":"One event (or ping) on its way to one endpoint, and how its last attempt went. Kept 30 days."},"WebhookDeliveryList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}},"hasMore":{"type":"boolean","description":"Whether more items follow. Keep asking with `nextCursor` until this is false."},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}},"required":["object","data","hasMore","nextCursor"],"description":"An endpoint's deliveries, newest first."},"RelationshipCreate":{"type":"object","properties":{"type":{"type":"string","minLength":1,"description":"The relationship type: its id, `\"Metamodel/Type name\"`, or a type name alone when only one metamodel the model imports has it.","example":"M2 ArchiMate 4/Serving"},"sourceId":{"type":"string","minLength":1,"description":"The element it goes from. In a batch, an earlier operation's `ref` (such as `\"$portal\"`) may stand for the id."},"targetId":{"type":"string","minLength":1,"description":"The element it goes to. In a batch, an earlier operation's `ref` (such as `\"$portal\"`) may stand for the id."},"name":{"type":"string","minLength":1,"maxLength":500,"description":"Left out, it is named from its ends and its type's verb, as in the app (\"Portal serves Retail\")."},"packageId":{"type":"string","minLength":1,"description":"Where to keep it: a package of the source's model. Left out, or in another model, the source's package."},"notes":{"type":["string","null"],"description":"Markdown. null or an empty string clears them."},"properties":{"$ref":"#/components/schemas/PropertiesInput"}},"required":["type","sourceId","targetId"],"additionalProperties":false},"RelationshipUpdate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":500,"description":"Up to 500 characters; spaces at either end are removed."},"notes":{"type":["string","null"],"description":"Markdown. null or an empty string clears them."},"sourceId":{"type":"string","minLength":1,"description":"Join it from another element. A name made from its ends follows them; one someone chose is kept."},"targetId":{"type":"string","minLength":1,"description":"Join it to another element."},"properties":{"$ref":"#/components/schemas/PropertiesInput"}},"additionalProperties":false,"description":"Only the fields sent change; in `properties`, only the values sent."},"BatchResult":{"type":"object","properties":{"object":{"type":"string","enum":["batch"]},"results":{"type":"array","items":{"type":"object","properties":{"op":{"type":"string","enum":["create","update","delete"]},"kind":{"type":"string","enum":["package","element","relationship"]},"ref":{"type":["string","null"]},"id":{"type":"string"},"item":{"anyOf":[{"$ref":"#/components/schemas/Package"},{"$ref":"#/components/schemas/Element"},{"$ref":"#/components/schemas/Relationship"},{"type":"null"}],"description":"The item as it is now; null for a delete."}},"required":["op","kind","ref","id","item"]}}},"required":["object","results"],"description":"Each operation's result, in order."},"BatchRequest":{"type":"object","properties":{"operations":{"type":"array","items":{"$ref":"#/components/schemas/BatchOperation"},"minItems":1,"maxItems":200}},"required":["operations"],"additionalProperties":false,"description":"Up to 200 changes, made in order, all or none."},"BatchOperation":{"anyOf":[{"type":"object","properties":{"op":{"type":"string","enum":["create"]},"kind":{"type":"string","enum":["package"]},"ref":{"type":"string","pattern":"^\\$[A-Za-z0-9_.:-]{1,64}$","description":"A name for what this operation makes, starting with `$`, to use as its id in later operations of the batch."},"body":{"$ref":"#/components/schemas/PackageCreate"}},"required":["op","kind","body"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","enum":["update"]},"kind":{"type":"string","enum":["package"]},"id":{"type":"string","minLength":1,"description":"The item's id, or an earlier operation's `ref`."},"ifMatch":{"type":"string","description":"The item's ETag, as in the `If-Match` header: the batch is refused if it has changed since."},"body":{"$ref":"#/components/schemas/PackageUpdate"}},"required":["op","kind","id","body"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","enum":["delete"]},"kind":{"type":"string","enum":["package"]},"id":{"type":"string","minLength":1,"description":"The item's id, or an earlier operation's `ref`."},"ifMatch":{"type":"string","description":"The item's ETag, as in the `If-Match` header: the batch is refused if it has changed since."}},"required":["op","kind","id"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","enum":["create"]},"kind":{"type":"string","enum":["element"]},"ref":{"type":"string","pattern":"^\\$[A-Za-z0-9_.:-]{1,64}$","description":"A name for what this operation makes, starting with `$`, to use as its id in later operations of the batch."},"body":{"$ref":"#/components/schemas/ElementCreate"}},"required":["op","kind","body"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","enum":["update"]},"kind":{"type":"string","enum":["element"]},"id":{"type":"string","minLength":1,"description":"The item's id, or an earlier operation's `ref`."},"ifMatch":{"type":"string","description":"The item's ETag, as in the `If-Match` header: the batch is refused if it has changed since."},"body":{"$ref":"#/components/schemas/ElementUpdate"}},"required":["op","kind","id","body"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","enum":["delete"]},"kind":{"type":"string","enum":["element"]},"id":{"type":"string","minLength":1,"description":"The item's id, or an earlier operation's `ref`."},"ifMatch":{"type":"string","description":"The item's ETag, as in the `If-Match` header: the batch is refused if it has changed since."}},"required":["op","kind","id"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","enum":["create"]},"kind":{"type":"string","enum":["relationship"]},"ref":{"type":"string","pattern":"^\\$[A-Za-z0-9_.:-]{1,64}$","description":"A name for what this operation makes, starting with `$`, to use as its id in later operations of the batch."},"body":{"$ref":"#/components/schemas/RelationshipCreate"}},"required":["op","kind","body"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","enum":["update"]},"kind":{"type":"string","enum":["relationship"]},"id":{"type":"string","minLength":1,"description":"The item's id, or an earlier operation's `ref`."},"ifMatch":{"type":"string","description":"The item's ETag, as in the `If-Match` header: the batch is refused if it has changed since."},"body":{"$ref":"#/components/schemas/RelationshipUpdate"}},"required":["op","kind","id","body"],"additionalProperties":false},{"type":"object","properties":{"op":{"type":"string","enum":["delete"]},"kind":{"type":"string","enum":["relationship"]},"id":{"type":"string","minLength":1,"description":"The item's id, or an earlier operation's `ref`."},"ifMatch":{"type":"string","description":"The item's ETag, as in the `If-Match` header: the batch is refused if it has changed since."}},"required":["op","kind","id"],"additionalProperties":false}],"description":"One change: what to do (`op`) to what kind of item (`kind`), with the body the single call takes."},"PackageContents":{"type":"object","properties":{"object":{"type":"string","enum":["packageContents"]},"package":{"$ref":"#/components/schemas/Package"},"packages":{"type":"array","items":{"$ref":"#/components/schemas/Package"},"description":"The package itself and every package below it."},"elements":{"type":"array","items":{"$ref":"#/components/schemas/Element"},"description":"Every element in them, each as `GET /v1/elements/{elementId}` gives it, values included."},"relationships":{"type":"array","items":{"$ref":"#/components/schemas/Relationship"},"description":"Every relationship in them, with its values."},"metamodel":{"type":["object","null"],"properties":{"elementTypes":{"type":"array","items":{"$ref":"#/components/schemas/ElementType"}},"relationshipTypes":{"type":"array","items":{"$ref":"#/components/schemas/RelationshipType"}},"enumerations":{"type":"array","items":{"$ref":"#/components/schemas/Enumeration"}}},"required":["elementTypes","relationshipTypes","enumerations"],"description":"With `include=metamodel`: the types the items are of, and the enumerations their property types use. Otherwise null."},"startedAt":{"type":"string","format":"date-time","description":"When gathering started. It isn't one snapshot: to catch changes made while it ran, follow up with `updatedSince` set to this."}},"required":["object","package","packages","elements","relationships","metamodel","startedAt"],"description":"A package and everything below it, in one answer."},"ViewList":{"type":"object","properties":{"object":{"type":"string","enum":["list"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/View"}},"hasMore":{"type":"boolean","description":"Whether more items follow. Keep asking with `nextCursor` until this is false."},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` to get the next page; null on the last page."}},"required":["object","data","hasMore","nextCursor"],"description":"A page of views."},"Diagram":{"type":"object","properties":{"object":{"type":"string","enum":["view"]},"kind":{"type":"string","enum":["diagram"]},"id":{"type":"string"},"uid":{"type":["string","null"],"description":"The permanent id: it never changes, and survives what changes `id` (a Restore Project, a Replace, FarkiBot's Modify). Store this to find the item again later; look it up with `?uid=`. Every item has one.","example":"0f08fza5n3g24hqrkbw0hsr51w"},"originUid":{"type":["string","null"],"description":"On a copy included from another project: the original's `uid`. null otherwise."},"projectId":{"type":"string"},"packageId":{"type":"string","description":"The package the view is kept in."},"name":{"type":"string"},"notes":{"type":["string","null"],"description":"Markdown."},"type":{"allOf":[{"$ref":"#/components/schemas/Ref"},{"type":["object","null"],"description":"Catalogs and boards: the element type they list."}]},"groupBy":{"allOf":[{"$ref":"#/components/schemas/Ref"},{"type":["object","null"],"description":"Boards: the property type whose values make their columns."}]},"scope":{"type":["object","null"],"properties":{"rules":{"type":"array","items":{"type":"object","properties":{"packageId":{"type":"string"},"include":{"type":"boolean"}},"required":["packageId","include"]}}},"required":["rules"],"description":"Catalogs, boards and chart views: the part of the project they show. The nearest rule on a package or above it decides whether an item is in. null: every model."},"createdAt":{"type":"string","format":"date-time"},"createdBy":{"type":["string","null"],"description":"Who made it, as their name was then."},"updatedAt":{"type":"string","format":"date-time","description":"When it, or one of its values, last changed. `updatedSince` compares with this."},"updatedBy":{"type":["string","null"],"description":"Who made that change: a person's name, or `API · <key name>`."},"metamodel":{"allOf":[{"$ref":"#/components/schemas/Ref"},{"type":["object","null"],"description":"The metamodel it draws with, when it has one."}]},"nodes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"element":{"allOf":[{"$ref":"#/components/schemas/Ref"},{"type":["object","null"],"description":"The element the shape draws; null if it was deleted."}]},"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"},"parentElementId":{"type":["string","null"],"description":"The element whose shape this one is drawn inside, when nested."}},"required":["id","element","x","y","width","height","parentElementId"]}},"edges":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"relationship":{"allOf":[{"$ref":"#/components/schemas/Ref"},{"type":["object","null"],"description":"The relationship it draws; null for a connector with none."}]},"sourceNodeId":{"type":"string"},"targetNodeId":{"type":"string"},"waypoints":{"type":"array","items":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"description":"Bend points, in order from source to target."}},"required":["id","relationship","sourceNodeId","targetNodeId","waypoints"]}},"links":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"target":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["diagram","catalog","board","chart"]},"id":{"type":"string"}},"required":["kind","id"],"description":"The view it opens."},"label":{"type":["string","null"]},"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"}},"required":["id","target","label","x","y","width","height"]}}},"required":["object","kind","id","uid","originUid","projectId","packageId","name","notes","type","groupBy","scope","createdAt","createdBy","updatedAt","updatedBy","metamodel","nodes","edges","links"],"description":"A diagram with its shapes (nodes), connectors (edges) and links to other views. Positions are in the diagram's own units."},"Drawing":{"type":"object","properties":{"object":{"type":"string","enum":["drawing"]},"format":{"type":"string","enum":["farkitect-drawing/1"],"description":"The shape of this answer."},"version":{"type":"string","description":"Changes when anything drawn changes; also the `ETag`."},"diagram":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"projectId":{"type":"string"},"packageId":{"type":"string"},"settings":{"type":"object","properties":{"showConnectors":{"type":"boolean"},"connectorLabels":{"type":"string","enum":["name","verb","none"]},"showCompartments":{"type":"boolean"},"showStereotypes":{"type":"boolean"},"showPropertyNames":{"type":"boolean"},"showEmptyProperties":{"type":"boolean"},"showConnectorProperties":{"type":"boolean"}},"required":["showConnectors","connectorLabels","showCompartments","showStereotypes","showPropertyNames","showEmptyProperties","showConnectorProperties"]}},"required":["id","name","projectId","packageId","settings"]},"types":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/DrawingElementType"},{"$ref":"#/components/schemas/DrawingRelationshipType"}],"discriminator":{"propertyName":"kind","mapping":{"element":"#/components/schemas/DrawingElementType","relationship":"#/components/schemas/DrawingRelationshipType"}}}},"icons":{"type":"object","additionalProperties":{"type":"string"},"description":"SVG, each once, by key."},"shapes":{"type":"array","items":{"$ref":"#/components/schemas/DrawingShape"}},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/DrawingConnector"}},"links":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"target":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"label":{"type":["string","null"]},"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"},"z":{"type":"number"},"border":{"type":"boolean"}},"required":["id","target","label","x","y","width","height","z","border"]}}},"required":["object","format","version","diagram","types","icons","shapes","connectors","links"],"description":"Everything a diagram shows, to draw it as the app does (public-api.md §24)."},"DrawingElementType":{"type":"object","properties":{"kind":{"type":"string","enum":["element"]},"id":{"type":"string"},"name":{"type":"string"},"stereotype":{"type":["string","null"]},"shape":{"type":"string"},"fillMode":{"type":"string"},"borderStyle":{"type":"string"},"borderWidth":{"type":["number","null"]},"shadow":{"type":"boolean"},"foldCorner":{"type":"boolean"},"bodyContent":{"type":"string","description":"What the body shows: `name`, `notes` or `image`."},"showIcon":{"type":"boolean"},"labelPlacement":{"type":"string"},"iconPlacement":{"type":"string"},"textAlign":{"type":"object","properties":{"horizontal":{"type":"string"},"vertical":{"type":"string"}},"required":["horizontal","vertical"]},"defaultSize":{"$ref":"#/components/schemas/Size"},"icon":{"type":["string","null"],"description":"Key into the answer's `icons`."},"colours":{"type":"object","properties":{"fill":{"$ref":"#/components/schemas/ThemedColour"},"border":{"$ref":"#/components/schemas/ThemedColour"},"text":{"$ref":"#/components/schemas/ThemedColour"},"fold":{"$ref":"#/components/schemas/ThemedColour"}},"required":["fill","border","text","fold"],"description":"The type's own colours (a shape's own are on the shape)."},"ownColours":{"type":"object","properties":{"fill":{"$ref":"#/components/schemas/ThemedColour"},"border":{"$ref":"#/components/schemas/ThemedColour"},"text":{"$ref":"#/components/schemas/ThemedColour"},"fold":{"$ref":"#/components/schemas/ThemedColour"}},"required":["fill","border","text","fold"],"description":"The colours set in the type's notation, null where Auto: what `colours` is worked out from."},"compartments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"contentType":{"type":"string"},"label":{"type":["string","null"]},"showLabel":{"type":"boolean"},"style":{"type":["object","null"],"additionalProperties":{"type":"string"}},"subordinateTypeId":{"type":["string","null"]}},"required":["id","contentType","label","showLabel","style","subordinateTypeId"]}},"subordinateTypes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"typeId":{"type":"string"},"displayTemplate":{"type":["string","null"]}},"required":["id","label","typeId","displayTemplate"]}},"properties":{"type":"array","items":{"$ref":"#/components/schemas/DrawingPropertyType"}}},"required":["kind","id","name","stereotype","shape","fillMode","borderStyle","borderWidth","shadow","foldCorner","bodyContent","showIcon","labelPlacement","iconPlacement","textAlign","defaultSize","icon","colours","ownColours","compartments","subordinateTypes","properties"]},"Size":{"type":["object","null"],"properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"]},"ThemedColour":{"type":"object","properties":{"light":{"type":["string","null"]},"dark":{"type":["string","null"]}},"required":["light","dark"],"description":"A colour in each theme, final. `null`: nothing drawn (no fill), or for a connector's label the theme's label colours."},"DrawingPropertyType":{"type":"object","properties":{"name":{"type":"string"},"dataType":{"type":"string","enum":["String","Integer","Boolean","Real","Date","DateTime","UnlimitedNatural","Enumeration","Element"]},"format":{"type":["string","null"]},"default":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"enumeration":{"type":["array","null"],"items":{"type":"object","properties":{"name":{"type":"string"},"storedValue":{"type":"string"}},"required":["name","storedValue"]}}},"required":["name","dataType","format","default","enumeration"]},"DrawingRelationshipType":{"type":"object","properties":{"kind":{"type":"string","enum":["relationship"]},"id":{"type":"string"},"name":{"type":"string"},"verb":{"type":["string","null"],"description":"The label in verb mode: the type's verb, else its name."},"colours":{"type":"object","properties":{"line":{"$ref":"#/components/schemas/ThemedColour"},"label":{"$ref":"#/components/schemas/ThemedColour"}},"required":["line","label"]},"ownColours":{"type":"object","properties":{"line":{"$ref":"#/components/schemas/ThemedColour"},"label":{"$ref":"#/components/schemas/ThemedColour"}},"required":["line","label"],"description":"The colours set in the type's notation, null where Auto: what `colours` is worked out from."},"lineWidth":{"type":"number"},"linePattern":{"type":"string"},"sourceMarker":{"$ref":"#/components/schemas/Marker"},"targetMarker":{"$ref":"#/components/schemas/Marker"},"showRoleNames":{"type":"boolean"},"showMultiplicities":{"type":"boolean"},"properties":{"type":"array","items":{"$ref":"#/components/schemas/DrawingPropertyType"}}},"required":["kind","id","name","verb","colours","ownColours","lineWidth","linePattern","sourceMarker","targetMarker","showRoleNames","showMultiplicities","properties"]},"Marker":{"type":"object","properties":{"shape":{"type":"string"},"fill":{"type":"string","enum":["filled","hollow"]}},"required":["shape","fill"]},"DrawingShape":{"type":"object","properties":{"id":{"type":"string"},"element":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["package","element"]},"type":{"type":["string","null"],"description":"Key into the answer's `types`."},"abstract":{"type":"boolean"},"notes":{"type":["string","null"],"description":"The element's notes (Markdown), when its type's body shows them."}},"required":["id","name","kind","type","abstract","notes"]},"x":{"type":"number"},"y":{"type":"number"},"width":{"type":"number"},"height":{"type":"number"},"z":{"type":"number"},"parentShapeId":{"type":["string","null"],"description":"The shape it is drawn inside, when nested."},"colours":{"type":"object","properties":{"fill":{"$ref":"#/components/schemas/ThemedColour"},"border":{"$ref":"#/components/schemas/ThemedColour"},"text":{"$ref":"#/components/schemas/ThemedColour"},"fold":{"$ref":"#/components/schemas/ThemedColour"}},"required":["fill","border","text","fold"],"description":"Final in each theme, this shape's own appearance included."},"opacity":{"type":"number","description":"1, or 0.4 when it doesn't fit its metamodel: then it is drawn faded, and its colours are the theme's muted ones."},"borderWidth":{"type":["number","null"]},"borderStyle":{"type":"string"},"shadow":{"type":"boolean"},"textAlign":{"type":"object","properties":{"horizontal":{"type":"string"},"vertical":{"type":"string"}},"required":["horizontal","vertical"]},"ownAppearance":{"type":"object","additionalProperties":{},"description":"This shape's own appearance on this diagram, as set."},"label":{"type":"object","properties":{"hidden":{"type":"boolean"},"offset":{"type":["object","null"],"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"size":{"$ref":"#/components/schemas/Size"}},"required":["hidden","offset","size"]},"values":{"type":["array","null"],"items":{"$ref":"#/components/schemas/DrawingValue"},"description":"When the type has a properties compartment and the diagram shows compartments."},"owned":{"type":["array","null"],"items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]},"values":{"type":["object","null"],"additionalProperties":{"type":"string"}}},"required":["id","name","type","values"]},"description":"What the element owns, for a subordinates compartment."},"attachment":{"type":["object","null"],"properties":{"fileName":{"type":"string"},"mimeType":{"type":"string"},"size":{"type":"number"},"href":{"type":"string"}},"required":["fileName","mimeType","size","href"],"description":"Fetch it from `href` with your own key; never a storage address."},"childDiagrams":{"type":"array","items":{"$ref":"#/components/schemas/Ref"}},"fitsMetamodel":{"type":"boolean"},"typeRetired":{"type":"boolean"}},"required":["id","element","x","y","width","height","z","parentShapeId","colours","opacity","borderWidth","borderStyle","shadow","textAlign","ownAppearance","label","values","owned","attachment","childDiagrams","fitsMetamodel","typeRetired"]},"DrawingValue":{"type":"object","properties":{"name":{"type":"string"},"dataType":{"type":"string","enum":["String","Integer","Boolean","Real","Date","DateTime","UnlimitedNatural","Enumeration","Element"]},"format":{"type":["string","null"]},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}],"description":"In its natural type, as elements' values are given."},"storedValue":{"type":["string","null"],"description":"An enumeration value's stored value."},"text":{"type":["string","null"],"description":"The value exactly as stored, as text (null when not set)."},"fits":{"type":"boolean"}},"required":["name","dataType","format","value","storedValue","text","fits"]},"DrawingConnector":{"type":"object","properties":{"id":{"type":"string"},"relationship":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"type":["string","null"]}},"required":["id","name","type"]},"from":{"type":"string","description":"The shape it starts at."},"to":{"type":"string","description":"The shape it ends at."},"routing":{"type":["string","null"]},"waypoints":{"type":"array","items":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]}},"ends":{"type":"object","properties":{"source":{},"target":{}}},"colours":{"type":"object","properties":{"line":{"$ref":"#/components/schemas/ThemedColour"},"label":{"$ref":"#/components/schemas/ThemedColour"}},"required":["line","label"]},"opacity":{"type":"number","description":"1, or 0.4 when it doesn't fit its metamodel: then it is drawn faded, and its colours are the theme's muted ones."},"lineWidth":{"type":"number"},"linePattern":{"type":"string"},"ownAppearance":{"type":"object","additionalProperties":{}},"label":{"type":"object","properties":{"text":{"type":["string","null"]},"hidden":{"type":"boolean"},"offset":{"type":["object","null"],"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"size":{"$ref":"#/components/schemas/Size"}},"required":["text","hidden","offset","size"]},"roles":{"type":"object","properties":{"source":{"type":["string","null"]},"target":{"type":["string","null"]},"sourceMultiplicity":{"type":["string","null"]},"targetMultiplicity":{"type":["string","null"]},"sourceRoleOffset":{"type":["object","null"],"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"targetRoleOffset":{"type":["object","null"],"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"sourceMultiplicityOffset":{"type":["object","null"],"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"targetMultiplicityOffset":{"type":["object","null"],"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]}},"required":["source","target","sourceMultiplicity","targetMultiplicity","sourceRoleOffset","targetRoleOffset","sourceMultiplicityOffset","targetMultiplicityOffset"]},"values":{"type":["array","null"],"items":{"$ref":"#/components/schemas/DrawingValue"}},"valuesLabel":{"type":"object","properties":{"offset":{"type":["object","null"],"properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"size":{"$ref":"#/components/schemas/Size"}},"required":["offset","size"]},"fitsMetamodel":{"type":"boolean"}},"required":["id","relationship","from","to","routing","waypoints","ends","colours","opacity","lineWidth","linePattern","ownAppearance","label","roles","values","valuesLabel","fitsMetamodel"]},"IntegrityReport":{"type":"object","properties":{"object":{"type":"string","enum":["integrityReport"]},"projectId":{"type":"string"},"ok":{"type":"boolean","description":"true when there are no errors (warnings don't count). For CI: fail the build when this is false."},"errors":{"type":"integer"},"warnings":{"type":"integer"},"violations":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"What kind of problem, such as `dangling-node-elementId`. New types may appear."},"severity":{"type":"string","enum":["error","warning"],"description":"`error`: a problem in the model. `warning`: one in how it's shown or kept."},"message":{"type":"string"},"suggestion":{"type":"string"},"table":{"type":"string"},"documentId":{"type":"string"},"field":{"type":"string"},"referencedId":{"type":"string"},"name":{"type":["string","null"]},"location":{"type":["string","null"]}},"required":["type","severity","message","suggestion","table","documentId","field","referencedId","name","location"]}},"checked":{"type":"object","additionalProperties":{"type":"integer"},"description":"How many of each kind of thing were checked."}},"required":["object","projectId","ok","errors","warnings","violations","checked"],"description":"The project's integrity check, as the app's Log panel shows it."}},"parameters":{}},"paths":{"/v1/me":{"get":{"operationId":"getMe","tags":["Keys"],"summary":"The key making the request","description":"Who the key belongs to, the projects it reaches with its role in each, when it expires and the organisation's limits. A good first call: it shows the key works.","security":[{"apiKey":[]}],"x-farkitect-permission":"any key","responses":{"200":{"description":"The key.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyInfo"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/projects":{"get":{"operationId":"listProjects","tags":["Projects"],"summary":"Projects this key reaches","description":"Every project of the key's organisation for a whole-organisation key, or its one project. In no particular order. Paged: follow `nextCursor` while `hasMore` is true.","security":[{"apiKey":[]}],"x-farkitect-permission":"any key","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","example":50},"required":false,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one."},"required":false,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one.","name":"cursor","in":"query"}],"responses":{"200":{"description":"A page of projects.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectList"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/projects/{projectId}":{"get":{"operationId":"getProject","tags":["Projects"],"summary":"One project","description":"A project's name, description, when it was made and last changed, and this key's role in it.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A project's id, from `GET /v1/projects`.","example":"k57c71kfykh96rqe0x9tce7kg58a3xcm"},"required":true,"description":"A project's id, from `GET /v1/projects`.","name":"projectId","in":"path"}],"responses":{"200":{"description":"The project.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such project, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/projects/{projectId}/metamodels":{"get":{"operationId":"listMetamodels","tags":["Metamodels"],"summary":"A project's metamodels","description":"The metamodels (M2) in the project, standard and common. Models and MOF Core are not listed. Paged.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A project's id, from `GET /v1/projects`.","example":"k57c71kfykh96rqe0x9tce7kg58a3xcm"},"required":true,"description":"A project's id, from `GET /v1/projects`.","name":"projectId","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","example":50},"required":false,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one."},"required":false,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one.","name":"cursor","in":"query"}],"responses":{"200":{"description":"A page of metamodels.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetamodelList"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such project, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/metamodels/{metamodelId}":{"get":{"operationId":"getMetamodel","tags":["Metamodels"],"summary":"One metamodel","description":"The metamodel, with its layers in the order the app shows them.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A metamodel's id, from `GET /v1/projects/{projectId}/metamodels`."},"required":true,"description":"A metamodel's id, from `GET /v1/projects/{projectId}/metamodels`.","name":"metamodelId","in":"path"}],"responses":{"200":{"description":"The metamodel.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetamodelDetail"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such metamodel, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/metamodels/{metamodelId}/element-types":{"get":{"operationId":"listElementTypes","tags":["Metamodels"],"summary":"A metamodel's element types","description":"Every element type, layer by layer (each names its layer), with its property types own and inherited. Paged; a page can hold fewer than `limit` when the types carry many property types.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A metamodel's id, from `GET /v1/projects/{projectId}/metamodels`."},"required":true,"description":"A metamodel's id, from `GET /v1/projects/{projectId}/metamodels`.","name":"metamodelId","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","example":50},"required":false,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one."},"required":false,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one.","name":"cursor","in":"query"}],"responses":{"200":{"description":"A page of element types.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ElementTypeList"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such metamodel, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/metamodels/{metamodelId}/relationship-types":{"get":{"operationId":"listRelationshipTypes","tags":["Metamodels"],"summary":"A metamodel's relationship types","description":"Every relationship type, with its verbs, the element types it may join, and its property types. Paged.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A metamodel's id, from `GET /v1/projects/{projectId}/metamodels`."},"required":true,"description":"A metamodel's id, from `GET /v1/projects/{projectId}/metamodels`.","name":"metamodelId","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","example":50},"required":false,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one."},"required":false,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one.","name":"cursor","in":"query"}],"responses":{"200":{"description":"A page of relationship types.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationshipTypeList"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such metamodel, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/metamodels/{metamodelId}/enumerations":{"get":{"operationId":"listEnumerations","tags":["Metamodels"],"summary":"A metamodel's enumerations","description":"Every enumeration, with its values in order. A property type of data type `Enumeration` names which one it uses. Paged.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A metamodel's id, from `GET /v1/projects/{projectId}/metamodels`."},"required":true,"description":"A metamodel's id, from `GET /v1/projects/{projectId}/metamodels`.","name":"metamodelId","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","example":50},"required":false,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one."},"required":false,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one.","name":"cursor","in":"query"}],"responses":{"200":{"description":"A page of enumerations.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnumerationList"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such metamodel, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/projects/{projectId}/packages":{"get":{"operationId":"listPackages","tags":["Models"],"summary":"A project's model packages","description":"Every package of the project's models as a flat list: build the tree with `parentId` (null for a model). `rootId` keeps only a package and those below it. Paged; a page can hold fewer than `limit`.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A project's id, from `GET /v1/projects`.","example":"k57c71kfykh96rqe0x9tce7kg58a3xcm"},"required":true,"description":"A project's id, from `GET /v1/projects`.","name":"projectId","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","example":50},"required":false,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one."},"required":false,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one.","name":"cursor","in":"query"},{"schema":{"type":"string","minLength":1,"description":"A package: only it and the packages below it."},"required":false,"description":"A package: only it and the packages below it.","name":"rootId","in":"query"},{"schema":{"type":"string","minLength":1,"description":"A permanent id: only the package with it, whatever its `id` is now. An empty page when this project has none.","example":"0f08fza5n3g24hqrkbw0hsr51w"},"required":false,"description":"A permanent id: only the package with it, whatever its `id` is now. An empty page when this project has none.","name":"uid","in":"query"}],"responses":{"200":{"description":"A page of packages.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageList"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such project, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"operationId":"createPackage","tags":["Models"],"summary":"Make a package","description":"A package inside a model. Making a new model (a top-level package, with the metamodels it imports) is done in the app.","security":[{"apiKey":[]}],"x-farkitect-permission":"contributor","parameters":[{"schema":{"type":"string","minLength":1,"description":"A project's id, from `GET /v1/projects`.","example":"k57c71kfykh96rqe0x9tce7kg58a3xcm"},"required":true,"description":"A project's id, from `GET /v1/projects`.","name":"projectId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout."},"required":false,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageCreate"}}}},"responses":{"201":{"description":"The package made.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"ETag":{"schema":{"type":"string","description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."},"required":true,"description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."},"Location":{"schema":{"type":"string","description":"Where to read it."},"required":true,"description":"Where to read it."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Package"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key's role can't change models: it needs contributor or admin (`forbidden`); or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such project, or `parentId` isn't a package of it (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field, a value or a rule refused the change (`validation_failed`, with `errors` naming the fields), or the `Idempotency-Key` was used for another request (`idempotency_key_reused`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/packages/{packageId}":{"get":{"operationId":"getPackage","tags":["Models"],"summary":"One package","description":"A model package, with its `ETag` to send in `If-Match` when changing it.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A package's id."},"required":true,"description":"A package's id.","name":"packageId","in":"path"}],"responses":{"200":{"description":"The package.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"ETag":{"schema":{"type":"string","description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."},"required":true,"description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Package"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such package, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"updatePackage","tags":["Models"],"summary":"Change a package","description":"Rename it, change its notes, or move it into another package. Only the fields sent change.","security":[{"apiKey":[]}],"x-farkitect-permission":"contributor","parameters":[{"schema":{"type":"string","minLength":1,"description":"A package's id."},"required":true,"description":"A package's id.","name":"packageId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout."},"required":false,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout.","name":"idempotency-key","in":"header"},{"schema":{"type":"string","description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`."},"required":false,"description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`.","name":"if-match","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageUpdate"}}}},"responses":{"200":{"description":"The package as it is now.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"ETag":{"schema":{"type":"string","description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."},"required":true,"description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Package"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key's role can't change models: it needs contributor or admin (`forbidden`); or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such package, or `parentId` isn't one (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"It has changed since the version in `If-Match` (`precondition_failed`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field, a value or a rule refused the change (`validation_failed`, with `errors` naming the fields), or the `Idempotency-Key` was used for another request (`idempotency_key_reused`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"operationId":"deletePackage","tags":["Models"],"summary":"Delete a package","description":"The package and everything in it, with their relationships and their shapes on diagrams, as deleting it in the app does. More than 200 elements and relationships are deleted in the background: the answer is then 202 with the job. A whole model is deleted in the app.","security":[{"apiKey":[]}],"x-farkitect-permission":"contributor","parameters":[{"schema":{"type":"string","minLength":1,"description":"A package's id."},"required":true,"description":"A package's id.","name":"packageId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout."},"required":false,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout.","name":"idempotency-key","in":"header"},{"schema":{"type":"string","description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`."},"required":false,"description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`.","name":"if-match","in":"header"}],"responses":{"202":{"description":"More than 200 elements and relationships: deleting in the background. Ask `GET /v1/jobs/{jobId}` (the `Location`) until it's `done`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Location":{"schema":{"type":"string"},"required":true}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"204":{"description":"Deleted.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key's role can't change models: it needs contributor or admin (`forbidden`); or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such package (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"It has changed since the version in `If-Match` (`precondition_failed`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field, a value or a rule refused the change (`validation_failed`, with `errors` naming the fields), or the `Idempotency-Key` was used for another request (`idempotency_key_reused`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/projects/{projectId}/elements":{"get":{"operationId":"listElements","tags":["Models"],"summary":"A project's elements","description":"The elements of the project's models (not packages or relationships). Filters combine; each must be an id from this project. Paged; a page can hold fewer than `limit`. For a whole package at once, a single call is coming.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A project's id, from `GET /v1/projects`.","example":"k57c71kfykh96rqe0x9tce7kg58a3xcm"},"required":true,"description":"A project's id, from `GET /v1/projects`.","name":"projectId","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","example":50},"required":false,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one."},"required":false,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one.","name":"cursor","in":"query"},{"schema":{"type":"string","minLength":1,"description":"An element type's id (from the metamodel's element types): only elements of exactly that type."},"required":false,"description":"An element type's id (from the metamodel's element types): only elements of exactly that type.","name":"type","in":"query"},{"schema":{"type":"string","minLength":1,"description":"A package's id: only the elements directly in it."},"required":false,"description":"A package's id: only the elements directly in it.","name":"packageId","in":"query"},{"schema":{"type":"string","format":"date-time","description":"Only what changed at or after this time (ISO 8601), oldest change first: to keep another system in step, pass the `updatedAt` of the last item you saw. Deletions don't appear here yet.","example":"2026-11-01T00:00:00Z"},"required":false,"description":"Only what changed at or after this time (ISO 8601), oldest change first: to keep another system in step, pass the `updatedAt` of the last item you saw. Deletions don't appear here yet.","name":"updatedSince","in":"query"},{"schema":{"type":"string","minLength":1,"description":"A permanent id: only the element with it, whatever its `id` is now. An empty page when this project has none.","example":"0f08fza5n3g24hqrkbw0hsr51w"},"required":false,"description":"A permanent id: only the element with it, whatever its `id` is now. An empty page when this project has none.","name":"uid","in":"query"},{"schema":{"type":"string","enum":["properties"],"description":"`properties`: each item with its values (and an element's attachment details). A page then holds at most 50."},"required":false,"description":"`properties`: each item with its values (and an element's attachment details). A page then holds at most 50.","name":"include","in":"query"}],"responses":{"200":{"description":"A page of elements.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ElementList"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such project, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"operationId":"createElement","tags":["Models"],"summary":"Make an element","description":"An element of a type from a metamodel the model imports, with its type's default values and any values given. Refused, saying why, when the type can't be used there: abstract, retired, a relationship type, not imported by the model, or a subordinate type without an owner that has it.","security":[{"apiKey":[]}],"x-farkitect-permission":"contributor","parameters":[{"schema":{"type":"string","minLength":1,"description":"A project's id, from `GET /v1/projects`.","example":"k57c71kfykh96rqe0x9tce7kg58a3xcm"},"required":true,"description":"A project's id, from `GET /v1/projects`.","name":"projectId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout."},"required":false,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ElementCreate"}}}},"responses":{"201":{"description":"The element made, with its values.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"ETag":{"schema":{"type":"string","description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."},"required":true,"description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."},"Location":{"schema":{"type":"string","description":"Where to read it."},"required":true,"description":"Where to read it."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Element"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key's role can't change models: it needs contributor or admin (`forbidden`); or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such project, or `packageId` or `ownerId` isn't one of its (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field, a value or a rule refused the change (`validation_failed`, with `errors` naming the fields), or the `Idempotency-Key` was used for another request (`idempotency_key_reused`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/elements/{elementId}":{"get":{"operationId":"getElement","tags":["Models"],"summary":"One element","description":"The element with every property type of its type and its value, its notes, and its attachment's details.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"An element's id."},"required":true,"description":"An element's id.","name":"elementId","in":"path"}],"responses":{"200":{"description":"The element.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Element"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such element, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"updateElement","tags":["Models"],"summary":"Change an element","description":"Its name, notes, values (only those sent), or where it is: another package, or under another element. Only the fields sent change.","security":[{"apiKey":[]}],"x-farkitect-permission":"contributor","parameters":[{"schema":{"type":"string","minLength":1,"description":"An element's id."},"required":true,"description":"An element's id.","name":"elementId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout."},"required":false,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout.","name":"idempotency-key","in":"header"},{"schema":{"type":"string","description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`."},"required":false,"description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`.","name":"if-match","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ElementUpdate"}}}},"responses":{"200":{"description":"The element as it is now, with its values.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"ETag":{"schema":{"type":"string","description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."},"required":true,"description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Element"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key's role can't change models: it needs contributor or admin (`forbidden`); or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such element, or `packageId` or `ownerId` isn't one (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"It has changed since the version in `If-Match` (`precondition_failed`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field, a value or a rule refused the change (`validation_failed`, with `errors` naming the fields), or the `Idempotency-Key` was used for another request (`idempotency_key_reused`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"operationId":"deleteElement","tags":["Models"],"summary":"Delete an element","description":"The element, with the elements it owns, its relationships, and its shapes on diagrams, as deleting it in the app does.","security":[{"apiKey":[]}],"x-farkitect-permission":"contributor","parameters":[{"schema":{"type":"string","minLength":1,"description":"An element's id."},"required":true,"description":"An element's id.","name":"elementId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout."},"required":false,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout.","name":"idempotency-key","in":"header"},{"schema":{"type":"string","description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`."},"required":false,"description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`.","name":"if-match","in":"header"}],"responses":{"202":{"description":"More than 200 elements and relationships: deleting in the background. Ask `GET /v1/jobs/{jobId}` (the `Location`) until it's `done`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Location":{"schema":{"type":"string"},"required":true}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"204":{"description":"Deleted.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key's role can't change models: it needs contributor or admin (`forbidden`); or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such element (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"It has changed since the version in `If-Match` (`precondition_failed`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field, a value or a rule refused the change (`validation_failed`, with `errors` naming the fields), or the `Idempotency-Key` was used for another request (`idempotency_key_reused`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/elements/{elementId}/attachment":{"get":{"operationId":"getAttachment","tags":["Models"],"summary":"An element's attached file","description":"The file itself, with its type in `Content-Type` and its name in `Content-Disposition`.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"An element's id."},"required":true,"description":"An element's id.","name":"elementId","in":"path"}],"responses":{"200":{"description":"The file.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such element, or it has no attachment (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"put":{"operationId":"putAttachment","tags":["Models"],"summary":"Attach a file to an element","description":"The file is the body, up to 4 MB, with its type in `Content-Type` and its name in `Content-Disposition` (`attachment; filename=\"plan.pdf\"`; without one it is called `attachment`). It replaces any file the element had. Only an element whose type allows an attachment takes one, and an image type takes images only, as in the app.","security":[{"apiKey":[]}],"x-farkitect-permission":"contributor","parameters":[{"schema":{"type":"string","minLength":1,"description":"An element's id."},"required":true,"description":"An element's id.","name":"elementId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout."},"required":false,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout.","name":"idempotency-key","in":"header"},{"schema":{"type":"string","description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`."},"required":false,"description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`.","name":"if-match","in":"header"},{"schema":{"type":"string","description":"The file's name: `attachment; filename=\"plan.pdf\"` (or `filename*=UTF-8''…` for other characters)."},"required":false,"description":"The file's name: `attachment; filename=\"plan.pdf\"` (or `filename*=UTF-8''…` for other characters).","name":"content-disposition","in":"header"}],"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary","description":"The file. Send it with its own `Content-Type` (for example `image/png`, `application/pdf`)."}}}},"responses":{"200":{"description":"The element as it is now, with its attachment's name, type and size.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"ETag":{"schema":{"type":"string","description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."},"required":true,"description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Element"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key's role can't change models: it needs contributor or admin (`forbidden`); or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such element (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"It has changed since the version in `If-Match` (`precondition_failed`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"The file is over 4 MB (`too_large`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field, a value or a rule refused the change (`validation_failed`, with `errors` naming the fields), or the `Idempotency-Key` was used for another request (`idempotency_key_reused`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"operationId":"deleteAttachment","tags":["Models"],"summary":"Remove an element's attached file","description":"The file is deleted. An element with no attachment is left as it is.","security":[{"apiKey":[]}],"x-farkitect-permission":"contributor","parameters":[{"schema":{"type":"string","minLength":1,"description":"An element's id."},"required":true,"description":"An element's id.","name":"elementId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout."},"required":false,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout.","name":"idempotency-key","in":"header"},{"schema":{"type":"string","description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`."},"required":false,"description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`.","name":"if-match","in":"header"}],"responses":{"200":{"description":"The element as it is now, with no attachment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"ETag":{"schema":{"type":"string","description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."},"required":true,"description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Element"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key's role can't change models: it needs contributor or admin (`forbidden`); or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such element (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"It has changed since the version in `If-Match` (`precondition_failed`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field, a value or a rule refused the change (`validation_failed`, with `errors` naming the fields), or the `Idempotency-Key` was used for another request (`idempotency_key_reused`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/projects/{projectId}/relationships":{"get":{"operationId":"listRelationships","tags":["Models"],"summary":"A project's relationships","description":"The relationships of the project's models. `elementId` gives those at either end of an element. Filters combine; each must be an id from this project. Paged; a page can hold fewer than `limit`.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A project's id, from `GET /v1/projects`.","example":"k57c71kfykh96rqe0x9tce7kg58a3xcm"},"required":true,"description":"A project's id, from `GET /v1/projects`.","name":"projectId","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","example":50},"required":false,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one."},"required":false,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one.","name":"cursor","in":"query"},{"schema":{"type":"string","minLength":1,"description":"A relationship type's id: only relationships of exactly that type."},"required":false,"description":"A relationship type's id: only relationships of exactly that type.","name":"type","in":"query"},{"schema":{"type":"string","minLength":1,"description":"Only relationships from this element."},"required":false,"description":"Only relationships from this element.","name":"sourceId","in":"query"},{"schema":{"type":"string","minLength":1,"description":"Only relationships to this element."},"required":false,"description":"Only relationships to this element.","name":"targetId","in":"query"},{"schema":{"type":"string","minLength":1,"description":"Only relationships from or to this element."},"required":false,"description":"Only relationships from or to this element.","name":"elementId","in":"query"},{"schema":{"type":"string","format":"date-time","description":"Only what changed at or after this time (ISO 8601), oldest change first: to keep another system in step, pass the `updatedAt` of the last item you saw. Deletions don't appear here yet.","example":"2026-11-01T00:00:00Z"},"required":false,"description":"Only what changed at or after this time (ISO 8601), oldest change first: to keep another system in step, pass the `updatedAt` of the last item you saw. Deletions don't appear here yet.","name":"updatedSince","in":"query"},{"schema":{"type":"string","minLength":1,"description":"A permanent id: only the relationship with it, whatever its `id` is now. An empty page when this project has none.","example":"0f08fza5n3g24hqrkbw0hsr51w"},"required":false,"description":"A permanent id: only the relationship with it, whatever its `id` is now. An empty page when this project has none.","name":"uid","in":"query"},{"schema":{"type":"string","enum":["properties"],"description":"`properties`: each item with its values (and an element's attachment details). A page then holds at most 50."},"required":false,"description":"`properties`: each item with its values (and an element's attachment details). A page then holds at most 50.","name":"include","in":"query"}],"responses":{"200":{"description":"A page of relationships.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationshipList"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such project, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"post":{"operationId":"createRelationship","tags":["Models"],"summary":"Make a relationship","description":"A relationship between two elements, of one model or of two, with its type's default values and any values given. Its type must be from a metamodel that both ends' models import. Refused, saying why, when the type can't join that pair: a standard metamodel's type joins only its own metamodel's elements, and a type with valid pairs only those pairs (a superclass counts).","security":[{"apiKey":[]}],"x-farkitect-permission":"contributor","parameters":[{"schema":{"type":"string","minLength":1,"description":"A project's id, from `GET /v1/projects`.","example":"k57c71kfykh96rqe0x9tce7kg58a3xcm"},"required":true,"description":"A project's id, from `GET /v1/projects`.","name":"projectId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout."},"required":false,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationshipCreate"}}}},"responses":{"201":{"description":"The relationship made, with its values.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"ETag":{"schema":{"type":"string","description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."},"required":true,"description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."},"Location":{"schema":{"type":"string","description":"Where to read it."},"required":true,"description":"Where to read it."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Relationship"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key's role can't change models: it needs contributor or admin (`forbidden`); or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such project, or `sourceId`, `targetId` or `packageId` isn't one of its (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field, a value or a rule refused the change (`validation_failed`, with `errors` naming the fields), or the `Idempotency-Key` was used for another request (`idempotency_key_reused`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/relationships/{relationshipId}":{"get":{"operationId":"getRelationship","tags":["Models"],"summary":"One relationship","description":"The relationship, its ends, notes, and every property type of its type with its value.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"relationshipId","in":"path"}],"responses":{"200":{"description":"The relationship.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Relationship"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such relationship, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"operationId":"updateRelationship","tags":["Models"],"summary":"Change a relationship","description":"Its name, notes, values (only those sent), or its ends, within its type's rules. Only the fields sent change.","security":[{"apiKey":[]}],"x-farkitect-permission":"contributor","parameters":[{"schema":{"type":"string","minLength":1,"description":"A relationship's id."},"required":true,"description":"A relationship's id.","name":"relationshipId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout."},"required":false,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout.","name":"idempotency-key","in":"header"},{"schema":{"type":"string","description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`."},"required":false,"description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`.","name":"if-match","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationshipUpdate"}}}},"responses":{"200":{"description":"The relationship as it is now, with its values.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"ETag":{"schema":{"type":"string","description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."},"required":true,"description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Relationship"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key's role can't change models: it needs contributor or admin (`forbidden`); or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such relationship, or a new end isn't an element of its project (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"It has changed since the version in `If-Match` (`precondition_failed`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field, a value or a rule refused the change (`validation_failed`, with `errors` naming the fields), or the `Idempotency-Key` was used for another request (`idempotency_key_reused`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"operationId":"deleteRelationship","tags":["Models"],"summary":"Delete a relationship","description":"The relationship and its connectors on diagrams. Its ends stay.","security":[{"apiKey":[]}],"x-farkitect-permission":"contributor","parameters":[{"schema":{"type":"string","minLength":1,"description":"A relationship's id."},"required":true,"description":"A relationship's id.","name":"relationshipId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout."},"required":false,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout.","name":"idempotency-key","in":"header"},{"schema":{"type":"string","description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`."},"required":false,"description":"The `ETag` you read. If the item has changed since, nothing changes and the answer is `412`.","name":"if-match","in":"header"}],"responses":{"202":{"description":"More than 200 elements and relationships: deleting in the background. Ask `GET /v1/jobs/{jobId}` (the `Location`) until it's `done`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Location":{"schema":{"type":"string"},"required":true}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"204":{"description":"Deleted.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key's role can't change models: it needs contributor or admin (`forbidden`); or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such relationship (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"It has changed since the version in `If-Match` (`precondition_failed`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field, a value or a rule refused the change (`validation_failed`, with `errors` naming the fields), or the `Idempotency-Key` was used for another request (`idempotency_key_reused`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/projects/{projectId}/deletions":{"get":{"operationId":"listDeletions","tags":["Models"],"summary":"What was deleted","description":"Packages, elements, relationships and views deleted from the project at or after `since`, oldest first, however they were deleted (in the app, by the API, by an import or an upgrade). Remembered 30 days. To keep another system in step, read changes with `updatedSince`, then deletions with the same time. Paged; a page can hold fewer than `limit`.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A project's id, from `GET /v1/projects`.","example":"k57c71kfykh96rqe0x9tce7kg58a3xcm"},"required":true,"description":"A project's id, from `GET /v1/projects`.","name":"projectId","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","example":50},"required":false,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one."},"required":false,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one.","name":"cursor","in":"query"},{"schema":{"type":"string","format":"date-time","description":"ISO 8601: deletions at or after this time. At most 30 days ago.","example":"2026-11-01T00:00:00Z"},"required":true,"description":"ISO 8601: deletions at or after this time. At most 30 days ago.","name":"since","in":"query"}],"responses":{"200":{"description":"A page of deletions.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionList"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such project, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"410":{"description":"`since` is more than 30 days ago (`resync_required`): read everything again.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/projects/{projectId}/events":{"get":{"operationId":"listEvents","tags":["Events"],"summary":"What changed","description":"Every change to the project's packages, elements, relationships and views, oldest first, however it was made: in the app, by the API, by an import. Kept 30 days, recorded while the organisation has a working API key. Follow it with the page's `nextCursor`, which is always given: when `hasMore` is false you're up to date, so keep the cursor and ask again later (with or without `since`). A change shows here about five seconds after it's made. One event per item per change: an element renamed and given two values in one go is one `element.updated`. Paged; a page can hold fewer than `limit`.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A project's id, from `GET /v1/projects`.","example":"k57c71kfykh96rqe0x9tce7kg58a3xcm"},"required":true,"description":"A project's id, from `GET /v1/projects`.","name":"projectId","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","example":50},"required":false,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one."},"required":false,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one.","name":"cursor","in":"query"},{"schema":{"type":"string","format":"date-time","description":"ISO 8601: events at or after this time, at most 30 days ago. Leave out to start from the oldest kept; then follow the cursor.","example":"2026-11-12T00:00:00Z"},"required":false,"description":"ISO 8601: events at or after this time, at most 30 days ago. Leave out to start from the oldest kept; then follow the cursor.","name":"since","in":"query"},{"schema":{"type":"string","description":"Only these types, separated by commas: `package.created`, `package.updated`, `package.deleted`, `element.created`, `element.updated`, `element.deleted`, `relationship.created`, `relationship.updated`, `relationship.deleted`, `view.created`, `view.updated`, `view.deleted`.","example":"element.updated,element.deleted"},"required":false,"description":"Only these types, separated by commas: `package.created`, `package.updated`, `package.deleted`, `element.created`, `element.updated`, `element.deleted`, `relationship.created`, `relationship.updated`, `relationship.deleted`, `view.created`, `view.updated`, `view.deleted`.","name":"types","in":"query"},{"schema":{"type":"string","enum":["item"],"description":"`item`: add each item as it is now (`current`). A page then holds at most 50 events."},"required":false,"description":"`item`: add each item as it is now (`current`). A page then holds at most 50 events.","name":"include","in":"query"}],"responses":{"200":{"description":"A page of events.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventList"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such project, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"410":{"description":"`since` is more than 30 days ago (`resync_required`): read everything again.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A type that isn't an event type (`validation_failed`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhook-endpoints":{"post":{"tags":["Webhooks"],"security":[{"apiKey":[]}],"x-farkitect-permission":"admin","operationId":"createWebhookEndpoint","summary":"Add a webhook endpoint","description":"An address the organisation's events are posted to as they happen, signed (Standard Webhooks). The answer holds its secret, shown this once. Needs a whole-organisation key with **May manage the organisation's webhooks** ticked (`webhooks: true` in `GET /v1/me`); any other key is refused with `forbidden`.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreate"}}}},"responses":{"201":{"description":"The endpoint, with its secret.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"ETag":{"schema":{"type":"string","description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."},"required":true,"description":"The item's version. Send it back in `If-Match` to change it only if nobody has since."},"Location":{"schema":{"type":"string","description":"Where to read it."},"required":true,"description":"Where to read it."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key isn't a whole-organisation key with `webhooks` (`forbidden`), or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"An address that isn't HTTPS on the internet, a type that isn't an event type, a project not in the organisation, or more than 5 endpoints (`validation_failed`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"get":{"tags":["Webhooks"],"security":[{"apiKey":[]}],"x-farkitect-permission":"admin","operationId":"listWebhookEndpoints","summary":"Webhook endpoints","description":"The organisation's endpoints, without their secrets. Needs a whole-organisation key with **May manage the organisation's webhooks** ticked (`webhooks: true` in `GET /v1/me`); any other key is refused with `forbidden`.","responses":{"200":{"description":"The endpoints.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointList"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key isn't a whole-organisation key with `webhooks` (`forbidden`), or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhook-endpoints/{endpointId}":{"get":{"tags":["Webhooks"],"security":[{"apiKey":[]}],"x-farkitect-permission":"admin","operationId":"getWebhookEndpoint","summary":"One webhook endpoint","description":"Its address, filters, whether it's on, and when it last succeeded and failed. Needs a whole-organisation key with **May manage the organisation's webhooks** ticked (`webhooks: true` in `GET /v1/me`); any other key is refused with `forbidden`.","parameters":[{"schema":{"type":"string","minLength":1,"description":"A webhook endpoint's id."},"required":true,"description":"A webhook endpoint's id.","name":"endpointId","in":"path"}],"responses":{"200":{"description":"The endpoint.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key isn't a whole-organisation key with `webhooks` (`forbidden`), or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such endpoint in the key's organisation (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"patch":{"tags":["Webhooks"],"security":[{"apiKey":[]}],"x-farkitect-permission":"admin","operationId":"updateWebhookEndpoint","summary":"Change a webhook endpoint","description":"Its address, description or filters, or switch it off and on (`enabled`). Only the fields sent change. Needs a whole-organisation key with **May manage the organisation's webhooks** ticked (`webhooks: true` in `GET /v1/me`); any other key is refused with `forbidden`.","parameters":[{"schema":{"type":"string","minLength":1,"description":"A webhook endpoint's id."},"required":true,"description":"A webhook endpoint's id.","name":"endpointId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointUpdate"}}}},"responses":{"200":{"description":"The endpoint as it is now.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key isn't a whole-organisation key with `webhooks` (`forbidden`), or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such endpoint in the key's organisation (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"An address that isn't HTTPS on the internet, a type that isn't an event type, a project not in the organisation, or more than 5 endpoints (`validation_failed`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}},"delete":{"tags":["Webhooks"],"security":[{"apiKey":[]}],"x-farkitect-permission":"admin","operationId":"deleteWebhookEndpoint","summary":"Remove a webhook endpoint","description":"Nothing more is sent to it. Needs a whole-organisation key with **May manage the organisation's webhooks** ticked (`webhooks: true` in `GET /v1/me`); any other key is refused with `forbidden`.","parameters":[{"schema":{"type":"string","minLength":1,"description":"A webhook endpoint's id."},"required":true,"description":"A webhook endpoint's id.","name":"endpointId","in":"path"}],"responses":{"204":{"description":"Deleted.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key isn't a whole-organisation key with `webhooks` (`forbidden`), or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such endpoint in the key's organisation (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhook-endpoints/{endpointId}/rotate-secret":{"post":{"tags":["Webhooks"],"security":[{"apiKey":[]}],"x-farkitect-permission":"admin","operationId":"rotateWebhookSecret","summary":"A new webhook secret","description":"A new secret, shown this once. For 24 hours each delivery is signed with both, so the receiver can change over without missing any. Needs a whole-organisation key with **May manage the organisation's webhooks** ticked (`webhooks: true` in `GET /v1/me`); any other key is refused with `forbidden`.","parameters":[{"schema":{"type":"string","minLength":1,"description":"A webhook endpoint's id."},"required":true,"description":"A webhook endpoint's id.","name":"endpointId","in":"path"}],"responses":{"200":{"description":"The endpoint, with its new secret.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key isn't a whole-organisation key with `webhooks` (`forbidden`), or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such endpoint in the key's organisation (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhook-endpoints/{endpointId}/ping":{"post":{"tags":["Webhooks"],"security":[{"apiKey":[]}],"x-farkitect-permission":"admin","operationId":"pingWebhookEndpoint","summary":"Test a webhook endpoint","description":"Sends a `ping` event within about 10 seconds, signed like any other, to test the receiver. Follow it in the deliveries. Needs a whole-organisation key with **May manage the organisation's webhooks** ticked (`webhooks: true` in `GET /v1/me`); any other key is refused with `forbidden`.","parameters":[{"schema":{"type":"string","minLength":1,"description":"A webhook endpoint's id."},"required":true,"description":"A webhook endpoint's id.","name":"endpointId","in":"path"}],"responses":{"200":{"description":"The ping's delivery.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key isn't a whole-organisation key with `webhooks` (`forbidden`), or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such endpoint in the key's organisation (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhook-endpoints/{endpointId}/deliveries":{"get":{"tags":["Webhooks"],"security":[{"apiKey":[]}],"x-farkitect-permission":"admin","operationId":"listWebhookDeliveries","summary":"Webhook deliveries","description":"Every event (and ping) sent to the endpoint in the last 30 days, newest first: its status, attempts, and the receiver's last answer. Needs a whole-organisation key with **May manage the organisation's webhooks** ticked (`webhooks: true` in `GET /v1/me`); any other key is refused with `forbidden`.","parameters":[{"schema":{"type":"string","minLength":1,"description":"A webhook endpoint's id."},"required":true,"description":"A webhook endpoint's id.","name":"endpointId","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","example":50},"required":false,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one."},"required":false,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one.","name":"cursor","in":"query"}],"responses":{"200":{"description":"A page of deliveries.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryList"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key isn't a whole-organisation key with `webhooks` (`forbidden`), or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such endpoint in the key's organisation (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/webhook-endpoints/{endpointId}/deliveries/{deliveryId}/retry":{"post":{"tags":["Webhooks"],"security":[{"apiKey":[]}],"x-farkitect-permission":"admin","operationId":"retryWebhookDelivery","summary":"Send a delivery again","description":"A failed delivery, sent again within about 10 seconds, with its retries from the start. Needs a whole-organisation key with **May manage the organisation's webhooks** ticked (`webhooks: true` in `GET /v1/me`); any other key is refused with `forbidden`.","parameters":[{"schema":{"type":"string","minLength":1,"description":"A webhook endpoint's id."},"required":true,"description":"A webhook endpoint's id.","name":"endpointId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"A delivery's id."},"required":true,"description":"A delivery's id.","name":"deliveryId","in":"path"}],"responses":{"200":{"description":"The delivery, pending again.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key isn't a whole-organisation key with `webhooks` (`forbidden`), or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such endpoint or delivery (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"The delivery hasn't failed, or the endpoint is switched off (`validation_failed`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/projects/{projectId}/batch":{"post":{"operationId":"batch","tags":["Models"],"summary":"Make many changes at once","description":"Up to 200 creates, updates and deletes of packages, elements and relationships, made in order and all or none: the first refusal names its operation (`body.operations[3]…`) and nothing is changed. A create's `ref` stands for its new id in later operations, so elements and the relationships between them can be made together. Counts as one change against the per-minute limit.","security":[{"apiKey":[]}],"x-farkitect-permission":"contributor","parameters":[{"schema":{"type":"string","minLength":1,"description":"A project's id, from `GET /v1/projects`.","example":"k57c71kfykh96rqe0x9tce7kg58a3xcm"},"required":true,"description":"A project's id, from `GET /v1/projects`.","name":"projectId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout."},"required":false,"description":"Any unique string (a UUID, say). Repeating a request with the same key within a day gives the first answer and changes nothing again: safe retries after a timeout.","name":"idempotency-key","in":"header"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRequest"}}}},"responses":{"200":{"description":"Every operation's result, in order.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchResult"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"The key's role can't change models: it needs contributor or admin (`forbidden`); or the organisation can't use the API.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such project, or an operation's item isn't one of its (`not_found`, naming the operation).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"412":{"description":"An item changed since the `ifMatch` its operation gave (`precondition_failed`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"A delete in a batch would take more than 200 elements and relationships (`too_large`): delete it on its own.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"A field, a value or a rule refused the change (`validation_failed`, with `errors` naming the fields), or the `Idempotency-Key` was used for another request (`idempotency_key_reused`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/packages/{packageId}/contents":{"get":{"operationId":"getPackageContents","tags":["Models"],"summary":"A whole package at once","description":"The package and everything below it in one answer: packages, elements and relationships, each with its values, as the single-item calls give them. For reports, documents and analysis. A heavy call: limited to a few a minute per organisation, one at a time.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","x-farkitect-cost":"heavy","parameters":[{"schema":{"type":"string","minLength":1,"description":"A model package's id (a model's own id for the whole model)."},"required":true,"description":"A model package's id (a model's own id for the whole model).","name":"packageId","in":"path"},{"schema":{"type":"string","enum":["metamodel"],"description":"`metamodel`: add the types the items are of."},"required":false,"description":"`metamodel`: add the types the items are of.","name":"include","in":"query"}],"responses":{"200":{"description":"The package's contents.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageContents"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such package, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"Too large for one call (`use_export_job`): over 10 MB, or over 45 seconds to gather. Read it a page at a time instead.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many heavy calls (whole packages, the integrity check) for the organisation: a minute, a day, or one already running (`rate_limited`). Wait `Retry-After` seconds.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Farkitect is busy with other large requests (`busy`), or the API is switched off. Wait `Retry-After` seconds.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/packages/{packageId}/markdown":{"get":{"operationId":"getPackageMarkdown","tags":["Models"],"summary":"A whole package as Markdown","description":"The package and everything below it as one Markdown document, as Export as Markdown in the app writes it: ready for a document, or to give to an AI. A heavy call: limited to a few a minute per organisation, one at a time.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","x-farkitect-cost":"heavy","parameters":[{"schema":{"type":"string","minLength":1,"description":"A model package's id (a model's own id for the whole model)."},"required":true,"description":"A model package's id (a model's own id for the whole model).","name":"packageId","in":"path"}],"responses":{"200":{"description":"The Markdown.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such package, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"Too large for one call (`use_export_job`): over 10 MB, or over 45 seconds to gather. Read it a page at a time instead.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many heavy calls (whole packages, the integrity check) for the organisation: a minute, a day, or one already running (`rate_limited`). Wait `Retry-After` seconds.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Farkitect is busy with other large requests (`busy`), or the API is switched off. Wait `Retry-After` seconds.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/projects/{projectId}/views":{"get":{"operationId":"listViews","tags":["Views"],"summary":"A project's views","description":"Every diagram, catalog, board and chart view, kind by kind, with what each shows: a catalog's or board's element type, a board's group-by, a view's scope. Paged; a page can hold fewer than `limit`.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A project's id, from `GET /v1/projects`.","example":"k57c71kfykh96rqe0x9tce7kg58a3xcm"},"required":true,"description":"A project's id, from `GET /v1/projects`.","name":"projectId","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","example":50},"required":false,"description":"The most items to return, 1 to 200 (default 50). A page can hold fewer, even when more follow: always follow `nextCursor` while `hasMore` is true.","name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one."},"required":false,"description":"`nextCursor` from the previous page. Leave it out for the first page. Opaque: don't build or change one.","name":"cursor","in":"query"},{"schema":{"type":"string","enum":["diagram","catalog","board","chart"],"description":"Only views of this kind."},"required":false,"description":"Only views of this kind.","name":"kind","in":"query"},{"schema":{"type":"string","minLength":1,"description":"Only the views kept directly in this package."},"required":false,"description":"Only the views kept directly in this package.","name":"packageId","in":"query"}],"responses":{"200":{"description":"A page of views.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewList"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such project, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/diagrams/{diagramId}":{"get":{"operationId":"getDiagram","tags":["Views"],"summary":"One diagram","description":"A diagram's shapes (the elements on it, with position, size and nesting), connectors (the relationships, with bend points) and links to other views: its structure. To draw it, use its drawing data (`GET /v1/diagrams/{diagramId}/drawing`).","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"diagramId","in":"path"}],"responses":{"200":{"description":"The diagram.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Diagram"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such diagram, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"More than 5,000 shapes, connectors or view links (`use_export_job`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/diagrams/{diagramId}/drawing":{"get":{"operationId":"getDrawing","tags":["Views"],"summary":"A diagram's drawing data","description":"Everything a diagram shows, to draw it exactly as the app does: each shape's and connector's final colours in light and dark, the types used (notation, markers, compartments, property types) once each, icons once each, values, labels, nesting, view links. As saved. `version` changes when anything drawn changes and is also the `ETag`: send it back in `If-None-Match` to get `304` when nothing has. Attachment images are fetched from each shape's `attachment.href` with your own key.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1},"required":true,"name":"diagramId","in":"path"},{"schema":{"type":"string","description":"A `version` (ETag) you already have."},"required":false,"description":"A `version` (ETag) you already have.","name":"if-none-match","in":"header"}],"responses":{"200":{"description":"The drawing data.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"ETag":{"schema":{"type":"string","description":"The drawing's version, quoted; weak (`W/\"…\"`) when the answer came compressed. Send it back as you received it."},"required":true,"description":"The drawing's version, quoted; weak (`W/\"…\"`) when the answer came compressed. Send it back as you received it."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Drawing"}}}},"304":{"description":"Nothing drawn has changed since the version sent in `If-None-Match`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"ETag":{"schema":{"type":"string"},"required":true}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such diagram, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"Too large to draw in one answer: more than 5,000 shapes, connectors or view links (`use_export_job`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/projects/{projectId}/integrity":{"get":{"operationId":"getIntegrity","tags":["Checks"],"summary":"A project's integrity check","description":"The same check as the app's Log panel: every reference in the project's models, metamodels and views. `ok` is false when there are errors; for CI, fail the build then. A heavy call: limited to a few a minute per organisation, one at a time.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","x-farkitect-cost":"heavy","parameters":[{"schema":{"type":"string","minLength":1,"description":"A project's id, from `GET /v1/projects`.","example":"k57c71kfykh96rqe0x9tce7kg58a3xcm"},"required":true,"description":"A project's id, from `GET /v1/projects`.","name":"projectId","in":"path"}],"responses":{"200":{"description":"The report.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrityReport"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such project, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"Too large for one call (`use_export_job`): over 10 MB, or over 45 seconds to gather. Read it a page at a time instead.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many heavy calls (whole packages, the integrity check) for the organisation: a minute, a day, or one already running (`rate_limited`). Wait `Retry-After` seconds.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"Farkitect is busy with other large requests (`busy`), or the API is switched off. Wait `Retry-After` seconds.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/packages/{packageId}/exports":{"post":{"operationId":"startExport","tags":["Exports"],"summary":"Export a package as .farki","description":"Starts exporting the package and everything below it as a `.farki` file, as File › Export does in the app: for packages too large for `/contents`, or to keep a copy. It runs in the background because a large export can take longer than a request may wait (a minute): this call answers at once with the job; ask `GET /v1/jobs/{jobId}` every few seconds until it's `done`, then download the file with `GET /v1/jobs/{jobId}/file`. A dropped connection loses nothing, and the file is kept a day, so it can be downloaded again. One export at a time per organisation.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A model package's id (a model's own id for the whole model)."},"required":true,"description":"A model package's id (a model's own id for the whole model).","name":"packageId","in":"path"}],"responses":{"202":{"description":"The export has started.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Location":{"schema":{"type":"string","description":"The job: `/v1/jobs/{jobId}`."},"required":true,"description":"The job: `/v1/jobs/{jobId}`."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such package, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/jobs/{jobId}":{"get":{"operationId":"getJob","tags":["Exports"],"summary":"A job's status","description":"Whether the job is queued, running, done or failed, and when done, its file's name and size. A job and its file are kept a day after it finishes.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A job's id, from the call that started it."},"required":true,"description":"A job's id, from the call that started it.","name":"jobId","in":"path"}],"responses":{"200":{"description":"The job.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such job, or not one this key reaches (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/v1/jobs/{jobId}/file":{"get":{"operationId":"getJobFile","tags":["Exports"],"summary":"A finished job's file","description":"The `.farki` file, with its name in `Content-Disposition`. It can be imported into Farkitect with File › Import.","security":[{"apiKey":[]}],"x-farkitect-permission":"viewer","parameters":[{"schema":{"type":"string","minLength":1,"description":"A job's id, from the call that started it."},"required":true,"description":"A job's id, from the call that started it.","name":"jobId","in":"path"}],"responses":{"200":{"description":"The file.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/json":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The request can't be read, the key was put in the address (`key_in_url`), or a cursor isn't one this API gave (`invalid_cursor`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"401":{"description":"No key, or a key that isn't recognised, is revoked (`key_revoked`) or has expired (`key_expired`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"403":{"description":"Called from a web browser (`browser_not_allowed`), or the organisation can't use the API (`organization_suspended`, `api_disabled_for_organization`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"No such job, it failed, or its file has expired (`not_found`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"409":{"description":"The job hasn't finished yet (`job_not_ready`).","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"Too many requests. Wait the number of seconds in `Retry-After`.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."},"Retry-After":{"schema":{"type":"string","description":"Seconds to wait before trying again."},"required":true,"description":"Seconds to wait before trying again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Something went wrong at Farkitect.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The API is switched off for maintenance, or Farkitect can't answer at the moment.","headers":{"Farkitect-Request-Id":{"schema":{"type":"string","description":"This request's id. Quote it when asking for help."},"required":true,"description":"This request's id. Quote it when asking for help."},"Farkitect-Release":{"schema":{"type":"string","description":"The release of the API that answered."},"required":true,"description":"The release of the API that answered."},"RateLimit-Limit":{"schema":{"type":"string","description":"Requests allowed per minute for this key."},"required":true,"description":"Requests allowed per minute for this key."},"RateLimit-Remaining":{"schema":{"type":"string","description":"Requests left before the limit applies."},"required":true,"description":"Requests left before the limit applies."},"RateLimit-Reset":{"schema":{"type":"string","description":"Seconds until the allowance is full again."},"required":true,"description":"Seconds until the allowance is full again."}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}},"webhooks":{}}