---
updatedAt: 2026-05-20T09:37:17.000Z
agentTools:
  projectIndex: https://dev.gotom.io/llms.txt
---

# Set archive status of a campaign

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "4.4.12",
    "title": "Campaign API"
  },
  "x-explorer-enabled": false,
  "paths": {
    "/app-api/campaign/{campaignExternalId}/archive-status": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ParamCampaignExternalId"
        }
      ],
      "post": {
        "tags": [
          "Campaign"
        ],
        "summary": "Set archive status of a campaign",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ArchiveStatus"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Archive status was updated successfully"
          },
          "400": {
            "description": "Returns a list of errors in the input data. For this call the following violation codes can be expected\n * `28a27691-46f0-4bc2-9806-100587d7a962` - The campaign was already billed, cannot archive / unarchive\n * `e0a1561a-631e-4d1b-99fe-6a7e7f89b4dd` - The campaign was partially invoiced, cannot archive\n"
          },
          "404": {
            "description": "The campaign does not exist"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerErrorDefault"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "InternalServerErrorResponse": {
        "properties": {
          "message": {
            "type": "string",
            "example": "Internal Server Error"
          }
        }
      },
      "ArchiveStatus": {
        "properties": {
          "setIsArchived": {
            "type": "boolean",
            "example": true,
            "description": "true to archive, false to un-archive / activate"
          }
        }
      }
    },
    "parameters": {
      "ParamCampaignExternalId": {
        "in": "path",
        "name": "campaignExternalId",
        "schema": {
          "type": "string"
        },
        "required": true,
        "example": "example-campaign",
        "description": "External ID of a campaign. See: [Good and Bad External IDs](/docs/good-and-bad-external-ids)"
      }
    },
    "responses": {
      "InternalServerErrorDefault": {
        "description": "If your request broke our code. Send us your request-document to reproduce the error and we'll fix it.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/InternalServerErrorResponse"
            }
          }
        }
      }
    }
  }
}
```