---
title: "Add state targeting to campaign"
method: POST
path: "/api/geo-targeting/campaigns/{campaignId}/state/{stateCode}"
tags: ["Geo Targeting"]
---

# Add state targeting to campaign

`POST /api/geo-targeting/campaigns/{campaignId}/state/{stateCode}`

## Request

- Base URL: `https://docs.navistone.com` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.navistone.com/api/geo-targeting/campaigns/{campaignId}/state/{stateCode}`
- Auth: API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/navistone/apis/zazmic-platform-api/docs/api/geo-targeting/campaigns/:campaignId/state/:stateCode/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `campaignId` string, required
- `stateCode` string, required

## Response `201`

State targeting added

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/navistone/apis/zazmic-platform-api.md) - [All operations](https://skmtc.dev/navistone/apis/zazmic-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/navistone/apis/zazmic-platform-api/revisions/e2454b713133?raw)
