---
title: "Create Product Feature"
method: POST
path: "/api/v1/product-features"
tags: ["Product Features"]
---

# Create Product Feature

`POST /api/v1/product-features`

## Request body

- object
  - `productFeature` ProductFeatureClientInsertSchema, required
    - `productId` string, required
    - `featureId` string, required
    - `expiredAt` integer, nullable — Epoch milliseconds.

## Response `200`

Successful response

- object
  - `productFeature` ProductFeatureClientSelectSchema, required
    - `id` string, required
    - `createdAt` integer, required — Epoch milliseconds.
    - `updatedAt` integer, required — Epoch milliseconds.
    - `livemode` boolean, required
    - `productId` string, required
    - `featureId` string, required
    - `organizationId` string, required
    - `expiredAt` integer, nullable — Epoch milliseconds.
    - `pricingModelId` string, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `500` — Internal server error

## Changes

- **2026-01-11** `599bbd902d65` — 1 info
  - added the required property `productFeature/pricingModelId` to the response with the `200` status
- **2025-10-18** `a1eeb4fac4d6` — 8 breaking, 7 info
  - the request property `productFeature/expiredAt` became not nullable
  - request property `productFeature/expiredAt` list-of-types was narrowed by removing types `string` from media type `application/json`
  - the response property `productFeature/expiredAt` became optional for the status `200`
  - response property `productFeature/expiredAt` list-of-types was widened by adding types `integer and null` to media type `application/json` of response `200`
  - …11 more
- **2025-06-25** `0cf7bce0c17d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/flowglad/apis/flowglad-api/changes/api/v1/product-features/post.md)

---

[API](https://skmtc.dev/flowglad/apis/flowglad-api.md) · [All operations](https://skmtc.dev/flowglad/apis/flowglad-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flowglad/flowglad-api/revisions/06c4dd78e137/schema)
