Regions

Update region

Updates an existing region.

PATCH
/organizations/{organizationId}/projects/{projectId}/regions/{regionId}
x-api-key<token>

In: header

Path Parameters

organizationIdstring
Formatuuid
projectIdstring
Formatuuid
regionIdstring
Formatuuid
name?string
Lengthlength <= 256
regions?array<unknown>
Value in"default"
customScript?string
settings?
language?

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://api.concord.tech/privacy-v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/regions/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{
  "name": "string",
  "regions": "default",
  "customScript": "string",
  "settings": {
    "branding": {
      "buttonRadius": "6px",
      "cardRadius": "6px",
      "font": "Arial",
      "logoUrl": "string",
      "primaryColor": "string",
      "secondaryColor": "string",
      "poweredByConcord": true
    },
    "consent": {
      "blockingMode": "disabled",
      "consentMode": "implied",
      "consentBanner": {
        "enabled": true,
        "layout": "bar",
        "position": [
          null
        ],
        "policy": {
          "createdAt": [
            null
          ],
          "updatedAt": [
            null
          ],
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "organization": "452c1a86-a0af-475b-b03f-724878b0f387",
          "project": "9ec8a81a-31b2-4a83-bcd8-cef9150932d2",
          "category": "disclosure",
          "subcategory": [
            null
          ],
          "label": "string",
          "version": 0,
          "dateCreated": "2019-08-24T14:15:22Z",
          "dateUpdated": "2019-08-24T14:15:22Z",
          "name": "string",
          "description": "string",
          "document": "string",
          "url": "http://example.com",
          "readOnly": false,
          "validStates": [
            "implied"
          ],
          "status": "active",
          "consentDuration": "string",
          "required": false,
          "requireReacceptVersion": 0
        },
        "title": true,
        "theme": "brand",
        "closeButton": true,
        "denyButton": true,
        "customizeButton": true,
        "showGooglePrivacyPolicy": false
      },
      "doNotSell": false,
      "consentDuration": 6,
      "gcm": "disabled",
      "gcmPolicy": "https://business.safety.google/privacy",
      "gpc": false,
      "limitPii": false,
      "microsoftUET": "disabled"
    },
    "crossSiteTracking": false,
    "floatingButton": {
      "enabled": true,
      "circleOffsetX": "24px",
      "circleOffsetY": "24px",
      "tabOffsetY": "256px",
      "position": "right",
      "theme": "brand",
      "type": "circle",
      "icon": "cookie"
    },
    "placeholders": {
      "enabled": true,
      "theme": "brand"
    },
    "privacyCenter": {
      "consentHistory": true,
      "disclosures": true,
      "privacyRequests": true,
      "doNotSellRequests": true,
      "position": "right",
      "theme": "brand"
    }
  },
  "language": {
    "enabled": false,
    "defaultLanguage": "en_US"
  },
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
  "dateCreated": 0,
  "dateUpdated": 0,
  "slug": "string"
}
{
  "statusCode": 404,
  "error": "Not Found",
  "message": "string"
}
{
  "statusCode": 404,
  "error": "Not Found",
  "message": "Forbidden"
}
{
  "statusCode": 403,
  "error": "Forbidden",
  "message": "Forbidden"
}
{
  "statusCode": 404,
  "error": "Not Found",
  "message": "Not Found"
}
{
  "statusCode": 422,
  "error": "Unprocessable Entity",
  "message": "string"
}
{
  "statusCode": 500,
  "error": "Internal Server Error",
  "message": "Internal Server Error"
}