## Update Tags

**put** `/assets/{assetId}/tags`

Add/delete tags on a specific asset

### Path Parameters

- `assetId: string`

### Query Parameters

- `projectId: optional string`

  The projectId used for ownership resource management. Either to assert ownership or to set the owner of the resource(s)

### Body Parameters

- `add: optional array of string`

  The list of tags to add

- `delete: optional array of string`

  The list of tags to delete

- `strict: optional boolean`

  If true, the function will throw an error if:

  - one of the tags to add already exists
  - one of the tags to delete is not found
    If false, the endpoint will behave as if it was idempotent

### Returns

- `added: array of string`

  The list of added tags

- `deleted: array of string`

  The list of deleted tags

### Example

```http
curl https://api.cloud.scenario.com/v1/assets/$ASSET_ID/tags \
    -X PUT \
    -H 'Content-Type: application/json' \
    -u "$SCENARIO_SDK_API_KEY:SCENARIO_SDK_API_SECRET" \
    -d '{}'
```

#### Response

```json
{
  "added": [
    "string"
  ],
  "deleted": [
    "string"
  ]
}
```
