---
title: "Update a Strategy Template"
method: POST
path: "/strategy_templates/{strategy_template_id}"
tags: ["Strategy Templates"]
---

# Update a Strategy Template

`POST /strategy_templates/{strategy_template_id}`

## Request

- Base URL: `https://api.mediamath.com/api/v3.0`
- URL: `https://api.mediamath.com/api/v3.0/strategy_templates/{strategy_template_id}`
- 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/:strategy_template_id/post.ts> (a function with typed inputs; its response is checked against the schema)

Update a strategy template by ID

## Path parameters

- `strategy_template_id` integer, required

## 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 `200`

Strategy updated 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
    - `updated_on` string, date-time
  - `meta` SingleMetadata
    - `status` string, required

## Other responses

- `400`: Error response
- `401`: Error response
- `403`: Error response
- `404`: Error response
- `503`: 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)
