Update Request Capture
Turn request logging on or off for one endpoint. With capture on (the default) the edge records the endpoint's requests in the traffic logs. With capture off no request details are stored for it — the Traffic Inspector, List Logs and the endpoint's cache hit rate have nothing new to show — but its traffic still counts toward your usage and plan quotas. Requests logged before you turned it off stay.
This is a full write, not a patch: capture_enabled is stored on every call and an omitted capture_enabled means false, so always send it. The endpoint's current values are capture_enabled and capture_level on Get Endpoint.
Requires the endpoints:update permission in the active account.
Path parameters
uuid from List Endpoints.Request body
Strict JSON: an unknown field returns 400.
true to log the endpoint's requests, false to stop. This is the switch the edge reads. false when omitted.full, metadata or off. Only capture_enabled decides whether requests are logged — except that off also sets capture_enabled to false. Omitted or empty clears the stored level.Response (200 OK)
Empty body on success.
Errors
Invalid request body), or a capture_level other than full, metadata, off or empty (Invalid capture_level. Supported: full, metadata, off).endpoints:update, you are not a member of the active account, or the account is suspended (account_suspended).Endpoint not found — the endpoint belongs to another account.quota_paused: the endpoint is paused over your plan's limits and is read-only.Content-Type: application/json header.