Skip to content

Make a plan

POST
/api/platform/plans
curl --request POST \
--url https://forge.example.com/api/platform/plans \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "plan": { "code": "example", "name": "example", "summary": "example", "position": 1, "perSeat": true, "minQuantity": 1, "maxQuantity": 1, "selfServe": true, "priceYearCents": 1, "priceMonthCents": 1, "currency": "example", "reviewers": 1, "creators": 1, "peoplePooled": true, "models": 1, "aiMonthMicrodollars": 1, "aiDayMicrodollars": 1, "packsAllowed": true, "active": true, "listed": true }, "reason": "example", "version": 1 }'

Send the whole plan under plan: its code (fixed from then on), name, whether it is sold by the seat with the least and most seats, whether it is bought by checkout (selfServe) or only given against an invoice, its prices for a year and for a month in cents (either may be missing), what it includes (reviewers, creators, models; missing means no limit; peoplePooled counts reviewers and creators as one pool), the AI allowance a month and its daily cap in millionths of a dollar, and whether it is active and listed on the pricing page. Making or changing a plan takes the price table’s approval away until it is approved again.

Media typeapplication/json
object
plan
required
object
code
required
null | string
name
required
null | string
summary
required
null | string
position
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
perSeat
required
boolean
minQuantity
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
maxQuantity
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
selfServe
required
boolean
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
reviewers
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
creators
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
peoplePooled
required
boolean
models
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
aiMonthMicrodollars
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
aiDayMicrodollars
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
packsAllowed
required
null | boolean
active
required
null | boolean
listed
required
boolean
reason
required
string
version
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/

Example generated

{
"plan": {
"code": "example",
"name": "example",
"summary": "example",
"position": 1,
"perSeat": true,
"minQuantity": 1,
"maxQuantity": 1,
"selfServe": true,
"priceYearCents": 1,
"priceMonthCents": 1,
"currency": "example",
"reviewers": 1,
"creators": 1,
"peoplePooled": true,
"models": 1,
"aiMonthMicrodollars": 1,
"aiDayMicrodollars": 1,
"packsAllowed": true,
"active": true,
"listed": true
},
"reason": "example",
"version": 1
}

OK

Media typeapplication/json
object
id
required
string format: uuid
code
required
string
name
required
string
summary
required
null | string
position
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
perSeat
required
boolean
minQuantity
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
maxQuantity
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
selfServe
required
boolean
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
reviewers
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
creators
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
peoplePooled
required
boolean
models
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
aiMonthMicrodollars
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
aiDayMicrodollars
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
packsAllowed
required
boolean
active
required
boolean
listed
required
boolean
version
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
organizations
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/

Example generated

{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"code": "example",
"name": "example",
"summary": "example",
"position": 1,
"perSeat": true,
"minQuantity": 1,
"maxQuantity": 1,
"selfServe": true,
"priceYearCents": 1,
"priceMonthCents": 1,
"currency": "example",
"reviewers": 1,
"creators": 1,
"peoplePooled": true,
"models": 1,
"aiMonthMicrodollars": 1,
"aiDayMicrodollars": 1,
"packsAllowed": true,
"active": true,
"listed": true,
"version": 1,
"organizations": 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"
}