v1

latestOpenAPI 3.0.02026-08-06194226589.8 KB
Schemas

Update the scripts.

put/api/apps/{app}/schemas/{schema}/scripts

Path parameters

appstring required

The name of the app.

schemastring required

The name of the schema.

Request body

querystring nullable

The script that is executed for each content when querying contents.

queryPrestring nullable

The script that is executed for all contents when querying contents.

createstring nullable

The script that is executed when creating a content.

updatestring nullable

The script that is executed when updating a content.

deletestring nullable

The script that is executed when deleting a content.

changestring nullable

The script that is executed when change a content status.

Response

Schema updated.

_linksobject required

The links.

idstring required

The ID of the schema.

createdBystring required

The user that has created the schema.

lastModifiedBystring required

The user that has updated the schema.

namestring required

The name of the schema. Unique within the app.

type'Default' | 'Singleton' | 'Component' required
categorystring nullable

The name of the category.

isSingletonboolean required

Indicates if the schema is a singleton.

isPublishedboolean required

Indicates if the schema is published.

createdstring date-time required

The date and time when the schema has been created.

lastModifiedstring date-time required

The date and time when the schema has been modified last.

versioninteger required

The version of the schema.

previewUrlsobject required

The preview Urls.

fieldsInListsstring[] required

The name of fields that are used in content lists.

fieldsInReferencesstring[] required

The name of fields that are used in content references.