Skip to main content
PATCH
Send only the fields you want to change. Anything you leave out keeps its current value. It works like editing the bid in Juiced, and the customer’s activity timeline shows your API key’s label. It needs the bids:write ability.
  • paused pauses the bid with true and turns it back on with false.
  • amount, caps and budgets change just those values. Caps and budgets are only accepted when that limit is turned on under Configure → Bidding. Send null to remove one.
  • lead_type and location move the bid to another market. They follow the same rules as creating a bid, so bidding must be turned on for the lead type at the new scope. If another of the customer’s active bids already holds that lead type and location, the change is refused and error.bid holds that bid’s ID. The message is on errors.lead_type when you only changed the lead type, and on errors.location otherwise. An empty location object is refused on location.country.
A change that keeps the bid’s lead type and location, like a new amount or a pause, isn’t checked against the lead type’s current bidding settings, just as in Juiced. That’s also true when you send the bid’s own lead type or location back unchanged, so you can send the whole bid back with just a new amount. The exception is a bid whose bidding scope was deleted from its lead type. Its funding can’t be worked out anymore, so any change that keeps its lead type and location returns 422 with the message on errors.bid, and nothing is written. Move it with lead_type or location, or archive it. When you send "paused": true with a new amount, the bid is paused first, so raising a paused bid doesn’t send outbid notices. A refused change changes nothing.

Overlapping changes

Changes to one bid run one at a time, and so do changes that move bids onto the same customer, lead type and location. If a request waits more than 10 seconds for another to finish, it returns 429 with rate_limited and a Retry-After header. If another change moved this bid to a different lead type or location, or archived it, while your request was waiting, your request is refused with 429 and rate_limited, the message “This bid changed while this request was waiting. Send the request again.” and Retry-After: 1. Nothing from it is applied. When you send it again, it’s checked against the bid as it is now. An archived bid can’t be changed. Create a new bid instead.

Authorizations

Authorization
string
header
required

An API key from Configure → API Keys (it starts with jz_live_), sent as a bearer token. See API Keys.

Path Parameters

id
string
required

The bid's ID.

Pattern: ^bid_[0-9a-z]{26}$

Body

application/json

Send only the fields you want to change.

lead_type
string

Move the bid to another lead type. Bidding must be turned on for it at the bid's scope.

location
Bid Location · object

Where the bid applies. Its depth sets the scope. country alone is a nationwide bid, adding state makes a state bid, and adding county_fips makes a county bid.

amount
number

What the customer bids for a lead, in dollars with at most 2 decimal places.

Required range: 0.01 <= x <= 21474836
daily_lead_cap
integer | null

Most leads this bid gets a day. Only accepted when the bid daily lead cap is turned on in Configure → Bidding, and ignored otherwise. Send null to remove it.

Required range: 1 <= x <= 2147483647
weekly_lead_cap
integer | null

Most leads this bid gets a week. Only accepted when the bid weekly lead cap is turned on in Configure → Bidding, and ignored otherwise. Send null to remove it.

Required range: 1 <= x <= 2147483647
monthly_lead_cap
integer | null

Most leads this bid gets a month. Only accepted when the bid monthly lead cap is turned on in Configure → Bidding, and ignored otherwise. Send null to remove it.

Required range: 1 <= x <= 2147483647
daily_budget
number | null

Most this bid spends a day, in dollars with at most 2 decimal places. Only accepted when the bid daily budget is turned on in Configure → Bidding, and ignored otherwise. Send null to remove it.

Required range: 1 <= x <= 21474836
weekly_budget
number | null

Most this bid spends a week, in dollars with at most 2 decimal places. Only accepted when the bid weekly budget is turned on in Configure → Bidding, and ignored otherwise. Send null to remove it.

Required range: 1 <= x <= 21474836
monthly_budget
number | null

Most this bid spends a month, in dollars with at most 2 decimal places. Only accepted when the bid monthly budget is turned on in Configure → Bidding, and ignored otherwise. Send null to remove it.

Required range: 1 <= x <= 21474836
paused
boolean

true pauses the bid and false turns it back on.

Response

The updated bid.

data
Customer Bid · object
version
enum<string>
Available options:
v1