Update Client Details
Update the details of a specific client.
This endpoint allows you to update the details of a specified client by providing optional fields. The request will modify the client's data based on the provided input.
Example Request:
curl "https://<your-agency>.smartmatchapp.com/api3/clients/<client_id>/" \
-u <token>: \
-X PUT \
-F stype=2 \
-F is_submitted=true \
-F is_archived=false \
-F created="2022-06-02T10:00Z" \
-F assigned_users=1 \
-F assigned_users=2
Form Fields:
stype: (Optional) The type of client, represented by an ID.
is_submitted: (Optional) A boolean value indicating whether the client is submitted.
is_archived: (Optional) A boolean value indicating whether the client is archived.
created: The datetime when the client was created. If not provided, the current datetime will be used. Must follow the ISO 8601 format (e.g., `2022-06-02T10:00Z`).
assigned_users: (Optional) One or more agency user IDs to assign to this client. To assign multiple users, repeat the field name with different values. If you pass an empty value all currently assigned users will be unassigned from the client.
Example Success Response:
HTTP 204 No Content
This response indicates that the client's details were successfully updated, with no content returned.
Base Request:
Method: PUT
Authentication: Basic Authentication. Requires a valid <token> passed.
Rate Limits:
30 requests within 5 seconds
Error Responses:
| 400 | Bad Request |
This error occurs if the provided data is invalid. |
| 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 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., GET or POST). |
| 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" |
Available Fields:
The field ids, labels, types, and available values below are generic samples. Every agency defines its own custom fields, so your agency's own live list appears in its private copy of these API docs.
| Title | Name | Type | |
|---|---|---|---|
| id | Integer Number | ||
| Archived | is_archived | Yes/No | |
| Submitted | is_submitted | Yes/No | |
| Created Date | created | DateTime | |
| Type | stype |
Show Values
|
|
| Assigned To | assigned_users | Staff members are specific to each agency; your agency's own copy of these docs lists them. |