Spaces method and path for this operation:
post /s/{space_id}/api/apm/fleet/apm_server_schema
Refer to Spaces for more information.
DEPRECATED: This endpoint is intended for internal use by Fleet integrations to push the APM Server configuration schema. Do not use for new integrations. It stores the provided schema object as a Kibana saved object. If Fleet migration is not available on the current deployment, the API returns a 404.
Headers
-
The version of the API to use
Value is
2023-10-31. Default value is2023-10-31. -
A required header to protect against CSRF attacks
POST
/api/apm/fleet/apm_server_schema
curl \
--request POST 'https://<KIBANA_URL>/api/apm/fleet/apm_server_schema' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "elastic-api-version: 2023-10-31" \
--header "kbn-xsrf: true" \
--data '{"schema":{"foo":"bar"}}'
Request example
An example request payload for `POST /api/apm/fleet/apm_server_schema`.
{
"schema": {
"foo": "bar"
}
}
Response examples (200)
An example of a successful response from `POST /api/apm/fleet/apm_server_schema`. The response body is intentionally empty.
{
"$ref": "#/components/examples/APM_UI_fleet_apm_server_schema_200_response1"
}
Response examples (400)
An example of a 400 Bad Request response, returned when the request payload or query parameters fail validation.
{
"error": "Bad Request",
"message": "[request body]: expected value of type [string] but got [undefined]",
"statusCode": 400
}
Response examples (401)
An example of a 401 Unauthorized response, returned when the request is missing valid authentication credentials.
{
"error": "Unauthorized",
"message": "[security_exception]: missing authentication credentials for REST request",
"statusCode": 401
}
Response examples (403)
An example of a 403 Forbidden response, returned when the authenticated user lacks the required APM and User Experience privileges.
{
"error": "Forbidden",
"message": "Insufficient privileges to perform this action. The APM and User Experience feature requires `all` privileges.",
"statusCode": 403
}
Response examples (404)
An example of a 404 Not Found response, returned when the requested resource does not exist or the feature is not available on the current deployment.
{
"error": "Not Found",
"message": "Not Found",
"statusCode": 404
}