> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/002_ten_dlc/018__update_campaign_draft.md).

# Update Draft 10DLC Campaign

GraphQL endpoint: `/company`

Update an existing draft 10DLC campaign. Draft means it is not yet submitted for approval. This is useful if you want to start preparing a campaign before submitting it for approval.

## Query

```graphql
mutation($id: ID!, $input: TenDlcUpdateCampaignInput!) {
  updateTenDlcCampaignAsDraft(id: $id, input: $input) {
    id
    campaignId
    companyId
    brandId
    internalBrandId
    usecase
    status
    description
    messageFlow
  }
}

```

## Variables

```json
{
  "id": "00000000-0000-4000-8000-000000000002",
  "input": {
    "description": "Updated marketing campaign with better targeting",
    "messageFlow": "Updated flow: Users text START to subscribe. Weekly product updates sent."
  }
}
```

## Response

```json
{
  "data": {
    "updateTenDlcCampaignAsDraft": {
      "brandId": "BNBOPGP",
      "campaignId": null,
      "companyId": "00000000-0000-4000-8000-000000000001",
      "description": "Updated marketing campaign with better targeting",
      "id": "00000000-0000-4000-8000-000000000002",
      "internalBrandId": "00000000-0000-4000-8000-000000000003",
      "messageFlow": "Updated flow: Users text START to subscribe. Weekly product updates sent.",
      "status": "DRAFT",
      "usecase": "MARKETING"
    }
  }
}
```
