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

# Post apiv2organizations autopilotproposals reject



## OpenAPI

````yaml https://api.osiro.com/doc post /api/v2/organizations/{orgId}/autopilot/proposals/{proposalId}/reject
openapi: 3.0.0
info:
  title: osiro API
  version: 2.0.0
servers: []
security: []
tags:
  - name: Funnel
    description: Public funnel rendering, submission, MFA, and analytics.
  - name: Booking
    description: A lead's cancel and reschedule of their booking, via the manage link.
  - name: Training
    description: Org-scoped sales-training catalogs, sessions, and call records.
  - name: Attribution
    description: Cross-domain PostHog identity handoff for the marketing site.
  - name: Billing
    description: Org-scoped checkouts, plans, trials and the Stripe billing portal.
  - name: Leads
    description: Org-scoped lead reads and actions.
  - name: Ad copy
    description: Org-scoped ad guidelines and Meta ad copy generation.
paths:
  /api/v2/organizations/{orgId}/autopilot/proposals/{proposalId}/reject:
    post:
      tags:
        - Autopilot
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: orgId
          in: path
        - schema:
            type: string
            format: uuid
          required: true
          name: proposalId
          in: path
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AutopilotReject'
      responses:
        '200':
          description: The rejected proposal
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutopilotProposal'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    AutopilotReject:
      type: object
      properties:
        reason:
          type: string
          nullable: true
          maxLength: 1000
    AutopilotProposal:
      oneOf:
        - type: object
          properties:
            id:
              type: string
              format: uuid
            run_id:
              type: string
              format: uuid
            campaign_id:
              type: string
              format: uuid
            status:
              type: string
              enum:
                - generating
                - pending
                - approved
                - executing
                - executed
                - failed
                - rejected
                - superseded
            reason:
              type: string
            rejection_reason:
              type: string
              nullable: true
            failure:
              type: string
              nullable: true
              enum:
                - generation
                - meta
                - meta_auth
                - outdated
                - interrupted
                - null
            error:
              type: string
              nullable: true
            decision:
              type: object
              nullable: true
              properties:
                by:
                  type: object
                  nullable: true
                  properties:
                    id:
                      type: string
                      format: uuid
                    name:
                      type: string
                      nullable: true
                  required:
                    - id
                    - name
                at:
                  type: string
              required:
                - by
                - at
            executed_at:
              type: string
              nullable: true
            created_at:
              type: string
            kind:
              type: string
              enum:
                - pause_ad
            ad_id:
              type: string
              pattern: ^\d+$
            ad_name:
              type: string
              nullable: true
          required:
            - id
            - run_id
            - campaign_id
            - status
            - reason
            - rejection_reason
            - failure
            - error
            - decision
            - executed_at
            - created_at
            - kind
            - ad_id
            - ad_name
        - type: object
          properties:
            id:
              type: string
              format: uuid
            run_id:
              type: string
              format: uuid
            campaign_id:
              type: string
              format: uuid
            status:
              type: string
              enum:
                - generating
                - pending
                - approved
                - executing
                - executed
                - failed
                - rejected
                - superseded
            reason:
              type: string
            rejection_reason:
              type: string
              nullable: true
            failure:
              type: string
              nullable: true
              enum:
                - generation
                - meta
                - meta_auth
                - outdated
                - interrupted
                - null
            error:
              type: string
              nullable: true
            decision:
              type: object
              nullable: true
              properties:
                by:
                  type: object
                  nullable: true
                  properties:
                    id:
                      type: string
                      format: uuid
                    name:
                      type: string
                      nullable: true
                  required:
                    - id
                    - name
                at:
                  type: string
              required:
                - by
                - at
            executed_at:
              type: string
              nullable: true
            created_at:
              type: string
            kind:
              type: string
              enum:
                - add_variant
            ad_set_id:
              type: string
              pattern: ^\d+$
            ad_set_name:
              type: string
              nullable: true
            creative_brief:
              type: object
              properties:
                angle:
                  type: string
                  minLength: 1
                  maxLength: 500
                  description: The ad's selling angle.
                hook:
                  type: string
                  minLength: 1
                  maxLength: 500
                  description: The opening line idea that stops the scroll.
                image_prompt:
                  type: string
                  minLength: 1
                  maxLength: 2000
                  description: A prompt for the ad's image.
              required:
                - angle
                - hook
                - image_prompt
            variant:
              type: object
              nullable: true
              properties:
                headline:
                  type: string
                primary_text:
                  type: string
                call_to_action_type:
                  type: string
                  enum:
                    - LEARN_MORE
                    - APPLY_NOW
                    - SIGN_UP
                    - CONTACT_US
                    - GET_QUOTE
                    - BOOK_NOW
                    - SUBSCRIBE
                    - DOWNLOAD
                    - SHOP_NOW
                    - ORDER_NOW
                    - GET_OFFER
                    - GET_STARTED
                    - REQUEST_TIME
                    - CALL_NOW
                    - MESSAGE_PAGE
                    - WHATSAPP_MESSAGE
                image_url:
                  type: string
                  nullable: true
                link:
                  type: string
                  nullable: true
                page_id:
                  type: string
                  nullable: true
              required:
                - headline
                - primary_text
                - call_to_action_type
                - image_url
                - link
                - page_id
            ad_id:
              type: string
              nullable: true
              pattern: ^\d+$
          required:
            - id
            - run_id
            - campaign_id
            - status
            - reason
            - rejection_reason
            - failure
            - error
            - decision
            - executed_at
            - created_at
            - kind
            - ad_set_id
            - ad_set_name
            - creative_brief
            - variant
            - ad_id
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          required:
            - code
            - message
      required:
        - error

````

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