Skip to content

Make a pack

POST
/api/platform/packs
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.

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
/^-?(?:0|[1-9]\d*)$/
priceYearCents
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
priceMonthCents
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
currency
required
null | string
position
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
active
required
null | boolean
listed
required
boolean
reason
required
string
version
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/

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
}

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
/^-?(?:0|[1-9]\d*)$/
priceYearCents
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
priceMonthCents
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
currency
required
string
position
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
active
required
boolean
listed
required
boolean
version
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/

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
}

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"
}