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

# Decline request



## OpenAPI

````yaml https://api.halth.com/v1/api-yaml patch /v1/organisations/{organisationId}/member-requests/{requestId}/decline
openapi: 3.0.0
info:
  title: HaltH API
  description: The API for the HaltH platform business services
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.halth.com
    description: Production
  - url: https://api.stg.halth.com
    description: Staging
security: []
tags: []
paths:
  /v1/organisations/{organisationId}/member-requests/{requestId}/decline:
    patch:
      tags:
        - Organisation
      summary: Decline request
      operationId: OrganisationMemberRequestController_decline
      parameters:
        - name: organisationId
          required: true
          in: path
          description: Organisation ID
          schema:
            type: string
        - name: requestId
          required: true
          in: path
          description: Join request ID
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganisationMemberRequest'
components:
  schemas:
    OrganisationMemberRequest:
      type: object
      properties:
        id:
          type: string
          description: Join request ID
          example: '42'
        organisationId:
          type: string
          description: Key of the organisation
          example: org_abc123
        memberId:
          type: string
          nullable: true
          description: Key of the requesting member
          example: memb_abc123
        memberName:
          type: string
          nullable: true
          description: Full name of the requesting member, if available
          example: Jane Smith
        memberEmail:
          type: string
          nullable: true
          description: Email address of the requesting member, if available
          example: jane@example.com
        role:
          enum:
            - owner
            - provider
            - member
          type: string
          description: Role being requested
          example: member
        status:
          enum:
            - pending
            - approved
            - declined
          type: string
          description: Current status of the join request
          example: pending
        createdAt:
          format: date-time
          type: string
          description: When the request was created
          example: '2024-01-15T10:30:00.000Z'
        resolvedAt:
          format: date-time
          type: string
          nullable: true
          description: When the request was approved or declined, if resolved
          example: '2024-01-16T09:00:00.000Z'
      required:
        - id
        - organisationId
        - memberId
        - memberName
        - memberEmail
        - role
        - status
        - createdAt
        - resolvedAt

````