---
title: "Confirm values of a target's profile"
method: POST
path: "/api/v1/model/{model_id}/profile/confirm"
tags: ["target-profile"]
---

# Confirm values of a target's profile

`POST /api/v1/model/{model_id}/profile/confirm`

## Request

- Base URL: `https://api.enokilabs.ai`
- URL: `https://api.enokilabs.ai/api/v1/model/{model_id}/profile/confirm`
- Auth: none declared

Make single answers and list items the customer's without changing them: what auto-discovery wrote, and a switch left at off. Name each item by the text between its fence tags, a tool or user type by its name and a line by itself. Send the profile_id and version from the last read. Answers with the profile's id and new version.

## Path parameters

- `model_id` string, required

## Headers

- `Authorization` string, nullable: Bearer token with API key

## Request body

- ApiConfirmTargetProfileRequest: Make auto-discovered or unanswered values of a target's profile the customer's.
  - `version` integer, required: The version the confirm starts from, from the last read.
  - `profile_id` string, required: The profile_id of the last read, sent with the version.
  - `answers` string[]: Single answers to confirm, by field name, such as 'purpose'. A switch left at off, such as 'has_guardrails', can be confirmed as it is; an empty answer, or a flag that is unknown, cannot: set it instead.
  - `items` object: List items to confirm: field name (such as 'tools') to the items, each named by the text between its fence tags: a tool or user type by its name, a line by itself.

## Response `200`

Successful Response

- ApiTargetProfileSaved: What a change answers: which profile, and the version it is at now. Not the content: a key allowed to write is not always allowed to read, and the content is one read away for a key that is.
  - `model_id` string, required
  - `profile_id` string, required
  - `version` integer, required: The profile's version now; send it with the next change.

## Other responses

- `400`: A field is not content, needs a value, holds a fence, or holds a value that cannot be stored: too long, empty, a NUL character, a second item under one name, or more than the profile's size limit leaves room for
- `404`: No such target, or no profile or dismissal to act on
- `409`: The profile changed, or was replaced, since the read the change came from
- `422`: Validation Error

---

[API](https://skmtc.dev/enokilabs/apis/enoki-external-api.md) · [All operations](https://skmtc.dev/enokilabs/apis/enoki-external-api/llms.txt) · [OpenAPI document](https://skmtc.dev/enokilabs/apis/enoki-external-api/revisions/9b13fb6ab124?raw)
