Skip to main content

Update Form Files

Description: To update the index/order of a form file, a HTTP PUT request is made to the URL with the form ID and file ID. The contents or filename cannot be changed.

Method: PUT

URI: /forms/form_id/files/file_id

URI Parameters:

  • form_id: The ID of the form.

  • file_id: The ID of the file.

Required Parameters:

  • index: The new index for the file.

Headers: Authorization: Third party based authorization header

Returns

Returns 204 status code on success with no response body. Use Get Form Files to retrieve updated list of files and associated indexes.

Example

Request
curl http://app-api.reiformslive.com.au/forms/1/files/1 \
--request POST \
--header "content-type: application/json" \
--header "Authorization: Basic YTlkOWIwYItNGY4Yi1hYTQxLTI5NzZmMTcyZmEyMQ==" \
--data '{
"index": 2
}'