PatchClientGroup
This method allows you to edit a client group record.
See also Main Page > Fleet / Administration / Client Groups > Contact
Supplementary SWAGGER documentation is available here: https://api.catch-e.com/docs/#/Client%20Groups/patchClientGroup
Permissions
To run this API, the nominated 'web-services' role needs to be given permission.
If you are not actively using the API, leave the permission off for better security.
Go to Roles / APIs and check on ClientGroups:Update.
HTTP Method
Use the HTTP Method 'PATCH' for consuming this web service.
URL Examples
https://api.catch-e.com/fm/client-groups/{client_group_id}
Headers
Body (JSON)
Input Fields (JSON)
{ "name": "clientGroupName", "address1": "addressOne", "address2": "addressTwo", "area": "suburb", "state": "VIC", "postcode": "3173", "contact": "contactName", "abn": "99 888 777 999", "acn": "888 777 999", "billing_email": "accounts@abcgroup.com.au", "client_group_id_external": "987654" } Response Details
Successful Response Example
A successful PATCH request returns the complete updated client group object:
{ "client_group_id": "100015", "client_group_id_external": "987654", "client_group_code": "CLGRP", "name": "clientGroupName", "address1": "addressOne", "address2": "addressTwo", "area": "suburb", "state": "VIC", "postcode": "3173", "contact": "contactName", "abn": "99 888 777 999", "acn": "888 777 999", "billing_email": "accounts@abcgroup.com.au", "_links": { "self": { "href": "https://api.catch-e.com/fm/client-groups/" }, "client_group": { "href": "https://api.catch-e.com/fm/client-groups/100015" } } } Error Response Examples
422 Unprocessable Entity
{ "validation_messages": { "name": { "stringLengthTooLong": "The input is more than 50 characters long" } }, "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unprocessable Entity", "status": 422, "detail": "Failed Validation" } Client Group name is limited to 50 characters.
403 Forbidden
{ "detail": "Forbidden" } You do not have permissions for this request.
Was this helpful?
More in Clients and Client Groups APIs
CreateClientGroupcreateClientsGetClientGroupsGetClientStill need help? Ask the team