Skip to navigation

Update Session

View as Markdown

PATCH /sourcing-session/update-session/:sessionId

Updates the session’s title, JD, or queries and re-runs the search.

Path Parameters

NameTypeDescription
sessionIdstringSession ObjectId.

Headers

KeyValue
x-fj-api-keyfjk_
Content-Typeapplication/json

Body

FieldTypeDescription
sessionTitlestringNew title.
jdDetailobject{ userText?, sampleProfileURL? }.
queriesobjectUpdated query filters — same shape as Create Sourcing Session.

Response (200)

{
"statusCode": 200,
"data": {
"session": {
"_id": "<SESSION_ID>",
"sessionTitle": "Senior .NET Developer",
"profileMatchingStatus": "processing",
"filterChangesCounter": 1
}
},
"message": "Session updated successfully",
"status": "SUCCESS"
}

cURL

Replace fjk_YOUR_API_KEY_HERE and , then paste and run:

curl -X PATCH "https://prod.api.futurejobs.ai/api/v1/wl/sourcing-session/update-session/<SESSION_ID>" \
-H "x-fj-api-key: fjk_YOUR_API_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{
"sessionTitle": "Senior .NET Developer",
"queries": {
"years_of_experience_raw": {
"type": "RANGE",
"value": [4, 8]
}
}
}'

Errors

  • 400 Bad Request — invalid query shape.

  • 401 Unauthorized

  • 404 Not Found — session not found.

Authentication

x-fj-api-keystring
API Key authentication via header

Request

This endpoint expects an object.
sessionTitlestringRequired
jdDetailobjectRequired
queriesobjectRequired

Response headers

X-Powered-BystringOptional
X-Request-IdstringOptional
Access-Control-Allow-CredentialsstringOptional
RateLimit-PolicystringOptional
RateLimit-LimitstringOptional
RateLimit-RemainingstringOptional
RateLimit-ResetstringOptional
ETagstringOptional

Response

OK
statusCodeinteger
dataobject
messagestring
statusstring