ProductionMu Mutation

publishEdgeAppDraft

Topics: Devices

Freeze a DRAFT and flip it to PUBLISHED. Auto-deprecates the previously-PUBLISHED row for the same handle. Pushes config.update to every controller running an installation that pinned the newly-published row. Requires edge_app:write.

Returns

UpsertEdgeAppPayload!

Arguments

id

EdgeAppID!Required

Draft edge app ID to publish

Optional exact reviewed source precondition; publication fails if the current draft no longer matches it.

Exact field SDL
"""
Freeze a DRAFT and flip it to PUBLISHED. Auto-deprecates the previously-PUBLISHED row for the same handle. Pushes config.update to every controller running an installation that pinned the newly-published row. Requires edge_app:write.
"""
publishEdgeAppDraft(
  """Draft edge app ID to publish"""
  id: EdgeAppID!
  """
  Optional exact reviewed source precondition; publication fails if the current draft no longer matches it.
  """
  expectedSourceXML: String
): UpsertEdgeAppPayload! @topic(names: ["devices"])

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