# Add blueprint to existing config

**PATCH** `/v1/private/agent-configs/blueprints`

Adds a new blueprint to an existing optimizer config. Fails if the project has no config yet.

Base URL: `https://www.comet.com/opik/api`

Tags: `Agent Configs`

## Authorization

This operation requires no authorization.

## Request body

Optional. Media type: `application/json`

### Example request body

```json
{
  "blueprint": {
    "description": "string",
    "id": "00000000-0000-0000-0000-000000000000",
    "type": "blueprint",
    "values": [
      {
        "description": "string",
        "key": "string",
        "type": "boolean",
        "value": "string"
      }
    ]
  },
  "id": "00000000-0000-0000-0000-000000000000",
  "project_id": "00000000-0000-0000-0000-000000000000",
  "project_name": "string"
}
```

## Responses

| Status | Description | Media type |
| --- | --- | --- |
| `201` | Created | — |
| `401` | Unauthorized | `application/json` |
| `404` | Not Found (no config for project) | `application/json` |

### Example response: 401 — Unauthorized

```json
{
  "errors": [
    "string"
  ]
}
```

### Example response: 404 — Not Found (no config for project)

```json
{
  "errors": [
    "string"
  ]
}
```

## Related pages

- [Activate a pairing session](./activatepairingsession.md)
- [Add items to annotation queue](./additemstoannotationqueue.md)
- [Add span comment](./addspancomment.md)
- [Add span feedback score](./addspanfeedbackscore.md)
- [Add thread comment](./addthreadcomment.md)
- [Add trace comment](./addtracecomment.md)
- [Add trace feedback score](./addtracefeedbackscore.md)
- [Agent Configs](./tags/agent-configs.md)
- [Agent Insights](./tags/agent-insights.md)
- [Agent Insights Jobs](./tags/agent-insights-jobs.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
