> ## 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.

# Patch Team Profile

> Update the current contact's team-scoped profile for the given team.



## OpenAPI

````yaml /openapi/mio-openapi.json patch /api/v1/contact-auth/me/teams/{team_id}/profile
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/contact-auth/me/teams/{team_id}/profile:
    patch:
      tags:
        - contact-auth
      summary: Patch Team Profile
      description: Update the current contact's team-scoped profile for the given team.
      operationId: >-
        contact_auth.patch_contact_auth_patch_contact_auth_me_teams_by_team_id_profile
      parameters:
        - in: path
          name: team_id
          required: true
          schema:
            pattern: >-
              ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
            title: Team Id
            type: string
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/TeamProfileUpdateEnvelope'
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/TeamProfileResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    TeamProfileUpdateEnvelope:
      additionalProperties: false
      properties:
        data:
          $ref: '#/components/schemas/TeamProfileUpdateData'
      required:
        - data
      title: TeamProfileUpdateEnvelope
      type: object
    TeamProfileResponse:
      additionalProperties: false
      description: JSON:API single-resource envelope for team profile routes.
      properties:
        data:
          $ref: '#/components/schemas/TeamProfileResource'
      required:
        - data
      title: TeamProfileResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    TeamProfileUpdateData:
      additionalProperties: false
      properties:
        attributes:
          $ref: '#/components/schemas/TeamProfileUpdateAttributes'
        type:
          const: team_contacts
          title: Type
          type: string
      required:
        - type
        - attributes
      title: TeamProfileUpdateData
      type: object
    TeamProfileResource:
      additionalProperties: false
      description: JSON:API resource object for GET/PATCH /me/teams/{team_id}/profile.
      properties:
        attributes:
          $ref: '#/components/schemas/TeamProfileAttributes'
        id:
          title: Id
          type: string
        type:
          const: team_contacts
          default: team_contacts
          title: Type
          type: string
      required:
        - id
        - attributes
      title: TeamProfileResource
      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
    TeamProfileUpdateAttributes:
      additionalProperties: false
      properties:
        city:
          anyOf:
            - maxLength: 100
              type: string
            - type: 'null'
          title: City
        country:
          anyOf:
            - maxLength: 2
              minLength: 2
              type: string
            - type: 'null'
          title: Country
        first_name:
          anyOf:
            - maxLength: 100
              type: string
            - type: 'null'
          title: First Name
        last_name:
          anyOf:
            - maxLength: 100
              type: string
            - type: 'null'
          title: Last Name
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        phone:
          anyOf:
            - maxLength: 32
              type: string
            - type: 'null'
          title: Phone
        state:
          anyOf:
            - maxLength: 100
              type: string
            - type: 'null'
          title: State
        timezone:
          anyOf:
            - maxLength: 64
              type: string
            - type: 'null'
          title: Timezone
      title: TeamProfileUpdateAttributes
      type: object
    TeamProfileAttributes:
      additionalProperties: false
      description: Attributes block for the `team_contacts` resource.
      properties:
        city:
          anyOf:
            - type: string
            - type: 'null'
          title: City
        country:
          anyOf:
            - type: string
            - type: 'null'
          title: Country
        created_at:
          format: date-time
          title: Created At
          type: string
        first_name:
          anyOf:
            - type: string
            - type: 'null'
          title: First Name
        last_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Name
        meta:
          additionalProperties: true
          title: Meta
          type: object
        phone:
          anyOf:
            - type: string
            - type: 'null'
          title: Phone
        source:
          title: Source
          type: string
        state:
          anyOf:
            - type: string
            - type: 'null'
          title: State
        timezone:
          anyOf:
            - type: string
            - type: 'null'
          title: Timezone
      required:
        - first_name
        - last_name
        - phone
        - country
        - city
        - state
        - timezone
        - source
        - meta
        - created_at
      title: TeamProfileAttributes
      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

````