Sign in

Modify file labels

documented

Modifies the set of labels applied to a file.

POST /drive/v3/files/{fileId}/modifyLabelsDriveno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://www.googleapis.com/drive/v3/files/{{$file_id}}/modifyLabels" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"labelModifications": [{"labelId": "{{$label_id}}", "fieldModifications": [{"fieldId": "{{$field_id}}", "setTextValues": ["{{$value}}"]}]}]}'