API DocsRESTAsset service

UpdateAsset

Update fields on an asset.

PATCH
/api/v1/assets

Request Body

application/jsonRequired

assetobject

updateMask
Required
string

The list of fields to be updated. Currently, the only field available to be updated is tags.

curl -X PATCH "<API_URL>/api/v1/assets" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "asset": {
      "assetId": "string",
      "name": "string",
      "organizationId": "string",
      "createdDate": "2019-08-24T14:15:22Z",
      "createdByUserId": "string",
      "modifiedDate": "2019-08-24T14:15:22Z",
      "modifiedByUserId": "string",
      "tags": [
        "string"
      ]
    },
    "updateMask": "string"
  }'

A successful response.

{
  "asset": {
    "assetId": "string",
    "name": "string",
    "organizationId": "string",
    "createdDate": "2019-08-24T14:15:22Z",
    "createdByUserId": "string",
    "modifiedDate": "2019-08-24T14:15:22Z",
    "modifiedByUserId": "string",
    "tags": [
      "string"
    ]
  }
}