Skip to main content
PATCH
/
sourcing
/
{id}
Patch sourcing run
curl --request PATCH \
  --url https://api.instaview.sk/sourcing/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "Senior Node.js engineer fintech remote",
  "limit": 10
}
'
{
  "success": true,
  "requestId": "req_550e8400-e29b-41d4-a716-446655440000",
  "status": "processing",
  "message": "Sourcing run accepted and queued for processing.",
  "webhookId": "123e4567-e89b-12d3-a456-426614174000",
  "createdAt": "2025-01-01T00:00:00.000Z",
  "updatedAt": "2025-01-01T00:01:00.000Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.instaview.sk/llms.txt

Use this file to discover all available pages before exploring further.

Refines an existing sourcing session by patching the reasoning context and/or requesting additional candidates. Triggers a new background run and returns 202 Accepted.

Overview

After a sourcing run completes you can iterate on it — tighten or relax criteria, prioritize different signals, or harvest more candidates from the same discovered pool. The agent incorporates the new query as a context patch before evaluating additional profiles.
Sequential Execution Constraint: A PATCH request is only accepted once the current run has a status of "completed" or "failed". If the run is still "processing", the API returns 409 Conflict.

Request Body

At least one of query or limit must be provided. Both fields may be combined in a single request.
FieldTypeRequiredDescription
querystringNo (one required)Natural language instruction to patch into the session context. Max 500 chars.
limitnumberNo (one required)Number of additional candidates to evaluate (default: 10, max: 50). Profiles already scored in this session are excluded.

Examples

Prompt Refinement Only

{
  "query": "Relax experience requirement from 8 years to 5 years, but prioritize candidates with strong open-source GitHub portfolios."
}

Request Additional Candidates Only

{
  "limit": 15
}

Combined Refinement + Additional Candidates

{
  "query": "Focus on startup founders with Kubernetes orchestration experience at Series A/B companies.",
  "limit": 5
}
The agent applies the query as an updated context patch first, then evaluates 5 additional profiles against the refined criteria — all in a single asynchronous reasoning pass.

Response (202 Accepted)

{
  "success": true,
  "requestId": "req_9f3b827e-8c31-4bda-a7a2-b2d99d14f4e2",
  "status": "processing",
  "message": "Sourcing re-run accepted and queued for processing.",
  "updatedAt": "2026-05-20T13:21:12.000Z"
}

Error Responses

400 — Both Fields Omitted

{
  "statusCode": 400,
  "error": "INVALID_PATCH_PAYLOAD",
  "message": "Validation failed: You must provide at least one of 'query' or 'limit'."
}

409 — Run Still In Progress

{
  "statusCode": 409,
  "error": "RUN_IN_PROGRESS",
  "message": "Sourcing agent run 'req_9f3b827e-…' is currently in progress. You can only patch the run context after the current execution finishes."
}

Authorizations

Authorization
string
header
required

API key for authentication using Bearer scheme

Path Parameters

id
string
required

The requestId returned by POST /sourcing (e.g. req_550e8400-…).

Body

application/json
query
string

New free-text search query for the re-run. At least one of query or limit must be supplied.

Maximum string length: 500
Example:

"Senior Node.js engineer fintech remote"

limit
integer
default:10

Number of additional candidates to evaluate in this re-run (default: 10, max: 50). At least one of query or limit must be supplied.

Required range: 1 <= x <= 50
Example:

10

Response

Sourcing re-run accepted and queued

success
boolean
required

Whether the request was accepted for processing.

Example:

true

requestId
string
required

Unique external identifier for this sourcing run.

Example:

"req_550e8400-e29b-41d4-a716-446655440000"

status
enum<string>
required

Current status of the run.

Available options:
processing,
completed,
failed
Example:

"processing"

message
string
required

Human-readable message.

Example:

"Sourcing run accepted and queued for processing."

webhookId
string

UUID of the webhook configuration that will receive completion events.

Example:

"123e4567-e89b-12d3-a456-426614174000"

createdAt
string

ISO 8601 timestamp when the run was created (POST only).

Example:

"2025-01-01T00:00:00.000Z"

updatedAt
string

ISO 8601 timestamp when the run was last updated (PATCH only).

Example:

"2025-01-01T00:01:00.000Z"