Skip to content
Console
On this page

Legal documents

One immutable revision of a project's legal agreement.

One immutable revision of a project's legal agreement.

Service Sylphx Auth · Resource type auth.sylphx.com/LegalDocument · Name pattern orgs/{org}/projects/{project}/legal_documents/{legal_document} · Shape record

Fields

FieldTypeWhat it is
namestringCanonical Resource name.
uidstringServer-assigned immutable ID. Output only.
metaResourceMetaResource metadata.
specLegalDocumentSpecThe immutable agreement text and publication policy. Required.
statusLegalDocumentStatusComputed hash and publication state. Output only.

Methods

Every method of the collection, in the registry's order, with the scope it needs. The full request, response and examples are one link away.

MethodCallWhat it does
GETgetGets a legal revision, including draft or published state.
POSTcreateCreates an immutable draft revision.
GETlistLists all agreement revisions of the project.
POSTpublishPublishes an immutable revision with its configured effective time.

get

Gets a legal revision, including draft or published state.

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/legal_documents/legal-document · scope auth:read · effect read · Request, response and examples

create

Creates an immutable draft revision.

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/legal_documents · scope auth:write · effect write · Request, response and examples

list

Lists all agreement revisions of the project.

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/legal_documents · scope auth:read · effect read · paginated · Request, response and examples

publish

Publishes an immutable revision with its configured effective time.

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/legal_documents/legal-document:publish · scope auth:write · effect write · Request, response and examples