← API reference
Mutation / files

updateFile

Update a file. Only provided fields are changed. Requires file:write permission.

Arguments

File ID to update

Fields to update — only provided fields are changed

Returns UpsertFilePayload!

Explore in a view

Print PrepressProduction Floor
View exact SDL
"""
Update a file. Only provided fields are changed. Requires file:write permission.
"""
updateFile(
  """File ID to update"""
  id: FileID!
  """Fields to update — only provided fields are changed"""
  input: UpdateFileInput!
): UpsertFilePayload! @topic(names: ["files"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.