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

# Create ownership

> Makes a rep link the owner of a customer, company, or company location within a team.



## OpenAPI

````yaml /openapi.yaml post /ownerships/
openapi: 3.0.3
info:
  title: Velocity Merchant API
  version: 1.0.0
servers:
  - url: https://api.velocity.shop
security: []
paths:
  /ownerships/:
    post:
      tags:
        - Ownerships
      summary: Create ownership
      description: >-
        Makes a rep link the owner of a customer, company, or company location
        within a team.
      operationId: ownerships_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OwnershipRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ownership'
          description: ''
      security:
        - merchantApiToken: []
components:
  schemas:
    OwnershipRequest:
      type: object
      properties:
        alignment_id:
          type: string
          format: uuid
          description: The team the ownership belongs to.
        rep_link_id:
          type: string
          format: uuid
          description: The owning rep's link in the team's hierarchy.
        customer_id:
          type: integer
          description: >-
            Exactly one of `customer_id`, `company_id`, or `location_id` is
            required.
        company_id:
          type: integer
          description: >-
            Exactly one of `customer_id`, `company_id`, or `location_id` is
            required.
        location_id:
          type: integer
          description: >-
            Exactly one of `customer_id`, `company_id`, or `location_id` is
            required.
      required:
        - alignment_id
        - rep_link_id
    Ownership:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        alignment_id:
          type: string
          format: uuid
          description: The team the ownership belongs to.
        rep_link_id:
          type: string
          format: uuid
          description: The owning rep's link in the team's hierarchy.
        customer_id:
          type: integer
          nullable: true
          readOnly: true
          description: The numeric Shopify ID of the owned customer.
        company_id:
          type: integer
          nullable: true
          readOnly: true
          description: The numeric Shopify ID of the owned company.
        location_id:
          type: integer
          nullable: true
          readOnly: true
          description: The numeric Shopify ID of the owned company location.
      required:
        - alignment_id
        - company_id
        - customer_id
        - id
        - location_id
        - rep_link_id
  securitySchemes:
    merchantApiToken:
      type: http
      scheme: bearer

````