Add a hosted probe region to an endpoint
POST
/endpoints/{id}/regions
const url = 'https://api.krakenkey.io/endpoints/example/regions';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"region":"us-east-1"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.krakenkey.io/endpoints/example/regions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "region": "us-east-1" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Endpoint UUID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
region
required
Hosted probe region identifier
string
Example
us-east-1Responses
Section titled “Responses”Region added
Plan limit exceeded
Endpoint not found