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>",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"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"
}
},
"updateMask": "<string>"
}
'{
"remoteFile": {
"remoteFileId": "<string>",
"organizationId": "<string>",
"entityId": "<string>",
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"fileName": "<string>",
"fileMimeType": "<string>",
"fileContentEncoding": "<string>",
"storageKey": "<string>",
"fileSize": "<string>",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"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"
}
}
}Updates an existing remote file using using the list of fields specified in update_mask.
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>",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"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"
}
},
"updateMask": "<string>"
}
'{
"remoteFile": {
"remoteFileId": "<string>",
"organizationId": "<string>",
"entityId": "<string>",
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"fileName": "<string>",
"fileMimeType": "<string>",
"fileContentEncoding": "<string>",
"storageKey": "<string>",
"fileSize": "<string>",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"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"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The request for a call to RemoteFileService_UpdateRemoteFile to update a remote file.
The request for a call to RemoteFileService_UpdateRemoteFile to update a remote file.
Show child attributes
ENTITY_TYPE_UNSPECIFIED, ENTITY_TYPE_RUN, ENTITY_TYPE_ANNOTATION, ENTITY_TYPE_ASSET, ENTITY_TYPE_ANNOTATION_LOG, ENTITY_TYPE_TEST_REPORT The list of fields to be updated. The fields available to be updated are description and metadata.
A successful response.
The response of a call to RemoteFileService_UpdateRemoteFile.
Show child attributes
ENTITY_TYPE_UNSPECIFIED, ENTITY_TYPE_RUN, ENTITY_TYPE_ANNOTATION, ENTITY_TYPE_ASSET, ENTITY_TYPE_ANNOTATION_LOG, ENTITY_TYPE_TEST_REPORT Was this page helpful?