Create a private location
- Base URL
-
https://{kibana_url}
- POST /api/synthetics/private_locations
- POST /s/{space_id}/api/synthetics/private_locations
Create a private location backed by a Fleet agent policy.
You must have all privileges for the Synthetics and Uptime feature in the Observability section of the Kibana feature privileges.
Required privileges
uptime-read
and
private-location-write
and
uptime-write
Path parameters
-
space_idstringoptional -
An identifier for the space. If
space_idis not provided in the URL, the default space is used. Refer to Spaces for more information.
Request body
Responses
A successful response.
400
If the agentPolicyId is already used by an existing private location or if the label already exists, the API returns a 400 Bad Request response with a corresponding error message.