---
title: "Write State"
method: PUT
path: "/api/v1/workspaces/{workspace_id}/first-campaign/draft-state"
---

# Write State

`PUT /api/v1/workspaces/{workspace_id}/first-campaign/draft-state`

## Request

- Base URL: `https://ads.adace.website` (the document declares no server; this is the origin it was published from)
- URL: `https://ads.adace.website/api/v1/workspaces/{workspace_id}/first-campaign/draft-state`
- Auth: none declared

## Path parameters

- `workspace_id` string, uuid, required

## Request body

- PutState
  - `account_id` string, uuid, required
  - `client_id` string, uuid, required
  - `expected_revision` integer, required
  - `state` Editor, required
    - `step` integer, required
    - `business` string
    - `place` string
    - `country` string
    - `website` string
    - `phone` string
    - `goal` 'calls' | 'leads' | 'visits'
    - `lead_destination` 'website' | 'instant_form'
    - `pixel_id` string, nullable
    - `lead_form_id` string, nullable
    - `special` 'none' | 'employment' | 'housing' | 'credit', nullable
    - `text_lang` 'uk' | 'en' | 'ru'
    - `use_ai` boolean
    - `no_site` 'call' | 'message' | 'page', nullable
    - `budget` string
    - `draft` object, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-30** `ec8235367b2e`: 1 info
  - added the new optional request property `state/no_site`
- **2026-10-30** `f58c555b2600`: 1 breaking, 1 info
  - added required request body
  - api operation id `inactive_private_state_api_v1_workspaces__workspace_id__first_campaign_draft_state_put` removed and replaced with `write_state_api_v1_workspaces__workspace_id__first_campaign_draft_state_put`
- **2026-10-29** `d6dfc5c009c4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/adace/apis/adace-ads/changes/api/v1/workspaces/:workspace_id/first-campaign/draft-state/put.md)

---

[API](https://skmtc.dev/adace/apis/adace-ads.md) - [All operations](https://skmtc.dev/adace/apis/adace-ads/llms.txt) - [OpenAPI document](https://skmtc.dev/adace/apis/adace-ads/revisions/712cf2e562f8?raw)
