---
title: "Add Enrichment To Layer"
method: POST
path: "/api/v1/enrichment/add_to_layer"
tags: ["enrichment"]
---

# Add Enrichment To Layer

`POST /api/v1/enrichment/add_to_layer`

Add an enrichment to a layer. Requires ownership of the project containing the layer.

Args:
    request: The request object containing enrichment_id and layer_id (pre-validated)
    enrichment_service: Service for handling enrichment operations

Returns:
    message with success status

## Request body

- AddEnrichmentToLayerRequest — Request model for adding an enrichment to a project.
  - `enrichment_id` string, uuid, required
  - `layer_id` string, uuid, required

## Response `200`

Successful Response

- AddEnrichmentToLayerResponse — Response model for adding an enrichment to a project.
  - `message` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/maia-analytics/apis/maia-api.md) · [All operations](https://skmtc.net/maia-analytics/apis/maia-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/maia-analytics/maia-api/versions/ba2b8d962161/schema)
