RASL
RASL | DashboardContact
RASL | DashboardContact
Instagram
  1. Contacts
RASL
  • Introduction
  • Messages
    • Overview
    • Message Bot Management
      • List Message Bots
      • Get Message Bots Details
    • Send Simple Message
      POST
    • Send Media Message
      POST
  • Templates
    • Overview
    • Template Management
      • Template Bot
        • List Template Bots
        • Get Template Bots Details
      • List Templates
      • Get Template Details
    • Send Authentication Template
      POST
    • Send Template Message
      POST
  • Contacts
    • Overview
    • Create a New Contact
      POST
    • List Contacts
      GET
    • Get Contact Details
      GET
    • Update Contact Information
      PUT
    • Delete Contact
      DELETE
  • Groups
    • Overview
    • Create Group
      POST
    • List Groups
      GET
    • Get Group Details
      GET
    • Update Group
      PUT
    • Delete Group
      DELETE
  • Statuses
    • Overview
    • Create Status
      POST
    • List Statuses
      GET
    • Get Status Details
      GET
    • Update Status
      PUT
    • Delete Status
      DELETE
  • Sources
    • Overview
    • Create Source
    • List Sources
    • Get Source Details
    • Update Source
    • Delete Source
  • Integrations
    • N8N Webhook Integration
    • Webhook Format Reference
    • eCommerce Webhook Integration
      • Webhook Listener
      • WooCommerce Webhook Setup
RASL | DashboardContact
RASL | DashboardContact
Instagram
  1. Contacts

Update Contact Information

PUT
https://getrasl.io/api/v1/{tenant-name}/contacts/{id}

Modify an existing contact's details with full validation and group management#

This endpoint allows you to update any contact field while maintaining data integrity.

Key Features#

Update any contact field individually or in bulk
Automatic validation with unique email/phone checks
Group assignment with auto-creation
Contact type conversion (lead to customer)
Maintains audit trail with timestamps

Business Rules#

Email must remain unique within the tenant (if changed)
Phone must remain unique within the tenant (if changed)
Groups will be auto-created if they don't exist
Original contact ID and tenant cannot be changed

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params

Header Params

Body Params application/jsonRequired

Example
{
  "firstname": "Mahmoud",
  "lastname": "Elsayed",
  "company": "RASL",
  "type": "customer",
  "email": "mahmoud@example.com",
  "phone": "+201XXXXXXXXX",
  "source_id": 2,
  "status_id": 3,
  "description": "Updated client status after successful meeting, moved to active customer",
  "country_id": 101,
  "groups": "Active Customers,Premium Support,Monthly Newsletter"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://getrasl.io/api/v1//contacts/25' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "firstname": "Mahmoud",
  "lastname": "Elsayed",
  "company": "RASL",
  "type": "customer",
  "email": "mahmoud@example.com",
  "phone": "+201XXXXXXXXX",
  "source_id": 2,
  "status_id": 3,
  "description": "Updated client status after successful meeting, moved to active customer",
  "country_id": 101,
  "groups": "Active Customers,Premium Support,Monthly Newsletter"
}'

Responses

🟢200Success
application/json
Body

Example
{
  "status": "success",
  "message": "Contact updated successfully",
  "data": {
    "id": 25,
    "tenant_id": 13,
    "firstname": "Mahmoud",
    "lastname": "Elsayed",
    "company": "RASL",
    "type": "customer",
    "email": "mahmoud@example.com",
    "phone": "+201XXXXXXXXX",
    "source_id": 2,
    "status_id": 3,
    "description": "Updated client status after successful meeting",
    "country_id": 101,
    "group_id": [
      1,
      2,
      3
    ],
    "addedfrom": 15,
    "created_at": "2024-02-08T14:30:25.000000Z",
    "updated_at": "2024-02-08T16:45:30.000000Z"
  }
}
🟠400Bad Request
🟠401Unauthenticated
🟠404Not Found
🟠422Validation Errors
Previous
Get Contact Details
Next
Delete Contact
Built with