Source: https://atomic-works-test.docs-staging.pageloop.ai/api-reference/assets/patchapi-v1-assets-asset-id

# Partially update an asset (RFC 7386 JSON Merge Patch)

PATCH `https://{tenant}.atomicwork.com/api/v1/assets/{asset_id}`

Partially updates an asset using JSON Merge Patch semantics (RFC 7386). Send only the
fields you want to change under `form_fields`: a field present with a value sets it, a field
present with `null` clears it, and an omitted field is left untouched. Unlike PUT, you do
not need to resend the entire form. Concurrent updates are guarded by optimistic locking and
retried automatically.

## Authorization

#### X-Api-Key (header, string, required)

API key authentication.

## Headers

#### X-Workspace-Id (header, string)

## Path Parameters

#### asset\_id (path, integer, required)

assetId

## Response

#### 200

Successful response

#### Request

```bash cURL
curl -X PATCH 'https://{tenant}.atomicwork.com/api/v1/assets/{asset_id}' \
  -H 'X-Api-Key: <api-key>' \
  -H 'Content-Type: application/json' \
  -d '{}'
```

```javascript JavaScript
const res = await fetch('https://{tenant}.atomicwork.com/api/v1/assets/{asset_id}', {
  method: 'PATCH',
  headers: {
    'X-Api-Key': '<api-key>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({}),
});
const data = await res.json();
```

```python Python
import requests

res = requests.patch(
    'https://{tenant}.atomicwork.com/api/v1/assets/{asset_id}',
    headers={'X-Api-Key': '<api-key>'},
    json={}
)
data = res.json()
```
