Skip to main content

Pause, resume, stop or add places to a listing

POST/studies/{id}/recruiting/change

Changes a study's live paid listing, as the study page's controls do. pause stops new people arriving for now and resume starts it again: one call each, nothing charged. stop ends recruiting for good and cannot be undone; credit for places nobody filled is given back once nobody is still taking it. It takes two calls: the first changes nothing and returns a code valid 10 minutes, the second, with confirm, stops. add_places adds places (never more than the design wants) and spends: two calls, the first returns the price of the added places and a code bound to that number and price, the second adds them for exactly that price. Show the researcher the first call's answer and ask before the second. With one live listing listingId may be left out; get_recruiting gives the ids. (The MCP tool change_recruiting.)

Scope recruiting:write · Credential a workspace API key (jean_sk_…, make one in the Jean app) or an OAuth access token. See scopes.

curl --fail-with-body -X POST "https://app.jeantechnologies.com/api/v1/studies/STUDY_ID/recruiting/change" \
-H "Authorization: Bearer $JEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "pause"
}'

An Idempotency-Key header is optional here and makes a retry safe. See idempotency.

Path​

NameTypeRequiredNotes
idstring (UUID)yes

Body​

FieldTypeRequiredNotes
action"pause", "resume", "stop", "add_places"yes
listingIdstringnoThe listing, from get_recruiting. Needed only when the study has more than one live listing. At most 64 characters.
placesintegernoFor add_places: how many places to add. 1 to 2000.
confirmstringnoFor stop and add_places: the code the first call returned. At most 100 characters.

Response · 200​

FieldTypeRequiredNotes
donebooleanyes
confirmationCodestring or nullyes
saidstringyes
listingobject or nullyes
listing.idstringyes
listing.state"being prepared", "not published", "being published", "recruiting", "paused", "finished", "stopped", "failed"yes
listing.placesintegeryes
listing.rewardMinorintegeryesWhat each person is paid, in US cents.
listing.minutesintegeryesThe length the listing advertises.
listing.priceMinorinteger or nullyesThe listing's price: on Jean's account the one recruiting price; on the workspace's own account what that account pays the panel.
listing.audienceAppliedstringyesWho the panel shows the listing to: the filters it applies.
listing.notApplied[]object[]yesParts of the audience the panel cannot filter on.
listing.screenerEnforcesbooleanyesWhether the study has screening questions, which turn away people who do not fit.
listing.qualityobject or nullyesThe quality bar the listing was made with. Null for none.
priceMinorinteger or nullyesFor add_places: the price of the added places, as agreed.
creditAvailableMinorinteger or nullyes
consoleUrlstringyes
The full response schema
{
"type": "object",
"properties": {
"done": {
"type": "boolean"
},
"confirmationCode": {
"type": [
"string",
"null"
]
},
"said": {
"type": "string"
},
"listing": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"state": {
"type": "string",
"enum": [
"being prepared",
"not published",
"being published",
"recruiting",
"paused",
"finished",
"stopped",
"failed"
]
},
"places": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"rewardMinor": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "What each person is paid, in US cents."
},
"minutes": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "The length the listing advertises."
},
"priceMinor": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "The listing's price: on Jean's account the one recruiting price; on the workspace's own account what that account pays the panel."
},
"audienceApplied": {
"type": "string",
"description": "Who the panel shows the listing to: the filters it applies."
},
"notApplied": {
"type": "array",
"items": {
"type": "object",
"properties": {
"attribute": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
}
},
"why": {
"type": "string"
}
},
"required": [
"attribute",
"values",
"why"
],
"additionalProperties": false
},
"description": "Parts of the audience the panel cannot filter on."
},
"screenerEnforces": {
"type": "boolean",
"description": "Whether the study has screening questions, which turn away people who do not fit."
},
"quality": {
"anyOf": [
{
"type": "object",
"properties": {
"minApprovalRate": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "Lowest approval rate on the panel, in percent."
},
"minPastStudies": {
"type": "integer",
"minimum": 0,
"maximum": 100000,
"description": "Fewest past approved studies on the panel."
}
},
"required": [
"minApprovalRate",
"minPastStudies"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "The quality bar the listing was made with. Null for none."
}
},
"required": [
"id",
"state",
"places",
"rewardMinor",
"minutes",
"priceMinor",
"audienceApplied",
"notApplied",
"screenerEnforces",
"quality"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"priceMinor": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "For add_places: the price of the added places, as agreed."
},
"creditAvailableMinor": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"consoleUrl": {
"type": "string"
}
},
"required": [
"done",
"confirmationCode",
"said",
"listing",
"priceMinor",
"creditAvailableMinor",
"consoleUrl"
],
"additionalProperties": false
}

Errors​

StatusMeaning
400The request is not valid: the body is not JSON, a field is wrong (listed in errors), or a required Idempotency-Key is missing.
401No key or token, or one that is wrong, expired or revoked.
403The key or connection lacks the scope this operation needs. scope names it.
404No such address, or no study (or conversation) with that id in this workspace. Another workspace's id is answered the same way.
409The study is not in a state that allows this (the detail says what to do instead), or the Idempotency-Key was used with a different request.
429Too many requests from this key or connection, or the workspace has reached its hourly or daily limit for model calls (title "Workspace model limit reached", window says which). Retry-After says when to try again.
503The language model is not available. Try again later.

Every error is application/problem+json, the same shape on every endpoint.

API overview · OpenAPI document