Change Manager
1. Overview
This API is used to change the manager of a customer in the CRM system.
- Endpoint:
/api/v6.1/account/change_account_manager - Method:
PUT - Authentication:
X-API-KEYmust be sent in the header
2. Request
2.1. Headers
| Name | Type | Description |
|---|---|---|
X-API-KEY | String | API Key for authentication |
Content-Type | String | application/json |
2.2. Body Parameters
| Field | Type | Description |
|---|---|---|
account_manager_username | string | Username of the new manager |
account_code | string | Customer code for which to change the manager |
2.3. Request Example
curl --location --request PUT 'https://linhpq.getflycrm.com/api/v6.1/account/change_account_manager' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: YOUR_API_KEY' \
--data-raw '{
"account_manager_username": "new_manager",
"account_code": "KH_DEMO_12345"
}'
3. Response
3.1. JSON Response Structure
{
"message": "Update successful",
"account_code": "KH_DEMO_12345",
"account_id": 12345,
"account_manager": 2
}
3.2. Description of Returned Data Fields
| Field | Type | Description |
|---|---|---|
message | string | Update result message |
account_code | string | Customer code |
account_id | integer | Customer ID |
account_manager | integer | ID of the new manager |
4. Notes
- The API requires authentication using
X-API-KEY. - The correct
account_codemust be provided to update the manager. - The new manager must have customer handling permissions in the system.
This document provides detailed information about the API for transferring customer managers, making it easy to integrate into the system.