PUT
/
plans
/
{id}
.json
curl --request PUT \
  --url https://elixir.jobkit.io/plans/{id}.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
id
integer
required

The id of the plan to update

name
string

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

price
integer

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

period
integer

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
}