> ## 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.

# Create Entitlement

> Create an entitlement with given parameters



## OpenAPI

````yaml https://api.getmeasure.com/api/v1/docs/api_spec.json post /companies/{company_id}/entitlements
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}/entitlements:
    post:
      tags:
        - Entitlements
      summary: Create Entitlement
      description: Create an entitlement with given parameters
      operationId: Create_Entitlement
      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: 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/RequestCreateEntitlementRequest'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseEntitlementRepresentation'
      deprecated: false
      security:
        - apiKey:
            - ''
components:
  schemas:
    RequestCreateEntitlementRequest:
      properties:
        adjust_for_quantity:
          type:
            - 'null'
            - boolean
        aggregator_type:
          description: >-
            The aggregator type of the entitlement in case a customer has
            different values for different subscriptions. This can be one of OR,
            AND (for BOOL), ADD, MINIMUM, MAXIMUM (for NUMBER), COALESCE (for
            TEXT, ENUM, or MULTI_ENUM)
          enum:
            - OR
            - AND
            - ADD
            - MINIMUM
            - MAXIMUM
            - COALESCE
          type: string
        key:
          description: >-
            A unique key for the entitlement without spaces, unicode or special
            characters eg. test-feature-1
          type: string
        name:
          description: The name of the entitlement
          type: string
        possible_values:
          description: The possible values for the entitlement of enum or multi_enum type
          items:
            type: string
          type: array
        type:
          description: >-
            The type of the entitlement that can be one of boolean, text,
            number, enum, or multi_enum.
          enum:
            - BOOL
            - NUMBER
            - TEXT
            - ENUM
            - MULTI_ENUM
          type: string
      required:
        - name
        - type
        - aggregator_type
        - key
      type: object
    ResponseEntitlementRepresentation:
      properties:
        aggregator_type:
          description: The aggregator type of the entitlement
          type: string
        id:
          description: The ID of the entitlement
          type: string
        key:
          description: The key of the entitlement
          type: string
        name:
          description: The name of the entitlement
          type: string
        possible_values:
          description: >-
            The possible values of the entitlement if the type is ENUM or
            MULTI_ENUM
          items:
            type: string
          type: array
        type:
          description: >-
            The type of the entitlement that can be BOOL, TEXT, NUMBER, ENUM, or
            MULTI_ENUM
          type: string
      type: object
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer

````