Update geographic permissions
Replaces the selected countries with the array in the request. Codes outside supported_countries are dropped; if nothing supported remains, the request is rejected with no_supported_countries.
Updating the selection additionally requires that the space is allowed to edit international settings. A space that is not receives 401 even when the token holder is an owner or admin.
Permissions
Authenticate with a Personal access token whose holder is an owner or admin of the space. A project API token is not accepted on this endpoint, and a Personal access token has no scopes: the holder's role in the space is the whole authorization decision.
Request body
Example request
{
"countries": [
"US"
]
}Response
The request has succeeded.
Example response
{
"type": "geographic_permission",
"countries": [
"US",
"CA"
],
"supported_countries": [
"US",
"CA",
"GB"
]
}Changes
Changed in 1 of the 161 revisions of this API.1
- ○
endpoint added
endpoint-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
Of the 161 revisions, 3 have a changelog that could not be searched.