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

# Create a variable weight

> Create a variable weight



## OpenAPI

````yaml /api/openapi.json post /v1/variable-weights
openapi: 3.0.0
info:
  title: Vori API
  description: ''
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.vori.com
    description: production
security: []
tags: []
paths:
  /v1/variable-weights:
    post:
      tags:
        - Variable weights
      summary: Create a variable weight
      description: Create a variable weight
      operationId: createVariableWeight
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateVariableWeightRequest'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VariableWeight'
        '400':
          description: ''
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ConflictingPropertyValuesError'
                  - $ref: '#/components/schemas/InvalidStoreError'
        '403':
          description: ''
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/InsufficientPermissionsError'
                  - $ref: '#/components/schemas/NoBannerAssociationError'
      security:
        - bearer: []
components:
  schemas:
    CreateVariableWeightRequest:
      type: object
      properties:
        name:
          type: string
          description: Human-readable name for the tare container, such as "Produce bag".
        store_id:
          type: string
          description: >-
            ID of the store the variable weight belongs to. Variable weights are
            not shared between stores.
          pattern: ^[0-9]+$
        unit_of_measure:
          description: >-
            Unit of measure the weight is expressed in, limited to the units the
            point of sale can weigh in.
          allOf:
            - $ref: '#/components/schemas/VariableWeightUnit'
        value:
          type: string
          description: >-
            Weight of the tare container, as a decimal string in the unit of
            measure.
          pattern: ^[0-9]+(\.[0-9]+)?$
          example: '199.99'
      required:
        - name
        - store_id
        - value
    VariableWeight:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the record.
        created_at:
          type: string
          description: When the record was created.
          format: date-time
        name:
          type: string
          description: Human-readable name for the tare container, such as "Produce bag".
        store_id:
          type: string
          description: >-
            ID of the store the variable weight belongs to. Variable weights are
            not shared between stores.
          pattern: ^[0-9]+$
        unit_of_measure:
          description: >-
            Unit of measure the weight is expressed in, limited to the units the
            point of sale can weigh in.
          allOf:
            - $ref: '#/components/schemas/VariableWeightUnit'
        updated_at:
          type: string
          description: When the record was last changed.
          format: date-time
        value:
          type: string
          description: >-
            Weight of the tare container, as a decimal string in the unit of
            measure.
          pattern: ^[0-9]+(\.[0-9]+)?$
          example: '199.99'
      description: >-
        The weight of a tare container a product is sold in, such as a produce
        bag. It is subtracted from the scale reading so the shopper pays for the
        contents rather than the packaging.
      required:
        - id
        - created_at
        - name
        - store_id
        - unit_of_measure
        - updated_at
        - value
    ConflictingPropertyValuesError:
      type: object
      properties:
        error_code:
          type: string
          enum:
            - conflicting_property_values
      required:
        - error_code
    InvalidStoreError:
      type: object
      properties:
        error_code:
          type: string
          enum:
            - invalid_store
      required:
        - error_code
    InsufficientPermissionsError:
      type: object
      properties:
        error_code:
          type: string
          enum:
            - insufficient_permissions
        error_details:
          $ref: '#/components/schemas/InsufficientPermissionsErrorDetails'
      required:
        - error_code
        - error_details
    NoBannerAssociationError:
      type: object
      properties:
        error_code:
          type: string
          enum:
            - no_banner_association
      required:
        - error_code
    VariableWeightUnit:
      type: string
      enum:
        - LBS
        - OZ
    InsufficientPermissionsErrorDetails:
      type: object
      properties:
        action:
          allOf:
            - $ref: '#/components/schemas/Action'
        resource:
          allOf:
            - $ref: '#/components/schemas/Resource'
      required:
        - action
        - resource
    Action:
      type: string
      enum:
        - '*'
        - cancel
        - check_in
        - create
        - delete
        - read
        - record_events
        - refund
        - restart
        - update
        - void
    Resource:
      type: string
      enum:
        - '*'
        - accounting_integration
        - agent_chats
        - api_clients
        - asynchronous_tasks
        - banners
        - blackhawk_transactions
        - capabilities
        - coupons
        - custom_quick_actions
        - datacap_transactions
        - departments
        - discounts
        - ditto_auth_tokens
        - edge_agents
        - electronic_shelf_labels
        - employees
        - files
        - food_modifiers
        - gift_cards
        - gl_code_mappings
        - house_accounts
        - inventory
        - inventory_sessions
        - invoices
        - item_modifiers
        - label_dimension_sets
        - label_sheet_profiles
        - label_stock_products
        - lanes
        - loyalty_bonuses
        - loyalty_campaigns
        - loyalty_rewards
        - notification_templates
        - offers
        - order_guides
        - pos_banner_configurations
        - pos_orders
        - pos_tills
        - price_tags
        - product_ranges
        - products
        - promotions
        - purchase_orders
        - receiving
        - reporting
        - revision_sessions
        - revisions
        - roles
        - shopper_tags
        - shoppers
        - store_product_inventory_counts
        - store_product_lots
        - store_product_rules
        - store_product_tag_templates
        - store_snap_incentive_program_coupons
        - store_vendor_merge_requests
        - store_vendor_product_merge_requests
        - store_vendor_products
        - store_vendors
        - stores
        - tag_printings
        - tag_template_presets
        - tag_templates
        - tax_rates
        - users
        - variable_weights
        - vendor_merge_requests
        - vendor_product_merge_requests
        - vendors
        - wallet_payments
        - wic_products
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

## Related topics

- [Delete a variable weight](/api-reference/variable-weights/delete-a-variable-weight.md)
- [Retrieve a variable weight](/api-reference/variable-weights/retrieve-a-variable-weight.md)
- [Update a variable weight](/api-reference/variable-weights/update-a-variable-weight.md)
