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

# Change a subscriber

> Fields left out or null change nothing. `tags`, when present, **replaces** the whole set of tags.



## OpenAPI

````yaml /api-reference/openapi.json put /api/v1/subscribers/{subscriber}
openapi: 3.1.0
info:
  title: Lekalao API
  version: 1.0.0
  description: >-
    Everything the interface does, your application can do too. Every call
    carries an API token (Settings → API tokens).
servers:
  - url: https://{host}
    description: Your installation
    variables:
      host:
        default: lekalao.example.com
        description: The domain of your own Lekalao
security:
  - bearer: []
tags:
  - name: Lists
  - name: Subscribers
  - name: Tags
  - name: Segments
  - name: Imports
  - name: Templates
  - name: Campaigns
  - name: Automations
  - name: Transactional e-mails
  - name: Revenue
  - name: Platform
paths:
  /api/v1/subscribers/{subscriber}:
    put:
      tags:
        - Subscribers
      summary: Change a subscriber
      description: >-
        Fields left out or null change nothing. `tags`, when present,
        **replaces** the whole set of tags.
      operationId: api.subscribers.update
      parameters:
        - name: subscriber
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The subscriber's identifier (uuid).
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                first_name:
                  type:
                    - string
                    - 'null'
                last_name:
                  type:
                    - string
                    - 'null'
                timezone:
                  type:
                    - string
                    - 'null'
                locale:
                  type:
                    - string
                    - 'null'
                attributes:
                  type: object
                  additionalProperties: true
                  description: Replaces the attributes.
                tags:
                  type: array
                  items:
                    type: string
            example:
              first_name: Ada
              tags:
                - client
                - vip
      responses:
        '200':
          description: The subscriber, changed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Subscriber'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      schema:
        type: string
        maxLength: 255
      description: >-
        Replay a write safely: the same key gives back the first answer for 24
        hours (header Idempotent-Replay: true).
  schemas:
    Subscriber:
      type: object
      properties:
        id:
          type: string
          format: uuid
        email:
          type: string
          format: email
        first_name:
          type:
            - string
            - 'null'
        last_name:
          type:
            - string
            - 'null'
        timezone:
          type:
            - string
            - 'null'
          description: 'An IANA time zone, such as Africa/Douala. Empty: the list''s own.'
        locale:
          type:
            - string
            - 'null'
          description: 'The language this person reads in. Empty: the list''s own.'
        status:
          type: string
          enum:
            - unconfirmed
            - subscribed
            - unsubscribed
        tags:
          type: array
          items:
            type: string
          description: There when the tags are loaded (read, create, update).
        attributes:
          type: object
          additionalProperties: true
          description: Your own fields.
        list:
          type: string
          format: uuid
          description: There when reading one subscriber.
        subscribed_at:
          type:
            - string
            - 'null'
          format: date-time
        unsubscribed_at:
          type:
            - string
            - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
    Message:
      type: object
      properties:
        message:
          type: string
    ValidationError:
      type: object
      properties:
        message:
          type: string
          example: The email field must be a valid email address.
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
  responses:
    Unauthenticated:
      description: No token, or an invalid or revoked one.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
          example:
            message: Unauthenticated.
    Forbidden:
      description: The token lacks the ability needed, or the team is suspended.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
    NotFound:
      description: Nothing of that uuid in the token's team.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Message'
    ValidationFailed:
      description: Invalid data.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationError'
    TooManyRequests:
      description: >-
        The token's limit is reached. Wait the number of seconds Retry-After
        gives.
      headers:
        X-RateLimit-Limit:
          schema:
            type: integer
          description: Calls allowed per minute for this token.
        X-RateLimit-Remaining:
          schema:
            type: integer
        Retry-After:
          schema:
            type: integer
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        An API token. The "read" ability: GET routes only. "read + write": every
        route.

````