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

# Set A Person's Tags

> Add, remove, or replace the tags on one person

Same body and the same three modes as
[Set An Account's Tags](https://docs.clustr-ai.com/api-reference/set-account-record-tags.md), keyed on the
person instead. The response is the person's tags read back after the write.

> [!NOTE]
>
> **Tags on a connector describe the person, not their opportunities.** Every
> opportunity that connector produces is reached through them, so a tag here is
> a claim about the relationship rather than about any one intro. Tag the intro
> itself with [Set An Opportunity's
> Tags](https://docs.clustr-ai.com/api-reference/set-path-record-tags.md).

```bash cURL theme={null}
curl -X PUT "https://api.clustr-ai.com/api/public/record-tags/person/per_bb771nzbxnmw9dhsnwhbt47j9b" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tag_ids": ["tag_pwa7mesqbjb6rac49g9msmg1e0"], "mode": "add"}'
```

```json 200 theme={null}
{
  "success": true,
  "data": {
    "tags": [
      {
        "clustr_tag_id": "tag_pwa7mesqbjb6rac49g9msmg1e0",
        "clustr_group_id": "tgrp_3p1wdmf0bqvw8j4fgwnv0q2jdm",
        "id": "4c8a9b10-2d3e-4f50-8a61-7b2c3d4e5f60",
        "group_id": "1d2e3f40-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
        "name": "Employee",
        "color": "#6366F1"
      }
    ]
  }
}
```

```json 400 theme={null}
{
  "success": false,
  "error": { "message": "unknown tag: 00000000-0000-0000-0000-000000000000", "code": "BAD_REQUEST" }
}
```


## OpenAPI

````yaml PUT /record-tags/person/{linkedinId}
openapi: 3.1.0
info:
  title: Clustr Public API
  description: >
    Programmatic access to your Clustr network: import connectors, search warm
    intros (opportunities), and manage target accounts.


    ## Authentication

    All endpoints require a Bearer token (API key) in the `Authorization`
    header.


    ```

    Authorization: Bearer <your_api_key>

    ```


    API keys can be created and managed from the [API settings
    page](https://app.clustr-ai.com/api).
  version: '1.0'
  contact:
    name: Clustr Support
    url: https://clustr-ai.com
servers:
  - url: https://api.clustr-ai.com/api/public
    description: Production
security:
  - BearerAuth: []
paths:
  /record-tags/person/{linkedinId}:
    parameters:
      - name: linkedinId
        in: path
        required: true
        schema:
          type: string
        description: >-
          The person's Clustr ID (`per_…`). Their LinkedIn public identifier,
          the `linkedin_id` that [List

          Connectors](/api-reference/list-connectors) returns, also works: for

          `https://www.linkedin.com/in/nicdelaye` that is `nicdelaye`.
        example: per_fcj4qj1qwdzbzc83abjfxvkz19
    put:
      tags:
        - Tags
      summary: Set A Person's Tags
      description: >-
        Add, remove or replace the person's tags. Answers with the tags they
        carry afterwards.
      operationId: setPersonRecordTags
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetRecordTagsRequest'
      responses:
        '200':
          description: The person's tags after the write
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      tags:
                        type: array
                        items:
                          $ref: '#/components/schemas/Tag'
        '400':
          description: An unknown tag id, or a tag outside the person tag field
        '401':
          description: Invalid or missing API key
components:
  schemas:
    SetRecordTagsRequest:
      type: object
      required:
        - tag_ids
      description: >-
        What the write does to the tags already on the record: `add` keeps the
        other tags, `remove` takes these off, `replace` leaves exactly these.
      properties:
        tag_ids:
          type: array
          items:
            type: string
          description: >-
            Tag Clustr IDs (`tag_…`) from the `account` tag field, from [List
            Tag

            Groups](/api-reference/list-tag-groups). The ids from earlier
            responses also work.
        mode:
          type: string
          enum:
            - replace
            - add
            - remove
          default: replace
          description: >-
            - `replace` leaves the account with exactly `tag_ids`. Use it to
            mirror a tag picker.

            - `add` adds `tag_ids` and keeps the account's other tags. Use it in
            an automation
              that sets one tag and keeps what people chose.
            - `remove` takes these tags off and keeps the rest.
    Tag:
      type: object
      description: One term inside a tag field.
      required:
        - id
        - group_id
        - name
        - color
      properties:
        clustr_tag_id:
          type: string
          description: >-
            The tag's Clustr ID, for example `tag_275zx5fj2f0nka3hnyk651zr1e`.
            Use it to refer to this tag.

            Every tag write and the `tag` search filter take it.
          example: tag_275zx5fj2f0nka3hnyk651zr1e
        clustr_group_id:
          type: string
          description: >-
            The Clustr ID of the tag field it lives in, for example
            `tgrp_s4t5tk9wn7mx8n3hry88wv0rqa`. A tag

            cannot move between fields.
          example: tgrp_s4t5tk9wn7mx8n3hry88wv0rqa
        id:
          type: string
          format: uuid
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_tag_id`.
        group_id:
          type: string
          format: uuid
          description: >-
            Kept for integrations built before Clustr IDs. New integrations
            should use `clustr_group_id`.
        group_name:
          type: string
          description: That field's name, so a flat list says which field a tag is in.
        subject_type:
          type: string
          enum:
            - account
            - person
            - path
          description: 'The field''s subject type: `account`, `person` or `path`.'
        name:
          type: string
          maxLength: 50
        color:
          type: string
          maxLength: 20
          example: '#3B82F6'
        position:
          type: integer
        closes:
          type: boolean
          description: >-
            For opportunity (`path`) tags: `true` means the conversation on this
            path is over. A path carrying it sorts last, shows a neutral pill
            and stays visible.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: The API key you created on the API settings page of the Clustr app.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.