Update Client File
Move a specific file associated with a client to a different folder, or change its file type.
This endpoint moves a specific file associated with a client to a different folder and sets its file type. If the folder or document_type parameter is left empty, the file is removed from its current folder / loses its type. A parameter you do not send is left untouched.
Example Request:
curl "https://<your-agency>.smartmatchapp.com/api3/clients/<client_id>/files/<file_id>/" \
-u <token>: \
-X PUT \
-F folder=2 \
-F document_type=4
Request Parameters:
folder: The ID of the new parent folder under which the file will be moved. If provided as an empty value, the file will be removed from its current folder.
document_type: The ID of the file type to label the file with, from the agency's File Types catalog (System Settings → File Types). If provided as an empty value, the file loses its type. Archived types and types belonging to another agency are rejected.
Example Success Response:
HTTP 204 No Content
Base Request:
Method: PUT
Authentication: Basic Authentication. Requires a valid <token> passed.
Rate Limits:
5 requests within 10 seconds
Error Responses:
| 400 | Bad Request |
This error occurs if the provided folder or document_type ID is not valid. |
| 401 | Unauthorized |
This error occurs when the <token> is missing, invalid, or the API access is disabled. Possible errors: "not authenticated" or "token is disabled" or "Agency API is disabled" |
| 404 | Not Found |
This error occurs if the client or the file with the specified ID does not exist. |
| 405 | Method Not Allowed |
This error occurs if an HTTP method other than PUT is used (e.g., POST or GET). |
| 429 | Too Many Requests |
This error occurs when the client has sent too many requests in a given amount of time, leading to rate limiting by the server. Possible errors: "too many requests" |
| 500 | Server Error |
Possible errors: "Internal server error" |