---
title: "Replace a custom data scope"
method: PUT
path: "/configuration/countries/custom-scopes/{id}"
tags: ["configuration"]
---

# Replace a custom data scope

`PUT /configuration/countries/custom-scopes/{id}`

## Request

- Base URL: `https://api.smartrecruiters.com`
- URL: `https://api.smartrecruiters.com/configuration/countries/custom-scopes/{id}`
- Auth: one of:
  - API key in header `x-smarttoken`
  - OAuth 2
    - Authorization code: `https://www.smartrecruiters.com/identity/oauth/allow`
    - Token URL: `https://api.smartrecruiters.com/identity/oauth/token` scopes: `configuration_manage`

## Path parameters

- `id` string, uuid, required

## Request body

- CustomScopeRequest
  - `name` string, required
  - `countryCode` string, required
  - `checkboxRequired` boolean, required
  - `translations` CustomScopeTranslation[], required
    - `language` string, required
    - `label` string, required

## Response `200`

Replaced custom scope

- CustomScopeResponse
  - `id` string, uuid, required
  - `countryCode` string, required
  - `status` 'ACTIVE' | 'DELETED', required
  - `name` string, required
  - `checkboxRequired` boolean, required
  - `translations` CustomScopeTranslation[], required
    - `language` string, required
    - `label` string, required

## Other responses

- `403`: Forbidden
- `404`: Custom scope not found
- `409`: The company account must operate on separated consent model
- `422`: Validation error

---

[API](https://skmtc.dev/smartrecruiters/apis/configuration-api.md) - [All operations](https://skmtc.dev/smartrecruiters/apis/configuration-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smartrecruiters/apis/configuration-api/revisions/65491281a1a6?raw)
