Insights

Create insights (batch)

Creates or updates multiple insights in a single batch request. Each insight in the batch includes its metadata and resource results inline. For granular control over insight metadata and resource results independently, use the single-insight and resource-results endpoints instead.

post/insights/v1/results

Request

  • Base URL
    https://api.doit.com
  • URL
    https://api.doit.com/insights/v1/results
  • Auth
    • API key in header Authorization
    • or API key in header X-Tenant-Id and API key in header Authorization

Request body

Example request

{
  "results": [
    {
      "cloudProvider": "aws",
      "resourceResults": [
        {
          "resourceType": "instance, disk, cache",
          "cloudProvider": "aws",
          "location": "eu-west-2"
        }
      ]
    }
  ]
}

Response

Successful operation

insightKeystring

The key of the insight that failed.

errorstring

The error message.

codeinteger

The HTTP status code associated with the error.

Changes

No recorded changes to this operation across all 1 revision of this API.