publishAppToShared
Publishes an app to the shared Application API environment. Free under the org's app-slot quota (result.free = true); beyond the quota, publish still succeeds and metered usage is charged to the org wallet. Requires the 'manage_apps' permission on the app's org. Blocked when SHARED_GAME_API_URL is not configured.
publishAppToShared(
appId: BigInt!
planId: BigInt
provider: PaymentProvider
successUrl: String
cancelUrl: String
idempotencyKey: String
): PublishAppResult!
Arguments
publishAppToShared.appId ● BigInt! non-null scalar
App id (BigInt) to publish to the shared environment.
publishAppToShared.planId ● BigInt scalar
@deprecated Ignored. Shared app subscriptions are replaced by org wallet usage billing.
publishAppToShared.provider ● PaymentProvider enum
@deprecated Ignored. Shared app subscriptions are replaced by org wallet usage billing.
publishAppToShared.successUrl ● String scalar
@deprecated Ignored.
publishAppToShared.cancelUrl ● String scalar
@deprecated Ignored.
publishAppToShared.idempotencyKey ● String scalar
Optional idempotency key. Recommended for retries: replaying with the same key and identical arguments returns the first result instead of re-applying; the same key with different arguments returns IDEMPOTENCY_CONFLICT. Keys expire after 24h.
Type
PublishAppResult object
Result of publishing an app to the shared environment. All paths publish immediately. Usage above the free allowances is billed from the organization wallet: each app has the rate card's monthly allowances until allowancePool.effectiveFrom, and from then the organization's apps share one allowance.