Optimizely Product Unit Of Measures API

The Product Unit Of Measures API from Optimizely — 5 operation(s) for product unit of measures.

Operations 9

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v1/admin/ProductUnitOfMeasures List product units of measure · Returns the EntitySet ProductUnitOfMeasures #
Ask an LLM
“How do I list all the selling units, like each, box or case, defined across products?”
“Can I filter units of measure to one product with $filter?”
Tell an agent
List product units of measure matching {filter}.
Show product units of measure sorted by {orderby}.
POST /api/v1/admin/ProductUnitOfMeasures Add a unit of measure to a product · Post a new entity to EntitySet ProductUnitOfMeasures #
Ask an LLM
“What do I need to add a case or box unit to a product?”
“Can I set how many base units are in a new unit of measure and make it the default?”
Tell an agent
Add unit {unitOfMeasure} described as {description} to product {productId} with rounding rule {roundingRule}.
Create unit {unitOfMeasure} holding {qtyPerBaseUnitOfMeasure} base units for product {productId}.
GET /api/v1/admin/ProductUnitOfMeasures({id}) Get one product unit of measure · Returns the entity with the key from ProductUnitOfMeasures #
Ask an LLM
“Where do I look up a single product unit of measure by its id?”
“What conversion quantity and rounding rule does a given unit record hold?”
Tell an agent
Get product unit of measure {id}.
Show the conversion quantity on unit record {id}.
PUT /api/v1/admin/ProductUnitOfMeasures({id}) Replace a product unit of measure · Replace entity in EntitySet ProductUnitOfMeasures #
Ask an LLM
“How do I overwrite a product unit of measure record completely?”
“Does a full replace require the unit code, description and rounding rule again?”
Tell an agent
Replace unit record {id} with unit {unitOfMeasure}, description {description} and rounding {roundingRule}.
Overwrite the entire product unit of measure {id}.
DELETE /api/v1/admin/ProductUnitOfMeasures({id}) Delete a product unit of measure · Delete entity in EntitySet ProductUnitOfMeasures #
Ask an LLM
“Can I remove a unit of measure a product no longer sells in?”
“Is an If-Match ETag supported when deleting a unit of measure?”
Tell an agent destructive · confirm first
Delete product unit of measure {id}.
Delete unit record {id} if ETag {etag} still matches.
PATCH /api/v1/admin/ProductUnitOfMeasures({id}) Update fields on a product unit of measure · Update entity in EntitySet ProductUnitOfMeasures #
Ask an LLM
“Can I make an existing unit of measure the product's default?”
“How do I change the sale multiple on one unit without replacing it?”
Tell an agent
Set unit record {id} as default: {isDefault}.
Change the multiple sale quantity on unit {id} to {multipleSaleQty}.
GET /api/v1/admin/ProductUnitOfMeasures/Default.Default() Call the Default function on units of measure · Call operation Default #
Ask an LLM
“What does the Default function on ProductUnitOfMeasures return?”
“Where do I get the default product unit of measure entity?”
Tell an agent
Call the Default function on ProductUnitOfMeasures.
Fetch the default product unit of measure entity.
DELETE /api/v1/admin/productunitofmeasures/delete Bulk delete product units of measure · Product unit of measures delete route #
Ask an LLM
“Can I delete many unit of measure records at once by id?”
“Is there a bulk removal for obsolete product units?”
Tell an agent destructive · confirm first
Bulk delete product units of measure {ids}.
Remove every unit record in the id list {ids}.
GET /api/v1/admin/productunitofmeasures({key})/customproperties({custompropertyKey}) Get a custom property on a unit of measure · Product unit of measures get custom property by key and custompropertykey #
Ask an LLM
“How do I read a custom property stored on a product unit of measure?”
“Can I fetch one extension field from a unit record?”
Tell an agent
Get custom property {custompropertyKey} of unit of measure {key}.
Show custom field {custompropertyKey} on product unit {key}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/optimizely:optimizely-product-unit-of-measures-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

optimizely-product-unit-of-measures-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: admin-v1
  title: Admin API V1 Product Unit Of Measures API
servers:
- url: https://dogfood.commerce.insitesandbox.com
security: []
tags:
- name: Product Unit Of Measures
paths:
  /api/v1/admin/ProductUnitOfMeasures:
    get:
      tags:
      - Product Unit Of Measures
      summary: Returns the EntitySet ProductUnitOfMeasures
      operationId: ProductUnitOfMeasures_Get
      parameters:
      - name: $expand
        in: query
        description: Expands related entities inline.
        required: false
        schema:
          type: string
      - name: $filter
        in: query
        description: Filters the results, based on a Boolean condition.
        required: false
        schema:
          type: string
      - name: $select
        in: query
        description: Selects which properties to include in the response.
        required: false
        schema:
          type: string
      - name: $apply
        in: query
        description: Aggregates the results according to one or more transformations.
        required: false
        schema:
          type: string
      - name: $orderby
        in: query
        description: Sorts the results.
        required: false
        schema:
          type: string
      - name: $top
        in: query
        description: Returns only the first n results.
        required: false
        schema:
          type: integer
          format: int32
      - name: $skip
        in: query
        description: Skips the first n results.
        required: false
        schema:
          type: integer
          format: int32
      - name: $count
        in: query
        description: Includes a count of the matching results in the response.
        required: false
        schema:
          type: boolean
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
    post:
      tags:
      - Product Unit Of Measures
      summary: Post a new entity to EntitySet ProductUnitOfMeasures
      operationId: ProductUnitOfMeasures_Post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Insite.Data.Entities.ProductUnitOfMeasure'
        description: The entity to post
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
  /api/v1/admin/ProductUnitOfMeasures({id}):
    get:
      tags:
      - Product Unit Of Measures
      summary: Returns the entity with the key from ProductUnitOfMeasures
      operationId: ProductUnitOfMeasures_GetById
      parameters:
      - name: id
        in: path
        description: 'key: id'
        required: true
        schema:
          type: string
          format: uuid
      - name: $expand
        in: query
        description: Expands related entities inline.
        required: false
        schema:
          type: string
      - name: $select
        in: query
        description: Selects which properties to include in the response.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
    put:
      tags:
      - Product Unit Of Measures
      summary: Replace entity in EntitySet ProductUnitOfMeasures
      operationId: ProductUnitOfMeasures_PutById
      parameters:
      - name: id
        in: path
        description: 'key: id'
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Insite.Data.Entities.ProductUnitOfMeasure'
        description: The entity to put
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
    delete:
      tags:
      - Product Unit Of Measures
      summary: Delete entity in EntitySet ProductUnitOfMeasures
      operationId: ProductUnitOfMeasures_DeleteById
      parameters:
      - name: id
        in: path
        description: 'key: id'
        required: true
        schema:
          type: string
          format: uuid
      - name: If-Match
        in: header
        description: If-Match header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
    patch:
      tags:
      - Product Unit Of Measures
      summary: Update entity in EntitySet ProductUnitOfMeasures
      operationId: ProductUnitOfMeasures_PatchById
      parameters:
      - name: id
        in: path
        description: 'key: id'
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Insite.Data.Entities.ProductUnitOfMeasure'
        description: The entity to patch
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
  /api/v1/admin/ProductUnitOfMeasures/Default.Default():
    get:
      tags:
      - Product Unit Of Measures
      summary: Call operation Default
      operationId: ProductUnitOfMeasures_Default
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
  /api/v1/admin/productunitofmeasures/delete:
    delete:
      tags:
      - Product Unit Of Measures
      operationId: ProductUnitOfMeasures_DeleteRoute
      parameters:
      - name: ids
        in: query
        required: true
        explode: true
        schema:
          type: array
          items:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
      summary: Product unit of measures delete route
      x-summary-source: derived
  /api/v1/admin/productunitofmeasures({key})/customproperties({custompropertyKey}):
    get:
      tags:
      - Product Unit Of Measures
      operationId: ProductUnitOfMeasures_GetCustomPropertyByKeyAndCustompropertykey
      parameters:
      - name: key
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: custompropertyKey
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: $expand
        in: query
        description: Expands related entities inline.
        required: false
        schema:
          type: string
      - name: $select
        in: query
        description: Selects which properties to include in the response.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                type: object
      deprecated: false
      security:
      - access_token: []
      summary: Product unit of measures get custom property by key and custompropertykey
      x-summary-source: derived
components:
  schemas:
    Insite.Data.Entities.ProductUnitOfMeasure:
      required:
      - unitOfMeasure
      - description
      - roundingRule
      type: object
      properties:
        id:
          format: uuid
          type: string
          example: 00000000-0000-0000-0000-000000000000
        productId:
          format: uuid
          type: string
          example: 00000000-0000-0000-0000-000000000000
        unitOfMeasure:
          maxLength: 50
          minLength: 0
          type: string
        description:
          maxLength: 100
          minLength: 0
          type: string
        qtyPerBaseUnitOfMeasure:
          format: decimal
          type: number
        roundingRule:
          maxLength: 50
          minLength: 0
          type: string
        multipleSaleQty:
          format: int32
          type: integer
        isDefault:
          type: boolean
        createdOn:
          format: date-time
          type: string
        createdBy:
          type: string
        modifiedOn:
          format: date-time
          type: string
        modifiedBy:
          type: string
  securitySchemes:
    access_token:
      type: apiKey
      description: Token used to access storefront API.
      name: access_token
      in: query