Get form schema version

Retrieves a specific version of a Form's schema using the schema version number.

Request

GET https://www.activityinfo.org/resources/form/{formId}/schema/versions/{version}

Successful response

application/json

object
id string The immutable CUID for this form. Must be globally unique within an ActivityInfo server required
label string A human-readable label for this form required
schemaVersion string A monotonically increasing version number of this schema assigned by the server upon updates required
databaseId string The id of the database to which this form belongs required
parentFormId string The id of this form's parent, if this form is a subform. Note that subforms can only be created by adding a subform field to the parent form. optional
elements array[object] This form's fields, section headers, and other elements. required

Error responses

Status Code Error Code Description
401 AUTHENTICATION_REQUIRED The request must be authenticated
403 FORBIDDEN Permission denied
404 NOT_FOUND The resource could not be found
410 DELETED The resource has been deleted

Example

curl -u anything:YOUR_API_TOKEN \
  https://www.activityinfo.org/resources/form/ck8pu9ha07/schema/versions/1126
Next item
Get icon