Skip to content
Console
On this page

sylphx auth legal_documents

Every sylphx auth legal_documents command: its argument, its flags and a run line.

The legal_documents commands of Sylphx Auth, as the CLI spells them: the same calls as the legal_documents API page, typed for the shell. Install, sign in and the grammar are on the CLI index.

get

Gets a legal revision, including draft or published state.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx auth legal-documents get orgs/acme/projects/shop/legal_documents/legal-document

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.

ID — The id segment of the new Resource's name; the server assigns one when omitted.

CLI

Shell
sylphx auth legal-documents create --parent orgs/acme/projects/shop --spec.doc-slug … --spec.version … --spec.canonical-text … --spec.document-url … --spec.change-summary …

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

Flags

FlagTypeWhat it does
--parentstringThe parent to create in; defaults to the linked project or the key's scope.
--meta.labelskey=valueCaller-writable, indexed labels (AIP-122 label rules). Repeat the flag for each value.
--meta.annotationskey=valueCaller-writable, unindexed annotations. Repeat the flag for each value.
--meta.display-namestringCaller-writable human-readable name.
--spec.doc-slugstringA stable agreement kind, e.g. terms, privacy, dpa, eula. Required.
--spec.versionstringAn opaque immutable version label, not used for ordering. Required.
--spec.canonical-textstringExact plain UTF-8 text shown to the user. Auth never normalizes it. Required.
--spec.document-urlstringAn external HTTPS reference. Auth's canonical text, not this link, is evidence. Required.
--spec.change-summarystringUser-facing summary of the changes. Required.
--spec.major-reconsent-requiredboolWhether previously accepted versions become insufficient.
--spec.effective-timetimestampWhen a published revision takes effect. Required.

list

Lists all agreement revisions of the project.

PARENT — optional: the CLI fills it from the linked project or the key's scope when it is left out.

CLI

Shell
sylphx auth legal-documents list orgs/acme/projects/shop

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

Flags

FlagTypeWhat it does
--page-sizeintMaximum number of entries to return.
--page-tokenstringToken from the previous page.

publish

Publishes an immutable revision with its configured effective time.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx auth legal-documents publish orgs/acme/projects/shop/legal_documents/legal-document

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