Assign connected probes to an endpoint
POST
/endpoints/{id}/probes
const url = 'https://api.krakenkey.io/endpoints/example/probes';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"probeIds":["probe-uuid-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/probes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "probeIds": [ "probe-uuid-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
probeIds
required
IDs of connected probes to assign
Array<string>
Example
[ "probe-uuid-1"]Responses
Section titled “Responses”Probes assigned
Endpoint not found