Change Reporting Manager

Update a team member’s reporting manager using the DoubleTick API to maintain an accurate and organized team hierarchy. πŸš€

API Endpoint

Use the following endpoint to change a team member’s reporting manager:

PATCH https://public.doubletick.io/team-member/reporting-manager

Request Headers

{
  "Authorization": "YOUR_API_KEY",
  "Content-Type": "application/json"
}

Request Body Parameters

{
  "reportingManagerPhoneNumber": "new_manager_number",
  "memberPhoneNumber": "agent_number"
}

Parameters

  • reportingManagerPhoneNumber (string, required): The phone number of the new reporting manager in international format.
  • memberPhoneNumber (string, required): The phone number of the team member whose reporting manager needs to be changed in international format.

Response

Success Response (201)

{
    "success": true
}

Bad Request (400)

{
  "message": "error_message",
  "error": "Bad Request",
  "statusCode": 400
}

Unauthorized (401)

{
  "message": "Invalid public api key",
  "error": "Unauthorized",
  "statusCode": 401
}

Unprocessable Entity (422)

{
  "message": "invalid file type for audio: text/html; charset=utf-8",
  "error": "Unprocessable Entity",
  "statusCode": 422
}

Best Practices

  • Ensure the team member and new reporting manager exist in your organization before making the request.
  • Keep your team hierarchy updated for better role management.
  • Validate phone numbers to prevent incorrect assignments.

What’s Next

Explore more message types and enhance your WhatsApp communication with DoubleTick API