Skip to content

Replace the service's HTTP and heartbeat links. Deprecated: it clears every HTTP and heartbeat link the body leaves out, so a stale form clobbers the set. Use `POST /service/{service_id}/monitors` and `DELETE /service/{service_id}/monitors/{monitor_type}/{monitor_id}`.

PUT
/service/{service_id}/monitors
curl --request PUT \
--url https://api.siteqwality.com/service/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/monitors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "http_job_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "cron_job_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'
service_id
required
string format: uuid

Service identifier

Media type application/json

Replaces the service’s HTTP and heartbeat links only. Deprecated: link and unlink one monitor at a time with POST /service/{id}/monitors and DELETE /service/{id}/monitors/{type}/{id}.

object
http_job_ids
Array<string>
cron_job_ids
Array<string>
Example generated
{
"http_job_ids": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
],
"cron_job_ids": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
]
}

Monitors updated

Missing or invalid authentication

Service or monitor not found

Internal server error