> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superleap.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Object Record

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

<ParamField header="Authorization" type="string" required>
  Bearer token for authentication, [click here](https://app.superleap.com/settings/apiAccess) to generate one
</ParamField>

<ParamField header="Content-Type" type="string" default="application/json" required>
  application/json
</ParamField>

### Path Parameters

<ParamField path="object_slug" type="string" required>
  The slug identifier for the object type you want to update (e.g., "lead", "user", "opportunity", "communication")
</ParamField>

<ParamField path="record_id" type="string" required>
  The unique identifier of the specific record you want to update
</ParamField>

### Body

<ParamField body="owner" type="string">
  ID of the user who should own this record
</ParamField>

<ParamField body="name" type="string">
  Name or title of the record
</ParamField>

<ParamField body="email" type="string">
  Email address associated with the record
</ParamField>

<ParamField body="phone" type="string">
  Phone number associated with the record
</ParamField>

<ParamField body="status" type="string">
  Current status of the record
</ParamField>

<ParamField body="external_id" type="string">
  External reference ID for integration purposes
</ParamField>

### Example

#### Request

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

#### Response 200 OK

```json theme={null}
{
    "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

```bash theme={null}
curl --location 'https://app.superleap.dev/api/v1/org/objects/lead/record/g1koYv_n1JaKVhos'
```

#### Response 400 Bad Request

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