Overview
PUT/monitoring/sites/{id}monitoring

Update sites

Replace a record in sites by id.

Auth: bearerAuth — calls run as the authenticated user.

Parameters
  • idpathstring
Request body

application/json · optional

  • siteGroupIdoptionalstring
  • nameoptionalstring
  • slugoptionalstring
  • descriptionoptionalstring?
  • displayOrderoptionalinteger
Example
{
  "siteGroupId": "string",
  "name": "string",
  "slug": "string",
  "description": "string",
  "displayOrder": 0
}
Responses
200

sites

  • idstring
  • siteGroupIdstring
  • userIdstring
  • ownerKindstring
  • ownerIdstring
  • namestring
  • slugstring
  • descriptionstring?
  • displayOrderinteger
  • createdAtstring
  • updatedAtstring
Example
{
  "id": "string",
  "siteGroupId": "string",
  "userId": "string",
  "ownerKind": "string",
  "ownerId": "string",
  "name": "string",
  "slug": "string",
  "description": "string",
  "displayOrder": 0,
  "createdAt": "string",
  "updatedAt": "string"
}
400

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
404

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
Code examples
cURL
curl -X PUT "https://api.agenticdeveloperhub.com/monitoring/sites/{id}" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "siteGroupId": "string",
  "name": "string",
  "slug": "string",
  "description": "string",
  "displayOrder": 0
}'
JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/monitoring/sites/{id}", {
  method: "PUT",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN",
    "Content-Type": "application/json"
  },
  body: "{\n  \"siteGroupId\": \"string\",\n  \"name\": \"string\",\n  \"slug\": \"string\",\n  \"description\": \"string\",\n  \"displayOrder\": 0\n}",
});
const data = await res.json();