---
title: "Assign Geolocation Rule Group"
method: PUT
path: "/api/cmp/v1/georulegroups/{geoRuleGroupId}/assign"
tags: ["Geolocation Rules"]
---

# Assign Geolocation Rule Group

`PUT /api/cmp/v1/georulegroups/{geoRuleGroupId}/assign`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/api/cmp/v1/georulegroups/{geoRuleGroupId}/assign`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `COOKIE`

Use this API to assign or unassign multiple domains and/or applications to a specified geolocation rule group. For each domain or application, set the value to `true` to assign or `false` to unassign.

## Path parameters

- `geoRuleGroupId` string, uuid, required

## Request body

- GeoRuleGroupAssignRequestDto
  - `domainIds` string[]: List of domain IDs to assign to the geo rule group.
  - `applicationIds` string[]: List of application IDs to assign to the geo rule group.

## 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)
