Capability Sources

Rename, move, trash, or restore Google Drive file metadata; never permanently delete

Changed on

Uses the calling member's selected Google account. Perform mutations only when explicitly requested; selecting or discovering a connector does not authorize a write. Do not automatically retry an uncertain mutation.

patch/v1/capabilities/google-workspace/drive-files/{fileId}

Request

  • Base URL
    https://api.openworklabs.com
  • URL
    https://api.openworklabs.com/v1/capabilities/google-workspace/drive-files/{fileId}
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

fileIdstring required

Request body

namestring
addParentIdstring

Move destination folder ID. Also supply removeParentId from current file metadata; folder changes use Google addParents/removeParents query parameters.

removeParentIdstring
trashedboolean

true moves to trash; false restores. Never permanently deletes.

confirmTrashboolean

Required explicit user approval when trashed=true; trashing a folder affects its children.

Response

Google-confirmed result.

oktrue required

Changes

    • info

      response property details/items/path/items/ list-of-types was narrowed by removing types number from media type application/json of response 400

    • info

      added the optional property to the response with the status