
# Update Object

```
PUT /api/v1/objects/:id
```

Changes an object's label. The slug can't change.

CLI: [`fob-mdm objects edit`](/docs/cli/objects#objects-edit)

## Path Parameters

| Parameter | Type | Description |
|---|---|---|
| `id` | number | Object id |

## Request Body

| Field | Type | Required | Description |
|---|---|---|---|
| `label` | string | Yes | New display name |

## Example Request

```bash
curl -X PUT "https://mdm.finopsbricks.com/api/v1/objects/1" \
  -H "api-key: $MDM_API_KEY" \
  -H "api-secret: $MDM_API_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "label": "Supplier"
  }'
```

## Response

`200 OK`

```json
{
  "data": {
    "id": 1,
    "slug": "vendor",
    "label": "Supplier",
    "created_at": "2026-11-26T07:20:08.000Z",
    "updated_at": "2026-11-26T07:20:08.000Z"
  }
}
```

## Errors

| Status | Code | When |
|---|---|---|
| 400 | `VALIDATION_ERROR` | `label` is missing |
| 401 | `UNAUTHORIZED` | Missing, wrong or expired API credentials |
| 403 | `FORBIDDEN` | The key lacks `objects:edit` permission |
| 404 | `NOT_FOUND` | No such object in your organization |

See [Errors](/docs/api/errors) for the envelope.
