---
title: "Publish Cookie Consent Configuration"
method: POST
path: "/v1/cookie-consent/configs/{configId}/publish"
tags: ["cmp"]
---

# Publish Cookie Consent Configuration

`POST /v1/cookie-consent/configs/{configId}/publish`

## Request

- Base URL: `https://api.osano.com`
- URL: `https://api.osano.com/v1/cookie-consent/configs/{configId}/publish`
- Auth: API key in header `x-osano-api-key`
- TypeScript: <https://skmtc.dev/osano/apis/osano-api-reference/docs/v1/cookie-consent/configs/:configId/publish/post.ts> (a function with typed inputs; its response is checked against the schema)

Publish an existing Cookie Consent Configuration.

Guidelines for publishing a configuration:
- A configuration cannot be queued again for publishing until the publish operation is complete. It's recommended that all configuration changes are made prior to sending a publish request for that configuration.
- A maximum of 300 configs per customer account can be queued for publishing at a time.
- It's recommended to send a batch of publish requests (up to 250 requests) every 30 minutes. Note: this is not the equivalent to sending X number of publish requests per minute over a 30 minute period."

## Path parameters

- `configId` string, required

## Request body

- object
  - `keepUnclassifiedTattles` boolean: When `true`, unclassified cookie/script/iframe discoveries will not be deleted. When `false`, all unclassified cookie/script/iframe discoveries will be deleted.
  - `description` string: When included in the request, allows for text comments provided about the publish to be retained with the version number for reference in the Osano Admin UI.
  - `webhookUrl` string: The URL to be called when the publish operation is complete.

## Response `204`

Success

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `409`: Conflict
- `429`: Too Many Requests

---

[API](https://skmtc.dev/osano/apis/osano-api-reference.md) - [All operations](https://skmtc.dev/osano/apis/osano-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/osano/apis/osano-api-reference/revisions/ac31099cf83e?raw)
