Skip to main content
PUT
/
packages
/
{_id}
cURL
curl --request PUT \
  --url https://api.yourjobsearchgenius.ai/v1/packages/{_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "isActive": true,
  "name": "<string>",
  "price": 123,
  "interval": "Daily",
  "freeTrialDays": 7
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

_id
string
required

ID of the customer to update (MongoDB ObjectId)

Example:

"507f1f77bcf86cd799439011"

Body

application/json

Data to update the package

isActive
boolean
required

Set to true to activate the package, set to false to deactivate it.

name
string
required

The name of the package. Name of the package

price
integer<int64>
required

Price of the package

interval
enum<string>
required

The billing interval for the package. Possible values: Daily, Weekly, Bi-Weekly, Monthly, Quarterly, Yearly. Billing interval for the package

Available options:
Daily,
Weekly,
Bi-Weekly,
Monthly,
Quarterly,
Yearly
freeTrialDays
integer<int64>
default:0
required

The number of free trial days. Send 0 if no free trial days. Min:0, Max:7. Number of free trial days for the package

Required range: x <= 7
Example:

7

Response

Resource updated!

success
boolean
Example:

true