Skip to main content
PUT
/
api
/
v1
/
org
/
objects
/
{object_slug}
/
record
/
{record_id}
Update Object Record
curl --request PUT \
  --url https://app.superleap.com/api/v1/org/objects/{object_slug}/record/{record_id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "owner": "<string>",
  "name": "<string>",
  "email": "<string>",
  "phone": "<string>",
  "status": "<string>",
  "external_id": "<string>"
}
'
Update a specific record for a requested object. This API allows you to modify existing record data by providing the object slug and record ID.

Headers

Authorization
string
required
Bearer token for authentication, click here to generate one
Content-Type
string
default:"application/json"
required
application/json

Path Parameters

object_slug
string
required
The slug identifier for the object type you want to update (e.g., “lead”, “user”, “opportunity”, “communication”)
record_id
string
required
The unique identifier of the specific record you want to update

Body

owner
string
ID of the user who should own this record
name
string
Name or title of the record
email
string
Email address associated with the record
phone
string
Phone number associated with the record
status
string
Current status of the record
external_id
string
External reference ID for integration purposes

Example

Request

curl --location --request PUT 'https://app.superleap.dev/api/v1/org/objects/lead/record/g1koYv_n1JaKVho' \
--data '{
    "name":"test Update"
}'

Response 200 OK

{
    "success": true,
    "data": {
        "created_at": 1753886066772,
        "created_by": "g1koYv_uLg11RFM",
        "email": null,
        "external_id": null,
        "id": "g1koYv_n1JaKVho",
        "multiselect_1": [
            "op3"
        ],
        "name": "test Update",
        "owner": "g1koYv_uLg11RFM",
        "phone": "+91-8129987917",
        "phone_no": null,
        "search_field": "test Update",
        "updated_at": 1753949124533,
        "updated_by": "g1koYv_BkJ851eS"
    }
}

Request for Failure Scenario

The Failure Scenario where the record with the provided ID does not exist
curl --location 'https://app.superleap.dev/api/v1/org/objects/lead/record/g1koYv_n1JaKVhos'

Response 400 Bad Request

{
    "success": false,
    "data": {
        "message": "Failed to get record",
        "status_code": 400,
        "error_code": "NOT_FOUND",
        "validation_errors": null,
        "meta_data": "record not found"
    }
}