/api/projects
Create, read, update, and publish construction projects. Projects own datasheets, standards, files, and members.
GET /api/projectsList projects accessible to the authenticated user, organized by access level. GET /api/projects/my-projects is an alias for this same call — one endpoint, two paths. Each bucket is ordered by `last_activity_at`, newest first: the last change the caller can see (a revision they can open, a comment they are a recipient of, their own access), never activity they cannot see.
Required permission: project:read
GET /api/projects/details/:idGet detailed project information including address, project type, status, and stakeholders. `project_type_other_text` is the description the project team gave of an "other" type, for the project team only (null for anyone else, or when there is none). For a caller who may edit or publish the project, `draftVersion` is the open draft's version (an opaque string, null when there is no open draft): send it back unchanged as baseVersion on PUT /api/projects/edit/:id and POST /api/projects/:id/publish. `companyless_draft_gate` is true only when the project has no company and the caller is its creator and has no company: the app then shows the create-or-join-a-company step before the project. It gates the app only; reads and edits through the API and the assistant are not gated by it.
Required permission: project:read
| Name | In | Type | Description |
|---|---|---|---|
| format | query | string | "verbose" (default, all fields) or "compact" (id/name/vertical/status/revision code/city/state). Invalid values return 400. Over HTTP only: SynC's in-app assistant does not read this parameter, so sending it from the assistant changes nothing about the result. The assistant already receives a reduced projection of about a dozen fields, and unlike compact it keeps `summary`. |
| shape | query | string | "v2" returns the consolidated, audience-gated project view (header, standards, datasheets and members in one payload) instead of the flat project-header lookup this endpoint otherwise serves. Recipients see the audience-filtered form of that payload. Over HTTP only: SynC's in-app assistant does not read this parameter, so sending it from the assistant changes nothing about the result. |
| draft | query | string | "1" or "true" assembles the project's working DRAFT through the v2 renderer. Only meaningful with shape=v2, and AUTHOR-ONLY: a caller without project:draft:edit gets 403, never a filtered payload, because a draft is never visible to recipients. Over HTTP only: SynC's in-app assistant does not read this parameter, so sending it from the assistant changes nothing about the result. |
| revisionId | query | integer | Render a specific published revision instead of the newest one you may read. A revision your access does not reach is refused (404) rather than downgraded, and a historical one additionally requires project:revision:view. Honoured by BOTH shapes: with shape=v2 it selects the whole payload, and on the flat project-header lookup it selects the header — name, summary, address, status and revision code come from that revision, not from the project's current one. Omitting it serves the newest revision your access reaches, which for a scope-limited recipient is NOT the project's current header. Over HTTP only: SynC's in-app assistant does not read this parameter, so sending it from the assistant changes nothing about the result. |
GET /api/projects/:id/revisionsList project revisions, newest first. Includes draft revisions if you have project:draft:view permission. Each revision has is_draft field. current_revision_id names the current published revision (null when there is none or it is outside your access); the first row may be an unpublished draft, so do not use list position to find the current revision. Each row also carries draft_started_at, and edited_at, edited_by and edited_by_name for the last change made while it was a draft, and `issued_for`: the stage the revision was issued for (review, pricing, permit, bid, construction, record), null for not stated and for a draft. A draft row also carries base_revision_id and base_revision_code, the revision it was started from (null for a project's first draft). A draft has no revision number: its revision_code and revision_type are placeholders until publish, where the chosen revision_type sets the number. Name a draft by the revision it was started from ("draft from 1.2.0"), never by its revision_code.
Required permission: project:revision:view
Optional permission (unlock additional behaviour): project:draft:view
GET /api/projects/:id/overviewWhere a project stands, in one read: the open draft (base_code, the revision it was started from, null for a project's first draft, and label, e.g. "Draft · from 1.2.0"; its code is a placeholder, not a number; when it was started, when and by whom it was last changed) and the newest published revision you may read (code, severity, issue date, content fingerprint); waiting, the errata, corrections, comments addressed or forwarded to you and comments awaiting your company's answer, most pressing first (a comment row also carries comment: the comment's id, the project revision it was made on and whether that is the draft, and the clause or datasheet field it is on). waiting is only what waits on you or your company: your firm's own internal questions (audience_kind internal) wait on no one unless one names you (an internal ask, which is counted), so open internal questions are not in waiting, and an empty waiting does not mean nothing is open. For every open item read get_api_projects_projectid_comments with state=open (open_item: true; audience_kind says which are internal); coordination, the draft's drawing-coordination checklist as open of total (clauses that point to the drawings and are not yet checked off, and datasheet fields left tbd or per_drawings): it counts no comments; distribution, how many people hold access, share links not yet accepted and the first few holders; and notifications_count, your notifications about the project. draft is null without project:draft:view, coordination null without project:coordination:view, and distribution null without project:admin. For an API key or connected app a null coordination comes with coordination_reason: none_open (the draft has no open coordination item), no_open_draft, not_permitted (it needs project:coordination:view and project:draft:view) or unavailable (the count failed; read the coordination checklist). An API key or connected app also gets open_comment_items {total, internal}: how many comments are open as items, internal threads included, the rows get_api_projects_projectid_comments with state=open&openItemsOnly=true returns. total 0 means no comment is open, so there is no need to read them; null means the count failed. When waiting is empty and total is above 0, waiting_note says so in one line and names the read that returns all total items, for a task about open questions. An API key or connected app also gets name and status, the project's phase, as recorded on the revision you may read (the live ones only with project:draft:view); each is null when unset or when that revision is not yours to read (a past revision needs project:revision:view). SynC has no cancelled state: a project closed out is archived (archived_at); a word such as "cancelled" is only ever in its name or summary.
Required permission: project:read
Optional permissions (unlock additional behaviour): project:draft:view, project:coordination:view, project:admin
GET /api/projects/:id/timeline-eventsEvents beside a project's revision history, for a timeline: comments: open comments at the end of each week (only comments on your company's path); shares: each share link issued, with whether it was accepted (null without project:admin); errata: errata issued on the standards the project uses. Defaults to the life of the project up to now.
Required permission: project:read
Optional permission (unlock additional behaviour): project:admin
| Name | In | Type | Description |
|---|---|---|---|
| from | query | string | Start date (ISO 8601). Defaults to the first revision. |
| to | query | string | End date (ISO 8601). Defaults to now. |
GET /api/projects/:projectId/seat-provenanceWhere the caller's editing seat on this project comes from: funding is one of 'own_staff' (internal), 'own_seat' (their own firm's seat, BYOS), 'trial' (with trialEndsAt), 'sponsored' (the owning company's collaborator seat) or 'none' (viewer floor — viewing is free). Also carries lapsedFromRole (set when a trial expiry downgraded the caller to viewer and they have not yet acted), pendingSponsorshipRequest, trialSpent and canRequestSponsorship. Auth only: the payload is strictly about the caller. Once the seat separation Phase 2 switch has run it adds coverage ({ kind: 'own_seat'|'own_seat_purchased'|'own_seat_trial'|'collaborator'|'trial'|'solo'|'none', companyName, trialEndsAt, covered, coveredAfterFlip, ways }) and canRequestSeat, roleCanAuthor and travelBanner (the dated line until the travel flip), for a caller who can read the project.
Signed in · your own account only
GET /api/projects/:id/upgrade-statusWhat in this project is BEHIND its parent — the one read that answers "have any of our standards been updated?". Reports three INDEPENDENT layers, which are not the same question: datasheetsBehind (a datasheet behind the revision the PROJECT PINS for its standard — the only layer that blocks publishing), standardsBehind (the project works to an older revision than the repository has — advisory, never blocks; moving it is a deliberate step, and the way to take it is POST /api/projects/:id/standard-revisions, which changes which revision the project works to WITHOUT touching a datasheet. Bringing the datasheets built on that standard into line with the new revision is a SEPARATE act, POST /api/standards/:standardId/batch-upgrade, and it is what the publish gate measures. A datasheet is an instance of a standard and follows it, never the reverse), and repositoryBehindWiki (the standard was adopted from an older wiki EDITION than the wiki has since adopted — this is the layer a user means by "has the wiki updated this?"). Also returns `checked` ({standards, datasheets}) as the denominator and `upToDate`. Defaults to the draft revision if there is one, otherwise the current published revision. Each repositoryBehindWiki row also carries `heldRevoked` (the held wiki edition has been withdrawn under a moderation notice), `heldRevocationLevel`, `replacementMarked`, `upgradeAvailable`, `offeredAdoptedRevisionId` and `offeredIsMarkedReplacement`. A revoked holding is ALWAYS reported, and is offered the moderator-marked replacement edition when there is one — a revoked edition is never offered as the upgrade. A row with `heldRevoked: true` and `upgradeAvailable: false` is a standard with no way forward yet: it blocks publishing, and the fix is to remove or swap the standard. Each row also carries `holdingScope` ("standard" while a moderator hold covers the whole wiki standard, otherwise null), `upgradeClearsHold` (false when such a hold is open AND a revision is offered) and `upgradeNote`. Under a whole-standard hold the offered revision is still a legitimate upgrade, but it does NOT clear the hold, which covers every revision until a moderator lifts it: never tell the user that upgrading fixes it. Quote `upgradeNote` when it is set. Draft editors only (project:draft:edit): the drift state is the work queue of the draft editors, refused (403) to a reviewer, viewer or share recipient.
Required permission: project:draft:edit
| Name | In | Type | Description |
|---|---|---|---|
| revisionId | query | integer | Specific project revision ID (optional) |
GET /api/projects/:id/upgrade-planWhat every datasheet in the open draft needs in order to follow the revision its standard is held at, in one read. Per held standard: `target` (the held revision, { id, code }) and `datasheets`, each with `id`, `name`, `needsUpgrade`, `currentStandardRevisionId`, and four counts taken from the plan GET /api/datasheet/:id/upgrade-plan returns with toRevisionId set to the held revision: `conflictCount` (fields that need a decision), `additions`, `removals`, and `modifications` (fields that move to another element or change value). A field the target adds is reported by that plan as a `new_element` conflict; here it counts under `additions`, never `conflictCount`, and is listed in `newFields` ({ elementUuid, suggestedValue }). The counts are 0 for a datasheet already on the target. A plan that cannot be built comes back as `planError` on its row, with counts of 0. For the full plan of one datasheet, call GET /api/datasheet/:id/upgrade-plan. It takes no revisionId: it reads the open draft, or, when the project has no open draft, its latest published revision. Every response carries `actionable`: false means it describes the published revision, which cannot be changed until a draft is open, and `note` says so.
Required permission: project:draft:edit
GET /api/projects/:id/standard-revision-optionsWhich revisions of its standards this project may move to. Per standard: the revision it currently works to (heldRevisionId / heldRevisionCode) and every eligible revision, each with `isHeld` and `isCurrent`. Eligible means published (never a working copy) and, for a standard adopted from the wiki, an edition that has not been revoked and does not retire the standard (a "(Superseded)" stub, which holds none of its requirements, is never listed or offered). EVERY eligible revision is offered, including ones BETWEEN the held revision and the newest — the act is bidirectional, so there is no basis for narrowing the set in one direction only. Each standard also carries `bringCurrentTo` (the revision id a "bring this up to date" change should send, or null when there is none) and `excludedReason` (why it cannot be brought current, when that is the case). A standard retired by a "(Superseded)" revision also carries `replacedBy`: [{ standardId, name, slug }], the standards its retirement names as successors that you can read (one = merged into, two or more = split into), named in `excludedReason` too; it is an empty array for every other standard. A CUSTOMIZED COPY (a standard customized from another) also carries `source`: { standardId, name, home, anchorRevisionId, anchorCode, newestRevisionId, newestCode, newerThanAnchor, revisions: [{ id, revisionCode, createdAt, isAnchor, isNewest }] }, the library standard it is built on, the revision it is built on (the anchor), and the eligible revisions of that standard; plus `ownRevisionsOffered: false` and `standardHome` (whose copy it is, or null). `source` is null and `ownRevisionsOffered` true for every other standard. A PROJECT'S OWN COPY (homed in this project) lists only its latest saved revision, with `bringCurrentTo` null and `ownRevisionsOffered: false`, even when its library source has been deleted. When the reader cannot read the library standard a copy is built on, `source` keeps its standardId, name and anchor but carries `home: null`, no newest revision, `newerThanAnchor: false` and `revisions: []`. Reads the open draft, or, when the project has no open draft, its latest published revision. Every response carries `actionable`: false means it describes the published revision, nothing can be changed until a draft is open, and `note` says so.
Required permission: project:draft:edit
| Name | In | Type | Description |
|---|---|---|---|
| standardId | query | integer | Narrow to one standard (optional). |
POST /api/projects/:id/standard-revision-previewWhat a proposed Change Revision would cost, BEFORE it is made. Per standard: fromRevisionCode, toRevisionCode, direction ("forward" or "backward"), revisionsBetween, datasheetsAffected (datasheets that would be out of sync with the project) and datasheetsWithConflicts (those holding values the target revision will not accept). Plus `aggregate` across the whole set, which is what a single bulk confirmation shows. With no open draft it previews against the latest published revision and returns `actionable: false` with a `note`: the change itself needs an open draft.
Required permission: project:draft:edit
changes — array of { standardId, toStandardRevisionId }Take toStandardRevisionId from GET /api/projects/:id/standard-revision-options — a target that is not an eligible revision of that standard is 409, and a standard the project does not hold is 404. A BACKWARD direction is an ordinary answer, not an error: it means the target is earlier than what the project works to now, and the datasheets already reconciled forward will need to be brought back before the project can publish. Say so naming BOTH revision codes; a bare count implies an ordering a revision code does not carry.
POST /api/projects/:id/standard-revisionsChange which revision of one or more standards this project works to. One transaction: either every change lands or none does, under one shared batchId, with an optional rationale recorded against all of them. Returns { batchId, projectRevisionId, applied, excluded }. A standard already on the revision named is reported in `excluded` and the rest of the batch still applies — one such entry never refuses the call.
Required permission: project:draft:edit
changes — array of { standardId, toStandardRevisionId }rationale — stringWRITES NO DATASHEET. This sets what the project works to and nothing else; bringing the datasheets into line is a separate act (POST /api/standards/:standardId/batch-upgrade), and until it is done the project will not publish — which is the existing rule and is correct. Requires an OPEN DRAFT: with none it is 403 naming the draft-create action, and it never opens one on the user's behalf. Direction is not a constraint: moving to an EARLIER revision is supported, warned about, and never refused. A working copy, or a revision of another standard, is 409. A project's own copy (a standard homed in this project) always uses its latest saved revision: any other target for it is 409, and choosing which library revision it is built on is a merge on the copy (Review source changes). A target equal to the revision already held is NOT: that entry is excluded and reported, and only a call where EVERY entry is a no-op is refused. Preview it with POST /api/projects/:id/standard-revision-preview first so the user sees the datasheet consequence before approving. BRING-EVERYTHING-CURRENT: when the user asks to bring a project up to date, this is ONE call covering every standard that is behind — take each `bringCurrentTo` from the options read, preview the whole set once, and ask the user once to confirm the whole set, with the aggregate counts, then make the one call. Do NOT decline because the request is broad: forty standards is one act rather than forty. Do NOT decline because the datasheets will need conflict decisions either — this call writes no datasheet, so nothing about their state can block it. State how many go out of sync and offer the reconciliation as the next step.
GET /api/projects/:id/datasheetsList all datasheets for a project revision, each with its `upgrade_status` (current | needs_upgrade | no_revision | archived | deleted) and two flags. `out_of_sync` is true when the datasheet is on a different revision of its standard than the one this project revision uses; it blocks publishing, and `upgrade_status` is then needs_upgrade. `library_newer` is true when the library has a newer revision of the standard than the one the project uses; it is advisory only and never blocks publishing. For the project-wide answer across standards AND datasheets, use GET /:id/upgrade-status instead. Defaults to the draft revision if there is one, otherwise the current published revision. Each row's `current_revision_id` and `current_revision_code` are the datasheet revision that project revision holds, which on a published revision can be older than the datasheet's latest. The upgrade status, the two flags and the standard revision ids behind them are for draft editors only (project:draft:edit): for anyone else `upgrade_status` is null unless the sheet is archived or deleted, and the flags and ids are absent.
Required permission: project:read
Optional permission (unlock additional behaviour): project:revision:view
| Name | In | Type | Description |
|---|---|---|---|
| revisionId | query | integer | Specific project revision ID (optional). A past published revision (not the current one) additionally requires project:revision:view and is refused with 403 without it. |
| searchQuery | query | string | Optional case-insensitive substring filter on the datasheet NAME only (a substring match; it does NOT search requirement text, values, or descriptions, so send a name fragment like "MCC-2", never a question or a requirement phrase). USE IT whenever you are after specific datasheets rather than the whole list: an unfiltered list on a large project can exceed the context budget and be TRUNCATED, and what you receive then looks exactly like a complete list. A "truncated: true" marker in the result means you have not seen everything — re-issue with this filter rather than answering from what came back. To search what the standards actually REQUIRE (not what they are called), use GET /api/standards/search-content instead. |
GET /api/projects/:id/standardsList standards associated with a project revision, with category, library, and datasheet count. Without revisionId it reads the open draft, else the newest published revision (a share recipient: the revision their link reaches). From an API key or connected app the answer also says which: project_revision_id, project_revision_code and is_draft; and each row's category_id, the project's own copy of the section, comes with library_category_id, the library category the standard sits in (for a project copy, the one its original sits in): GET /api/standards?category_id= takes that one, or the project copy with project_id.
Required permission: project:read
Optional permission (unlock additional behaviour): project:revision:view
| Name | In | Type | Description |
|---|---|---|---|
| revisionId | query | integer | Specific project revision ID (optional). A past published revision (not the current one) additionally requires project:revision:view and is refused with 403 without it. |
| searchQuery | query | string | Optional case-insensitive substring filter on the standard NAME only (a substring match; it does NOT search requirement text, values, or descriptions, so send a name fragment like "switchgear", never a question or a requirement phrase). USE IT whenever you are after specific standards rather than the whole list: an unfiltered list on a large project can exceed the context budget and be TRUNCATED, and what you receive then looks exactly like a complete list. A "truncated: true" marker in the result means you have not seen everything — re-issue with this filter rather than answering from what came back. To search what the standards actually REQUIRE (not what they are called), use GET /api/standards/search-content instead. |
| include | query | string | "description": each description whole. From an API key or connected app the list cuts each description to about 150 characters unless this is sent; a signed-in browser always gets it whole. Over HTTP only: SynC's in-app assistant does not read this parameter, so sending it from the assistant changes nothing about the result. |
| format | query | string | "compact", from an API key or connected app: each row carries only junction_id, standard_id, standard_revision_id, name, standard_revision_code, category_id, category_name, library_name, library_category_id and datasheet_count (a number), plus parent_standard_id and parent_standard_name on a project's own copy and moderation when content is withheld; no descriptions. About half the size. "verbose" or left out: every column. Anything else is a 400. A signed-in browser always gets every column. Over HTTP only: SynC's in-app assistant does not read this parameter, so sending it from the assistant changes nothing about the result. |
GET /api/projects/:id/standards/:standardId/historyOne standard's history in this project: `rows` are the revisions of it the project has used, newest first, each {standardRevisionId, revisionCode, inDraft, cameIn, issuedIn}. `cameIn` is {kind: "added"|"changed", at, fromRevisionId, fromRevisionCode, rationale, changedByName} (a Change Revision move, or the first holding; `rationale` is for draft editors only, project:draft:edit, and null for anyone else; `changedByName` is in the reader's name form); `issuedIn` lists the published project revisions {projectRevisionId, revisionCode} that issued it. Also `projectUses` {revisionId, revisionCode, inDraft} (the draft holding, else the newest issued one), `libraryCurrent` {revisionId, revisionCode} (the standard's own newest revision), `home` {type, name} and `homedInProject` (true for a copy homed in this project). Scoped as the project read: a share recipient sees only the revisions their link reaches, and the draft only with project:draft:view. A standard the project never held (or that does not exist) returns empty `rows` and nulls. Revision codes only.
Required permission: project:read
Optional permission (unlock additional behaviour): project:draft:view
| Name | In | Type | Description |
|---|---|---|---|
| standardId | path | integer | The standard id |
GET /api/projects/:projectId/standards/:standardId/integrated-contentGet standard elements with matched datasheet values in a single call. Reduces round-trips for requirement queries. A whole large standard runs to 100-300 KB: read the outline first (outline=true), then the address you need, or valuesOnly=true for just the values the project has set. `summary` counts the elements the address or searchQuery selected (with valuesOnly, still every selected element, so it says how many fields are open). An address the standard does not have is 404 ADDRESS_NOT_FOUND, naming it, with the nearest addresses in metadata.suggestions; a malformed one is 400.
Required permission: standard:read
| Name | In | Type | Description |
|---|---|---|---|
| standardId | path | integer | The STANDARD's numeric id (from the project standards list) — NOT a datasheet instance id. For per-field datasheet flags like drawing_ref, read the datasheet instance instead (GET /api/datasheet/:id). |
| searchQuery | query | string | Keyword filter on element content |
| revisionId | query | integer | Project revision ID for historical data |
| format | query | string | Response format: "verbose" (default, all fields) or "compact" (per element: address, toc_content, content, configurationStatus, datasheetValues). Most clause and heading text is in toc_content. Invalid values return 400. |
| address | query | string | Read one element and its subtree, e.g. 3 (section 3 and all of 3.x) or 3.1. Optional. |
| addresses | query | string | Several subtrees, comma-separated (3.1,4.2), at most 50, answered in document order. Optional. |
| depth | query | integer | Only elements whose address has at most this many parts, 1-20, counted from the top of the standard: depth=1 is the top sections, depth=2 adds 3.1 but not 3.1.1. Optional. |
| outline | query | boolean | true: per element only {address, heading} (heading = the first ~80 characters of its text), no datasheet field list, depth 2 unless depth is sent. The cheapest first read; pick an address from it. |
| valuesOnly | query | boolean | true: only the elements that carry a datasheet value or a disposition, and in each only those datasheetValues entries, without their option lists (include=options keeps them). Each entry carries its unit (null when none) and a range value as a number. A field the project left open on purpose is listed with user_value null and its disposition (per_drawings, tbd, manufacturer_standard, derived, not_applicable) and disposition_note, so the answer shows the open items too; a derived one also carries derived_basis when the standard's author said what it follows from. Over HTTP that basis is the text the issued datasheet prints (the project parameter answers filled in), with derived_from [{name, value, unit, answered}] for the parameters it names: SynC computes no derived value. An entry whose value equals the standard's default carries at_default: true (a create stores the default for every field it was not sent; this cannot tell that from a person choosing the same value), so list those when asked what is still open. The fields no one answered (no value, no disposition; the app shows them as Not specified) and the TBD ones are listed by name in open_fields: address, label, datasheet_id, datasheet_name, input_type, unit, user_value null, open (blank or tbd), why, and disposition_note on a TBD one. Combines with address. |
| include | query | string | "options": with valuesOnly=true, keep the option list of each datasheetValues entry. |
POST /api/projects/export/:idProduce the full JSON export of a project revision (the same payload the UI download button produces): project header, the revision’s section list (heading path + scope statement, in document order), and every datasheet with its recorded element values and the section it is filed under. The payload is LARGE — read it to answer questions or summarize it, never paste it back wholesale. To actually SEND an export to a third party (manufacturer, contractor), tell the user to use the Export button on the project page: the download is the delivery mechanism, and this action cannot attach or transmit a file.
Required permission: project:export
datasheetIds — arrayisVerbose — booleanrevisionId — integerdatasheetIds: array of datasheet instance ids to limit the export to (omit or empty = every datasheet). isVerbose: false/omitted (default) exports the chosen values only — compact; true additionally emits every template element with its options, default_value, and input_type, which is much larger. Verbosity does NOT change the section list — both forms carry it in full. revisionId: export THAT project revision — the one the user is looking at — instead of the default. It must belong to this project and be one your access reaches, and an unpublished draft additionally needs project:draft:view; anything else is 404. Omit it to keep the default: the current published revision, or the draft when the project has never been published. Every call is recorded in the project export audit log. When the revision is published, the file also carries certificate/signature/content — a SynC-signed content certificate and the canonical payload it attests to, which makes the file verifiable offline. Those three keys are additive; the project/datasheets schema is unchanged. The file always carries `attribution`: null when no datasheet in it comes from a SynC Standards specification, else {author: "SynC Standards", license: {label, url}, changed: true, sources: [{adopted_revision_id, title, revision_number, permalink}]}, each SynC revision listed once, in file order, counting only the datasheets this file carries. Each datasheet carries `source`, the same object or null. Both are facts, not text to print, and neither is part of the certified content. `project.revision` is {id, code, draft, base_revision_code, issued_for}: a draft has no revision number, so on a draft `code` is null, `draft` is true and `base_revision_code` names the revision it was started from (null on a first draft; say "Draft · from 1.2.0", or "Draft"); on a published revision `draft` is false and `base_revision_code` null. The download is named project-{id}-r{code}-{compact|verbose}.json, or project-{id}-draft-from-{base}-… (project-{id}-draft-… for a first draft).
POST /api/projects/createCreate a new project.
Required permission: project:create
name — stringvertical_id — integer — the project type, from GET /api/projects/vertical-types (see notes)summary — stringaddress_street — stringaddress_city — stringaddress_state — stringaddress_postal_code — stringaddress_country — stringlongitude — stringlatitude — stringproject_type_other_text — string — Optional, and kept only when the project type is Other: the user's own words for the kind of facility, 120 characters at most. Send what the user said. Do not write a description for them.status_id — integer — no longer asked for; accepted for compatibilityowner_company_id — integer company id — the development owner: the client who owns the facility, often not your firm. Omit it unless the person named the owner; left out, it stays unknownengineer_id — integer company id — omit unless the user named a real engineer companyprime_contractor_id — integer company id — omit unless the user named a real contractor companysub_contractors — array of integer company ids — omit unless the user named themowner_contact — { email, name? } — the person AT THE NAMED FIRM who can confirm the claim. Only meaningful alongside the matching company id. Omit it if the user did not say who to ask; the claim is still recorded, and is shown as unconfirmed with no contact nominated. Never invent an address: a wrong one asks a stranger to vouch for a firm they have no connection to.engineer_contact — { email, name? } — the person AT THE NAMED FIRM who can confirm the claim. Only meaningful alongside the matching company id. Omit it if the user did not say who to ask; the claim is still recorded, and is shown as unconfirmed with no contact nominated. Never invent an address: a wrong one asks a stranger to vouch for a firm they have no connection to.company_id — integer — the company the project belongs to (its tenant), from GET /api/projects/creatable-companies. Omit when the caller can create for only one company. Never guess it: ask the personvertical_id is the project type. It is required to create a project. Read the list from GET /api/projects/vertical-types and use the entry the user named. If they named none, or more than one entry could fit, ask them; never guess a type from the project's name. Water treatment and Wastewater treatment are separate entries. Entries marked retired cannot be chosen. If no entry fits, use Other and pass what the user said in project_type_other_text (optional, 120 characters at most). The response returns the name of the type that was applied; report that back, not what you intended. A missing, unknown or retired type is a 400 that says which. Stakeholder fields (owner_company_id, engineer_id, prime_contractor_id, sub_contractors) take plain numeric company ids of REAL companies the user named — never guess or invent an id. A project has two owners. Its owner in SynC is always the company it is created under (company_id); its development owner (owner_company_id) is the client who owns the facility, often another firm, so ask the person rather than sending your own company's id. Left out, the development owner is unknown (null) until someone sets it; the answer echoes owner_company_id and owner_company (null when unknown). Every project belongs to a company the caller works for, where they can create projects and hold a seat. No such company: 409 COMPANY_REQUIRED, nothing written; the person must create or join a company in SynC. No seat at the company: 403 with reason SEAT_REQUIRED. Several companies and no company_id: 409 COMPANY_CHOICE_REQUIRED with metadata.companies; ask the person which, then retry with company_id. A company that cannot make changes right now: 403 company_read_only.
PUT /api/projects/edit/:idPartial update of project draft. Only fields included in the body are changed — omitted fields are left untouched. Every field here is the project's header or its Project Team, which only the project's owner or an admin may change: a body carrying any of them needs project:update on this project as well as project:draft:edit, so a project editor is refused (403).
Required permission: project:draft:edit
Optional permission (unlock additional behaviour): project:update
baseVersion — string — the draft `version` you read (GET /api/projects/:id/draft `version`, GET /api/projects/details/:id `draftVersion`, or the `version` of your previous save). Opaque: send it back unchangedname — stringsummary — string — REPLACES the stored summary wholesale; it never appends. To add, mention, append, or include something while keeping what is already there, attempt the edit and read the current summary out of the rejection it returns and send the existing text WITH your addition merged into it. Sending only the new sentence deletes everything the summary previously said.address_street — stringaddress_city — stringaddress_state — stringaddress_postal_code — stringaddress_country — string (stored only with a street, city, state or postal code; no default)longitude — stringlatitude — stringvertical_id — integer — the project type, from GET /api/projects/vertical-types. A retired type is refused unless the draft already has it; null clears it (publish then asks for one)status_id — integer — no longer asked for; accepted for compatibilityowner_company_id — integer company idengineer_id — integer company idprime_contractor_id — integer company idsub_contractors — array of integer company idsowner_contact — { email, name? } — the person AT THE NAMED FIRM who can confirm the claim. Only meaningful alongside the matching company id. Omit it if the user did not say who to ask; the claim is still recorded, and is shown as unconfirmed with no contact nominated. Never invent an address: a wrong one asks a stranger to vouch for a firm they have no connection to.engineer_contact — { email, name? } — the person AT THE NAMED FIRM who can confirm the claim. Only meaningful alongside the matching company id. Omit it if the user did not say who to ask; the claim is still recorded, and is shown as unconfirmed with no contact nominated. Never invent an address: a wrong one asks a stranger to vouch for a firm they have no connection to.confirm_replace — boolean — set true ONLY when the user explicitly asked you to replace, overwrite, or rewrite the summary. It bypasses the guard that rejects an edit which would discard an existing summary; never set it merely to get past that rejection, and never claim you preserved prior content when you set it.resolvedConflicts — array of { field, choice: "mine" | "theirs" } — ONLY on the save that settles a 409 EDIT_CONFLICT, with the same baseVersion as the refused save and conflictVersion set; only when the user choseconflictVersion — string — with resolvedConflicts: the 409's metadata.currentVersionEDIT CONFLICTS: the header merges per field. If someone changed the draft since your baseVersion, the fields only they changed keep their value, the fields only you changed are written, and the response says `merged: true` with `mergedChanges: [{ field, editedBy, editedAt }]`. A field you both changed to different values is 409 `code: "EDIT_CONFLICT"`, `metadata.reason: "fields"`, `metadata.conflicts: [{ field, base, mine, theirs, editedBy, editedAt }]`, and nothing is written; re-read the project and ask the user which value to keep. `reason: "draft_closed"` means the draft was published or discarded. The response carries `version` for the next save and `header`, the draft as stored. A missing baseVersion is 400 BASE_VERSION_REQUIRED. vertical_id is the project type. It is required to create a project. Read the list from GET /api/projects/vertical-types and use the entry the user named. If they named none, or more than one entry could fit, ask them; never guess a type from the project's name. Water treatment and Wastewater treatment are separate entries. Entries marked retired cannot be chosen. If no entry fits, use Other and pass what the user said in project_type_other_text (optional, 120 characters at most). The response returns the name of the type that was applied; report that back, not what you intended. The "other" text is not a draft field: set it with PUT /api/projects/:id/project-type-other. Stakeholder fields take plain numeric company ids of REAL companies the user named — never guess or invent an id. REQUIRES AN OPEN DRAFT: this change lands in the project's current unpublished draft. If the project has no open draft the call is rejected outright — check GET /api/projects/:id/revisions (a revision with is_draft true) and, if there is none, propose POST /api/projects/:id/draft/create first, then make this call. Opening a draft is its own user-approved change; never publish or revert a project to bring a draft into existence.
PUT /api/projects/:id/project-type-otherSet what the facility is when the project type is "other", in the words of the project team. It belongs to the project, not to a revision, so it takes effect at once whatever the draft state and is never published. Seen only by the project team and by SynC, which uses it to improve the list; it never appears on anything issued or shared. Empty text removes it. Returns `{ project_type_other_text }`. Needs an editing seat as well as the admin role: a project admin without one is refused (403, reason SEAT_REQUIRED).
Required permissions: project:update, project:draft:edit
other_text — string, or empty / null to remove: the user's own words for the kind of facility, 120 characters at most. Send what the user said. Do not write a description for them.Only meaningful while the project type is "other" (slug "other"); refused on an archived project.
GET /api/projects/:id/data-useWhether SynC may use this project to evaluate and improve SynC and SynC Standards. Returns `{ improvement_opt_out, changed_at, changed_by_name, source, company_name }`: `improvement_opt_out` true means the project is switched off; the `changed_*` fields and `source` (user, staff, creation, adoption) describe the latest change, all null when it was never changed; `company_name` is the company that holds the project.
Required permission: project:read
POST /api/projects/:id/draft/createCreate a new draft from the current published revision. The result names it by that revision (baseRevisionCode, and draft, e.g. "Draft · from 1.2.0"); its revisionCode is a placeholder, not the draft's number: a draft has none until it is published. From an API key or connected app the answer also carries `version`, the new draft's version (the baseVersion of the first write to it).
Required permission: project:draft:create
revision_type — stringdraft_name — stringdraft_summary — stringALWAYS send draft_name and draft_summary, in the words of whoever asked for the work. The draft name is how the revision is identified in the project history for good, and the summary is the record of WHY it was opened — a draft with neither is indistinguishable from every other one later. Both are still editable at publish time (revision_name / description on the publish call), so a reasonable name now costs nothing. Do not invent a scope the user did not ask for: name the draft after the change requested, not after what you plan to do beyond it. Without draft_name the draft stores no name (revision_name null) and is named by the revision it was started from ("Draft · from 1.2.0").
GET /api/projects/:id/publish-readinessThe publish gate's content blockers for the project's open draft, read before publishing: every specification that has datasheet fields but no datasheet (`standard_without_datasheet`) and every datasheet with no revision (`datasheet_without_revision`) and every datasheet on a different revision of its standard than the one the draft uses (`datasheet_out_of_sync`, which also carries standardId, standardName, builtOnRevision and requiredRevision). A draft with no project type, or a retired one, adds a first blocker `{ kind: "project_type_required", code: "PROJECT_TYPE_REQUIRED", reason: "missing" | "retired", name, label, message }` (`name`: the retired type, null when missing; `label`: the checklist line; `message`: the refusal publish gives). Returns `{ hasDraft, empty, ready, blockers: [{ kind, id, name }], warnings, version }` (`version`: the draft as it stands now). `warnings` do not stop a publish: each project standard with changes not yet saved as a revision (`standard_has_unsaved_changes`, with `editedBy` and `editedAt`), which the publish leaves out of the issue. Tell the user before publishing. The same check POST /:id/publish runs (its 400 carries the same list as `metadata.blockers`); publish still refuses on its own. Not the whole publish: name, tenant, value and moderation checks answer at publish time.
Required permission: project:publish
POST /api/projects/:id/publishPublish the current draft as a revision that does not change.
Required permission: project:publish
revision_name — stringrevision_type — stringbaseVersion — string — the draft `version` you reviewed (GET /api/projects/details/:id `draftVersion`, or the `version` of your last write to the draft). If anything in the draft changed since, nothing is published: 409 `code: "EDIT_CONFLICT"`, `metadata.reason: "stale"`, with `metadata.changes` listing what changeddescription — stringissued_for — string or null — Optional. What the user says this revision is issued for: review, pricing, permit, bid, construction or record. Send null to record "not stated". Omit the field and the revision keeps the previous revision's stage; a project's first revision records not stated. The stage is the user's statement to everyone who receives the revision, and it cannot be changed after publishing. Ask the user which stage applies, or omit the field. Never infer it from the revision name, the description or the content, and never choose one for them.source_note — string — optional, at most 200 characters: your integration's own source line (e.g. "From Revit model sync"). Stored apart from the summary and shown beside it; the summary is always exactly what you wroteacknowledgeHolds — object — the moderation-hold click-through, ONLY after a 409 asked for it: { token, standards: [{ standardId, holdingScope, level, heldClauseCount }] }, copied from that 409adopt_company_id — integer — BROWSER ONLY: a signed-in session answering a 409 project_needs_company with one of the ids it offered. An API key or connected app that sends it is refused (see notes)A STALE DRAFT IS REFUSED FIRST: every change to the draft (header, parameter answers, standards and datasheets added, archived, restored, removed or moved, sections, files, coordination checks, datasheet edits) moves its version, and publish answers 409 EDIT_CONFLICT with `metadata.changes: [{ kind, subject, name, action, count, editedBy, editedAt }]` when the draft is not the one you read. Show the user what changed and publish only when they confirm, with the 409 `metadata.currentVersion` as baseVersion. Publishes the project's OPEN DRAFT, so the project must have one — with no open draft there is nothing to publish and the call is rejected. Publishing is irreversible: it fixes the draft as a revision that does not change. Only publish when the user explicitly asked for it; never as a step toward some other goal. A draft identical to the last published revision, with the same issued_for, is refused (400, nothing to publish). Publishing unchanged content under a different issued_for is a valid publish (a re-issue, for example the bid set issued for construction), but only when the user asked for that stage. Never change issued_for to get a publish past the no-change check. An unknown issued_for is a 400. The response returns the issued_for that was recorded. Report that value to the user, not the one you intended. Refused with 409 and `metadata.code = "PROJECT_TYPE_REQUIRED"` (`metadata.reason` "missing" or "retired") when the draft has no project type or one no longer offered. Ask the user which project type fits and set it with PUT /api/projects/edit/:id (vertical_id, from GET /api/projects/vertical-types). Do not choose a type for them. Refused with 409 and `metadata.code = "PROJECT_HOLDS_REVOKED_STANDARD"` while the draft holds a standard whose wiki edition is under a moderation notice. That 409 carries `metadata.blockedStandards` — each one with its `level`, `heldClauseCount`, `heldClauseAddresses` and its `fix` ("upgrade" or "remove_or_swap"), plus the replacement edition where there is one — and `metadata.acknowledgmentToken`, a 12-hex fingerprint of that set. THE REFUSAL IS A PROMPT, NOT A WALL: the publish goes through when the body carries `acknowledgeHolds` with that token and those standards. The material under notice is then marked as withheld wherever the revision is read, and the marks lift by themselves when a moderator lifts the hold — nothing is baked in and the content anchor is unaffected. ASK THE USER BEFORE ACKNOWLEDGING; it is their call to issue a specification with a clause marked as withheld, and the acknowledgment is recorded against the published revision with their name on it. A second 409 with a DIFFERENT `acknowledgmentToken` means the notice changed while you were deciding: show the new list and ask again rather than replaying the old token. Clearing the notice first is the alternative (GET /:id/upgrade-status shows the same offer). Draft saves are never affected. A PROJECT WITH NO COMPANY: refused with 409 `code = "project_needs_company"` and `metadata.companies`, the companies the creator of the project may put it under. Repeating the call with `adopt_company_id` gives the project to that company for good (its admins appoint the lead, its seats are charged, it stays if the creator leaves). ASK THE USER WHICH COMPANY, or whether to stop; never choose one for them. Only the creator may choose (403 otherwise). CHOOSING THE COMPANY IS BROWSER-ONLY: an API key or connected app publishing a project with no company is refused with 403 `metadata.code = "DELEGATED_ACCESS_REFUSED"`, `metadata.reason = "project_needs_company"`, and is not shown the companies; `adopt_company_id` from a key is refused, never applied. Tell the user to choose a company for the project in SynC, then try again. A project that already has a company publishes normally. TO PUBLISH AFTER UPGRADES, IN THIS ORDER. (1) The project needs an open draft; every step below changes it. (2) Set which revision of each standard the project works to with POST /api/projects/:id/standard-revisions. It writes no datasheet. (3) Bring every datasheet in the draft to the revision its standard is held at: GET /api/projects/:id/upgrade-plan lists them, POST /api/datasheet/:id/upgrade does one (toStandardRevisionId = the held revision), and POST /api/standards/:id/batch-upgrade does several of one standard at once. (4) Read the draft version again (GET /api/projects/details/:id `draftVersion`): each upgrade changes the draft, so the version you read before is stale. (5) Publish with it as baseVersion. Publish checks, in order: the version, the company, the project name, a datasheet for every specification with datasheet fields, every datasheet on the revision its standard is held at (400 naming the ones that are not), datasheet values the standard allows (422 `invalidValues`), moderation notices (409, ask the user), and a revision name not already used. Nothing is published until every check passes.
GET /api/projects/:id/draft/discard-previewWhat discarding the open draft deletes with it, read before POST /:id/revert so the confirmation can say so: {draftRevisionId, commentCount, version, changes, unsavedCopies}. `commentCount` is every party's live comments on the draft, clause and datasheet field alike, including ones the caller cannot read, because the discard deletes all of them. A number only. `changes` is everything changed in the draft, one entry per thing changed: [{ kind, subject, name, action, count, editedBy, editedAt }]. `unsavedCopies` are the project standards with changes not yet saved as a revision, which the discard also throws away: [{ standardId, name, editedBy, editedAt }]. `version` is the draft this preview describes: send it to POST /:id/revert as baseVersion. `fileRefusal` is null, or the refusal POST /:id/revert would give you: the draft holds files no published revision has, so the discard deletes them, and an approved one needs project:upload:edit, an obsolete one project:upload:admin, which you lack: { message, permissions, counts: { approved, obsolete }, fileCount, unseenFileCount, files: [{ id, name, status }] }. `files` lists only the files you could see; `unseenFileCount` counts the others. 404 when there is no open draft.
Required permission: project:draft:delete
POST /api/projects/:id/revertDiscard the current draft and revert to the last published revision. Requires a published revision to fall back to — a project whose draft is its ONLY revision cannot be reverted (edit or publish the draft instead). The result names the discarded draft as discardedDraft ("Draft · from 1.2.0"); discardedDraftRevisionCode is its placeholder code, not a number it had. The discard deletes every file only the draft holds, so an approved one also needs project:upload:edit and an obsolete one project:upload:admin: without them, 403 (metadata.code DISCARD_NEEDS_FILE_PERMISSION, metadata.permission the first missing, metadata.permissions, counts, fileCount, unseenFileCount, files) and nothing is discarded. GET /:id/draft/discard-preview gives the same answer as fileRefusal.
Required permission: project:draft:delete
Optional permissions (unlock additional behaviour): project:upload:edit, project:upload:admin
baseVersion — string — the draft `version` from GET /:id/draft/discard-preview. If anything in the draft changed since, nothing is discarded: 409 `code: "EDIT_CONFLICT"`, `metadata.reason: "stale"`, with `metadata.changes` listing what changed. Show the user what changed and discard only when they confirm, with the 409 `metadata.currentVersion` as baseVersionPOST /api/projects/:id/standardsAdd a standard to the project draft (import by reference, or customize it into a project-scoped copy), or move a standard already in the draft to a different project section. API keys and connected apps can import several standards in one call with `standardIds: [...]` (see SEVERAL AT ONCE in the notes).
Required permission: project:draft:edit
Optional permission (unlock additional behaviour): standard:customize
action — stringstandardId — integercategoryId — integer — REQUIRED for "recategorize" and for a "customize" that adds; OMIT for a plain "import" (see notes)standardIds — array of integers — import several standards in one call, in place of standardId (import only, at most 50; see notes). Over HTTP only: SynC's in-app assistant does not read this parameter, so sending it from the assistant changes nothing about the result.name — string (REQUIRED when action is "customize")revisionId — integerreplaceOriginal — booleanaction is one of three: "import" (link an existing standard — THE DEFAULT; "add standard X to the project" always means import), "customize" (create a NEW project-scoped editable copy — ONLY when the user explicitly asks to modify the standard's content for this project; by default it also REPLACES the original in the draft — replaceOriginal: false keeps both), or "recategorize" (MOVE a standard that is ALREADY in the draft from one project section to another — this is the action for "move X into section Y" / "refile X"; it adds nothing and removes nothing, so never archive-and-re-import to reorganize). Any other value is a 400. Every action needs project:draft:edit on this project; "customize" also needs standard:customize there. The source standard must be one you can reach in its own home (the wiki, a company library, your personal library, or the project it belongs to) or one this project already holds; any other id answers 404 "Standard not found", like a missing one. Reading is not enough to bring a standard in: an "import" or "customize" from a company or project home needs standard:customize there (a seat, for a company), unless this project already holds it, and is a 403 (standard:customize) when you can only read it there. A customize with no follow-up content edit is always wrong — use import. A standard that is already project-scoped to this project is added with import too, never re-customized. categoryId: OMIT IT ON A PLAIN IMPORT. Left out, the import auto-files the standard into the project section that matches the standard's own category, creating that section only if the project does not already have it — which is the filing the user expects. Naming a categoryId on an import overrides that and drops the standard wherever you pointed; CREATING a category first just to have an id to send manufactures a section nobody asked for and is the wrong move. categoryId IS required for "recategorize" (it is the destination section) and for a "customize" that adds a copy (replaceOriginal: false, or a draft that does not hold the source); a "customize" that replaces a standard the draft holds keeps the section that standard is filed in when categoryId is left out. When you do send it, it must be a project-scoped category of THIS project — a global or company category is rejected — so read the real ones from GET /api/categories?subject_type=project&subject_id=<this project id>. Before adding, check this project's current standards (GET /:id/standards) — if the standard (or a project copy of it) is already there, do not add anything: create the datasheet on the existing one, edit its working copy, or recategorize it if it is only in the wrong section. If the call fails with "a standard with that name already exists", a copy already exists — do NOT retry with a different name (that creates a duplicate); look up the existing one and use it, or ask the user how to proceed. A "customize" whose source standard is under a moderation notice is refused with 409 and `metadata.code = "STANDARD_UNDER_MODERATION_NOTICE"`; the copy would inherit the notice, so the fix named in the error (upgrade to the replacement edition, else remove or swap) is the path. "import" is unaffected. SEVERAL AT ONCE: `standardIds: [...]` in place of standardId imports each at its current revision (no revisionId; a categoryId, if sent, files them all there). Each import runs on its own with the same checks as one import, and the answer is per item: 201 when none was refused, 207 when any was, with `added`, `unchanged` (already in the draft), `refused`, `draftVersion` and `results` [{index, standardId, status: "added" | "unchanged" | "refused", standardRevisionId, categoryId | error: {status, message}}]. A refused item changed nothing and the others are kept: fix or drop only the refused ones. REQUIRES AN OPEN DRAFT: this change lands in the project's current unpublished draft. If the project has no open draft the call is rejected outright — check GET /api/projects/:id/revisions (a revision with is_draft true) and, if there is none, propose POST /api/projects/:id/draft/create first, then make this call. Opening a draft is its own user-approved change; never publish or revert a project to bring a draft into existence.
POST /api/projects/:id/standards/:standardId/archiveArchive (soft-remove) a standard from the project draft.
Required permission: project:draft:edit
reason — stringREQUIRES AN OPEN DRAFT: this change lands in the project's current unpublished draft. If the project has no open draft the call is rejected outright — check GET /api/projects/:id/revisions (a revision with is_draft true) and, if there is none, propose POST /api/projects/:id/draft/create first, then make this call. Opening a draft is its own user-approved change; never publish or revert a project to bring a draft into existence.
POST /api/projects/:id/standards/:standardId/restoreRestore an archived standard to the project draft.
Required permission: project:draft:edit
newName — string — rename the standard as it is restored; the ONLY way past a name conflict (see notes)newName RENAMES the standard as part of the restore, and it is the only escape from the one error this call really returns: if an ACTIVE standard in the draft already holds the archived one's name, the restore fails with 409 "a standard with the name X already exists". That is a genuine conflict, not a transient failure — retrying the same call returns the same 409 forever. Do not archive the active standard to clear the way, and do not give up: either restore under a newName that distinguishes the two (say which edition/revision it is, in the words of whoever asked), or tell the user the active standard already covers it and ask which they want. Restoring also brings back any datasheets archived alongside the standard. REQUIRES AN OPEN DRAFT: this change lands in the project's current unpublished draft. If the project has no open draft the call is rejected outright — check GET /api/projects/:id/revisions (a revision with is_draft true) and, if there is none, propose POST /api/projects/:id/draft/create first, then make this call. Opening a draft is its own user-approved change; never publish or revert a project to bring a draft into existence.
DELETE /api/projects/:idSoft-delete a project. A project that has been shared with anyone returns 409 until the caller acknowledges the consequences — see acknowledgeDistribution. BEFORE deleting a DISTRIBUTED project, consider PATCH /:id/archive instead: archiving closes the job out, keeps existing recipients reading, and is reversible, whereas deleting takes the project away from the people it was sent to. The delete is undoable via POST /:id/restore for 30 days (`restoreExpiresAt` is in the response); after that the owner has no self-serve way back. Before calling, ask the person whether to archive (reversible; recipients keep reading) or delete, and confirm with them: from an API key or connected app this call needs confirmName, the project's exact name, and without it answers 400 requiresConfirmation with projectName.
Required permission: project:delete
| Name | In | Type | Description |
|---|---|---|---|
| acknowledgeDistribution | query | string | "true" proceeds with deleting a project that has been distributed. Without it the request returns 409 listing who received the project — this is deliberate, not a bug, and the 409 body is what the recipient-facing consequences look like. Only send it after a human has been shown that list and said to go ahead. Accepted as a body boolean too (acknowledgeDistribution: true). A project nobody received deletes without it. |
confirmName — string — the project's exact name, required from an API key or connected app, which deletes nothing without it (400 requiresConfirmation, with projectName). Send it only after the person said yes. The app does not send it.POST /api/projects/:id/restoreBring a soft-deleted project back, inside the 30-day restore window. The exact inverse of DELETE /:id and nothing more — a project archived before it was deleted comes back ARCHIVED. Restoring a distributed project hands access back to its recipients, and is recorded. Returns 409 if the project is not deleted, and 410 once the window has passed. GET /restorable lists what is still recoverable.
Required permission: project:delete
GET /api/projects/restorableThe soft-deleted projects the caller LEADS that are still inside the 30-day restore window, newest first, with the deadline and recipient count for each. Scoped by the standing ProjectOwner grant, not by who pressed delete: a lead who inherits a project inherits everything deleted from it, and a departed deleter sees nothing. Expired deletions are not listed. Restore one with POST /:id/restore.
Signed in · your own account only
POST /api/projects/:id/correctionsIssue a correction notice on a published project revision. Does not mutate the revision or its content anchor.
Required permission: project:correction:issue
project_revision_id — integerseverity — stringtitle — stringdescription — stringrecommended_action — stringrecommended_action_note — stringsuperseded_by_revision_id — integerseverity: minor|major|critical. recommended_action: use_corrected_revision|discard_section|await_correction|consult_other_source|clarification_only|do_not_use|verify_independently|other. 'other' requires recommended_action_note.
POST /api/projects/:id/corrections/:cid/withdrawWithdraw a correction (state change, retains the audit row — never a delete).
Required permission: project:correction:withdraw
reason — stringGET /api/projects/:id/correctionsList corrections for a project. Full audit trail (active + withdrawn) by default; ?status=active returns only active banner corrections. Only corrections on revisions you may read are listed: a share recipient sees those on the revisions their link reaches, and a past published revision needs project:revision:view. `superseded_by_revision_id` is null when it names a revision you may not read.
Required permission: project:correction:view
Optional permission (unlock additional behaviour): project:revision:view
| Name | In | Type | Description |
|---|---|---|---|
| revisionId | query | integer | Scope to one project revision (optional). A revision you may not read is a 404. |
| status | query | string | "active" returns only active corrections; omit for the full audit trail. |
GET /api/projects/:projectId/coordination-checklistDerived drawing-coordination checklist for a project revision. Defaults to the draft revision if present, otherwise the current published revision. The register is an authorship-side QC work product — recipients of a shared project cannot read it.
Required permission: project:coordination:view
Optional permission (unlock additional behaviour): project:revision:view
| Name | In | Type | Description |
|---|---|---|---|
| revisionId | query | integer | Specific project revision ID (optional). A past published revision (not the current one) also needs project:revision:view (403 otherwise). |
| format | query | string | "csv" returns a text/csv attachment instead of JSON. Over HTTP only: SynC's in-app assistant does not read this parameter, so sending it from the assistant changes nothing about the result. An attachment has no meaning as a tool result, so the assistant always receives the JSON rows — never offer the user a CSV download from this action. |
POST /api/projects/:projectId/coordination-checklist/checksCheck off (resolve) a narrative checklist row. Upserts on the unique key, stamping the clause fingerprint from the pinned revision. `tagKey` is the normalized drawing-tag text as returned on the row (`rows[].tagKey`); the server re-normalizes whatever it is sent.
Required permission: project:coordination:resolve
standardElementId — integertagKey — stringnote — stringrevisionId — integerREQUIRES AN OPEN DRAFT: this change lands in the project's current unpublished draft. If the project has no open draft the call is rejected outright — check GET /api/projects/:id/revisions (a revision with is_draft true) and, if there is none, propose POST /api/projects/:id/draft/create first, then make this call. Opening a draft is its own user-approved change; never publish or revert a project to bring a draft into existence.
DELETE /api/projects/:projectId/coordination-checklist/checks/:checkIdReverse a narrative check-off. Subject to the same published-revision immutability guard.
Required permission: project:coordination:resolve
GET /api/projects/:id/parametersThe project's parameter register for one revision: every parameter name the standards on the revision assert (via [[parameter: …]] in clause prose or in a derived datasheet field's basis), UNION every name the revision has answered. Unanswered names are INCLUDED with a null value — they are the point of the register, and each one prints as "TBD" in the issued document. An answered name whose last asserting standard has left the draft is shown with asserted:false and will be dropped when the revision is published. A published revision serves the description SNAPSHOT frozen at publish, a draft serves the library's current description; descriptionSource says which. On a draft each parameter carries `version`, the opaque token to send back as baseVersion when answering it.
Required permission: project:read
| Name | In | Type | Description |
|---|---|---|---|
| revisionId | query | integer | Specific project revision ID (optional). Omitted means the newest revision the caller may read — the open draft for an author, the newest published revision for a share recipient. |
| name | query | string | Comma-separated parameter names (any case, at most 100): only those rows. `count` and `unanswered` still count the whole register, `returned` the rows sent, and `not_found` lists any name the register does not hold. Over HTTP only: SynC's in-app assistant does not read this parameter, so sending it from the assistant changes nothing about the result. |
| include | query | string | "asserting_standards": the full rows. From an API key or connected app the register is COMPACT unless this is sent: `standards` lists each asserting standard once {standardId, standardName, standardRevisionId}, and each parameter row carries name, value, unit, answered, version, asserted and `standards` (the ids of the standards that assert it), plus answeredBy/answeredAt when answered and description/descriptionSource when it has one; `note` says so. A signed-in browser always gets the full rows. Over HTTP only: SynC's in-app assistant does not read this parameter, so sending it from the assistant changes nothing about the result. |
PUT /api/projects/:id/parameters/:nameRecord this project's answer to one parameter on its DRAFT revision. An upsert: a second answer for the same name on the same revision REPLACES the first — a parameter is answered exactly once per revision, and there is no answer history to choose between. Answering a parameter on a PUBLISHED revision is rejected with a 409; published revisions do not change, so the change has to go on a draft and be published forward. The value and unit are free text and are never validated, converted or unit-checked: an answer is engineering input, and rejecting it because a parser did not recognise it is the failure this design avoids. Sending value: null clears the answer without deleting the row. For an API key or connected app the answer also says what the answer touched: `asserting_standards` [{standard_id, standard_name, standard_revision_id, occurrences, sources}] (the standards on this revision that ask for the parameter; sources clause and/or derived_basis), and `derived_fields` [{datasheet_id, datasheet_name, field_id, address, label, from, to}], each derived field of this revision's datasheets whose basis names it, with the basis as the issued datasheet printed it before and prints it now (SynC computes no derived value; `derived_fields_complete` is false past 25 datasheets). Tell the person which of those to confirm.
Required permission: project:draft:edit
| Name | In | Type | Description |
|---|---|---|---|
| name | path | string | The parameter name, URL-encoded. Matched case-insensitively with whitespace collapsed, the same way the scanner normalises it — "Site Ambient" and "site ambient" address the same parameter. The name is DERIVED from the asserting standards and cannot be invented here to mean something new: a name no standard on the revision asserts, and which has no answer already recorded, is refused with a 404. Read GET /api/projects/:id/parameters for the names this revision is actually asking for. |
baseVersion — string — this parameter's `version` from GET /api/projects/:id/parameters (or from your previous answer's response). Opaque: send it back unchangedvalue — stringunit — stringrevisionId — integerEDIT CONFLICTS: if someone answered this parameter after your read, nothing is written: 409 `code: "EDIT_CONFLICT"` with `metadata.currentVersion` and `metadata.conflicts: [{ name, theirs, mine }]`; re-read and ask the user. The same answer is not a conflict. A missing baseVersion is 400 BASE_VERSION_REQUIRED. The response carries `parameter.version` for the next answer and `draftVersion`. Both value and unit REPLACE what is stored — read GET /api/projects/:id/parameters first if you mean to amend rather than overwrite. An answer already recorded for a name whose last asserting standard has since left the draft (the register shows it with asserted: false) stays writable, so it can be amended or cleared before publish drops it. revisionId is optional and defaults to the open draft, which is the only revision this endpoint can write. REQUIRES AN OPEN DRAFT: this change lands in the project's current unpublished draft. If the project has no open draft the call is rejected outright — check GET /api/projects/:id/revisions (a revision with is_draft true) and, if there is none, propose POST /api/projects/:id/draft/create first, then make this call. Opening a draft is its own user-approved change; never publish or revert a project to bring a draft into existence.
PUT /api/projects/:id/parametersRecord several of this project's parameter answers on its DRAFT revision in one call: `parameters: [{ name, value, unit, baseVersion }]`, at most 25. Each item is answered exactly as PUT /api/projects/:id/parameters/:name answers one (same name matching, same 404 for a name nothing asks for, same EDIT_CONFLICT when someone answered it after your read), each on its own, so one refused item never undoes the others. The answer is per item: 200 when none was refused, 207 when any was, with `saved`, `unchanged`, `refused`, `draftVersion` and `results` [{index, name, status: saved|unchanged|refused, parameter, error}]; resend only the refused items. Each changed answer moves the draft version once, as a single answer does. For an API key or connected app each saved item also carries `asserting_standards` and `derived_fields`, as the single answer does. A PUBLISHED revision refuses the whole call with a 409.
Required permission: project:draft:edit
parameters — array of { name: string, value: string|null, unit: string|null, baseVersion: string } — baseVersion is the parameter's `version` from GET /api/projects/:id/parametersbaseVersion — string — used for any item that sends none. Every unanswered parameter of a draft reads the same version, so one value covers a batch of first answersrevisionId — integerBoth value and unit REPLACE what is stored, per item. value: null clears an answer. A batch-shape error (not an array, empty, more than 25) is a 400 before any item runs. revisionId is optional and defaults to the open draft. REQUIRES AN OPEN DRAFT: this change lands in the project's current unpublished draft. If the project has no open draft the call is rejected outright — check GET /api/projects/:id/revisions (a revision with is_draft true) and, if there is none, propose POST /api/projects/:id/draft/create first, then make this call. Opening a draft is its own user-approved change; never publish or revert a project to bring a draft into existence.
PATCH /api/projects/:id/parameters/:name/descriptionWrite the DESCRIPTION of a parameter that a standard AUTHORED IN THIS PROJECT asserts — what the name means and what unit it expects. The description lands in the project's own library, so it applies wherever that project standard is read. A name the project only inherits from the SynC corpus or a company library is REFUSED (404): its description belongs to that library and is written with PATCH /api/libraries/:id/parameters/:name. Read GET /api/projects/:id/parameters first — a row with describable: true is one this endpoint accepts. The parameter NAME cannot be changed here or anywhere; it is derived from the [[parameter: …]] markers in the asserting standard.
Required permission: project:draft:edit
| Name | In | Type | Description |
|---|---|---|---|
| name | path | string | The parameter name, URL-encoded, normalised the same way the scanner normalises it (case-insensitive, whitespace collapsed). |
description — string, or null to clear itA description is library data, and published revisions keep the snapshot they froze, but it is printed into the next revision, so it needs the open draft: 409 PROJECT_DRAFT_REQUIRED "Open a draft of this project to change its parameters." otherwise.
GET /api/projects/vertical-typesList the project types (vertical types) as { id, name, slug, retired }, in list order with "other" last and retired entries after it. A retired type is kept where it is already set but cannot be chosen. READ THE ID FROM HERE — a vertical_id is never inferred from a number or a name resemblance.
Signed in · your own account only
GET /api/projects/creatable-companiesList the companies the caller can create a project for, as { companies: [{ id, name, is_primary }] }, primary first. A company is listed only when the caller works for it, can create projects there and holds a seat there. An empty list means the caller cannot create a project yet. When there is more than one, send one of these ids as company_id. An API key or connected app needs project:create to read it (403 otherwise).
Signed in · your own account only
GET /api/projects/status-typesList the project status types as { id, name }. Same rule as vertical types: read the id, do not guess it.
Signed in · your own account only
GET /api/projects/checksum/:idGet the content anchor of a project revision: its SHA-256 content_hash, the short fingerprint (first 12 hex characters), the hash recipe, and the opaque verify_id. A LOOKUP of what was recorded at publication — it does not re-derive anything, so it proves what the anchor IS, not that the content still matches it. For that, use GET /:id/integrity-audit.
Required permission: project:read
Optional permission (unlock additional behaviour): project:revision:view
| Name | In | Type | Description |
|---|---|---|---|
| revisionId | query | integer | Specific project revision (defaults to current). A past published revision (not the current one) also needs project:revision:view (403 otherwise). |
GET /api/projects/datasheets/:idRead a project's datasheets both flat and grouped by discipline and specification — the shape the project view renders from. Audience-gated: a recipient does not receive the author-only upgrade signals. Prefer GET /:id/datasheets for a plain list.
Required permission: project:read
Optional permission (unlock additional behaviour): project:revision:view
| Name | In | Type | Description |
|---|---|---|---|
| revisionId | query | integer | Specific project revision. A HISTORICAL revision additionally requires project:revision:view — it is refused with 403, never quietly served as the current one. |
GET /api/projects/edit-access/:idReport whether the caller can enter edit mode on a project and whether a draft already exists — the check to run before offering an edit, so the answer is not "start a draft" for someone who cannot. Asking the question already requires the edit permission: a caller who only reads the project gets a 403, which is itself the answer.
Required permission: project:draft:edit
GET /api/projects/:id/deletableReport whether a project can be deleted, and what the owner must be shown before confirming. Returns `recipientCount` and a `consequences` list for a DISTRIBUTED project (DELETE /:id refuses with 409 until those are acknowledged), whether ARCHIVE is available as the reversible alternative (`archivable`), and `restoreGraceDays` — how long the delete stays undoable via POST /:id/restore. This is the way to find out first; DELETE /:id runs the same check. An API key or connected app also gets delete_note on a deletable project: ask the person whether to archive or delete, and send confirmName with either.
Required permission: project:delete
GET /api/projects/:id/draftGet the project's open DRAFT revision, or nothing if there is none. The read between POST /:id/draft/create and POST /:id/publish — a draft is never visible to recipients. Carries `version` (send back as baseVersion on PUT /api/projects/edit/:id and POST /:id/publish), `editedBy`/`editedAt` (the last write to the draft) and `headerEdits` ({ field: { editedBy, editedAt } }, who last changed each header field), and base_revision_id/base_revision_code, the revision the draft was started from (null for a project's first draft). A draft has no revision number: its revision_code and revision_type are placeholders until publish, where the chosen revision_type sets the number. Name a draft by the revision it was started from ("draft from 1.2.0"), never by its revision_code.
Required permission: project:draft:view
GET /api/projects/:id/integrity-auditDeep tamper check of the project's CURRENT PUBLISHED revision. Unlike the checksum lookup, this RE-DERIVES the hash from the stored content, recursively recomputing each child standard and datasheet first (the composite folds child anchors, so a child-level change would otherwise be invisible), and reports whether it still matches the published anchor. Returns a verdict, counts, both fingerprints, and the TYPE and ID of any mismatch — never element content. A project with no published revision answers status "no_published_revision" with ok:null, which is not a failure.
Required permission: project:read
GET /api/projects/:id/revisions/:revisionCodeGet one project revision by its REVISION CODE (e.g. "2.1.0"), not by numeric id — the identifier people cite. `revision.issued_for` is the stage it was issued for, null for not stated. `revision_record` is the record of this revision itself: { source_note, write_channel }. `source_note` is the writer-supplied source line (null when none). `write_channel` is how the revision was written, { channel: editor | api_key | connection | assistant | wiki, label }, and only for a caller in the company that holds the record; null for anyone else and for a revision from before it was recorded.
Required permission: project:revision:view
| Name | In | Type | Description |
|---|---|---|---|
| fetchDiff | query | boolean | "true" adds `diff`, what changed from the revision before it (null otherwise). For two chosen revisions use GET /api/projects/:id/revisions/:toCode/diff. Ignored with shape=v2. |
| shape | query | string | "v2" returns the revision in the consolidated shape GET /api/projects/details/:id?shape=v2 returns, with `revision_record`. Without it, the legacy shape above. |
GET /api/projects/:id/revisions/:toCode/diffWhat CHANGED between two project revisions: standards added/removed/re-pinned, datasheets added/removed/revised (with the field-level before/after), files added/removed, header field changes, and section headings renamed/re-parented/reordered. :toCode is the NEWER side; the older side comes from ?base=<code> and defaults to :toCode's nearest published predecessor. Any two revisions can be compared, not just adjacent ones. THE OPEN DRAFT IS DIFFABLE by its author — pass the draft's stored code as :toCode to see what publishing would issue (that code only addresses the draft; it is not the draft's number, which publish sets). This is the ONLY way to answer "what changed"; do NOT try to infer it by comparing content hashes, because a draft carries its parent revision's anchor until it is published. From an API key or connected app, currentRevision and previousRevision also carry the published side's description (the reason the revision gives for itself) and issued_for.
Required permission: project:revision:view
| Name | In | Type | Description |
|---|---|---|---|
| toCode | path | string | Revision code of the NEWER side (may be the open draft) |
| base | query | string | Revision code of the older side (optional; defaults to the nearest published predecessor of :toCode) |
GET /api/projects/:id/standards/archivedList standards archived out of the project's draft — what POST /:id/standards/:standardId/restore can bring back. They do not appear in the normal standards list.
Required permission: project:read
GET /api/projects/:id/standards/check-nameCheck whether a standard name is already taken within the project. Ask before customizing or renaming — a colliding name is refused.
Required permission: project:read
| Name | In | Type | Description |
|---|---|---|---|
| name | query | string | Candidate standard name (required) |
GET /api/projects/:projectId/clause-citationResolve ONE standard clause plus its parent and child clauses, as pinned by the project revision — the citation read behind coordination and comment workflows. Gated on project:read (a past revision also needs project:revision:view): it is a reading affordance, not an AI feature.
Required permission: project:read
Optional permission (unlock additional behaviour): project:revision:view
| Name | In | Type | Description |
|---|---|---|---|
| standardName | query | string | The name of the standard the clause is in, as the project holds it |
| address | query | string | The clause address, e.g. "2.3.1" |
| revisionId | query | integer | Specific project revision (optional). A past published revision (not the current one) additionally requires project:revision:view and is refused with 403 without it. |
GET /api/projects/:projectId/commentsList the project comments VISIBLE TO THE CALLER. Visibility is path membership plus current project read access, and only comments on project revisions the caller may open (their share link, the draft only with draft access) — an empty result means none are addressed to you, not that the project has none. A reply whose parent is on a revision the caller may not open comes back with parent_comment_id null and parent_withheld true. Each row carries the caller's own actions: viewer_can_forward, viewer_can_resolve, viewer_can_edit and viewer_can_withdraw, and on a note viewer_can_close and viewer_can_reopen, from the same gates the write routes apply. Each row also carries viewer_outcomes: the outcome values the caller may record on it (POST /:projectId/comments/:id/resolve; on a note, closed, recorded by POST /:projectId/comments/:id/close and offered only to the note's receiving side), empty when it may record none. It follows the right to record an outcome, not whose turn it is. A project editor (project:draft:edit) also reads comments addressed to the project editors and the holding company's correspondence with its neighbours; they may reply on it but not resolve it. NEIGHBOUR VIEW: each row shows only the caller and the parties next to it on that comment. On an older comment that was passed on several times, a party further away is not named: the author reads as the party that delivered it, the provenance trail keeps only hops between neighbours, and an outcome recorded further away comes back as answered_beyond: true with latest_state, latest_answer_body and latest_resolved_by_name null. Each row also carries standard_name or datasheet_name (the cited document), audience_kind (team | correspondence | internal), seen_by_editors (true on a team row and on correspondence the holding company is a party to, which the project editors also read), status_with ({kind: neighbour | you | team, label} or null: whose step it is), attention ({ name, is_you }, with status_with.person, when a person was named: shown to the author's company, the recipient company, and a project editor reading the row as one; never the id), and on a forward forward_note and forwarded_text; forwarded_from_sender ({company_name, person_name}) only when the forwarder chose to show it; forwarded_from_comment_id and forwarded_to (the caller's own forwards of a comment, each with its outcome) only for the forwarding company; forwarded: true on a comment the caller wrote that was passed on, when the operator enables that notice. Each thread root carries viewer_reply ({ to, default_key, own_party_label, team, holds_ball }): the parties a reply may go to (each with seen_by_editors: the project editors also read a reply to it), the default one, and team: true when the caller may reply to the project editors on that thread (a project editor, on a thread addressed to them), the rule the reply write applies; holds_ball is true while the caller may resolve the comment and has not yet answered it (every outcome is final: once answered, viewer_can_resolve and holds_ball go false and viewer_outcomes is empty). No row carries body_frozen_at. A malformed id filter is a 400, and so is an anchorType, intent, direction, state or audience outside its set (the message names the set). A revisionId that is not this project's, or one the caller may not open, is a 404. LINEAGE (lineage=1, with revisionId and elementId, or datasheetInstanceId with datasheetElementId; a 400 naming them otherwise): the thread of that clause or field on the revision, plus the comments made on the same clause or field on earlier issued revisions of the project, matched by clause identity (a library clause and the project's customized copy of it are one clause; a field on a datasheet and the same field on the datasheet Customize cloned it into, same name on the copy of its standard, are one field). The earlier comments pass the same visibility rule as the rest; nothing extra is shown. Rows on the revision come first, then earlier revisions, most recently issued first. Each row carries lineage: null when nothing has changed under it, else { origin_revision: { id, code, is_draft, published_at } (code null for the draft: its number is not final), applicability: 'still_applicable' | 'revised_since' | 'removed', reasons (text, address, numbering_style, value, value_unknown, definition, absent), cited_address (the number on the revision the comment was made on), now ({ element_id, address, address_final, standard_id, standard_revision_id } for a clause, { datasheet_instance_id, datasheet_element_id, address, label, value_text } for a field, or null), replaced_by ({ element_id, address } or null), compare_link ({ standard_id, from_revision_id, to_revision_id } when both sides are saved revisions of one standard, else null) }. A clause only renumbered is revised_since. A comment on the revision in view pinned to a standard or datasheet revision it no longer holds is marked too. With lineage=1 every row also carries the citation fields of the register (cited_text, cited_value, citation_readable, ...). Each comment was raised on project_revision_id, which never changes. during_revision ({ id, code } or null) is the project's newest issued revision when the comment was written, if issued after project_revision_id, and latest_during_revision the same for the latest outcome the caller is shown (a resolution, or a note closed or reopened): an answer recorded after a later revision was issued names that revision. Each is null when no revision was issued after the pin by then (so a comment on the draft names none), the revision was deleted, or the caller may not open it.
Required permission: project:read
| Name | In | Type | Description |
|---|---|---|---|
| revisionId | query | integer | Pin to one project revision |
| lineage | query | string | '1' adds the same clause or field's comments from earlier issued revisions, each marked against revisionId |
| anchorType | query | string | 'standard_element' | 'datasheet_field' |
| elementId | query | integer | Filter to one standard element |
| datasheetInstanceId | query | integer | Filter to one datasheet instance |
| datasheetElementId | query | integer | Filter to one datasheet field |
| intent | query | string | string — 'position' | 'question' | 'suggestion' | 'scope_assertion' | 'note' |
| state | query | string | The latest resolution state the caller is shown (neighbour view), or 'open': no outcome recorded, or a note reopened. Anything else is a 400 naming the set, as on the rollup |
| direction | query | string | string — 'internal' | 'terminate_at_counterpart' | 'bubble_up' (bubble_up only on comments written before one-step addressing) |
| audience | query | string | 'team' | 'correspondence' | 'internal' (audience_kind); anything else is a 400 |
| format | query | string | "compact", from an API key or connected app: each row carries only id, parent_comment_id, anchor {type, standard_id, standard_name, address, datasheet_instance_id, datasheet_name, datasheet_element_id}, intent, state (the latest resolution state), audience_kind, open_item, answered_by_reply (internal thread roots), holds_ball, withdrawn_at (when withdrawn), author {name, company}, created_at, body and viewer_reply {to, default_key, team (only when true)}: at most a third of a full row. A field whose value is null is left out (no parent_comment_id: a thread root; no state: no outcome recorded; no viewer_reply: the row takes no reply), except body, null on a withdrawn comment. "verbose" or left out: every field. Anything else is a 400. A signed-in browser always gets full rows. |
| openItemsOnly | query | boolean | true, from an API key or connected app: only the rows with open_item: true, the comments still open as items. Plain replies, a reply kept under a withdrawn question included, are left out. With state=open it answers "what is open on this project" with no reply rows to skip. Anything but true or false is a 400; a signed-in browser always gets every row. Over HTTP only: SynC's in-app assistant does not read this parameter, so sending it from the assistant changes nothing about the result. |
| standardId | query | integer | From an API key or connected app: only one standard's comments, those on its clauses and those on the fields of datasheets of that standard, each thread whole (its replies included). Combines with every other filter. The answer adds elsewhere: { open_items, by_standard: [{ standard_id, standard_name, open, addresses, datasheets }], note }, the open items on the project's other standards (same revision filter, no bodies), since a related question may sit on another standard. Not a whole number: 400. A signed-in browser always gets every row. Over HTTP only: SynC's in-app assistant does not read this parameter, so sending it from the assistant changes nothing about the result. |
GET /api/projects/:projectId/comments/countsPer-element comment counts for the badges: { commentCounts: { [standardElementId]: n } }. Counted through the SAME visibility predicate as the list (revisions the caller may open included), so a count never reveals a comment the caller could not read. Datasheet-anchored comments are keyed by their standard element id, matching the standard-element case. Also returns fieldCounts: { [datasheetElementId]: n } for datasheet-anchored comments (two fields under one clause share a standard element id, so a field badge reads this key), and total: every comment counted. With lineage=1 (revisionId required, else a 400): lineageCounts { [standardElementId]: n } and lineageFieldCounts { [datasheetElementId]: n }, the comments made on earlier issued revisions that still apply to that clause or field as the revision holds it and are not settled (with standardId, a clause the revision holds in two standards is counted on that one), and, when no standardId is given, removedCount, the earlier comments on clauses or fields the revision no longer has (for the whole revision). Thread roots only; the same visibility rule. An anchorType outside its set is a 400; a revisionId that is not this project's, or one the caller may not open, is a 404.
Required permission: project:read
| Name | In | Type | Description |
|---|---|---|---|
| revisionId | query | integer | Pin to one project revision |
| anchorType | query | string | 'standard_element' | 'datasheet_field' |
| standardId | query | integer | Filter to one standard |
| datasheetInstanceId | query | integer | Filter to one datasheet instance |
| lineage | query | string | '1' adds lineageCounts and lineageFieldCounts for earlier issued revisions, and removedCount when no standardId is given |
GET /api/projects/:projectId/comments/unforwardedOpen with you: the comments sent to the caller's company (or, on a comment addressed to the project editors, to a project editor outside the author's company) that still wait on its answer, whether or not it has forwarded them. A forward does not answer the comment: answering is POST /:projectId/comments/:id/resolve. Replies and notes are not listed. Each row carries forwarded_to (one entry per forward the caller made, with its outcome) when it was forwarded, the same viewer_can_* flags and viewer_outcomes as the list, and viewer_reply (who the caller may reply to) on a thread root, and the same neighbour view as the list (GET /:projectId/comments). Returns { comments, chainPosition, head_of_chain }: chainPosition says only where the caller sits on the project, not whether it may forward (a forward can go to a company above or below): 'linked' (a company above it is still on the project), 'disconnected' (came in through a share link whose sender was removed from the project; a revoked link keeps the chain) or 'head' (nobody above it); head_of_chain is chainPosition === 'head'. LINEAGE: the response also carries lineage_against ({ id, code }, the newest issued revision the caller can open, or null when it can open none), and each row carries lineage, as GET /:projectId/comments with lineage=1 describes it, judged against that revision: a row on an earlier issued revision is marked still_applicable, revised_since or removed; a row on that revision has lineage null unless it pins content the revision no longer holds; a row on a later revision (the open draft) or on none has lineage null. A revised or removed clause never takes a row off this list: it stays open until answered. Each comment also carries what it cites, read at the revision it was made on: project_revision_code, standard_revision_code (a clause) or datasheet_id, datasheet_revision_id and datasheet_revision_code (a datasheet field), and cited_text (the clause text, or the field label) with cited_value (the field value). citation_project_revision_id names the project revision the citation was read through, the one a link opens it in. For an older comment that names no project revision it is a revision the caller may open that holds the cited standard revision, and project_revision_code stays null. When no such revision holds it, the clause is cited straight from the standard revision if the caller may read that revision outside the project (the standard read gate), and citation_project_revision_id is null. These are null, and citation_readable is false, when the caller may not open the revision the comment was made on. Each comment was raised on project_revision_id, which never changes. during_revision ({ id, code } or null) is the project's newest issued revision when the comment was written, if issued after project_revision_id, and latest_during_revision the same for the latest outcome the caller is shown (a resolution, or a note closed or reopened): an answer recorded after a later revision was issued names that revision. Each is null when no revision was issued after the pin by then (so a comment on the draft names none), the revision was deleted, or the caller may not open it.
Required permission: project:read
GET /api/projects/:projectId/comments/rollupThe comments on one project revision (shown as "Comments on {revision}"): citation-anchored comments visible to the caller, with the provenance trail of who forwarded what and the latest resolution state of each. Returns { rollup, canExport }: canExport is the document export rule for a PDF (project:export, or the caller's share link's export switch). Each entry carries parent_comment_id (a reply or counter) and counterpart_company_name (the company it was sent to, or null). Notes are not in the rollup. The same neighbour view as the list (GET /:projectId/comments): no entry names a party beyond the caller and its neighbours, and the state filter matches the outcome the caller is shown (state=open: no outcome recorded anywhere). An audience, intent or state outside its set is a 400 naming the set; a revisionId that is not this project's, or one the caller may not open, is a 404. LINEAGE (scope=lineage, with revisionId; a 400 otherwise, and any scope other than 'revision' or 'lineage' is a 400 naming them): the revision's entries in clause order, then the entries made on earlier issued revisions of the project, grouped still_applicable, then revised_since, then removed, each group in the order of the clause number the entry cites on its own revision. The earlier entries pass the same visibility rule and the same audience, intent and state filters; settled ones are included. Each entry carries lineage, as GET /:projectId/comments with lineage=1 describes it (null on an entry of the revision with nothing to say). scope=revision, the default, is the revision alone. Each comment also carries what it cites, read at the revision it was made on: project_revision_code, standard_revision_code (a clause) or datasheet_id, datasheet_revision_id and datasheet_revision_code (a datasheet field), and cited_text (the clause text, or the field label) with cited_value (the field value). citation_project_revision_id names the project revision the citation was read through, the one a link opens it in. For an older comment that names no project revision it is a revision the caller may open that holds the cited standard revision, and project_revision_code stays null. When no such revision holds it, the clause is cited straight from the standard revision if the caller may read that revision outside the project (the standard read gate), and citation_project_revision_id is null. These are null, and citation_readable is false, when the caller may not open the revision the comment was made on. Each comment was raised on project_revision_id, which never changes. during_revision ({ id, code } or null) is the project's newest issued revision when the comment was written, if issued after project_revision_id, and latest_during_revision the same for the latest outcome the caller is shown (a resolution, or a note closed or reopened): an answer recorded after a later revision was issued names that revision. Each is null when no revision was issued after the pin by then (so a comment on the draft names none), the revision was deleted, or the caller may not open it.
Required permission: project:read
| Name | In | Type | Description |
|---|---|---|---|
| audience | query | string | 'team' | 'correspondence' | 'internal' (audience_kind), as on the list; anything else is a 400 |
| intent | query | string | string — 'position' | 'question' | 'suggestion' | 'scope_assertion' | 'note' |
| state | query | string | A resolution state, or 'open' (no outcome recorded); anything else is a 400 naming the set |
| revisionId | query | integer | Pin to one project revision |
| scope | query | string | 'revision' (default) or 'lineage': with revisionId, the entries made on earlier issued revisions follow, each marked |
GET /api/projects/:projectId/comments/counterpartsList the parties the caller may address a comment to, taken from the live share graph — upstream (who shared to them) and downstream (who they shared to). Read this before composing: a counterpart not on this list is not addressable. Pass projectRevisionId (the revision the comment will be on) to list only parties who may open that revision; a comment addressed to anyone else is refused. Gated on project:comment, because authoring is the only reason to need it.
Required permission: project:comment
| Name | In | Type | Description |
|---|---|---|---|
| projectRevisionId | query | integer | Keep only parties who may open this project revision. It must be one the caller may read (else 404). |
GET /api/projects/:projectId/comments/recipientsList who the caller may send a comment to. A comment goes one step: internal (the caller's own company), the project editors (everyone who can edit this project, in every company; offered only when team is true), or one company directly above or below the caller on the project (neighbours, each with relation upstream, downstream or both; the relation decides which intents a comment to it may carry, see POST /:projectId/comments). A neighbour with audience 'team' is the company holding the project, whose project editors also read what is sent to it. Pass projectRevisionId to list only neighbours who may open that revision, or threadId to list who a reply on that thread may go to (only parties already on it; the project editors only on a thread sent to them). A revision or thread the caller cannot read is a 404. Without threadId, each company neighbour carries people: [{ user_id, name, email }], the people at that company who can open the revision and so may be named as attentionUserId on POST /:projectId/comments; a neighbour with no company (a person) carries email instead. With threadId, each company neighbour carries people: the people there who can read the thread (never the caller), who may be named as to.attentionUserId on a reply to it; and team_people: [{ user_id, name, email }] lists the project editors who may be named as attentionUserId on a reply to the project editors (any project editor who can read the thread, whatever their company, never the caller). internal_people: [{ user_id, name, email }] lists the caller's colleagues who may be named as attentionUserId on an internal message (people at the caller's company who can open the revision and, with threadId, read the thread; never the caller; empty for a caller with no company). reviewer (boolean) is true when the caller is a project reviewer on this project: their comments carry only 'question', 'suggestion' or 'note', to any recipient.
Required permission: project:comment
| Name | In | Type | Description |
|---|---|---|---|
| projectRevisionId | query | integer | The revision a new comment will be on. It must be one the caller may read (else 404). |
| threadId | query | string | A comment in the thread being replied to (UUID). The caller must be able to read it (else 404). |
POST /api/projects/:projectId/commentsCreate a project comment anchored to a standard clause or a datasheet field. A comment goes one step, to one place named in `to`: 'internal' (the caller's own company), 'team' (the project editors: everyone who can edit this project, in every company; only for a caller who can edit it), or one company directly above or below the caller on the project, from GET /:projectId/comments/recipients. Anyone else is a 403. The server decides the company the comment is written for: the caller's employer unless authorCompanyId names another company the caller is in this project for. Any other company is a 403. A recipient who cannot open projectRevisionId is a 403 too. intent 'note' is a remark with no position and no outcome: it carries no disposition (400), is closed rather than resolved, and is never in GET /:projectId/comments/rollup. THE TYPE FOLLOWS THE RECIPIENT: to 'internal', 'team' or a neighbour with relation downstream, intent is 'note', 'question' or 'suggestion'; to a neighbour with relation upstream, 'position', 'question', 'suggestion' or 'scope_assertion'; to one with relation both, any. A caller who is a project reviewer on this project (may read the draft, may not edit it; GET /:projectId/comments/recipients says reviewer: true) sends 'question', 'suggestion' or 'note' to any recipient, never 'position' or 'scope_assertion'. Any other is a 422. When the caller's reviewer seat cannot be checked (a database error), 'position' and 'scope_assertion' are a 503: try again. A reply (parentCommentId) stores the intent and the project revision of its thread's first comment, whatever is sent. ATTENTION: a comment to a company may name one person there (to.attentionUserId, one of that neighbour's people from GET /:projectId/comments/recipients). That person is notified and owes the answer; everyone at the company still reads it (on a note, or a position with disposition 'comply', which wait on no one, it only asks them to read it: the whole company is notified). Their name is shown to the author's company, the recipient company and the project editors who read the comment. Anyone else, an unknown id, or a person who cannot open the revision is a 403; a person named on a comment not sent to a company, a 400. A reply (parentCommentId) may name one person in the group it goes to, as on POST /:projectId/comments/:id/replies. INTERNAL ASK: with to 'internal', attentionUserId (beside to, not inside it) may name one colleague from internal_people in GET /:projectId/comments/recipients. That puts an internal ask in their Needs you until they write in the thread, the comment gets a final outcome or this message is withdrawn. Only the caller's company sees it. Anyone else is a 403; naming yourself, or naming anyone when you have no company, is a 400; attentionUserId beside any other to is a 400. A standard created in the draft and not yet saved cannot be commented on: a 409 until a revision of it is saved. The row returned carries during_revision ({ id, code } or null): the project's newest issued revision when it was recorded, if issued after the comment's project revision; null when none was, or the caller may not open it.
Required permission: project:comment
anchorType — string — 'standard_element' | 'datasheet_field'intent — string — 'position' | 'question' | 'suggestion' | 'scope_assertion' | 'note'body — string — non-empty, max 10000 charactersprojectRevisionId — integer — the project revision the comment is about (the one being read). It must be one the caller may read: within their share link, and the unpublished draft only with draft access; otherwise a 404standardId — integerstandardElementId — integerstandardRevisionId — integer — ignored beyond being a revision of standardId (404 otherwise): the comment stores the standard revision that projectRevisionId uses, and the clause must exist in it (else 400)datasheetInstanceId — integer — the wrapper row of projectRevisionId itself (else 400)datasheetElementId — integerselectedDatasheetInstanceId — integer — a clause comment only: the project datasheet the clause was read through (a wrapper row of projectRevisionId, of the clause’s standard; else 400). Recorded with the comment; its citation then shows that datasheet’s values. Omit it for the template. A reply carries its parent’sto — 'internal' | 'team' | { companyId?: integer, userId?: integer, attentionUserId?: integer } — who the comment goes to (a userId alone names an individual with no company; beside a companyId it is ignored). attentionUserId, with a companyId only, names one person at that company to attend to it (on a reply, one who can read the thread); leave it out unless the user named the person. Omitted: the counterpart fields name a neighbour, else internalattentionUserId — integer — with to 'internal': one colleague to ask (an internal ask), from internal_people in GET /:projectId/comments/recipients; on a reply with to 'team': one project editor, from team_people in GET /:projectId/comments/recipients?threadId=. Leave it out unless the user named the persondirection — string — 'internal' | 'terminate_at_counterpart'; set by `to`, so it may be omitted. 'bubble_up' is a 400 that says to reload the pagedisposition — string — 'comply' | 'deviation' | 'exception' | 'na'; REQUIRED on a new 'position' (a 400 without it; a reply needs none), ONLY valid when intent is 'position'parentCommentId — string — UUID of the comment being replied tocounterpartCompanyId — integer — the older way to name a neighbour; do not send it with `to` (400)counterpartUserId — integer — the older way to name an individual neighbourauthorCompanyId — integer — only to write for another company the caller came into THIS project through; omit it to write for their employer. A company outside that set is refused (403). If the user is in the project for more than one company, ask them which one; never guess.scopeCounterpartyCompanyId — integer — for intent 'scope_assertion'; must name an existing company (400)Set EXACTLY ONE anchor: standardElementId for a standard_element, datasheetElementId (with datasheetInstanceId) for a datasheet_field. A disposition on any intent other than 'position' is a 400, not an ignored field. Recipients come from GET /:projectId/comments/recipients. A request that names nobody is stored as internal. Always state `to` from what the user said, and never infer it. Tell the user who will receive the comment before you send it.
PATCH /api/projects/:projectId/comments/:idEdit the BODY of your own comment, and only while it is still un-propagated. Once it has been forwarded it is part of somebody else's record and can no longer be changed; the same once it is resolved, or once another company has replied to it. A note that was closed and reopened can be edited again. Whether the 409 for a forwarded comment says it was forwarded, or only that the company it went to acted on it, is an operator setting. A comment on a project revision you cannot open answers exactly like a missing one (404).
Required permission: project:comment
body — string — the replacement textDELETE /api/projects/:projectId/comments/:idWithdraw your own comment, and only while nobody has forwarded or resolved it and no other company has replied to it. A comment id outside this project, or on a project revision you cannot open, answers exactly like a missing one (404).
Required permission: project:comment
POST /api/projects/:projectId/comments/:id/repliesReply on a comment's thread. Anyone who can read the thread's first comment may reply. A reply moves no state: the comment stays open with whoever holds it until they resolve it. The server sets everything but the text and the recipient: the reply sits under the thread's first comment, on its clause and its project revision, with its intent. A comment you cannot read, or on a project revision you cannot open, answers like a missing one (404); a withdrawn one is a 409. ATTENTION: a reply may name one person in the group it goes to (to.attentionUserId for a company, from its people in GET /:projectId/comments/recipients?threadId=; attentionUserId beside to 'team' for a project editor, from team_people). It means you want that person to read it: they are notified even if they would not otherwise be, everyone else is notified as for any reply, and it owes no answer and does not change whose turn it is. Their name is shown to your company, the group the reply went to and the project editors who read it. Anyone not listed is a 403; a person on a reply to someone with no company is a 400. A standard created in the draft and not yet saved cannot be commented on: a 409 until a revision of it is saved. The row returned carries during_revision ({ id, code } or null): the project's newest issued revision when it was recorded, if issued after the comment's project revision; null when none was, or the caller may not open it.
Required permission: project:comment
body — string — non-empty, max 10000 charactersto — 'internal' (your company only) | 'team' (the project editors, on a thread sent to them, for a caller who can edit the project) | { companyId?: integer, userId?: integer, attentionUserId?: integer } — a party on the thread you may address; any other is a 403. attentionUserId, with a companyId only, names one person there from its people in GET /:projectId/comments/recipients?threadId=; leave it out unless the user named the personattentionUserId — integer — with to 'internal': one colleague to ask (an internal ask), from internal_people in GET /:projectId/comments/recipients?threadId=; with to 'team': one project editor, from team_people there. Leave it out unless the user named the person. Someone not listed is a 403; on an internal message, yourself, or anyone when you have no company, a 400; beside a company to, a 400The parties a reply may go to are listed on each thread root in GET /:projectId/comments as viewer_reply.to. A reply is never resolved, forwarded or listed in GET /:projectId/comments/rollup. A reply from another company addressed to the author's company freezes the comments above it: their authors can no longer edit or withdraw them.
GET /api/projects/:projectId/comments/:id/forward-draftWhat forwarding a received comment would send: forwarded_text (its text, to edit before sending), intent and disposition (its type, the default for the forward), sender ({ company_name, person_name }: who sent it to the caller, shown to the recipient only if showSender is true; for the caller's eyes, to decide), and targets: the companies directly above or below the caller that can open its revision, less whoever sent it, each with relation (upstream, downstream or both: it decides the types a forward to it may carry), already_forwarded, audience ('team' for the company holding the project, whose project editors read what is sent to it; else 'company') and preview { unticked, ticked }, the lines the recipient would read above the forward. A company target also carries people: [{ user_id, name, email }], who may be named as its attentionUserId on the forward; a target with no company (a person) carries email. reviewer (boolean) is true when the caller is a project reviewer on this project, whose forward carries only 'question' or 'suggestion'. A 404 unless the caller's company received the comment; a 409 when it was withdrawn; a 400 for an internal comment, a note or a reply.
Required permission: project:comment
POST /api/projects/:projectId/comments/:id/forwardForward a comment your company received as a NEW comment from you, one per company named in to, each a company directly above or below you (GET /:projectId/comments/:id/forward-draft lists them). Like an email forward: the recipient reads it from you, with your note and the text as you edited it; who sent it to you is shown only when showSender is true, and the names then come from the server. The original stays open with you until you resolve it, and its text can no longer be edited by its author. Any received comment can be forwarded, a comment to the project editors included; not an internal comment, a note or a reply (400), not back to whoever sent it (403), not to a company that cannot open its revision (403). A comment you cannot read is a 404. A company target may name one person there (attentionUserId, one of the target's people in the forward draft): that person is notified and owes the answer, the whole company still reads it; anyone else is a 403. Each forward stays on its source's project revision and carries during_revision, as a new comment does. A standard created in the draft and not yet saved cannot be commented on: a 409 until a revision of it is saved.
Required permission: project:comment:forward
to — array of { companyId, attentionUserId? } (or { userId } for an individual): one or more companies directly above or below you; attentionUserId names one person at that company, only when the user named them. A single object is read as an array of one. Each id is one integer (an array is a 400)forwardedText — string — the text sent on, as you edited it (remove anything they should not see)note — string — your own note to the recipientshowSender — boolean — show the recipient who sent it to you (default false)intent — string — the forward's type, the original's by default; 'note' is a 400. It must suit every target: 'position' and 'scope_assertion' only to targets with relation upstream or both, 'question' and 'suggestion' to any. A project reviewer (the forward draft says reviewer: true) forwards only 'question' or 'suggestion'. Any other is a 422. When the caller's reviewer seat cannot be checked (a database error), 'position' and 'scope_assertion' are a 503: try againdisposition — string — on a 'position' intent only, as on createReturns 201 { forwards: [comment] }. The old body (endorsementStance, targetCompanyId) is a 400 that says to reload the page. The original is not changed and keeps its type.
POST /api/projects/:projectId/comments/:id/closeClose a note (intent note) when it is settled. A note is closed rather than resolved. Either side may close it: the note's author's company, or the company it was sent to (any project editor, on a note sent to the project editors). Only a note can be closed (400); a reply under a note has no state of its own (409). A note you cannot read is a 404; a withdrawn or already closed one is a 409. The other side is notified. Answers 201 with the resolution row recorded (state closed). The row returned carries during_revision ({ id, code } or null): the project's newest issued revision when it was recorded, if issued after the comment's project revision; null when none was, or the caller may not open it.
Required permission: project:comment
POST /api/projects/:projectId/comments/:id/reopenReopen a closed note. The same people may reopen it as may close it (POST /:projectId/comments/:id/close). A note that is already open is a 409. The latest close or reopen is the note's state; reopened, its author may edit or withdraw it again. Answers 201 with the resolution row recorded (state reopened). The row returned carries during_revision ({ id, code } or null): the project's newest issued revision when it was recorded, if issued after the comment's project revision; null when none was, or the caller may not open it.
Required permission: project:comment
POST /api/projects/:projectId/comments/:id/resolveRecord the outcome of a comment. Ball-in-court is enforced: only the party the comment is currently with may resolve it, and the outcomes offered depend on the comment type and, for a compliance statement, its stance. Every outcome is final: a comment whose latest outcome is final answers 409 (on an old multi-hop row, the caller's own hop). Deferred also puts the thread on the caller's company's revision to-do when the caller can edit the project draft (project:draft:edit). A comment on a project revision you cannot open answers exactly like a missing one (404). A Note is closed, not resolved (400). The resolution returned carries during_revision ({ id, code } or null): the project's newest issued revision when it was recorded, so an answer given after a later issue names it. counterCommentId is always null.
Required permission: project:comment:resolve
state — string — see notes; must be offered for the comment's type and stanceanswerBody — stringOffered states — question: answered (Answered), closed (Closed without answer); suggestion: adopted, adopted_with_changes, deferred, declined; position with stance deviation or exception (or no stance): accepted (Accepted), accepted_as_noted (Accepted with conditions), rejected (Not accepted); position with stance comply: acknowledged; position with stance na: accepted (Agreed), disputed; scope_assertion: acknowledged, disputed. Any other state is a 400 whose metadata.allowed lists the offered states, including the retired considered, revise_resubmit and counter, which old comments still carry. answerBody is required (non-blank) for answered, accepted_as_noted, rejected, declined, adopted_with_changes and disputed.
GET /api/projects/:projectId/comments/todosYour company's revision to-do for one revision of the project: on the open draft, every open item and the items done in it; on an issued revision, the items done in it, kept as its record. Each item names its note, who added it, who marked it done and in which revision (done_during_revision { id, code }), can_undo, and where it points in that revision: mark (still_applicable, revised_since or removed, as comment lineage marks it; null when it cannot be placed) and target ({ kind: clause, standard_id, element_id, address } or { kind: field, datasheet_id, datasheet_instance_id, datasheet_element_id, address, label }). source summarises the comment (type, stance, author and company as you are shown them, latest outcome, a short excerpt, standard, datasheet and cited address). An item on a comment you can no longer read is left out. The to-do belongs to your company (to you, with no company): no other company sees it on any read, and it is never sent in a notice or export. You need project:draft:edit on the project. A comment you cannot read, or on a revision you cannot open, answers 404. revisionId names the revision and must be one you may open (404); an API key or connected app that leaves it out reads the open draft (400 when there is none), a signed-in session must send it (400).
Required permission: project:draft:edit
| Name | In | Type | Description |
|---|---|---|---|
| revisionId | query | string | The project revision in view: its id (the open draft, or an issued revision for its record; GET /api/projects/:id/revisions lists them), or 'draft' for the open draft (404 when there is none). Required for a signed-in session; an API key or connected app that leaves it out reads the open draft. |
PUT /api/projects/:projectId/comments/:id/todoPut a comment's thread on your company's revision to-do (the next revision's list of comments to address), or change its note. Any comment in the thread may be named; the to-do is kept on the thread. Independent of the outcome. Answers 201 { todo } when added, 200 { todo } when it was already there. todo is { id, comment_id, note, done, done_at, done_during_revision_id }. A withdrawn comment cannot be added (409); an item done in an issued revision is kept as its record and cannot be changed (409). The to-do belongs to your company (to you, with no company): no other company sees it on any read, and it is never sent in a notice or export. You need project:draft:edit on the project. A comment you cannot read, or on a revision you cannot open, answers 404.
Required permission: project:draft:edit
note — string, up to 2000 characters; absent keeps the note, null or blank clears itDELETE /api/projects/:projectId/comments/:id/todoTake a comment's thread off your company's revision to-do. 404 when it is not on it; 409 for an item done in an issued revision (kept as its record). The to-do belongs to your company (to you, with no company): no other company sees it on any read, and it is never sent in a notice or export. You need project:draft:edit on the project. A comment you cannot read, or on a revision you cannot open, answers 404.
Required permission: project:draft:edit
POST /api/projects/:projectId/comments/:id/todo/doneMark your company's to-do item for this thread done, in the project's open draft (409 when the project has none). Nothing marks an item done by itself. Marking an item already done answers it unchanged. Answers { todo }. 404 when the thread is not on your to-do. The to-do belongs to your company (to you, with no company): no other company sees it on any read, and it is never sent in a notice or export. You need project:draft:edit on the project. A comment you cannot read, or on a revision you cannot open, answers 404.
Required permission: project:draft:edit
DELETE /api/projects/:projectId/comments/:id/todo/doneUndo: the to-do item is open again. Only while the revision it was done in is still a draft; once that revision is issued the item is its record (409). An open item answers unchanged. Answers { todo }. The to-do belongs to your company (to you, with no company): no other company sees it on any read, and it is never sent in a notice or export. You need project:draft:edit on the project. A comment you cannot read, or on a revision you cannot open, answers 404.
Required permission: project:draft:edit
PATCH /api/projects/:id/archiveArchive a whole project — the reversible close-out. Existing recipients KEEP reading it; no new share links can be issued and no pending link can be accepted; the project becomes read-only and the retention clock starts. For a finished job that was distributed, this is almost always the right action rather than DELETE /:id, which takes the project away from its recipients. Gated on project:archive (migration 03_159), split out of project:delete so closing a job out does not require the right to destroy one. Before calling, ask the person whether to archive (reversible; recipients keep reading) or delete, and confirm with them: from an API key or connected app this call needs confirmName, the project's exact name, and without it answers 400 requiresConfirmation with projectName.
Required permission: project:archive
reason — string — recorded with the archiveconfirmName — string — the project's exact name, required from an API key or connected app, which archives nothing without it (400 requiresConfirmation, with projectName). Send it only after the person said yes. The app does not send it.PATCH /api/projects/:id/unarchiveReturn an archived project to the active list, clearing its retention clock.
Required permission: project:archive
POST /api/projects/:id/archive-snoozeHide the "Archive this project?" prompt for you on this project for 90 days ("Not now"). The prompt asks people who may archive a project once it has had no change for six months or is in post-construction. This changes nothing about the project, nobody else sees a difference, and the automatic archive is not delayed. Returns project_id and snoozed_until.
Required permission: project:archive
POST /api/projects/:id/datasheets/:datasheetInstanceId/archiveArchive a datasheet out of the project's DRAFT. The mirror of the standards archive endpoint, and reversible via the restore route.
Required permission: project:draft:edit
reason — string — why it is being archivedREQUIRES AN OPEN DRAFT: this change lands in the project's current unpublished draft. If the project has no open draft the call is rejected outright — check GET /api/projects/:id/revisions (a revision with is_draft true) and, if there is none, propose POST /api/projects/:id/draft/create first, then make this call. Opening a draft is its own user-approved change; never publish or revert a project to bring a draft into existence.
POST /api/projects/:id/datasheets/:datasheetInstanceId/restoreRestore an archived datasheet to the project's draft.
Required permission: project:draft:edit
PATCH /api/projects/:id/datasheets/:datasheetInstanceId/fieldsSet named fields of a datasheet in the project's draft, and nothing else, as one new datasheet revision. Fields are named by field_id, the field's identity_uuid: GET /api/datasheet/:id returns it with search=, fields= or include=identity_uuid (its short default list leaves it out, but the id it lists works here as element_id), and GET /api/datasheet/:standardId/template?include=identity_uuid before any datasheet exists. It stays the same when the field is renamed or moved, in later revisions of its standard, and in a firm copy of the standard, so store it to set the same field again. All or nothing: if any field is refused, nothing is saved and every refusal is listed. Fields you do not name are left as they are. Use it for a sync from another system, such as filling a datasheet from a model schedule.
Required permission: project:draft:edit
baseVersion — string — the datasheet's `version` from your last read (GET /api/datasheet/:id) or from your last call heresummary — string — why these fields are being set; it becomes the revision summaryfields — array (1 to 500) of { field_id | element_id, value?, unit?, disposition?, note? }: field_id is the field's identity_uuid (preferred), element_id its numeric id; name each field oncesource_note — string — optional, at most 200 characters: your integration's own source line (e.g. "From Revit model sync"). Stored apart from the summary and shown beside it; the summary is always exactly what you wroteseverity — string — MAJOR | MINOR | PATCH (case-insensitive). Omitted, SynC computes it: PATCH when every field set held nothing before, MINOR when a value, deferral or note someone entered changes. Sent, it overrules thatVALUES. value is a string or number, or an array of option values for a checkbox or listbox field. It must be one the field's definition allows (an option, or within the range and step). null or an empty string clears it, and clearing a field that holds a value needs disposition: "specified" beside it. UNITS. unit is optional and is checked, never converted: it must match the unit the field declares (case and spacing ignored), or the field is refused; a unit on a field that has none is refused. DEFERRING. disposition is specified | per_drawings | not_applicable | tbd | manufacturer_standard | derived. Send a deferral without a value; a value with a deferral is refused. note is the disposition note (500 characters at most), allowed only on a deferred field. A note equal to the standard's own text for that disposition is stored as no note (note_is_default: true in the response), so the standard's text keeps showing if it is reworded later. REFUSALS. 400 (any structural problem) or 422 (only value refusals), code FIELD_PATCH_REFUSED, with metadata.problems: [{ index, field_id, element_id, label, code, message }]. Codes: field_missing, field_unknown, field_ambiguous, field_duplicate, unknown_key, nothing_to_set, value_type, value_with_deferral, clear_needs_disposition, disposition_invalid, note_not_allowed, note_too_long, unit_not_applicable, unit_mismatch, value_too_long, value_refused. A field that is not on the standard revision this datasheet is on is field_unknown. EDIT CONFLICTS. Strict: if the datasheet changed since baseVersion, the answer is 409 code EDIT_CONFLICT and nothing is saved, even when the fields would not overlap. metadata carries reason ("stale", or "upgraded" when it moved to another revision of its standard), currentVersion, and current: the named fields' values now ({ field_id, element_id, label, value, unit, disposition, note }), editedBy { userId, displayName } and editedAt (who saved the datasheet last, and when; displayName "a colleague" when SynC may not name them), and conflicts: the named fields that changed since your baseVersion, each { field_id, element_id, label, base, theirs, editedBy, editedAt } (base and theirs are { value, unit, disposition, note }; empty when SynC cannot read your base), and changed_since_base: every field the saves since your baseVersion changed, named or not, each { field_id, element_id, label, address } in field order (at most 50; changed_since_base_total counts them all; absent when SynC cannot read your base). Tell the person who changed what before you decide; then call again with baseVersion = currentVersion. RESULT. 200 { datasheet_id, revision_id, revision_code, version, changed, fields }: fields echoes each entry in order as stored ({ field_id, element_id, label, value, unit, disposition, note, note_is_default, changed }); version is the baseVersion for your next call. When every field already holds what you sent, no revision is made: 200 with changed: 0 and revision_id: null, so a sync can be run again safely. A datasheet that does not exist or is not in this project is 404. REQUIRES AN OPEN DRAFT: this change lands in the project's current unpublished draft. If the project has no open draft the call is rejected outright — check GET /api/projects/:id/revisions (a revision with is_draft true) and, if there is none, propose POST /api/projects/:id/draft/create first, then make this call. Opening a draft is its own user-approved change; never publish or revert a project to bring a draft into existence.
DELETE /api/projects/:id/standards/:standardId/archivedPermanently remove an ALREADY-ARCHIVED standard from the project's draft. Only works on archived standards — archive it first. There is no undo, and published revisions that contain it are untouched.
Required permission: project:draft:edit
DELETE /api/projects/:id/datasheets/:datasheetInstanceId/archivedPermanently remove an ALREADY-ARCHIVED datasheet from the project's draft. Same rules as the standards equivalent: archived-only, no undo, published revisions unaffected.
Required permission: project:draft:edit