# Set business people

`businesses.set_people`

Replace the workspace CRM people linked to this business. This changes CRM relationships only; it does not invite portal users or change application access. primary_person_id must be in person_ids. Read current links first and reuse client_request_id only for an identical retry.

[Businesses guide](https://docs.levr.ai/mcp/resources/businesses.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: write. Required OAuth scopes: mcp.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "business_id": {
      "description": "Copy id (biz_) from businesses.list.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "client_request_id": {
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    },
    "person_ids": {
      "description": "Copy Person IDs from people.list or this record’s list_people; [] clears all links. Prefix: pers_.",
      "items": {
        "description": "Stable public identifier for the referenced resource.",
        "maxLength": 255,
        "minLength": 1,
        "type": "string"
      },
      "maxItems": 500,
      "type": "array",
      "uniqueItems": true
    },
    "primary_person_id": {
      "anyOf": [
        {
          "description": "Stable public identifier for the referenced resource.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Copy a Person ID included in person_ids, or null for no primary contact. Prefix: pers_."
    },
    "provider_slug": {
      "description": "Copy provider_slug from providers.list; named slugs are valid.",
      "maxLength": 255,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "provider_slug",
    "business_id",
    "person_ids",
    "primary_person_id",
    "client_request_id"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "people": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "company_name": {
                "type": "string"
              },
              "created_at": {
                "format": "date-time",
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "frontend_link": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "full_name": {
                "type": "string"
              },
              "id": {
                "description": "Stable public identifier for the referenced resource.",
                "maxLength": 255,
                "minLength": 1,
                "type": "string"
              },
              "is_do_not_contact": {
                "type": "boolean"
              },
              "is_primary": {
                "type": "boolean"
              },
              "job_title": {
                "type": "string"
              },
              "notes": {
                "type": "string"
              },
              "object": {
                "const": "person",
                "type": "string"
              },
              "owner": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "email": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "email",
                      "name"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone_number": {
                "type": "string"
              },
              "tags": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "color": {
                      "type": "string"
                    },
                    "id": {
                      "description": "Stable public identifier for the referenced resource.",
                      "maxLength": 255,
                      "minLength": 1,
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "color"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "updated_at": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "id",
              "object",
              "full_name",
              "email",
              "phone_number",
              "company_name",
              "job_title",
              "is_do_not_contact",
              "notes",
              "owner",
              "tags",
              "created_at",
              "updated_at",
              "frontend_link",
              "is_primary"
            ],
            "type": "object"
          },
          "maxItems": 500,
          "type": "array"
        },
        "record_id": {
          "description": "Stable public identifier for the referenced resource.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "record_id",
        "people"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```

Check the result, then read the affected record to confirm your change.
