← API reference
Mutation / files

createStorageBackendAuthorization

Start the OAuth consent flow for a Google Drive or Dropbox backend. Persists a draft backend (status NEEDS_REAUTHORIZATION) and returns the provider consent URL to send the user to; the callback completes the draft. Requires storageBackend:write permission.

Arguments

Which OAuth provider to connect, and the name/description for the backend the flow will produce.

Returns CreateStorageBackendAuthorizationPayload!

Explore in a view

Print PrepressProduction Floor
View exact SDL
"""
Start the OAuth consent flow for a Google Drive or Dropbox backend. Persists a draft backend (status NEEDS_REAUTHORIZATION) and returns the provider consent URL to send the user to; the callback completes the draft. Requires storageBackend:write permission.
"""
createStorageBackendAuthorization(
  """
  Which OAuth provider to connect, and the name/description for the backend the flow will produce.
  """
  input: CreateStorageBackendAuthorizationInput!
): CreateStorageBackendAuthorizationPayload! @topic(names: ["files"])

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