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_ |
The request must be authenticated |
403 | COLLECTION_ |
The collection link has been closed, and no uploads can be made. |
403 | MISSING_ |
Users must have ADD_RECORD or EDIT_RECORD to stage an attachment |
404 | COLLECTION_ |
|
404 | FORM_ |
|
409 | ATTACHMENT_ |
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