Skip to content

[Dashboards as code] Improve error messages #249196

@teresaalvarezsoler

Description

@teresaalvarezsoler

Describe the problem:
When a user tries to create a dashboard using the API with information in the meta and/or warnings clauses (because e.g. he got them in the JSON response when doing a GET request) we give this error message which is very unclear:

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "[request body.meta]: definition for this key is missing"
}

Provide a better error indicating that meta (or warnings) cannot specified in a POST request.

Metadata

Metadata

Labels

Project:Dashboards APITeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions