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

# Unreject Lead

> Restores a `rejected` lead to the state it was in before it was rejected (`converted`, `paid` or `churned`), and moves any rewards that were rejected along with it back to `pending`. Use this to undo a rejection made by mistake. The stored `reject_reason` is cleared. Only `rejected` leads can be unrejected.



## OpenAPI

````yaml POST /v1/leads/{id}/unreject
openapi: 3.1.0
info:
  title: Reditus API - Leads
  description: API specification for managing leads in Reditus lead programs.
  version: 1.0.0
servers:
  - url: https://api.getreditus.com/api
security: []
paths:
  /v1/leads/{id}/unreject:
    post:
      summary: Unreject Lead
      description: >-
        Restores a `rejected` lead to the state it was in before it was rejected
        (`converted`, `paid` or `churned`), and moves any rewards that were
        rejected along with it back to `pending`. Use this to undo a rejection
        made by mistake. The stored `reject_reason` is cleared. Only `rejected`
        leads can be unrejected.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Reditus id of the lead
      responses:
        '200':
          description: Lead was restored to its previous state
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LeadResponse'
        '404':
          description: Not Found - Lead not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseNotFound'
        '422':
          description: Unprocessable - Lead is not rejected
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponseUnprocessable'
      security:
        - BearerAuth: []
components:
  schemas:
    LeadResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Lead'
    ErrorResponseNotFound:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              title:
                type: string
                example: Not Found
              details:
                type: string
                example: Lead not found
    ErrorResponseUnprocessable:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              title:
                type: string
                example: Unprocessable entity
              details:
                type: string
                example: Lead in state 'clicked' cannot be rejected
    Lead:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
        attributes:
          type: object
          properties:
            email:
              type: string
            uid:
              type: string
            advocate_id:
              type: string
            state:
              type: string
              description: 'Lead state: new, clicked, converted, paid, churned or rejected'
            reject_reason:
              type: string
              description: >-
                Reason the lead was rejected. Only present when state is
                rejected
            state_set_at:
              type: integer
            created_at:
              type: integer
            updated_at:
              type: integer
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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