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

# Apply selected position transfers between books.

> Moves current aggregated positions for selected tradable identifiers from the book identified by
`SourceBookId` to the book identified by `DestBookId`. The caller needs `Edit` or `Owner` access to the destination. Identifiers are matched
case-insensitively after blank values are ignored and duplicates are collapsed. The move completes before
returning.



## OpenAPI

````yaml /risk-and-pricing/atoti-risk-services/apis-endpoints/openapi/openapi.mintlify.json post /api/Books/TransferPositions
openapi: 3.0.4
info:
  title: Derivitec Api 1.0
  version: '1.0'
servers:
  - url: https://api.riskportal.activeviam.com
security:
  - oauth2: []
  - apikey: []
tags:
  - name: AdminUser
  - name: AtotiReport
  - name: AtotiSession
  - name: BloombergOAuth
  - name: Bond
  - name: BondYieldCurvePage
  - name: BookAccess
  - name: Books
  - name: Commodity
  - name: Counterparties
  - name: Currencies
  - name: Equity
  - name: EquityDividend
  - name: EquityPage
  - name: FeatureFlag
  - name: Fx
  - name: FxPage
  - name: GroupAccess
  - name: Home
  - name: LegacyPosition
  - name: MarketData
  - name: MarketDataProvider
  - name: MarketDataProviderAccess
  - name: Meta
  - name: Notification
  - name: Organisation
  - name: PnLReport
  - name: PortfolioAccess
  - name: Portfolios
  - name: Position
  - name: PositionFilter
  - name: PricingEnvironment
  - name: PricingEnvironmentAccess
  - name: RateAsset
  - name: RateAssetPage
  - name: Report
  - name: ReportDefinition
  - name: ReportHistoryLauncherQuery
  - name: ReportLauncher
  - name: ReportQuery
  - name: ReportQueryViewUser
  - name: ReportRestriction
  - name: ReportView
  - name: RiskReport
  - name: Tradable
  - name: TradeBooking
  - name: User
  - name: VarReport
  - name: VarReportQuery
  - name: YieldCurvePage
paths:
  /api/Books/TransferPositions:
    post:
      tags:
        - Books
      summary: Apply selected position transfers between books.
      description: >-
        Moves current aggregated positions for selected tradable identifiers
        from the book identified by

        `SourceBookId` to the book identified by `DestBookId`. The caller needs
        `Edit` or `Owner` access to the destination. Identifiers are matched

        case-insensitively after blank values are ignored and duplicates are
        collapsed. The move completes before

        returning.
      operationId: TransferPositions
      requestBody:
        description: >-
          Signed 32-bit `SourceBookId` and `DestBookId`, plus `TradableIds`
          containing at least one non-blank identifier present in current
          aggregated positions for `SourceBookId`. No positive-ID or
          distinct-book validation is declared.
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/ApiTransferBookPositionsRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/ApiTransferBookPositionsRequest'
          text/json:
            schema:
              $ref: '#/components/schemas/ApiTransferBookPositionsRequest'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ApiTransferBookPositionsRequest'
      responses:
        '200':
          description: >-
            Returns transfer success or destination-permission, selection,
            validation, and transfer errors in the response envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiTransferBookPositionsResponse'
        '400':
          description: BadRequest
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
        - oauth2: []
        - apikey: []
components:
  schemas:
    ApiTransferBookPositionsRequest:
      required:
        - $type
      type: object
      properties:
        source_book_id:
          type: integer
          description: >-
            Numeric Risk Portal identifier of the book that currently contains
            the selected positions.
          format: int32
          example: 1001
        dest_book_id:
          type: integer
          description: >-
            Numeric Risk Portal identifier of the book that will receive the
            selected positions.
          format: int32
          example: 1002
        tradable_ids:
          type: array
          items:
            type: string
          description: >-
            Risk Portal tradable identifiers whose positions are selected for
            transfer; the collection defaults to empty.
          nullable: true
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Core.Book.ApiTransferBookPositionsRequest,
              Derivitec.Web.Core
      additionalProperties: false
      description: >-
        Source book, destination book, and tradables selected for a position
        transfer.
    ApiTransferBookPositionsResponse:
      required:
        - $type
      type: object
      additionalProperties: false
      description: Outcome of transferring selected positions between books.
      properties:
        is_success:
          type: boolean
          description: >-
            Whether the operation completed successfully. The default is `true`;
            error outcomes set it to `false`.
          example: true
        error_messages:
          type: array
          items:
            type: string
          description: >-
            Messages explaining operation-level failures. The collection is
            empty by default.
          nullable: true
        $type:
          type: string
          enum:
            - >-
              Derivitec.Web.Core.Book.ApiTransferBookPositionsResponse,
              Derivitec.Web.Core
  securitySchemes:
    oauth2:
      type: oauth2
      description: >-
        OAuth2 access-token requested from AWS Cognito and provided as a Auth
        Bearer header
      flows:
        implicit:
          authorizationUrl: https://auth.riskportal.derivitec.com/oauth2/authorize
          scopes: {}
    apikey:
      type: apiKey
      description: API-Key requested via the site and provided as a header
      name: x-api-key
      in: header

````