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

# Replace an interest's intake

> Replaces the whole intake block, so send the complete answer each time. Dietary, allergy and accessibility answers are forwarded to the concierge team and are never stored: they are accepted here, they are not returned, and the response records only when they were sent.



## OpenAPI

````yaml /api-reference/openapi.json put /v1/interests/{id}/intake
openapi: 3.0.3
info:
  description: Public REST API for embedding Expys experiences into a client app.
  title: Expys API
  version: 1.4.0
servers:
  - url: https://api.expys.com
    description: >-
      Expys API. Sandbox and live share this host; the environment is selected
      by which key you exchange for a member token, not by the URL.
security: []
paths:
  /v1/interests/{id}/intake:
    put:
      tags:
        - Interests
      summary: Replace an interest's intake
      description: >-
        Replaces the whole intake block, so send the complete answer each time.
        Dietary, allergy and accessibility answers are forwarded to the
        concierge team and are never stored: they are accepted here, they are
        not returned, and the response records only when they were sent.
      operationId: setInterestIntake
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetInterestIntakeRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateInterestResponse'
          description: Response for status 200
          headers:
            X-Request-Id:
              description: >-
                Per-request correlation id. Quote it to support to trace the
                call in the server logs.
              schema:
                type: string
        '401':
          description: Authentication is missing or invalid.
          headers:
            X-Request-Id:
              description: >-
                Per-request correlation id. Quote it to support to trace the
                call in the server logs.
              schema:
                type: string
        '403':
          description: Authenticated, but not permitted to access this resource.
          headers:
            X-Request-Id:
              description: >-
                Per-request correlation id. Quote it to support to trace the
                call in the server logs.
              schema:
                type: string
        '429':
          description: Rate limit exceeded; honor the Retry-After header.
          headers:
            X-Request-Id:
              description: >-
                Per-request correlation id. Quote it to support to trace the
                call in the server logs.
              schema:
                type: string
        '500':
          description: An unexpected server error occurred.
          headers:
            X-Request-Id:
              description: >-
                Per-request correlation id. Quote it to support to trace the
                call in the server logs.
              schema:
                type: string
      security:
        - ApiKeyBearer: []
        - ApiKeyHeader: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: |-
            curl -X PUT https://api.expys.com/v1/interests/<id>/intake \
              -H "Authorization: Bearer YOUR_MEMBER_TOKEN" \
              -H "Content-Type: application/json" \
              -d '{
                "accessibility": "string",
                "adults": 0,
                "allergies": "string",
                "blackoutDates": [
                  "string"
                ],
                "children": 0,
                "contactMethod": "APP_CHAT",
                "contactWindow": "MORNING",
                "dietary": "string",
                "occasion": "BIRTHDAY",
                "phone": "string",
                "preferredDates": [
                  "string"
                ]
              }'
components:
  schemas:
    SetInterestIntakeRequest:
      properties:
        accessibility:
          type: string
        adults:
          type: integer
        allergies:
          type: string
        blackoutDates:
          items:
            description: A calendar date, YYYY-MM-DD. Not a datetime.
            type: string
          type: array
        children:
          type: integer
        contactMethod:
          enum:
            - APP_CHAT
            - SMS
            - EMAIL
            - PHONE
          type: string
        contactWindow:
          enum:
            - MORNING
            - AFTERNOON
            - EVENING
            - ANYTIME
          type: string
        dietary:
          type: string
        occasion:
          enum:
            - BIRTHDAY
            - ANNIVERSARY
            - ENGAGEMENT
            - WEDDING
            - GRADUATION
            - PROMOTION
            - BUSINESS
            - OTHER
          type: string
        phone:
          type: string
        preferredDates:
          items:
            description: A calendar date, YYYY-MM-DD. Not a datetime.
            type: string
          type: array
      type: object
    CreateInterestResponse:
      properties:
        conversationId:
          nullable: true
          type: string
        createdAt:
          type: string
        id:
          type: string
        intake:
          $ref: '#/components/schemas/Intake'
        offer:
          type: string
        status:
          type: string
      required:
        - conversationId
        - createdAt
        - id
        - intake
        - offer
        - status
      type: object
    Intake:
      nullable: true
      properties:
        adults:
          nullable: true
          type: integer
        blackoutDates:
          items:
            type: string
          type: array
        children:
          nullable: true
          type: integer
        contactMethod:
          nullable: true
          type: string
          enum:
            - APP_CHAT
            - SMS
            - EMAIL
            - PHONE
        contactWindow:
          nullable: true
          type: string
          enum:
            - MORNING
            - AFTERNOON
            - EVENING
            - ANYTIME
        occasion:
          nullable: true
          type: string
          enum:
            - BIRTHDAY
            - ANNIVERSARY
            - ENGAGEMENT
            - WEDDING
            - GRADUATION
            - PROMOTION
            - BUSINESS
            - OTHER
        phone:
          nullable: true
          type: string
        phoneVerified:
          type: boolean
        preferredDates:
          items:
            type: string
          type: array
        sensitiveDetailsSentAt:
          nullable: true
          type: string
      required:
        - adults
        - blackoutDates
        - children
        - contactMethod
        - contactWindow
        - occasion
        - phone
        - phoneVerified
        - preferredDates
        - sensitiveDetailsSentAt
      type: object
  securitySchemes:
    ApiKeyBearer:
      description: Org-API-Key as a Bearer token.
      scheme: bearer
      type: http
    ApiKeyHeader:
      description: Org-API-Key as a header.
      in: header
      name: x-api-key
      type: apiKey

````