Skip to main content
POST
Accepts or rejects one competitor or topic the agent suggested. These suggestions have origin weekly_approval and status pending in List directions. The agent does not search a suggestion until you accept it. Requires the write:discovery permission.
  • accept lets the agent search the direction.
  • reject closes it. A rejected direction is never suggested again.

Path Parameters

string
required
Agent ID.
string
required
Direction ID from List directions.

Body Parameters

The body is strict. Unknown fields are rejected.
string
required
accept or reject.

Response

boolean
true when the request succeeds.
object
The updated direction.

Errors

  • 400 VALIDATION_ERROR: the body is not valid JSON or fails validation. The message is Invalid request and details lists the invalid fields.
  • 400 VALIDATION_ERROR: the direction is not waiting for a decision. The default message is This direction is not waiting for a decision.
  • 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.
  • 404 NOT_FOUND: the direction does not exist on this agent. The message is Discovery direction not found.
  • 403 INSUFFICIENT_PERMISSIONS: the API key does not have the write:discovery permission.
  • 502 ANALYZE_UNAVAILABLE: the decision could not be saved right now. The message is Discovery decisions are temporarily unavailable. Try again later.