Skip to main content

Rename a folder

POST/folders/{folderId}

Renames a folder. The new name is 1 to 60 characters and no other folder in the workspace may have it (ignoring case). The studies in it stay where they are, and nothing else changes. Use list_folders to find the folder's id. (The MCP tool rename_folder.)

Scope studies: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/folders/FOLDER_ID" \
-H "Authorization: Bearer $JEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Churn interviews"
}'

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

Path​

NameTypeRequiredNotes
folderIdstring (UUID)yes

Body​

FieldTypeRequiredNotes
namestringyesThe new name, 1 to 60 characters. At most 200 characters.

Response · 200​

FieldTypeRequiredNotes
folderobjectyes
folder.idstringyes
folder.namestringyes
folder.studiesintegeryesHow many studies are in it.
The full response schema
{
"type": "object",
"properties": {
"folder": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"studies": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "How many studies are in it."
}
},
"required": [
"id",
"name",
"studies"
],
"additionalProperties": false
}
},
"required": [
"folder"
],
"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