Skip to main content

publish_changeset

Function publish_changeset 

Source
async fn publish_changeset(
    request_id: RequestId,
    pool: Data<PgPool>,
    changeset_id: Path<Uuid>,
    payload: Json<ReviewedRevisionRequest>,
    user: AuthUser,
    app_conf: Data<ApplicationConfiguration>,
    jwt_key: Data<JwtKey>,
) -> ControllerResult<Json<PublishOutcome>>
Expand description

POST /api/v0/main-frontend/agent-changesets/{changeset_id}/publish - Publishes the user’s open changeset, risky changes included. Rejected without changes if the changeset is no longer open or no longer the reviewed revision, if any staged page or entity changed live since it was staged, or if saving a staged entity fails.