Skip to content
gist.link ↗

updateObjectSettings

Mutation Drive API — POST https://drive.api.gist.link/graphql

S3-level serving controls (Content-Type, Cache-Control, disposition, metadata).

drive:mutation:updateObjectSettings

The calling IAM key must hold this permission (or a wildcard that covers it: drive:mutation:* or drive:*) and the access token must have been minted with audience=drive. See Permissions.

type Mutation {
updateObjectSettings(id: Int!, input: ObjectSettingsInput!): Node!
}
Argument Type Required Description
id Int! Yes —
input ObjectSettingsInput! Yes —

Node! — see the Drive types reference.

Terminal window
curl https://drive.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation UpdateObjectSettings($id: Int!, $input: ObjectSettingsInput!) { updateObjectSettings(id: $id, input: $input) { id type name status } }",
"variables": {
"id": 10,
"input": {
"mimeType": "example",
"cacheControl": "example",
"contentDisposition": "example"
}
}
}
JSON