Library

Create a rate pack

Create a private rate pack for the workspace. The new pack is enabled automatically.

post/library/rate-packs

Request

  • Base URL: https://next-api.saturation.io/v1
  • URL: https://next-api.saturation.io/v1/library/rate-packs
  • Auth: HTTP bearer

Headers

Idempotency-Keystring required

Unique request key, 16 to 255 characters. Retrying the same request returns the first response. Missing or invalid keys return 400 validation; reuse with a different body returns 409 idempotency_conflict.

Request body

namestring required
descriptionstring
categorystring
tagsstring[]

Response

The created rate pack.

idstring required

A stable resource ID, such as prj_…, txn_…, or doc_….

slugstring required
namestring required
descriptionstring nullable
publisherstring nullable
categorystring required
tagsstring[]
visibility'public' | 'private' | 'shared' required

Who can access the pack. Public packs are available to every workspace; private packs belong to one workspace.

isOwnedboolean required

Whether the workspace owns the pack.

deprecatedboolean required

Whether the pack is deprecated. Deprecated packs cannot be newly enabled or added.

enabledboolean required

Whether the pack is enabled for the workspace.

enabledAtstring date-time nullable
enabledBystring

A stable resource ID, such as prj_…, txn_…, or doc_….

Example response

{
  "id": "txn_8f2a1c9e",
  "enabledBy": "txn_8f2a1c9e",
  "latestVersion": {
    "id": "txn_8f2a1c9e"
  },
  "items": [
    {
      "id": "txn_8f2a1c9e",
      "rate": {
        "amount": 152900,
        "currency": "USD"
      },
      "version": {
        "id": "txn_8f2a1c9e"
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 4 revisions of this API.