Skip to main content
PUT
Replace a source agent's Advanced qualification

Authorizations

Authorization
string
header
required

Enter API Key

Headers

x-impersonate-user-id
string

ID of an organization member to act on behalf of. The API key user must be the owner of the organization and the target user must belong to the same organization.

Path Parameters

id
number
required

Body

application/json
criteria
object[]
required

Criteria in saved order, at most 2. This replaces the agent's criteria. An empty list turns Advanced qualification off, and leads already waiting are added with no research.

Maximum array length: 2
onlyKeepMatchingLeads
boolean
required

When true, a company that clearly fails a criterion is rejected and its leads never enter the campaign. When false, every researched lead is kept and each criterion result is stored on the lead. A criterion Goji cannot confirm never rejects a lead, either way.

Response

Settings saved. Applies to companies processed from now on.

enabled
boolean
required

False when the agent has no criteria: new leads are added with no research.

criteria
object[]
required

Current criteria. Empty when Advanced qualification is off.

onlyKeepMatchingLeads
boolean
required

When true, a company that clearly fails a criterion is rejected. When false, every researched lead is kept. True when the agent has never had settings saved.

leadsWaiting
number
required

Leads held until their company is researched. They are not contacts yet, and they are not in the campaign.