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

# Update Product Pricing

> Update a product pricing by ID or external identifier



## OpenAPI

````yaml https://api.getmeasure.com/api/v1/docs/api_spec.json patch /companies/{company_id}/pricing/{id}
openapi: 3.1.0
info:
  title: Measure API
  description: APIs to communicate with Measure
  version: 1.0.0
servers:
  - url: https://api.getmeasure.com/api/v1
security: []
paths:
  /companies/{company_id}/pricing/{id}:
    patch:
      tags:
        - Pricing
      summary: Update Product Pricing
      description: Update a product pricing by ID or external identifier
      operationId: Update_Product_Pricing
      parameters:
        - name: company_id
          in: path
          description: 'The company ID with the prefix ''cmp_''. '
          required: true
          schema:
            description: 'The company ID with the prefix ''cmp_''. '
            type: string
        - name: id
          in: path
          description: The resource ID
          required: true
          schema:
            description: The resource ID
            type: string
        - name: Idempotency-Key
          in: header
          description: >-
            The idempotency key that will be used to ensure the request is only
            performed once
          schema:
            description: >-
              The idempotency key that will be used to ensure the request is
              only performed once
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RequestUpdateProductPricingRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseProductPricingLiteRepresentation'
      deprecated: false
      security:
        - apiKey:
            - ''
components:
  schemas:
    RequestUpdateProductPricingRequest:
      properties:
        description:
          description: The internal description for the product pricing
          type:
            - 'null'
            - string
        entitlements:
          description: The entitlements that enable features for the product pricing
          items:
            $ref: '#/components/schemas/RequestEntitlementData'
          type:
            - 'null'
            - array
        external_name:
          description: The externally visible name for the product pricing
          type:
            - 'null'
            - string
        metadata:
          additionalProperties: true
          description: >-
            Any additional data as key-value pairs that need to be attached to
            the product pricing
          type: object
        minimum_spend:
          $ref: '#/components/schemas/ModelAmount'
          description: The minimum spend across the entire term of the product pricing
        name:
          description: The name of the product pricing
          type:
            - 'null'
            - string
        state:
          description: The state of the product pricing whether ACTIVE or ARCHIVED
          type:
            - 'null'
            - string
        tags:
          description: Any string tags associated with this product pricing
          items:
            type: string
          type:
            - 'null'
            - array
        upsell_product_pricing_id:
          description: The upsell product pricing ID
          type:
            - string
            - 'null'
      type: object
    ResponseProductPricingLiteRepresentation:
      properties:
        company_id:
          description: The company ID for the product pricing
          type: string
        computed_entitlements:
          description: The final computed features for the product pricing
          items:
            $ref: '#/components/schemas/ResponseEntitlementDataRepresentation'
          type:
            - array
            - 'null'
        created_at:
          description: The date the product pricing was created
          format: date-time
          type: string
        currency:
          description: The currency for the product pricing
          type: string
        description:
          description: The description for the product pricing
          type: string
        external_name:
          description: The externally exposed name for the product pricing used on invoices
          type: string
        id:
          description: The ID of the product pricing in Measure
          type: string
        metadata:
          additionalProperties: true
          description: >-
            Any additional data as key-value pairs attached to the product
            pricing
          type: object
        name:
          description: The name of the product pricing
          type: string
        num_subs:
          description: The number of subscriptions in the company with the product pricing
          minimum: 0
          type: integer
        override_entitlements:
          description: The overridden features for the product pricing
          items:
            $ref: '#/components/schemas/ResponseEntitlementDataRepresentation'
          type:
            - array
            - 'null'
        product_id:
          description: The product ID that the product pricing is attached to
          type: string
        state:
          description: The state of the product pricing such as ACTIVE or ARCHIVED
          type: string
        tags:
          description: Any tags on the product pricing
          items:
            type: string
          type:
            - array
            - 'null'
        type:
          description: The type of product pricing such as recurring or one-time
          type: string
        updated_at:
          description: The date the product pricing was last updated
          format: date-time
          type: string
      type: object
    RequestEntitlementData:
      properties:
        entitlement_id:
          type: string
        id:
          type: string
        key:
          type: string
        value: {}
      type: object
    ModelAmount:
      description: The amount which has value in cents and a currency
      properties:
        currency:
          type: string
        value_in_cents:
          format: int64
          type: integer
      type: object
    ResponseEntitlementDataRepresentation:
      properties:
        entitlement_id:
          type: string
        id:
          type: string
        inherited_from_id:
          type:
            - 'null'
            - string
        inherited_from_type:
          type:
            - 'null'
            - string
        key:
          type: string
        name:
          type: string
        original_value: {}
        overridden:
          type:
            - 'null'
            - boolean
        type:
          type: string
        value: {}
      type: object
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````