Recover form field

Finds the latest form version that contains the given fieldId and recovers it by updating the form schema

Request

POST https://www.activityinfo.org/resources/form/{formId}/field/{fieldId}/recover

Successful response

application/json

object
database object required
forms array[object] required

Error responses

Status Code Error Code Description
400 FIELD_NOT_DELETED A field with the given id is already present in the latest version of the form schema and cannot be recovered.
400 RECOVER_SUBFORMS_UNSUPPORTED Recovering deleted subform fields is not supported
401 AUTHENTICATION_REQUIRED The request must be authenticated
403 PERMISSION_DENIED The requesting user does not have the EDIT_RESOURCE permission
404 FIELD_NOT_FOUND A deleted field with this id could not be found.
404 FORM_NOT_FOUND The form does not exist, or it has been deleted.

Example

curl -X POST https://www.activityinfo.org/resources/form/ck8pu9ha07/field/carknkldta8h4o3/recover \
  -u anything:APITOKEN
Next item
Relocate form