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

# Split Person

> Moves the specified `contact_ids` from `person_id` into one newly created people record. The source people record must keep at least one contact after the split.



## OpenAPI

````yaml POST /public/people/split
openapi: 3.0.3
info:
  title: RevyOps API
  version: 1.0.0
servers:
  - url: https://app.revyops.com/api
security:
  - ApiKeyAuth: []
paths:
  /public/people/split:
    post:
      tags:
        - public
      description: >-
        Moves the specified `contact_ids` from `person_id` into one newly
        created people record. The source people record must keep at least one
        contact after the split.
      operationId: Split people record
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PersonSplit'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PersonSplit'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PersonSplit'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactPersonSplitResponse'
          description: ''
        '400':
          description: Bad Request. Invalid split payload.
        '403':
          description: Forbidden. Missing authentication credentials or invalid API key.
        '404':
          description: >-
            Not Found. The source people record or one or more contacts were not
            found for this client.
        '500':
          description: Internal Server Error. An unexpected error occurred on the server.
components:
  schemas:
    PersonSplit:
      type: object
      properties:
        person_id:
          type: integer
          minimum: 1
        contact_ids:
          type: array
          items:
            type: integer
            minimum: 1
          minItems: 1
      required:
        - contact_ids
        - person_id
    ContactPersonSplitResponse:
      type: object
      properties:
        source_person_id:
          type: integer
        new_person_id:
          type: integer
        moved_contact_ids:
          type: array
          items:
            type: integer
        moved_contacts:
          type: integer
      required:
        - moved_contact_ids
        - moved_contacts
        - new_person_id
        - source_person_id
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````