← API reference
Mutation / files

upsertStorageBackend

Create or update a storage backend in one call. Prefer createStorageBackend / updateStorageBackend, which have the same validation but distinct create/update semantics. Requires storageBackend:write permission.

Arguments

The backend to create (id omitted) or update (id present), including its kind-specific config.

Returns UpsertStorageBackendPayload!

Explore in a view

Print PrepressProduction Floor
View exact SDL
"""
Create or update a storage backend in one call. Prefer createStorageBackend / updateStorageBackend, which have the same validation but distinct create/update semantics. Requires storageBackend:write permission.
"""
upsertStorageBackend(
  """
  The backend to create (id omitted) or update (id present), including its kind-specific config.
  """
  input: UpsertStorageBackendInput!
): UpsertStorageBackendPayload! @topic(names: ["files"])

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