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

# Finish Targets

> Move targets to Finished. A Scheduled target leaves the calling queue and is never dialed; a Waiting target stops waiting. Targets that are Finished, Failed, In Progress or Post-processing are left as they are and counted as skipped.



## OpenAPI

````yaml https://voice.getprosperapp.com/openapi.json post /api/v1/campaigns/{campaign_id}/targets/finish
openapi: 3.1.0
info:
  title: Prosper Voice
  version: 1.0.0
servers: []
security: []
paths:
  /api/v1/campaigns/{campaign_id}/targets/finish:
    post:
      tags:
        - Campaigns
      summary: Finish Targets
      description: >-
        Move targets to Finished. A Scheduled target leaves the calling queue
        and is never dialed; a Waiting target stops waiting. Targets that are
        Finished, Failed, In Progress or Post-processing are left as they are
        and counted as skipped.
      operationId: finish_targets_api_v1_campaigns__campaign_id__targets_finish_post
      parameters:
        - name: campaign_id
          in: path
          required: true
          schema:
            type: string
            description: The ID of the campaign the targets belong to.
            title: Campaign Id
          description: The ID of the campaign the targets belong to.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FinishTargetsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    FinishTargetsRequest:
      properties:
        target_ids:
          items:
            type: string
          type: array
          maxItems: 100
          minItems: 1
          title: Target Ids
          description: The IDs of the targets to finish; max 100 per request
          examples:
            - - 1234-abcd-1234
              - 5678-efgh-5678
      type: object
      required:
        - target_ids
      title: FinishTargetsRequest
    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.