---
title: "Create outcomes batch"
method: POST
path: "/api/v2/scorecard/outcomes/batch"
tags: ["Scorecards"]
deprecated: true
---

# Create outcomes batch

`POST /api/v2/scorecard/outcomes/batch`

> **Deprecated.**

Sets multiple service-rule outcomes in a single batched request.

## Request body

- OutcomesBatchRequest — Scorecard outcomes batch request.
  - `data` OutcomesBatchRequestData — Scorecard outcomes batch request data.
    - `attributes` OutcomesBatchAttributes — The JSON:API attributes for a batched set of scorecard outcomes.
      - `results` OutcomesBatchRequestItem[] — Set of scorecard outcomes to update.
        - `remarks` string — Any remarks regarding the scorecard rule's evaluation, and supports HTML hyperlinks.
        - `rule_id` string, required — The unique ID for a scorecard rule.
        - `service_name` string, required — The unique name for a service in the catalog.
        - `state` 'pass' | 'fail' | 'skip', required — The state of the rule evaluation.
    - `type` 'batched-outcome' — The JSON:API type for scorecard outcomes.

## Response `200`

OK

- OutcomesBatchResponse — Scorecard outcomes batch response.
  - `data` OutcomesResponseDataItem[], required — List of rule outcomes which were affected during the bulk operation.
    - `attributes` OutcomesBatchResponseAttributes — The JSON:API attributes for an outcome.
      - `created_at` string, date-time — Creation time of the rule outcome.
      - `modified_at` string, date-time — Time of last rule outcome modification.
      - `remarks` string — Any remarks regarding the scorecard rule's evaluation, and supports HTML hyperlinks.
      - `service_name` string — The unique name for a service in the catalog.
      - `state` 'pass' | 'fail' | 'skip' — The state of the rule evaluation.
    - `id` string — The unique ID for a rule outcome.
    - `relationships` RuleOutcomeRelationships — The JSON:API relationship to a scorecard rule.
      - `rule` RelationshipToOutcome — The JSON:API relationship to a scorecard outcome.
        - `data` RelationshipToOutcomeData — The JSON:API relationship to an outcome, which returns the related rule id.
          - `id` string — The unique ID for a scorecard rule.
          - `type` 'rule' — The JSON:API type for scorecard rules.
    - `type` 'outcome' — The JSON:API type for an outcome.
  - `meta` OutcomesBatchResponseMeta, required — Metadata pertaining to the bulk operation.
    - `total_received` integer — Total number of scorecard results received during the bulk operation.
    - `total_updated` integer — Total number of scorecard results modified during the bulk operation.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `429` — Too many requests

---

[API](https://skmtc.dev/datadog/apis/api-v2.md) · [All operations](https://skmtc.dev/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
