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

# Imports multiple linked member relationships



## OpenAPI

````yaml openapi/member-v1.json POST /v1/linked-members/import
openapi: 3.0.4
info:
  title: MemberService.Api
  version: v1
servers:
  - url: https://{host}/member
    description: Your Lobyco environment
    variables:
      host:
        default: your-environment.lobyco.net
        description: >-
          The API host for your Lobyco environment. Replace it with the host you
          were given — this placeholder does not resolve.
security:
  - Bearer: []
paths:
  /v1/linked-members/import:
    post:
      tags:
        - Service2Service
      summary: Imports multiple linked member relationships
      requestBody:
        description: Linked member relationships to import
        content:
          application/json:
            schema:
              minItems: 1
              type: array
              items:
                $ref: >-
                  #/components/schemas/MemberService.Api.Controllers.DTOs.CreateLinkedMemberRequest
          text/json:
            schema:
              minItems: 1
              type: array
              items:
                $ref: >-
                  #/components/schemas/MemberService.Api.Controllers.DTOs.CreateLinkedMemberRequest
          application/*+json:
            schema:
              minItems: 1
              type: array
              items:
                $ref: >-
                  #/components/schemas/MemberService.Api.Controllers.DTOs.CreateLinkedMemberRequest
        required: true
      responses:
        '200':
          description: OK
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoopFoundation.Commons.Contracts.WebServiceError
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/LoopFoundation.Commons.Contracts.WebServiceError
components:
  schemas:
    MemberService.Api.Controllers.DTOs.CreateLinkedMemberRequest:
      required:
        - primaryMemberId
        - relatedMemberId
        - relationshipType
      type: object
      properties:
        primaryMemberId:
          maxLength: 36
          minLength: 1
          type: string
          description: Primary member ID
        relatedMemberId:
          maxLength: 36
          minLength: 1
          type: string
          description: Related member ID
        relationshipType:
          $ref: >-
            #/components/schemas/MemberService.Domain.Entities.MemberRelationshipType
      additionalProperties: false
    LoopFoundation.Commons.Contracts.WebServiceError:
      required:
        - message
        - name
      type: object
      properties:
        name:
          minLength: 1
          type: string
        message:
          minLength: 1
          type: string
        details:
          nullable: true
      additionalProperties: false
    MemberService.Domain.Entities.MemberRelationshipType:
      enum:
        - MergedMembership
        - AdditionalCardHolder
      type: string
  securitySchemes:
    Bearer:
      type: apiKey
      description: >-
        JWT Authorization header using the Bearer scheme. Example:
        "Authorization: Bearer {token}"
      name: Authorization
      in: header

````