Update folder
Update Folder
This endpoint allows you to update the details of a specific folder identified by its folderId.
Request
- Method: PUT
- Endpoint: {{url}}/v1/folder/:folderId
- Path Parameter:
- folderId (string): The unique identifier of the folder you wish to update.
Request Body
name (string) is the only required field. description, assignTo, defaultAssignTo, and source are all optional — omit a field entirely to leave its current value unchanged. This is a partial update: only fields you actually include in the request body are written.
To explicitly clear a value instead of leaving it as-is, send it as an empty string (description) or an empty array (assignTo) — that is different from omitting the field.
- name (string, required): The new name for the folder.
- description (string, optional): Short description of the folder's contents. Omit to leave unchanged; send "" to clear.
- assignTo (string[], optional): User IDs the folder is shared with. Omit (and omit defaultAssignTo) to leave the current sharing list unchanged; send [] to clear it.
- defaultAssignTo (string, deprecated): Single-user convenience form of assignTo. Prefer assignTo.
- source (object, optional): Where the folder's content comes from; sending it replaces the stored source.
Example Request Body (rename only — sharing and description are left untouched):
{
"name": "Folder name 2 Updated"
}
Example Request Body (rename and replace the sharing list):
{
"name": "Folder name 2 Updated",
"assignTo": ["64f0a1b2c3d4e5f678901234"]
}
Response
Upon a successful update, the response will be in JSON format and will include the following fields:
- status (string): The status of the request.
- data (object): Contains additional information about the update.
- folderId (string): The ID of the updated folder.
- message (string): A message indicating the result of the update.
- fields (array): An array that may contain any relevant fields related to the update.
Example Response:
{
"status": "",
"data": {
"folderId": "",
"message": "",
"fields": []
}
}
Notes
Ensure that the folderId in the URL is valid and that you have the necessary permissions to update the folder.
Request
- Base URL: https://api.speakai.co/v1
- URL: https://api.speakai.co/v1/folder/{folderId}
- Auth: API key in header x-speakai-key and API key in header x-access-token
Path parameters
Request body
Response
OK
Changes
No recorded changes to this operation across all 2 revisions of this API.