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

# Update subscriber

> Update an existing subscriber



## OpenAPI

````yaml https://api.onset.io/v1/openapi.yml patch /subscribers/{id}
openapi: 3.1.0
info:
  title: Onset API
  description: >-
    RESTful API for managing milestones, releases, subscribers, and webhooks in
    Onset workspace.
  version: 1.0.0
  contact:
    name: Onset Support
    url: https://www.onset.io
    email: support@onset.io
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://api.onset.io/v1
    description: API V1
security:
  - bearerAuth: []
  - basicAuth: []
tags:
  - name: Workspace
    description: Workspace management operations
  - name: Milestones
    description: Milestone management operations
  - name: Releases
    description: Release management operations
  - name: Subscribers
    description: Subscriber management operations
  - name: Webhooks
    description: Webhook management operations
  - name: Incoming Webhooks
    description: Incoming webhook management operations
paths:
  /subscribers/{id}:
    patch:
      tags:
        - Subscribers
      summary: Update subscriber
      description: Update an existing subscriber
      parameters:
        - name: id
          in: path
          required: true
          description: Subscriber ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSubscriberRequest'
      responses:
        '200':
          description: Subscriber updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Subscriber'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    UpdateSubscriberRequest:
      type: object
      properties:
        list_ids:
          type: array
          items:
            type: string
            format: uuid
          description: Array of list IDs to subscribe to
    Subscriber:
      type: object
      properties:
        id:
          type: string
          description: Unique subscriber identifier
        email:
          type: string
          format: email
          description: Subscriber email address
        lists:
          type: array
          items:
            $ref: '#/components/schemas/SubscriberList'
          description: Lists the subscriber belongs to
        created_at:
          type: string
          format: date-time
          description: When the subscriber was created
        updated_at:
          type: string
          format: date-time
          description: When the subscriber was last updated
    SubscriberList:
      type: object
      properties:
        id:
          type: string
          description: Unique list identifier
        name:
          type: string
          description: List name
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Error message
        details:
          type: object
          description: Additional error details
      required:
        - error
  responses:
    BadRequest:
      description: Bad request - Invalid input parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Unauthorized - Invalid or missing authentication
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: Not found - Resource does not exist
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````