---
title: "Refused unless the campaign is in Autron's registry and still managed"
method: PUT
path: "/walmart/advertisers/{public_id}/campaigns/{campaign_id}/state"
tags: ["walmart"]
---

# Refused unless the campaign is in Autron's registry and still managed

`PUT /walmart/advertisers/{public_id}/campaigns/{campaign_id}/state`

## Request

- Base URL: `https://api.autron.ai`
- URL: `https://api.autron.ai/walmart/advertisers/{public_id}/campaigns/{campaign_id}/state`
- Auth: API key in header `Authorization`

## Request body

- WalmartCampaignStateRequest
  - `state` string, required: paused | enabled

## Response `200`

Success

- WalmartCampaign
  - `public_id` string: unique registry public id
  - `walmart_advertiser_public_id` string: the advertiser whose account holds the campaign
  - `campaign_id` integer: Walmart's campaign id — the part a seller cannot rename away
  - `name` string: the name Autron gave it at creation; a label, not the ownership marker
  - `campaign_type` string: sponsoredProducts
  - `targeting_type` string: auto | manual
  - `type` string: auto (Autron AI) | manual (Autron Strategic) — Autron's management type
  - `goal_public_id` string: the goal this campaign was created to serve
  - `state` string: paused | enabled — the last state Autron set
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `unmanaged_at` string, date-time: when Autron handed the campaign back; null while managed

## Other responses

- `403`: Not a campaign Autron manages — the guardrail.
- `409`: Another change to this campaign is in progress, it was handed back meanwhile, or (enable only) the item's goal is off.

---

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