Update Session
`PATCH /sourcing-session/update-session/:sessionId`
Updates the session's title, JD, or queries and re-runs the search.
## Path Parameters
| Name | Type | Description |
| --- | --- | --- |
| sessionId | string | Session ObjectId. |
## Headers
| Key | Value |
| --- | --- |
| x-fj-api-key | fjk_ |
| Content-Type | application/json |
## Body
| Field | Type | Description |
| --- | --- | --- |
| sessionTitle | string | New title. |
| jdDetail | object | `{ userText?, sampleProfileURL? }`. |
| queries | object | Updated query filters — same shape as **Create Sourcing Session**. |
## Response (200)
``` json
{
"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:
``` bash
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.
sessionTitle
jdDetail
queries
Response headers
X-Powered-By
X-Request-Id
Access-Control-Allow-Credentials
RateLimit-Policy
RateLimit-Limit
RateLimit-Remaining
RateLimit-Reset
ETag
Response
OK
statusCode
data
message
status