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 | required | |
label | string | required | |
schemaVersion | string | required | |
databaseId | string | required | |
parentFormId | string | optional | |
elements | array[object] | required | |
id | string | required | |
code | string | required | |
label | string | required | |
relevanceCondition | string | required | |
validationCondition | string | required | |
visible | boolean | required | |
required | boolean | required | |
key | boolean | required | |
type | string | required | |
securityCategoryId | string | optional | |
typeParameters | object | required | |
units | string | optional | |
inputMask | string | optional | |
cardinality | string | optional | |
range | object | optional | |
formId | string | optional | |
items | array[object] | optional | |
formula | string | optional | |
prefixFormula | string | optional |
Error responses
Status Code | Error Code | Description |
---|---|---|
401 | AUTHENTICATION_ |
The request must be authenticated |
403 | FORBIDDEN | Permission denied |
404 | NOT_ |
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