> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enokilabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Confirm values of a target's profile

> 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.



## OpenAPI

````yaml /openapi.json post /api/v1/model/{model_id}/profile/confirm
openapi: 3.1.0
info:
  title: Enoki External API
  description: >-
    Programmatic API for CI/CD integration. Authenticate with `Authorization:
    Bearer egk_...`.
  version: 0.1.0
servers:
  - url: https://api.enokilabs.ai
    description: Enoki API
security: []
paths:
  /api/v1/model/{model_id}/profile/confirm:
    post:
      tags:
        - target-profile
      summary: Confirm values of a target's profile
      description: >-
        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.
      operationId: api_confirm_target_profile_api_v1_model__model_id__profile_confirm_post
      parameters:
        - name: model_id
          in: path
          required: true
          schema:
            type: string
            title: Model Id
        - name: Authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Bearer token with API key
            title: Authorization
          description: Bearer token with API key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiConfirmTargetProfileRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiTargetProfileSaved'
        '400':
          description: >-
            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':
          description: No such target, or no profile or dismissal to act on
        '409':
          description: >-
            The profile changed, or was replaced, since the read the change came
            from
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ApiConfirmTargetProfileRequest:
      properties:
        version:
          type: integer
          title: Version
          description: The version the confirm starts from, from the last read.
        profile_id:
          type: string
          title: Profile Id
          description: The profile_id of the last read, sent with the version.
        answers:
          items:
            type: string
          type: array
          title: Answers
          description: >-
            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:
          additionalProperties:
            items:
              type: string
            type: array
          type: object
          title: Items
          description: >-
            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.
      additionalProperties: false
      type: object
      required:
        - version
        - profile_id
      title: ApiConfirmTargetProfileRequest
      description: >-
        Make auto-discovered or unanswered values of a target's profile the
        customer's.
    ApiTargetProfileSaved:
      properties:
        model_id:
          type: string
          title: Model Id
        profile_id:
          type: string
          title: Profile Id
        version:
          type: integer
          title: Version
          description: The profile's version now; send it with the next change.
      type: object
      required:
        - model_id
        - profile_id
        - version
      title: ApiTargetProfileSaved
      description: >-
        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.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.