Update Colleague API
API for updating an existing colleague (potential invitee) entry.
PATCH /v1/colleagues-update
This endpoint is used to update an existing colleague entry in your organization.
When it is called, it will modify the specified colleague’s information, typically to change their status or email address.
Endpoint URL
The endpoint URL is https://api.wazper.com/v1/colleagues-update
HTTP Method
PATCH
Headers
Header | Type | Required | Description |
---|---|---|---|
X-API-Key | String | Yes | Your Wazper API Key. |
Content-Type | String | Yes | Must be application/json . |
Accept | String | No | Recommended application/json . |
Request Body
The request body must be a JSON object containing the colleague ID and the fields to update.
Request Fields:
Field | Type | Required | Description |
---|---|---|---|
id | String | Yes | The unique ID of the colleague entry to update. |
status | String | No | New status for the colleague (e.g., “invited”, “deleted”, “joined”). Required if email is not provided. |
email | String | No | New email address for the colleague. Must be a valid email format. Required if status is not provided. |
Example Request (cURL)
Success Response (200 OK)
The response contains the updated colleague entry with the modified information.
Error Responses
-
400 Bad Request - Missing Required Fields:
-
400 Bad Request - Invalid Email Format:
-
401 Unauthorized - API Key Required:
-
401 Unauthorized - Invalid API Key:
-
403 Forbidden - Waz Disabled:
-
404 Not Found - Colleague Not Found:
-
409 Conflict - Duplicate Email:
-
500 Internal Server Error:
Notes
- This API does not consume credits from your account.
- You must provide either a status or email field to update, or both.
- The
latestAction
timestamp is automatically updated when any field is modified. - When updating the email, it must be in a valid email format.
Authorizations
Body
Response
Colleague updated successfully.
The response is of type object
.