Make a pack
POST
/api/platform/packs
const url = 'https://forge.example.com/api/platform/packs';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"pack":{"code":"example","name":"example","kind":"example","size":1,"priceYearCents":1,"priceMonthCents":1,"currency":"example","position":1,"active":true,"listed":true},"reason":"example","version":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/api/platform/packs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "pack": { "code": "example", "name": "example", "kind": "example", "size": 1, "priceYearCents": 1, "priceMonthCents": 1, "currency": "example", "position": 1, "active": true, "listed": true }, "reason": "example", "version": 1 }'A pack adds to a plan: kind is reviewers, creators, models or ai, and size is how many it adds (for ai, millionths of a dollar a month). Its prices are for a year and for a month, in cents. Takes the price table’s approval away until it is approved again.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
pack
required
object
code
required
null | string
name
required
null | string
kind
required
null | string
size
required
null | integer | string format: int64
priceYearCents
required
null | integer | string format: int64
priceMonthCents
required
null | integer | string format: int64
currency
required
null | string
position
required
null | integer | string format: int32
active
required
null | boolean
listed
required
boolean
reason
required
string
version
required
null | integer | string format: int32
Example generated
{ "pack": { "code": "example", "name": "example", "kind": "example", "size": 1, "priceYearCents": 1, "priceMonthCents": 1, "currency": "example", "position": 1, "active": true, "listed": true }, "reason": "example", "version": 1}Responses
Section titled “Responses”OK
Media typeapplication/json
object
id
required
string format: uuid
code
required
string
name
required
string
kind
required
string
size
required
integer | string format: int64
priceYearCents
required
null | integer | string format: int64
priceMonthCents
required
null | integer | string format: int64
currency
required
string
position
required
integer | string format: int32
active
required
boolean
listed
required
boolean
version
required
integer | string format: int32
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "code": "example", "name": "example", "kind": "example", "size": 1, "priceYearCents": 1, "priceMonthCents": 1, "currency": "example", "position": 1, "active": true, "listed": true, "version": 1}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}