Update a private location
Update an existing private location's label.
You must have all
privileges for the Synthetics and Uptime feature in the Observability section of the Kibana feature privileges.
When a private location's label is updated, all monitors using this location will also be updated to maintain data consistency.
PUT
/api/synthetics/private_locations/{id}
curl \
--request PUT 'https://localhost:5601/api/synthetics/private_locations/{id}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '"{\n \"label\": \"Updated Private Location Name\"\n}"'
Request example
Update a private location's label.
{
"label": "Updated Private Location Name"
}
Response examples (200)
{
"label": "Updated Private Location Name",
"id": "test-private-location-id",
"agentPolicyId": "test-private-location-id",
"isServiceManaged": false,
"isInvalid": false,
"tags": ["private", "testing", "updated"],
"geo": {
"lat": 37.7749,
"lon": -122.4194
},
"spaces": ["*"]
}