TSGGLOBAL Support sign in
Skip to page content
Browse TNID API docs

TNID API documentation Company Ten dlc Update draft 10DLC campaign

Update draft 10DLC campaign

On this page

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

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

Variables

{
  "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

{
  "data": {
    "updateTenDlcCampaignAsDraft": {
      "brandId": "BZSJGD7",
      "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"
    }
  }
}