Skip to main content
PATCH
Updates the brief, search sources, or auto_approve setting of a Discovery Agent. Send only the fields you want to change. At least one field is required. Requires the write:discovery permission.
keywords and competitors replace the saved list. Omit a list to keep it. An empty list removes all entries of that type, but the agent must keep at least one keyword or one competitor. Lookalikes do not count and are managed with Update lookalikes.

Path Parameters

string
required
Agent ID.

Body Parameters

string
Display name, 1 to 160 characters.
string
Public product website. Must be a valid http or https URL that resolves to a public address.
string
Product or brand the agent finds partners for, 1 to 200 characters.
string
One-sentence description of the customers the product serves, 1 to 500 characters.
string
Search language as a two-letter ISO 639-1 code.
string
Only websites is accepted.
string[]
Website categories to leave out of results. Up to 5 of directories, marketplaces, social_networks, news, review_sites. An empty list clears them.
string[]
Replaces the saved keywords. Up to 25, each 1 to 200 characters.
string[]
Replaces the saved competitor URLs. Up to 25 public http or https URLs.
boolean
When true, newly delivered prospects are approved automatically and queued for contact enrichment.

Response

boolean
true when the request succeeds.
object
The updated Discovery Agent.

Errors

  • 400 VALIDATION_ERROR: the body fails validation or contains no field to update. The message is Invalid request and details lists the invalid fields.
  • 400 VALIDATION_ERROR: the update would leave the agent without a keyword or competitor. The message is A Discovery agent must keep at least one keyword or one competitor. Lookalikes do not count.
  • 400 UNSAFE_URL: a URL is not a public http or https address. This covers URLs with credentials, local or private hosts, hosts that do not resolve, and hosts that resolve to a non-public address.
  • 404 NOT_FOUND: no agent with this ID exists for your team, or the agent was deleted. An agent that belongs to another team also returns 404. The message is Discovery agent not found.
  • 403 INSUFFICIENT_PERMISSIONS: the API key does not have the write:discovery permission.