Execute Pending Change

View as Markdown
Execute a pending plan change (internal - called by Restate at period_end). This endpoint is called by the Restate workflow when a subscription reaches its period end and has a pending plan change to execute. Requires workflow authentication (X-Restate-Secret-Key header). Returns: - executed: True if the pending change was executed - reason: Reason for skipping if not executed - plan_change_result: Full plan change result if executed

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

subscription_idstringRequired
account_idstringRequired

Headers

X-Restate-Secret-Keystring or nullOptional
X-System-Reasonstring or nullOptional

Response

Successful Response
executedboolean
True if pending change was executed
reasonstring or nullOptional
Reason for skipping if not executed
plan_change_resultobject or nullOptional
Full plan change result if executed

Errors

422
Unprocessable Entity Error