Skip to main content
PUT
/
api
/
registry
/
agents
/
{encodedUrl}
/
monitoring
/
interval
Update monitoring interval
curl --request PUT \
  --url https://agenticadvertising.org/api/registry/agents/{encodedUrl}/monitoring/interval \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "interval_hours": 87
}
'
import requests

url = "https://agenticadvertising.org/api/registry/agents/{encodedUrl}/monitoring/interval"

payload = { "interval_hours": 87 }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'PUT',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({interval_hours: 87})
};

fetch('https://agenticadvertising.org/api/registry/agents/{encodedUrl}/monitoring/interval', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://agenticadvertising.org/api/registry/agents/{encodedUrl}/monitoring/interval",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "PUT",
  CURLOPT_POSTFIELDS => json_encode([
    'interval_hours' => 87
  ]),
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>",
    "Content-Type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://agenticadvertising.org/api/registry/agents/{encodedUrl}/monitoring/interval"

	payload := strings.NewReader("{\n  \"interval_hours\": 87\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.put("https://agenticadvertising.org/api/registry/agents/{encodedUrl}/monitoring/interval")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"interval_hours\": 87\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://agenticadvertising.org/api/registry/agents/{encodedUrl}/monitoring/interval")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"interval_hours\": 87\n}"

response = http.request(request)
puts response.read_body
{
  "monitoring_paused": true,
  "check_interval_hours": 123,
  "monitoring_paused_at": "<string>"
}
{
  "error": "<string>"
}
{
  "error": "<string>"
}
{
  "error": "<string>"
}
{
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token in the Authorization header. Two token types are accepted:

  • Organization API key (sk_...) issued via the dashboard. Org-scoped, long-lived, for server-to-server use.
  • User JWT obtained via the OAuth 2.1 authorization code flow with PKCE. User-scoped, short-lived. Discover the authorization server at /.well-known/oauth-authorization-server and the protected-resource metadata at /.well-known/oauth-protected-resource/api.

Path Parameters

encodedUrl
string
required

URL-encoded agent URL

Body

application/json
interval_hours
integer
required
Required range: 6 <= x <= 168

Response

Updated monitoring settings

monitoring_paused
boolean
required
check_interval_hours
integer
required
monitoring_paused_at
string | null
required