Skip to main content
PUT
Replaces the lookalike page URLs on a Discovery Agent. The list you send replaces the saved list. An empty list clears it. Lookalikes are separate from competitor URLs and do not count as a search source. Requires the write:discovery permission. The body is strict. Unknown fields are rejected.

Path Parameters

string
required
Agent ID.

Body Parameters

string[]
required
Lookalike page URLs, up to 5. Each must be a public http or https URL of at most 255 characters. Duplicates are removed.

Response

boolean
true when the request succeeds.
object
Lookalike URLs.

Errors

  • 400 VALIDATION_ERROR: the body is not valid JSON or fails validation. The message is Invalid request and details lists the invalid fields. This includes more than 5 URLs.
  • 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, or the agent was deleted. The message is Discovery agent not found.
  • 403 FORBIDDEN: the agent belongs to another team. The message is Discovery agent does not belong to your team.
  • 403 INSUFFICIENT_PERMISSIONS: the API key does not have the write:discovery permission.