Workspaces

Update a workspace

Changed on

⚠️ ALPHA ENDPOINT - This endpoint is in alpha and subject to breaking changes. Use with caution in production environments.

Partially update a given workspace.

Standard update (workspace OWNER only):

  • name (string, optional): Desired workspace name (max 100 characters, cannot be empty)
  • description (string, optional): Desired workspace description. Send empty string or null to clear.

Convert to a synced workspace (workspace OWNER or a role granting workspace edit/delete):

  • datasource (object): Datasource configuration used to populate the workspace. Credentials are validated against the external source before persistence; use POST /api/v3/workspaces/{id}/datasource/test to validate them without committing.
  • The target workspace must be empty (no documents) and not already synced.

Edit an existing synced workspace's datasource:

  • If the workspace is already synced and no successful sync has happened yet, sending a datasource payload edits the datasource in place (full credential re-entry required, name/filter_criteria updated, next sync re-triggered).
  • After the first successful sync, the field is rejected with 409 Conflict — ingested data integrity is preserved by locking the config. Delete and recreate the workspace to change its configuration.
  • The datasource type is immutable on edit.
  • Edits are also rejected with 409 while a sync is currently in flight (WAITING/PROCESSING).
  • The current edit-availability is exposed in the response under sync.editable (boolean).

Restrictions:

  • Only SHARED workspaces can be updated (PERSONAL workspaces cannot be modified)
  • Conversion is one-way: a synced workspace cannot be reverted to manual via the API
patch/api/v3/workspaces/{id}

Request

  • Base URL
    https://api.lighton.ai
  • URL
    https://api.lighton.ai/api/v3/workspaces/{id}
  • Auth
    • HTTP bearer
    • or none

Path parameters

idinteger required

The unique identifier of the workspace.

Request body

namestring

Workspace name (max 100 characters, cannot be empty). When sent together with deleted_at: null (restore), the workspace is restored under this name — used to resolve a collision when the original name was re-taken by a live workspace during the grace period.

descriptionstring

Workspace description. Send empty string or null to clear. May be sent together with deleted_at: null (restore) to set the description as part of the restore request; a name collision rejects the whole request before the description is applied. members and datasource are not accepted on a restore request — restore first, then PATCH them.

membersunknown

Response

Workspace updated successfully

idinteger required
namestring required
workspace_typestring required
document_upload_methodstring required
descriptionstring required
created_atstring date-time required
updated_atstring date-time required
files_countinteger required
used_storagenumber double required

Changes

    • info

      added the new smb enum value to the request property ///////// (media type: application/json)

    • info

      added the new smb enum value to the request property ///////// (media type: application/x-www-form-urlencoded)

    • info

      added the new smb enum value to the request property ///////// (media type: multipart/form-data)

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the media type application/json for the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status