---
title: "Toggle Partner Code"
method: PATCH
path: "/admin/partners/codes/{code}"
tags: ["internal", "Admin - Partners"]
---

# Toggle Partner Code

`PATCH /admin/partners/codes/{code}`

## Request

- Base URL: `https://api.companydata.dk` (the document declares no server; this is the origin it was published from)
- URL: `https://api.companydata.dk/admin/partners/codes/{code}`
- Auth: none declared

Activate/deactivate a code. Deactivation only affects future signups.

## Path parameters

- `code` string, required

## Request body

- PartnerCodeToggle
  - `active` boolean, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/companydata/apis/companydata-dk-api.md) · [All operations](https://skmtc.dev/companydata/apis/companydata-dk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/companydata/apis/companydata-dk-api/revisions/1cc6c361ae64?raw)
