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

# Create or update a member's response to a profile field



## OpenAPI

````yaml https://api.mn.co/admin/v1/spec/rest.json post /admin/v1/networks/{network_id}/custom_fields/{custom_field_id}/members/{member_id}/answers
openapi: 3.1.0
info:
  version: 1.0.0
  title: The Mighty Networks Admin API
  description: An API for managing your Mighty Networks network
servers:
  - url: https://api.mn.co
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Members
    description: Manage members of your network
  - name: Courseworks
    description: Manage course content (lessons, quizzes, sections)
  - name: Reactions
    description: Manage reactions on comments
  - name: Mute
    description: Mute posts for users
  - name: Comments
    description: Manage comments on posts
  - name: Invites
    description: Invites allow you to invite users to your network
  - name: Tags
    description: Manage tags for your network
  - name: Spaces
    description: >-
      Spaces are the organizational units within a Network where content and
      members are organized
  - name: Plans
    description: Manage plans in your network
  - name: PasswordResets
    description: Manage member password resets
  - name: Badges
    description: Manage badges for your network
  - name: Rsvps
    description: Manage event RSVPs for your network
  - name: Options
    description: Manage dropdown profile field options
  - name: Answers
    description: Manage member responses to profile fields
  - name: Subscriptions
    description: >-
      Manage payment subscriptions - recurring payments from members to hosts
      for plans
  - name: Purchases
    description: Manage purchases and subscriptions for your network
  - name: Posts
    description: Posts also include Articles.
  - name: Polls
    description: >-
      Polls and Questions allow members to share opinions and engage with each
      other
  - name: Networks
    description: >-
      Networks are the top-level organizational unit under which other resources
      are nested
  - name: Me
    description: Metadata about the requesting user
  - name: Events
    description: Events are scheduled gatherings that members can RSVP to and engage with
  - name: CustomFields
    description: Manage profile fields for your network
  - name: Collections
    description: Manage collections in your network
  - name: Assets
    description: Manage assets for your network
  - name: AbuseReports
    description: Manage abuse reports for your network
paths:
  /admin/v1/networks/{network_id}/custom_fields/{custom_field_id}/members/{member_id}/answers:
    post:
      tags:
        - Answers
      summary: Create or update a member's response to a profile field
      operationId: create_answers
      parameters:
        - name: custom_field_id
          in: path
          required: true
          description: ID of the profile field
          schema:
            type: integer
            format: uint64
        - name: member_id
          in: path
          required: true
          description: ID of the member
          schema:
            type: integer
            format: uint64
        - $ref: '#/components/parameters/networkId'
      requestBody:
        description: Submit results as JSON
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomFieldAnswerRequest'
      responses:
        '200':
          description: >-
            The stored answer: an answer object for a type keeping one row per
            member, or the member's whole answer for a type keeping one row per
            value (multi_location)
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/CustomFieldAnswerResponse'
                  - $ref: '#/components/schemas/CustomFieldAnswersResponse'
        '204':
          description: The response was cleared, so there is no answer to return
        '403':
          description: You do not have permission to manage this member's responses
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Profile field or member not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: >-
            Validation error (e.g., text length constraints, segment count,
            etc.)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  parameters:
    networkId:
      name: network_id
      in: path
      description: The Network's unique integer ID, or subdomain
      required: true
      schema:
        oneOf:
          - type: integer
            description: Unique numeric network ID
            format: uint64
          - type: string
            description: Network subdomain
            format: /^[a-z][a-z0-9-]+$/
  schemas:
    CustomFieldAnswerRequest:
      description: Request to create or update a profile field answer
      type: object
      required: []
      properties:
        text:
          type: string
          description: The text response for text-based profile fields
          example: I love hiking and photography
        number:
          type: integer
          format: uint64
          description: The whole-number response for number profile fields
          example: 42
        boolean_value:
          type: boolean
          description: The Yes/No response for Yes/No profile fields
          example: true
        date:
          type: string
          format: date
          description: The date response for date profile fields, as YYYY-MM-DD
          example: '2026-03-03'
        start_date:
          type: string
          format: date
          description: >-
            The start of the range for date range profile fields, as YYYY-MM-DD.
            Sent together with end_date
          example: '2026-03-03'
        end_date:
          type: string
          format: date
          description: >-
            The end of the range for date range profile fields, as YYYY-MM-DD.
            Sent together with start_date
          example: '2026-03-10'
        month:
          type: integer
          format: uint64
          description: The month response for recurring date profile fields
          example: 3
        day:
          type: integer
          format: uint64
          description: The day response for recurring date profile fields
          example: 3
        url:
          type: string
          description: The web address response for URL profile fields
          example: https://example.com
        phone_number:
          type: string
          description: >-
            The phone number response for phone number profile fields, in E.164
            form
          example: '+14155552671'
        latitude:
          type: number
          format: double
          description: >-
            Latitude of the place, for location profile fields. Sent together
            with text and longitude
          example: 37.7749
        longitude:
          type: number
          format: double
          description: >-
            Longitude of the place, for location profile fields. Sent together
            with text and latitude
          example: -122.4194
        locations:
          type: array
          description: >-
            Every place picked, for multi location profile fields. Replaces the
            stored places; an empty array clears them
          items:
            $ref: '#/components/schemas/CustomFieldAnswerLocationRequest'
        segment_ids:
          type: array
          description: Array of segment IDs for dropdown profile fields
          items:
            type: integer
            format: uint64
    CustomFieldAnswerResponse:
      description: A user's response to a profile field question
      type: object
      required:
        - created_at
        - custom_field_id
        - id
        - last_edited_at
        - updated_at
        - user_id
      properties:
        id:
          type: integer
          format: uint64
          description: The record's integer ID
          example: '1234'
        created_at:
          type: string
          format: date-time
          description: The date and time the record was created
          example: '2026-10-23T02:19:14Z'
        updated_at:
          type: string
          format: date-time
          description: The date and time the record was last modified
          example: '2026-10-23T02:19:14Z'
        user_id:
          type: integer
          format: uint64
          description: ID of the user who provided this response
          example: 12345
        custom_field_id:
          type: integer
          format: uint64
          description: ID of the profile field this response is for
          example: 67890
        text:
          type: string
          description: The text response (for text-based profile fields)
          example: I love hiking and photography
        number:
          type: integer
          format: uint64
          description: The whole-number response (for number profile fields)
          example: 42
        boolean_value:
          type: boolean
          description: The Yes/No response (for Yes/No profile fields)
          example: true
        date:
          type: string
          format: date
          description: The date response (for date profile fields)
          example: '2026-03-03'
        latitude:
          type: number
          format: double
          description: Latitude of the place (for location profile fields)
          example: 37.7749
        longitude:
          type: number
          format: double
          description: Longitude of the place (for location profile fields)
          example: -122.4194
        start_date:
          type: string
          format: date
          description: The start of the range (for date range profile fields)
          example: '2026-03-03'
        end_date:
          type: string
          format: date
          description: The end of the range (for date range profile fields)
          example: '2026-03-10'
        month:
          type: integer
          format: uint64
          description: The month response (for recurring date profile fields)
          example: 3
        day:
          type: integer
          format: uint64
          description: The day response (for recurring date profile fields)
          example: 3
        url:
          type: string
          description: The web address response (for URL profile fields)
          example: https://example.com
        phone_number:
          type: string
          description: >-
            The phone number response in E.164 form (for phone number profile
            fields)
          example: '+14155552671'
        segments:
          type: array
          description: Array of segments (for dropdown profile fields)
          items:
            $ref: '#/components/schemas/SegmentResponse'
        last_edited_at:
          type: string
          format: date-time
          description: When this response was last edited
          example: '2025-01-15T10:30:00Z'
    CustomFieldAnswersResponse:
      description: >-
        A member's whole answer to a profile field whose answer spans several
        rows, one per value. Carries no row ID, since no single row is the
        answer
      type: object
      required:
        - custom_field_id
        - last_edited_at
        - member_id
      properties:
        member_id:
          type: integer
          format: uint64
          description: ID of the member who gave this answer
          example: 12345
        custom_field_id:
          type: integer
          format: uint64
          description: ID of the profile field this answer is for
          example: 67890
        locations:
          type: array
          description: >-
            Every place the member holds, oldest first (for multi location
            profile fields)
          items:
            $ref: '#/components/schemas/CustomFieldAnswerLocationResponse'
        last_edited_at:
          type: string
          format: date-time
          description: When the member last changed this answer
          example: '2025-01-15T10:30:00Z'
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: An error message explaining the problem encountered
    CustomFieldAnswerLocationRequest:
      description: One place for a multi location profile field response
      type: object
      required:
        - label
        - latitude
        - longitude
      properties:
        label:
          type: string
          description: The place's display name
          example: San Francisco, CA
        latitude:
          type: number
          format: double
          description: The place's latitude
          example: 37.7749
        longitude:
          type: number
          format: double
          description: The place's longitude
          example: -122.4194
    SegmentResponse:
      description: Segments are profile field options used to categorize members
      type: object
      required:
        - created_at
        - custom_field_id
        - id
        - title
        - updated_at
      properties:
        id:
          type: integer
          format: uint64
          description: The record's integer ID
          example: '1234'
        created_at:
          type: string
          format: date-time
          description: The date and time the record was created
          example: '2026-10-23T02:19:14Z'
        updated_at:
          type: string
          format: date-time
          description: The date and time the record was last modified
          example: '2026-10-23T02:19:14Z'
        title:
          type: string
          description: The title of the segment
          example: Gold Member
        description:
          type: string
          description: The description of the segment
          example: Premium tier members
        color:
          type: string
          description: The hex color code for the segment
          example: '#FFD700'
        custom_field_id:
          type: integer
          format: uint64
          description: The ID of the profile field this segment belongs to
    CustomFieldAnswerLocationResponse:
      description: One place a member picked on a multi location profile field
      type: object
      required:
        - label
        - latitude
        - longitude
      properties:
        label:
          type: string
          description: The place's display name
          example: San Francisco, CA
        latitude:
          type: number
          format: double
          description: The place's latitude
          example: 37.7749
        longitude:
          type: number
          format: double
          description: The place's longitude
          example: -122.4194
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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