Update the Contact Selected Personnel
Contents
Update Contact Selected Personnel
Base URL
https://apimobile.callproof.com
Endpoint
/api/contacts/{id}/selected-contact-personnel
Purpose
Updates the selected personnel associated with a contact.
Note: The route is registered in the API, and success/error messages exist in configuration, but the handler method for this endpoint was not found in the codebase. Request body fields and exact update behavior could not be confirmed from implementation.
HTTP Method
PUT
Headers
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer access token |
Security
- Yes – Requires Bearer Token authentication.
Parameters
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | integer | Yes | Unique identifier of the contact |
Query Parameters
None.
Request Body
Not specified in the codebase (handler implementation not found).
cURL Example for Android
curl --location --request PUT 'https://apimobile.callproof.com/api/contacts/{id}/selected-contact-personnel' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
cURL Example for iOS
curl --location --request PUT 'https://apimobile.callproof.com/api/contacts/{id}/selected-contact-personnel' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
Successful Response (200)
Expected confirmation when selected personnel are updated successfully (based on configured message text).
| Field | Type | Description |
|---|---|---|
| clientStatusCode | integer | Status indicator for the client (for example, 200) |
| user_id | integer | Identifier of the authenticated user |
| company_id | integer | Identifier of the authenticated user’s company |
| message | string | Confirmation message (for example, "Contact Personnel Updated Successfully") |
| uri | string | Requested resource URI |
Error Responses
| Status Code | Meaning |
|---|---|
| 400 | Bad Request – selected personnel could not be updated |
| 401 | Unauthorized – missing, invalid, or expired Bearer token |
- 400 – An error while updating selected personnel (for example, "Error While Updating Contact Selected Personnel"), or the endpoint may fail if the handler is missing.
- 401 – Authentication failed or the access token is missing/expired.