Skip to main content
PATCH
Update Colleague

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

Request Body

The request body must be a JSON object containing the colleague ID and the fields to update.
Request Fields:

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

X-API-Key
string
header
required

Body

application/json
id
string
required

ID of the ToBeInvited entry to update.

status
string | null

New status.

email
string<email> | null

New email.

Response

Colleague updated successfully.

id
string

Unique ID of the colleague entry (ToBeInvited table).

name
string

Name of the colleague.

email
string<email>

Email of the colleague.

jobTitle
string | null

Job title.

status
string

Current status (e.g., pending, invited, joined).

createdAt
string<date-time>

Creation timestamp.

companyName
string

Company name.

website
string<url> | null

Website URL.

Invite link.

Redirection link.

photo
string<url> | null

Photo URL.

team
integer | null

Team identifier.

wazClientId
string

Wazper Client ID.

toBeInvitedById
string<email>

Email of the user who created this entry.

latestAction
string<date-time>

Timestamp of the last action.

updatedAt
string<date-time>

Timestamp of last update.