For the complete documentation index, see llms.txt. This page is also available as Markdown.

TermsOfUse

Introduction

TermsOfUse store versioned agreements that authenticated users can accept through TermsOfUseAcceptedUsers.

The text field uses the shared Rich Text HTML format.

Model Definition

Alias

termsOfUse

Capabilities

Admin: List

List all TermsOfUse in administration scope.

Definition

GET /api/administration/terms-of-use

Request Keys

Key
Type
Default
Description

select

string

All fields

Comma-separated fields to return.

limit

integer

No limit

Maximum number of records.

filter

object

No filters

sort

string

Repository order

Comma-separated fields; prefix a field with - for descending order.

Example Request

Example Response

Admin: Show

Show one TermsOfUse in administration scope.

Definition

GET /api/administration/terms-of-use/{termsOfUse}

Route Parameters

Parameter
Type
Description

termsOfUse

integer

Terms of use ID.

Request Keys

Key
Type
Default
Description

select

string

All fields

Comma-separated fields to return.

Example Request

Example Response

Admin: Create

Create new TermsOfUse.

Definition

POST /api/administration/terms-of-use

Request Keys

Key
Type
Default
Description

lang_id

string

System language

Language key. Use en-US for this example.

text*

string

-

Agreement content in Rich Text HTML.

Keys with * are required.

Behavior

The authenticated user is stored as the creating user.

Example Request

Example Response

Admin: Update

Update existing TermsOfUse.

Definition

PUT /api/administration/terms-of-use/{termsOfUse}

Route Parameters

Parameter
Type
Description

termsOfUse

integer

Terms of use ID.

Request Keys

Key
Type
Description

lang_id

string

Language key.

text

string

Agreement content in Rich Text HTML.

Behavior

The authenticated user replaces the creating user stored on the record.

Example Request

Example Response

Admin: Delete

Delete existing TermsOfUse.

Definition

DELETE /api/administration/terms-of-use/{termsOfUse}

Route Parameters

Parameter
Type
Description

termsOfUse

integer

Terms of use ID.

Behavior

Deleting the record also deletes its acceptance records.

Example Request

Example Response

Last updated