Skip to main content
PATCH
/
api
/
v1
/
remote-files
UpdateRemoteFile
curl --request PATCH \
  --url https://your-sift-api-url.com/api/v1/remote-files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "remoteFile": {
    "remoteFileId": "<string>",
    "organizationId": "<string>",
    "entityId": "<string>",
    "entityType": "ENTITY_TYPE_UNSPECIFIED",
    "fileName": "<string>",
    "fileMimeType": "<string>",
    "fileContentEncoding": "<string>",
    "storageKey": "<string>",
    "fileSize": "<string>",
    "description": "<string>",
    "videoMetadata": {
      "height": 123,
      "width": 123,
      "durationSeconds": 123,
      "timestamp": "2023-11-07T05:31:56Z"
    },
    "imageMetadata": {
      "height": 123,
      "width": 123
    },
    "audioMetadata": {
      "durationSeconds": 123,
      "timestamp": "2023-11-07T05:31:56Z"
    },
    "createdByUserId": "<string>",
    "modifiedByUserId": "<string>",
    "createdDate": "2023-11-07T05:31:56Z",
    "modifiedDate": "2023-11-07T05:31:56Z"
  },
  "updateMask": "<string>"
}'
{
  "remoteFile": {
    "remoteFileId": "<string>",
    "organizationId": "<string>",
    "entityId": "<string>",
    "entityType": "ENTITY_TYPE_UNSPECIFIED",
    "fileName": "<string>",
    "fileMimeType": "<string>",
    "fileContentEncoding": "<string>",
    "storageKey": "<string>",
    "fileSize": "<string>",
    "description": "<string>",
    "videoMetadata": {
      "height": 123,
      "width": 123,
      "durationSeconds": 123,
      "timestamp": "2023-11-07T05:31:56Z"
    },
    "imageMetadata": {
      "height": 123,
      "width": 123
    },
    "audioMetadata": {
      "durationSeconds": 123,
      "timestamp": "2023-11-07T05:31:56Z"
    },
    "createdByUserId": "<string>",
    "modifiedByUserId": "<string>",
    "createdDate": "2023-11-07T05:31:56Z",
    "modifiedDate": "2023-11-07T05:31:56Z"
  }
}

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 RemoteFileService_UpdateRemoteFile to update a remote file.

remoteFile
object
required
updateMask
string
required

The list of fields to be updated. The fields available to be updated are description and metadata.

Response

A successful response.

The response of a call to RemoteFileService_UpdateRemoteFile.

remoteFile
object
required