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

# Decline or close prompt.

> Declines or Closes the specified prompt on behalf of a member.



## OpenAPI

````yaml openapi/prompt-v1.json POST /core/v1/interaction/{id}/decline
openapi: 3.0.1
info:
  title: Prompt.Api
  version: v1
servers:
  - url: https://{host}/prompt
    description: Your Lobyco environment
    variables:
      host:
        default: your-environment.lobyco.net
        description: >-
          The API host for your Lobyco environment. Replace it with the host you
          were given — this placeholder does not resolve.
security:
  - Bearer: []
paths:
  /core/v1/interaction/{id}/decline:
    post:
      tags:
        - Interaction
      summary: Decline or close prompt.
      description: Declines or Closes the specified prompt on behalf of a member.
      parameters:
        - name: id
          in: path
          description: Unique identifier of the prompt to decline.
          required: true
          schema:
            type: integer
            format: int32
        - name: memberId
          in: query
          description: Unique identifier of the member performing the action.
          schema:
            type: string
      requestBody:
        description: 'Optional request body containing action type: Dismiss or Close.'
        content:
          application/json-patch+json:
            schema:
              $ref: >-
                #/components/schemas/Prompt.Api.DTO.Requests.Interaction.DeclineRequest
          application/json:
            schema:
              $ref: >-
                #/components/schemas/Prompt.Api.DTO.Requests.Interaction.DeclineRequest
          text/json:
            schema:
              $ref: >-
                #/components/schemas/Prompt.Api.DTO.Requests.Interaction.DeclineRequest
          application/*+json:
            schema:
              $ref: >-
                #/components/schemas/Prompt.Api.DTO.Requests.Interaction.DeclineRequest
      responses:
        '200':
          description: Success
          content:
            text/plain:
              schema:
                $ref: >-
                  #/components/schemas/Prompt.Api.DTO.Responses.PromptInteractionResponse
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Prompt.Api.DTO.Responses.PromptInteractionResponse
            text/json:
              schema:
                $ref: >-
                  #/components/schemas/Prompt.Api.DTO.Responses.PromptInteractionResponse
        '400':
          description: Bad Request
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
        '404':
          description: Not Found
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            application/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
            text/json:
              schema:
                $ref: '#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails'
components:
  schemas:
    Prompt.Api.DTO.Requests.Interaction.DeclineRequest:
      type: object
      properties:
        actionType:
          $ref: '#/components/schemas/Prompt.Api.Infrastructure.Enums.ActionType'
      additionalProperties: false
    Prompt.Api.DTO.Responses.PromptInteractionResponse:
      type: object
      properties:
        url:
          type: string
          description: >-
            The URL to which the user should be redirected after completing the
            prompt interaction.
          nullable: true
      additionalProperties: false
    Microsoft.AspNetCore.Mvc.ProblemDetails:
      type: object
      properties:
        type:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        status:
          type: integer
          format: int32
          nullable: true
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
      additionalProperties: {}
    Prompt.Api.Infrastructure.Enums.ActionType:
      enum:
        - Dismiss
        - Close
      type: string
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        Opaque Authorization header using the Bearer scheme. Example:
        "Authorization: Bearer {token}"
      name: Authorization
      in: header

````