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

# Set Inventory Contract Node Types

> Replace the contract's per-node-type terms.



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json put /api/admin/inventory/contracts/{contract_id}/node-types
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/admin/inventory/contracts/{contract_id}/node-types:
    put:
      tags:
        - admin-inventory
      summary: Set Inventory Contract Node Types
      description: Replace the contract's per-node-type terms.
      operationId: >-
        set_inventory_contract_node_types_api_admin_inventory_contracts__contract_id__node_types_put
      parameters:
        - name: contract_id
          in: path
          required: true
          schema:
            type: string
            title: Contract Id
        - name: dryRun
          in: query
          required: false
          schema:
            type: boolean
            title: Dryrun
            default: false
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContractNodeTypesRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericResponse_MutationResult_'
        '401':
          description: Authorization failed
        '403':
          description: Insufficient permissions
        '422':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    ContractNodeTypesRequest:
      properties:
        terms:
          items:
            $ref: '#/components/schemas/ContractNodeTypeTerm'
          type: array
          maxItems: 1000
          title: Terms
      type: object
      required:
        - terms
      title: ContractNodeTypesRequest
      description: Replace a contract's whole term set.
    GenericResponse_MutationResult_:
      properties:
        data:
          anyOf:
            - $ref: '#/components/schemas/MutationResult'
            - type: 'null'
          description: Response data
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
          description: Response status
      type: object
      title: GenericResponse[MutationResult]
    ErrorResponse:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
          title: Errors
      type: object
      required:
        - errors
      title: ErrorResponse
    ContractNodeTypeTerm:
      properties:
        nodeTypeId:
          type: string
          title: Nodetypeid
        committedNodeCount:
          anyOf:
            - type: integer
            - type: 'null'
          title: Committednodecount
        pricePerGpuHr:
          anyOf:
            - type: number
            - type: 'null'
          title: Pricepergpuhr
        pricePerNodeHr:
          anyOf:
            - type: number
            - type: 'null'
          title: Pricepernodehr
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
        extra:
          anyOf:
            - type: object
            - type: 'null'
          title: Extra
      type: object
      required:
        - nodeTypeId
      title: ContractNodeTypeTerm
      description: >-
        Pricing and commitment for one node type under a contract. A node can
        only

        be attached to the contract once its node type has a term row here.
    MutationResult:
      properties:
        operationId:
          type: string
          title: Operationid
        targetId:
          anyOf:
            - type: string
            - type: 'null'
          title: Targetid
        targetName:
          anyOf:
            - type: string
            - type: 'null'
          title: Targetname
        message:
          type: string
          title: Message
        created:
          anyOf:
            - type: integer
            - type: 'null'
          title: Created
        updated:
          anyOf:
            - type: integer
            - type: 'null'
          title: Updated
        assigned:
          anyOf:
            - type: integer
            - type: 'null'
          title: Assigned
        detached:
          anyOf:
            - type: integer
            - type: 'null'
          title: Detached
        retired:
          anyOf:
            - type: integer
            - type: 'null'
          title: Retired
      type: object
      required:
        - operationId
        - message
      title: MutationResult
    ErrorDetail:
      properties:
        param:
          type: string
          title: Param
        details:
          type: string
          title: Details
      type: object
      required:
        - param
        - details
      title: ErrorDetail
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````