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

# Approve Voice Over

> Chooses the take to keep when a suggested voice over is `READY`. The voice over becomes `APPROVED`; the other takes stay. Approving costs nothing.

Needs **Update** on **Voice overs** (`voice_overs:update`).



## OpenAPI

````yaml /api-reference/openapi.json patch /v2/voice-overs/{id}/approve
openapi: 3.0.1
info:
  title: Hamsa API
  description: >-
    The Hamsa API: voice agents and their calls, phone numbers, batch calls and
    knowledge bases; speech to text, text to speech, voices and AI content.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.tryhamsa.com
security: []
paths:
  /v2/voice-overs/{id}/approve:
    patch:
      tags: []
      summary: Approve a voice over take
      description: >-
        Chooses the take to keep when a suggested voice over is `READY`. The
        voice over becomes `APPROVED`; the other takes stay. Approving costs
        nothing.


        Needs **Update** on **Voice overs** (`voice_overs:update`).
      parameters:
        - in: path
          name: id
          required: true
          description: The voice over.
          schema:
            type: string
            format: uuid
            example: bd0ebca4-a16e-488b-b195-4690792259c7
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - voiceOverSuggestionId
              properties:
                voiceOverSuggestionId:
                  type: string
                  format: uuid
                  description: The take to keep, from `voiceOverSuggestions`.
                  example: c816c6f6-9d49-4b5d-8c87-4a7a24fc8af1
      responses:
        '200':
          description: Approved.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: voice over approved successfully
                  messageKey:
                    type: string
                    example: VoiceOverApprovedSuccessfully
        '400':
          description: Invalid `id` or `voiceOverSuggestionId`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '403':
          description: >-
            The key's scopes don't allow this (it needs `voice_overs:update`),
            or the project is deactivated (only reading works then).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '404':
          description: >-
            No such voice over of yours ("Not found"), or it can't be approved
            ("Can not approve This voice over", `CannotApproveVoiceOver`): it
            isn't `READY`, or the take isn't a completed take of it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
        '500':
          description: Server Side Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorSchema'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ErrorSchema:
      type: object
      properties:
        code:
          type: integer
          description: >-
            Service error code: the HTTP status with a service prefix (for
            example `8404`). Missing when the service has no code for that
            status.
          example: 8404
        message:
          type: string
          description: >-
            What went wrong. Some services (calls and recordings) put the error
            key here, for example `CallNotFoundOrUnavailable`, and send no
            `messageKey`.
          example: Policy not found!
        messageKey:
          type: string
          description: >-
            Stable key for the error, safe to match on in code. Not returned by
            every service.
          example: PolicyNotFound
        params:
          type: object
          additionalProperties: true
          description: >-
            Details for some errors (for example `reason`). Not returned by
            every service.
          example:
            reason: NO_DRAFT
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Pass the API key in the Authorization header, You need to put Token
        keyword before the API key. e.g. 'Authorization: Token <api-key>'

````

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