> ## 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 Playlist Item

> Change the position of a playlist item. Emits PlaylistUpdated.

If `position` is omitted, returns the current item state unchanged (no event emitted).



## OpenAPI

````yaml /openapi/mio-openapi.json patch /api/v1/teams/{team_id}/playlists/{id}/items/{item_id}
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/teams/{team_id}/playlists/{id}/items/{item_id}:
    patch:
      tags:
        - media-admin
      summary: Update Playlist Item
      description: >-
        Change the position of a playlist item. Emits PlaylistUpdated.


        If `position` is omitted, returns the current item state unchanged (no
        event emitted).
      operationId: >-
        media_admin.patch_media_admin_patch_teams_by_team_id_playlists_by_id_items_by_item_id
      parameters:
        - in: path
          name: team_id
          required: true
          schema:
            title: Team Id
            type: string
        - in: path
          name: id
          required: true
          schema:
            title: Id
            type: string
        - in: path
          name: item_id
          required: true
          schema:
            title: Item Id
            type: string
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/PlaylistItemUpdateRequest'
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    PlaylistItemUpdateRequest:
      description: >-
        Request body for PATCH
        /api/teams/{team_id}/playlists/{id}/items/{item_id}.
      properties:
        data:
          $ref: '#/components/schemas/PlaylistItemUpdateData'
      required:
        - data
      title: PlaylistItemUpdateRequest
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    PlaylistItemUpdateData:
      properties:
        attributes:
          $ref: '#/components/schemas/PlaylistItemUpdateAttributes'
        id:
          title: Id
          type: string
        type:
          const: playlist_items
          default: playlist_items
          title: Type
          type: string
      required:
        - id
        - attributes
      title: PlaylistItemUpdateData
      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
    PlaylistItemUpdateAttributes:
      description: >-
        PATCH fields for a PlaylistItem — only position is mutable.


        Explicit null for position is rejected — omit the field to keep the
        current value.

        Accepting null silently would produce an invisible NO-OP masking client
        bugs.
      properties:
        position:
          anyOf:
            - maximum: 2147483647
              minimum: 0
              type: integer
            - type: 'null'
          description: New 0-based ordinal position.
          title: Position
      title: PlaylistItemUpdateAttributes
      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

````