Update endpoint
PATCH
/endpoints/{id}
const url = 'https://api.krakenkey.io/endpoints/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"sni":"example.com","label":"Production API","isActive":true,"probeIds":["probe-uuid-1"],"hostedRegions":["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 PATCH \ --url https://api.krakenkey.io/endpoints/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "sni": "example.com", "label": "Production API", "isActive": true, "probeIds": [ "probe-uuid-1" ], "hostedRegions": [ "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
sni
SNI override
string
Example
example.comlabel
User-friendly label
string
Example
Production APIisActive
Whether endpoint monitoring is active
boolean
Example
trueprobeIds
Connected probe IDs to assign (replaces existing assignments)
Array<string>
Example
[ "probe-uuid-1"]hostedRegions
Hosted probe regions to enable (replaces existing regions)
Array<string>
Example
[ "us-east-1"]Responses
Section titled “Responses”Endpoint updated
Endpoint not found