Sources

Change a source classification rule

Changed on

Changes a rule's citationType (and competitorId); its scope never changes. A rule id that is not one of the project's returns 404 not_found. Refusals: 400 invalid_citation_type, missing_competitor, unknown_competitor. Requires the source:classify capability, and your own project role must allow managing the project (otherwise 403 forbidden). A pitch project that is not currently active refuses with 409 INACTIVE_PITCH_PROMPT_MUTATION. Numbers refresh within a few minutes: the answer carries status.applying: true, so poll GET /projects/{projectId}/sources/rules until status.applying is false.

patch/api/mcp/projects/{projectId}/sources/rules/{ruleId}

Request

  • Base URL
    https://app.searchable.com
  • Auth
    HTTP bearer

Path parameters

projectIdstring uuid required

The project id.

ruleIdstring required

A source classification rule's id (id from GET .../sources/rules).

Request body

citationType'brand' | 'competitor' | 'editorial' | 'social' | 'forum' | 'review' | 'institutional' | 'third_party' | 'other' required

A Source Type. brand is the app's Owned.

competitorIdstring nullable

Required for a competitor rule; ignored for any other type.

Response

The rule was changed.

removedinteger required

Rules a removal deleted.

successboolean required

Always true — injected on every success response by this endpoint family's response wrapper.

Changes