BoldSales

API Documentation

Delete a user

delete/api/v1/users/{id}

Deletes a user from the organization by providing their unique identifier. Optionally, the user's open pipeline records can be transferred to another user.

Code snippet

curl -X 'DELETE' \
  'https://{yourdomain}/api/v1/users/{id}' \
  -H 'accept: text/plain; x-api-version=1.0' \
  -H 'x-api-key: {your API key}' \
  -H 'Content-Type: application/json; x-api-version=1.0' \
  -d '{
    "transferRecordsTo": {
      "userId": 101,
      "teamId": 12
    }
  }'

Path parameters

idintegerRequiredUnique identifier of the user to be deleted.

Request body

transferRecordsToobject

Specifies the user to whom the records of the deleted user should be transferred. If omitted, the user's records are not transferred.

userIdintegerUnique identifier of the user to whom the records should be transferred.
teamIdintegerUnique identifier of the team to which the user receiving the records belongs.

Example response

200 Success

{
  "message": "User deleted successfully.",
  "data": {
    "id": 101
  }
}