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

# Set or reset the Purchase QTY of a shared item



## OpenAPI

````yaml /openapi.yaml patch /collaboration/requests/{request_id}/project_items_edit/{id}/quantity
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /collaboration/requests/{request_id}/project_items_edit/{id}/quantity:
    parameters:
      - name: request_id
        in: path
        required: true
        schema:
          type: integer
      - name: id
        in: path
        required: true
        schema:
          type: integer
    patch:
      tags:
        - Collaboration
      summary: Set or reset the Purchase QTY of a shared item
      operationId: collaboration_project_items_edit#quantity
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestBodyCollaborationQuantity'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/collaboration_project_item'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
        - apiKey: []
components:
  schemas:
    requestBodyCollaborationQuantity:
      type: object
      properties:
        quantity_override:
          type: number
          nullable: true
          description: >-
            Purchase QTY — packs when the item has packing, otherwise units.
            null resets it to the calculated quantity.
      required:
        - quantity_override
    collaboration_project_item:
      type: object
      properties:
        id:
          type: integer
        identifier:
          type: string
        category:
          type: object
          nullable: true
          properties:
            id:
              type: integer
            name:
              type: string
        currency:
          type: string
          nullable: true
          description: The item's project currency, for currency-format columns.
        project:
          type: object
          nullable: true
          description: Only when the project_id column is shared (data holds the id).
          properties:
            id:
              type: integer
            name:
              type: string
        package:
          type: object
          nullable: true
          description: Only when the package_id column is shared (data holds the id).
          properties:
            id:
              type: integer
            name:
              type: string
        package_section:
          type: object
          nullable: true
          description: >-
            Only when the package_section_id column is shared (data holds the
            id).
          properties:
            id:
              type: integer
            name:
              type: string
        data:
          type: object
          description: Values of the request's shared columns only, keyed by column slug.
        formula_column_slugs:
          type: array
          items:
            type: string
          description: >-
            Shared columns whose value a formula computes for this item. Their
            value in `data` is the computed one; they cannot be edited.
        purchase_quantity:
          type: object
          nullable: true
          description: >-
            Only when Quantity is shared. `data.quantity` is then the Purchase
            QTY.
          properties:
            packed:
              type: boolean
              description: >-
                The Purchase QTY counts packs (packing is set up for the item),
                otherwise units.
            manual:
              type: boolean
              description: >-
                The Purchase QTY was set by hand (quantity_override) and can be
                reset.
    error:
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                nullable: true
              code:
                type: string
                nullable: true
              message:
                type: string
            required:
              - message
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.