---
title: "Publish Application SDK"
method: PUT
path: "/api/cmp/v1/applications/{id}/publish"
tags: ["Scripts"]
---

# Publish Application SDK

`PUT /api/cmp/v1/applications/{id}/publish`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/api/cmp/v1/applications/{id}/publish`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `COOKIE`, `COOKIE_READ`

Use this API to publish the script configuration options for the specified application.

## Path parameters

- `id` string, uuid, required

## Request body

- PublishGeolocationRuleRequestApplicationPublicDto
  - `publishVersion` string: Version to publish, by default the lastest version will be used.
  - `production` boolean: Publish a test (false) or production (true)
  - `publishType` 'PUBLISHERS' | 'HEADLESS' | 'UNITY' | 'ROKU' | 'XAMARIN' | 'SAMSUNGTV' | 'LGTV' | 'VIZIOTV' | 'HBBTV' | 'PANASONICTV' | 'PS5' | 'YOUVIEW': The type of SDK being published
  - `requireReconsent` boolean: If users will be required to reconsent once this update is published
  - `langCodes` string[]: Languages to publish in, by default all languages will be published.
  - `regionRules` PublishRegionRuleDto[]: Individual geolocation rules
    - `ruleId` string, uuid: Unique identifier of the geo rule.
    - `ruleName` string: Name of a Geolocation rule

## Response `200`

OK

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500`: Internal Server Error

---

[API](https://skmtc.dev/onetrust/apis/consent-preferences-cookie-consent.md) - [All operations](https://skmtc.dev/onetrust/apis/consent-preferences-cookie-consent/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/consent-preferences-cookie-consent/revisions/b4fb4606f973?raw)
