Apps & SurfacesMu Mutation

updateCustomAppPreview

Topics: Apps

Push a draft's current server API to its preview. Source with problems is not taken: the last working source keeps running and the problems are returned. Only the person who opened the preview may update it. Requires customapp:write.

Returns

UpdateCustomAppPreviewPayload!

Arguments

id

ID!Required

TypeID of the preview (prefix dpv).

The draft's current state; appId must be the one the preview was opened with.

Exact field SDL
"""
Push a draft's current server API to its preview. Source with problems is not taken: the last working source keeps running and the problems are returned. Only the person who opened the preview may update it. Requires customapp:write.
"""
updateCustomAppPreview(
  """TypeID of the preview (prefix `dpv`)."""
  id: ID!
  """
  The draft's current state; appId must be the one the preview was opened with.
  """
  input: CustomAppDraftInput!
): UpdateCustomAppPreviewPayload! @topic(names: ["apps"])

Declared on Mutation. Access is checked by the platform for each operation.