---
title: "Save And Exit Setup Draft"
method: POST
path: "/setup/draft/steps/{step_id}/save-and-exit"
tags: ["setup"]
---

# Save And Exit Setup Draft

`POST /setup/draft/steps/{step_id}/save-and-exit`

## Request

- Base URL: `https://api-docs.upsmith.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.upsmith.com/setup/draft/steps/{step_id}/save-and-exit`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Path parameters

- `step_id` string, required

## Headers

- `organization-id` string, nullable
- `x-user-id` string, nullable
- `timezone` string
- `x-actor-email` string, nullable
- `x-request-source` string, nullable
- `x-operation-id` string, nullable
- `x-commit-message` string, nullable
- `x-confirmation-id` string, nullable
- `x-chat-id` string, nullable

## Response `200`

Successful Response

- OnboardingSaveExitPublic
  - `draft` OnboardingDraftPublic, required
    - `id` string, required
    - `organization_id` string, required
    - `release_id` string, required
    - `demo` object, nullable
    - `current_step_id` string, nullable, required
    - `resume_step_id` string, nullable, required
    - `steps` OnboardingStepStatePublic[], required
      - `step_id` string, required
      - `label` string, required
      - `group` string, nullable, required
      - `order` integer, required
      - `status` 'not_started' | 'in_progress' | 'completed' | 'blocked', required
      - `payload` object, required
      - `completed_at` string, date-time, nullable, required
      - `blocked_reason` string, nullable, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `email_sent` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/upsmith/apis/upsmith-api.md) - [All operations](https://skmtc.dev/upsmith/apis/upsmith-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upsmith/apis/upsmith-api/revisions/86e2c2bd93af?raw)
