Skip to main content
PATCH
/
api
/
v1
/
assets
UpdateAsset
curl --request PATCH \
  --url https://your-sift-api-url.com/api/v1/assets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "asset": {
    "assetId": "<string>",
    "name": "<string>",
    "organizationId": "<string>",
    "createdDate": "2023-11-07T05:31:56Z",
    "createdByUserId": "<string>",
    "modifiedDate": "2023-11-07T05:31:56Z",
    "modifiedByUserId": "<string>",
    "tags": [
      "<string>"
    ],
    "metadata": [
      {
        "key": {
          "name": "<string>",
          "type": "METADATA_KEY_TYPE_UNSPECIFIED",
          "archivedDate": "2023-11-07T05:31:56Z"
        },
        "stringValue": "<string>",
        "numberValue": 123,
        "booleanValue": true,
        "archivedDate": "2023-11-07T05:31:56Z"
      }
    ],
    "archivedDate": "2023-11-07T05:31:56Z",
    "isArchived": true
  },
  "updateMask": "<string>"
}'
{
  "asset": {
    "assetId": "<string>",
    "name": "<string>",
    "organizationId": "<string>",
    "createdDate": "2023-11-07T05:31:56Z",
    "createdByUserId": "<string>",
    "modifiedDate": "2023-11-07T05:31:56Z",
    "modifiedByUserId": "<string>",
    "tags": [
      "<string>"
    ],
    "metadata": [
      {
        "key": {
          "name": "<string>",
          "type": "METADATA_KEY_TYPE_UNSPECIFIED",
          "archivedDate": "2023-11-07T05:31:56Z"
        },
        "stringValue": "<string>",
        "numberValue": 123,
        "booleanValue": true,
        "archivedDate": "2023-11-07T05:31:56Z"
      }
    ],
    "archivedDate": "2023-11-07T05:31:56Z",
    "isArchived": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The request for a call to AssetService_UpdateAsset to update a single existing asset.

updateMask
string
required

The list of fields to be updated. The fields available to be updated are tags, metadata, archived_date, and is_archived.

asset
object

Response

A successful response.

The response of a call to AssetService_UpdateAsset.

asset
object