---
title: "Accept enrichment agent results"
url: "https://developers.bynder.com/apis/agents/versions/f5aecf98-613e-4ae8-b26a-ec2cdf804b2c/operations/acceptEnrichmentAgentResults"
---

> Full API specification: https://developers.bynder.com/apis/agents/versions/f5aecf98-613e-4ae8-b26a-ec2cdf804b2c.md

# Accept enrichment agent results

`POST` `/api/1/agent/enrichment/executions/{id}/accept`

Operation ID: `acceptEnrichmentAgentResults`

Accepts the agent-produced suggestions for one or more asset executions under an agent execution, applying them to the asset(s). Leaving assetExecutionIds empty accepts every asset execution under this agent execution that has suggestions.

## Path parameters

- `id` (string, uuid, required) - Id of the agent execution

## Request body (required)

Content types: `application/json`

## Responses

- `202` - Accept command published; applied asynchronously
- `400` - The request body failed validation
- `401` - Missing or invalid bearer token
- `403` - Caller lacks the required permission for this operation
- `429` - Caller exceeded its configured request rate
- `5XX` - Gateway or a downstream service failed to process the request

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: AI Agents
  version: "1.0"
servers:
  - url: https://{your-bynder-domain}/
paths:
  /api/1/agent/enrichment/executions/{id}/accept:
    post:
      tags:
        - Enrichment
      summary: Accept enrichment agent results
      operationId: acceptEnrichmentAgentResults
      description: Accepts the agent-produced suggestions for one or more asset
        executions under an agent execution, applying them to the asset(s).
        Leaving assetExecutionIds empty accepts every asset execution under this
        agent execution that has suggestions.
      parameters:
        - $ref: "#/components/parameters/ExecutionId"
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/ReviewSuggestionsRequest"
      responses:
        "202":
          description: Accept command published; applied asynchronously
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/CommandAcceptedResponse"
        "400":
          $ref: "#/components/responses/ValidationError"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          $ref: "#/components/responses/Forbidden"
        "429":
          $ref: "#/components/responses/TooManyRequests"
        5XX:
          $ref: "#/components/responses/ServerError"
security:
  - bearerAuth: []
components:
  parameters:
    ExecutionId:
      name: id
      in: path
      required: true
      description: Id of the agent execution
      schema:
        type: string
        format: uuid
  schemas:
    ReviewSuggestionsRequest:
      type: object
      description: Accept/discard/revert request. The agent execution comes from the
        {id} path segment. Empty or absent assetExecutionIds acts on every asset
        execution under this agent execution that has suggestions.
      properties:
        assetExecutionIds:
          type: array
          items:
            type: string
            format: uuid
    CommandAcceptedResponse:
      type: object
      properties:
        correlationId:
          type: string
          format: uuid
        skippedIds:
          type: array
          description: Requested ids not owned by this account and so not processed. The
            rest of the request still went through.
          items:
            type: string
            format: uuid
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
  responses:
    ValidationError:
      description: The request body failed validation
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ErrorResponse"
    Unauthorized:
      description: Missing or invalid bearer token
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ErrorResponse"
    Forbidden:
      description: Caller lacks the required permission for this operation
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ErrorResponse"
    TooManyRequests:
      description: Caller exceeded its configured request rate
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ErrorResponse"
    ServerError:
      description: Gateway or a downstream service failed to process the request
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/ErrorResponse"
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
```
