---
title: "Update promo code by id"
method: PUT
path: "/promo_codes/{id}"
tags: ["Promo Codes"]
---

# Update promo code by id

`PUT /promo_codes/{id}`

Update promo code by id. Can not be updated if archived and ext_id present. 
<Tip>**HTTP Request** <br/>`PUT https://api.firstpromoter.com/api/v2/company/promo_codes/{id}`</Tip>

## Path parameters

- `id` integer, required

## Headers

- `Account-ID` string, required

## Request body

- object
  - `code` string — Code of the promo code
  - `description` string — Description of the promo code
  - `promoter_campaign_id` integer — ID of the promoter campaign
  - `metadata` object — Metadata of the promo code
  - `details` object — Details of the promo code

## Response `200`

Updated promo code

- PromoCode
  - `id` integer — ID of the promo code entry
  - `code` string — Code of the promo code
  - `reward` object — Reward
    - `id` integer — ID of the reward
    - `name` string — Name of the reward
  - `ext_id` string
  - `description` string — Description of the promo code
  - `company_id` integer
  - `promoter_campaign_id` integer — ID of the promoter campaign
  - `metadata` object — Metadata of the promo code
  - `details` object — Details of the promo code
  - `archived_at` string, date-time

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/firstpromoter/apis/firstpromoter-batch-processes-api.md) · [All operations](https://skmtc.net/firstpromoter/apis/firstpromoter-batch-processes-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/firstpromoter/firstpromoter-batch-processes-api/versions/e15f0d026ccf/schema)
