Upload attachment

Uploads an attachment

Before a record can be updated with an attachment, the actual attachment must be uploaded to the server.

Request

POST https://www.activityinfo.org/resources/form/{formId}/record/{recordId}/field/{fieldId}/blob

Response

Status Code Error Code Description
200 OK
401 AUTHENTICATION_REQUIRED The request must be authenticated
403 COLLECTION_LINK_CLOSED The collection link has been closed, and no uploads can be made.
403 MISSING_ADD_OR_EDIT_PERMISSION Users must have ADD_RECORD or EDIT_RECORD to stage an attachment
404 COLLECTION_LINK_NOT_FOUND
404 FORM_NOT_FOUND
409 ATTACHMENT_ALREADY_EXISTS An attachment with this id already exists.

Example

curl -X POST https://www.activityinfo.org/resources/form/ck8pu9ha07/record/ck34ujs6v8/field/carknkldta8h4o3/blob \
  -u anything:APITOKEN