POST
/
plans.json
curl --request POST \
  --url https://elixir.jobkit.io/plans.json \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "price": 123,
  "period": 123,
  "highlight": true,
  "badge": true,
  "pin": true
}'
{
  "id": 3,
  "name": "Featured",
  "price": 99,
  "period": 30,
  "highlight": true,
  "badge": true,
  "pin": true
}
Requires admin authentication
name
string
required

The name of the plan, should be 3-32 characters

price
integer
required

The price of a job in this plan, can be set to 0

period
integer
required

The period of the plan in days, should be between 1 and 90

highlight
boolean
default:"false"

Whether the jobs in this plan will be highlighted

badge
boolean
default:"false"

Whether the jobs in this plan will have a badge displayed

pin
boolean
default:"false"

Whether the jobs in this plan will be pinned to the top of the list

{
  "id": 3,
  "name": "Featured",
  "price": 99,
  "period": 30,
  "highlight": true,
  "badge": true,
  "pin": true
}