---
title: "Create a Strategy Template"
method: POST
path: "/strategy_templates"
tags: ["Strategy Templates"]
---

# Create a Strategy Template

`POST /strategy_templates`

## Request

- Base URL: `https://api.mediamath.com/api/v3.0`
- URL: `https://api.mediamath.com/api/v3.0/strategy_templates`
- Auth: OAuth 2
  - Authorization code: `https://auth.mediamath.com/authorize`
  - Token URL: `https://auth.mediamath.com/oauth/token` scopes: `offline_access`, `manage:services`
- TypeScript: <https://skmtc.dev/mediamath/apis/campaigns-api/docs/strategy_templates/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a strategy template

## Request body

- object
  - `organization_id` integer, nullable
  - `agency_id` integer, nullable
  - `advertiser_id` integer, nullable
  - `global` boolean, nullable
  - `name` string, required
  - `description` string, required
  - `template` string, required

## Response `201`

Strategy created response

- object
  - `data` object
    - `organization_id` integer, nullable
    - `agency_id` integer, nullable
    - `advertiser_id` integer, nullable
    - `global` boolean
    - `name` string
    - `description` string, nullable
    - `template` object
    - `created_on` string, date-time, nullable
    - `updated_on` string, date-time, nullable
  - `meta` SingleMetadata
    - `status` string, required

## Other responses

- `400`: Error response
- `401`: Error response
- `403`: Error response

---

[API](https://skmtc.dev/mediamath/apis/campaigns-api.md) - [All operations](https://skmtc.dev/mediamath/apis/campaigns-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mediamath/apis/campaigns-api/revisions/408743891def?raw)
