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

# Update Own Audience State

> Update the caller's own pin/mute/archive state for a conversation.

Private per-member state — only affects the caller's own view. Only the
flags supplied in the request body are written (partial update); an
all-omitted body is rejected as 422 by ConversationAudienceUpdateAttributes
before this handler ever runs.

Returns 200 with the caller's conversation_audiences resource (all three
flags always included).
Returns 403 conversation_access_denied when the caller is not an active
member. 403 member_banned / member_not_in_hub on ban. 404
conversation_not_found when missing/soft-deleted. 422
pin_archived_conversation when the request would pin and archive in the
same call.
Requires Content-Type: application/vnd.api+json.



## OpenAPI

````yaml /openapi/mio-openapi.json patch /api/v1/conversations/{conversation_id}/audiences/me
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/conversations/{conversation_id}/audiences/me:
    patch:
      tags:
        - community-conversations
      summary: Update Own Audience State
      description: >-
        Update the caller's own pin/mute/archive state for a conversation.


        Private per-member state — only affects the caller's own view. Only the

        flags supplied in the request body are written (partial update); an

        all-omitted body is rejected as 422 by
        ConversationAudienceUpdateAttributes

        before this handler ever runs.


        Returns 200 with the caller's conversation_audiences resource (all three

        flags always included).

        Returns 403 conversation_access_denied when the caller is not an active

        member. 403 member_banned / member_not_in_hub on ban. 404

        conversation_not_found when missing/soft-deleted. 422

        pin_archived_conversation when the request would pin and archive in the

        same call.

        Requires Content-Type: application/vnd.api+json.
      operationId: >-
        community_conversations.patch_community_conversations_patch_conversations_by_conversation_id_audiences_me
      parameters:
        - in: path
          name: conversation_id
          required: true
          schema:
            title: Conversation Id
            type: string
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/ConversationAudienceUpdateEnvelope'
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: >-
                  #/components/schemas/JsonApiResponse_ConversationAudienceAttributes_
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    ConversationAudienceUpdateEnvelope:
      description: >-
        JSON:API envelope for PATCH
        /api/conversations/{conversation_id}/audiences/me.


        data.type must be 'conversation_audiences'.

        data.attributes carries any non-empty subset of
        is_pinned/is_muted/is_archived —

        at least one must be provided (see
        ConversationAudienceUpdateAttributes).
      properties:
        data:
          $ref: '#/components/schemas/_ConversationAudienceUpdateData'
      required:
        - data
      title: ConversationAudienceUpdateEnvelope
      type: object
    JsonApiResponse_ConversationAudienceAttributes_:
      properties:
        data:
          $ref: '#/components/schemas/JsonApiResource_ConversationAudienceAttributes_'
        included:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Included
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - data
      title: JsonApiResponse[ConversationAudienceAttributes]
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    _ConversationAudienceUpdateData:
      properties:
        attributes:
          $ref: '#/components/schemas/ConversationAudienceUpdateAttributes'
        type:
          const: conversation_audiences
          default: conversation_audiences
          title: Type
          type: string
      required:
        - attributes
      title: _ConversationAudienceUpdateData
      type: object
    JsonApiResource_ConversationAudienceAttributes_:
      properties:
        attributes:
          $ref: '#/components/schemas/ConversationAudienceAttributes'
        id:
          title: Id
          type: string
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        relationships:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Relationships
        type:
          title: Type
          type: string
      required:
        - id
        - type
        - attributes
      title: JsonApiResource[ConversationAudienceAttributes]
      type: object
    JsonApiLinks:
      properties:
        self:
          anyOf:
            - type: string
            - type: 'null'
          title: Self
      title: JsonApiLinks
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    ConversationAudienceUpdateAttributes:
      properties:
        is_archived:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Archived
        is_muted:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Muted
        is_pinned:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Pinned
      title: ConversationAudienceUpdateAttributes
      type: object
    ConversationAudienceAttributes:
      properties:
        contact_id:
          title: Contact Id
          type: string
        conversation_id:
          title: Conversation Id
          type: string
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
        is_archived:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Archived
        is_muted:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Muted
        is_pinned:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Pinned
        last_seen_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Seen At
        photo_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Photo Url
        role:
          anyOf:
            - type: string
            - type: 'null'
          title: Role
      required:
        - conversation_id
        - contact_id
      title: ConversationAudienceAttributes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````