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

# Reject Sync Draft

> Reject a sync draft. The draft closes without applying its change; to try
again, the requester edits the sync.



## OpenAPI

````yaml https://api.hightouch.io/api/swagger.json post /syncs/{syncId}/drafts/{draftId}/reject
openapi: 3.0.0
info:
  title: Hightouch API
  version: 1.0.0
  description: Hightouch Public Rest API to access syncs, models, sources and destinations
  contact:
    name: Hightouch
    url: https://hightouch.com
servers:
  - url: https://api.hightouch.com/api/v1
security: []
paths:
  /syncs/{syncId}/drafts/{draftId}/reject:
    post:
      summary: Reject Sync Draft
      description: >-
        Reject a sync draft. The draft closes without applying its change; to
        try

        again, the requester edits the sync.
      operationId: RejectSyncDraft
      parameters:
        - description: The id of the sync
          in: path
          name: syncId
          required: true
          schema:
            type: number
            format: double
        - description: The id of the draft
          in: path
          name: draftId
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RejectSyncDraftInput'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SyncDraft'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateErrorJSON'
        '413':
          description: Payload Too Large
        '422':
          description: Validation Failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateErrorJSON'
      security:
        - bearerAuth: []
components:
  schemas:
    RejectSyncDraftInput:
      properties:
        metadata:
          $ref: '#/components/schemas/DraftReviewMetadataInput'
      type: object
      additionalProperties: false
    SyncDraft:
      description: >-
        A proposed change to a sync that waits for approval. Approving it
        applies

        the change; rejecting it closes it without applying anything.
      properties:
        id:
          type: string
          description: The draft's id
        syncId:
          type: string
          description: The id of the sync the draft changes
        operation:
          type: string
          enum:
            - create
            - update
          description: '`create` publishes a new sync, `update` changes an existing one'
        status:
          $ref: '#/components/schemas/SyncDraftStatus'
        requestedBy:
          allOf:
            - $ref: '#/components/schemas/UserReference'
          nullable: true
          description: The user who submitted the draft
        requestedApprovers:
          items:
            $ref: '#/components/schemas/UserReference'
          type: array
          description: The users asked to review the draft
        requestComment:
          type: string
          nullable: true
          description: The comment the requester left for reviewers
        createdAt:
          type: string
          format: date-time
          description: The timestamp when the draft was created
        updatedAt:
          type: string
          format: date-time
          description: The timestamp when the draft last changed
        reviewedBy:
          allOf:
            - $ref: '#/components/schemas/UserReference'
          nullable: true
          description: >-
            The user who approved or rejected the draft. With an API key, this
            is the

            user who owns the key.
        reviewedAt:
          type: string
          format: date-time
          nullable: true
          description: The timestamp when the draft was approved or rejected
        reviewMetadata:
          properties:
            extId:
              type: string
          required:
            - extId
          type: object
          nullable: true
          description: The metadata sent with the approval or rejection
      required:
        - id
        - syncId
        - operation
        - status
        - requestedBy
        - requestedApprovers
        - requestComment
        - createdAt
        - updatedAt
        - reviewedBy
        - reviewedAt
        - reviewMetadata
      type: object
      additionalProperties: false
    ValidateErrorJSON:
      properties:
        message:
          type: string
          enum:
            - Validation failed
          nullable: false
        details:
          properties: {}
          additionalProperties: {}
          type: object
      required:
        - message
        - details
      type: object
      additionalProperties: false
    DraftReviewMetadataInput:
      description: Identifies the reviewer in the caller's own approval system.
      properties:
        extId:
          type: string
          description: The reviewer's id in the caller's approval system
          minLength: 1
          maxLength: 255
      required:
        - extId
      type: object
      additionalProperties: false
    SyncDraftStatus:
      type: string
      enum:
        - pending
        - approved
        - rejected
        - canceled
      description: |-
        The state of a sync draft. New values may be added, so treat an unknown
        value as closed.
    UserReference:
      description: >-
        The Hightouch user who created or last updated a resource. Changes made
        with

        an API key are attributed to the user who created the key.
      properties:
        id:
          type: number
          format: double
          description: The user's id
        name:
          type: string
          description: The user's name
        email:
          type: string
          description: The user's email address
      required:
        - id
        - name
        - email
      type: object
      additionalProperties: false
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Bearer

````