Skip to main content
POST
/
v1
/
features
/
{featureKey}
/
archive
Node.js
import { PriceOS } from "priceos";
import type { MyFeatures } from "./priceos.types";

const priceos = new PriceOS<MyFeatures>(process.env.PRICEOS_API_KEY!);

const result = await priceos.features.archive("api_calls");
{
  "feature": {
    "id": "feat_123",
    "featureKey": "api_calls",
    "name": "API Calls",
    "description": "Monthly API request limit.",
    "type": "limit",
    "tracksUsage": true,
    "usageResetInterval": "month",
    "usageResetAnchor": "calendar",
    "isArchived": false,
    "archivedAt": null,
    "archivedReason": null
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.priceos.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

x-api-key
string
required

API key from your PriceOS dashboard.

Path Parameters

featureKey
string
required

Feature key.

Body

application/json
archived
boolean
default:true

Whether the feature should be archived.

Response

Feature archived

Feature archive result.

feature
object
required

Archived feature.