put__workspace_{workspaceId}

PUT /workspace/{id}

Update Workspace

Update an existing workspace's configuration. The user must have ADMIN access to the workspace to perform updates.

TypeScript Client Library

public updateWorkspace = async (id: string, request: WorkspaceTypes.UpdateWorkspaceRequest): Promise<WorkspaceTypes.UpdateWorkspaceResponse> => {
  return this.makeRequest<WorkspaceTypes.UpdateWorkspaceResponse>(`workspace/${id}`, 'PUT', request);
};

Code Samples

# You can also use wget
curl -X PUT https://backend.flashback.tech/workspace/123e4567-e89b-12d3-a456-426614174000 \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}' \
  -d '{
    "name": "Updated Development Workspace"
  }'

Body parameter

{
  "name": "Updated Development Workspace"
}

Parameters

Name
In
Type
Required
Description

id

path

string

true

The unique identifier of the workspace

body

body

object

true

Workspace update data

Path Parameters

Name
Type
Required
Restrictions
Description

id

string

true

none

The unique identifier of the workspace

Request Body Schema

Name
Type
Required
Restrictions
Description

» name

string

false

none

The new name for the workspace

Example responses

200 Response

{
  "success": true,
  "workspace": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "Updated Development Workspace",
    "orgId": "987fcdeb-51a2-43d1-9f12-345678901234"
  }
}

400 Response

{
  "success": false,
  "message": "User not found or account is not validated"
}

403 Response

{
  "success": false,
  "message": "Insufficient permissions to update workspace"
}

404 Response

{
  "success": false,
  "message": "Workspace not found"
}

500 Response

{
  "success": false,
  "message": "Failed to update workspace"
}

Responses

Status
Meaning
Description
Schema

200

Workspace updated successfully

Inline

400

User not found or not validated

Inline

403

Insufficient permissions

Inline

404

Workspace not found

Inline

500

Server error

Inline

Response Schema

Status Code 200

Name
Type
Required
Restrictions
Description

» success

boolean

true

none

Operation success status

» workspace

object

true

none

Updated workspace details

»» id

string

true

none

Unique workspace identifier

»» name

string

true

none

Updated workspace name

»» orgId

string

true

none

Organization identifier

Status Code 400

Name
Type
Required
Restrictions
Description

» success

boolean

true

none

Operation success status

» message

string

true

none

Error message

Status Code 403

Name
Type
Required
Restrictions
Description

» success

boolean

true

none

Operation success status

» message

string

true

none

Error message

Status Code 404

Name
Type
Required
Restrictions
Description

» success

boolean

true

none

Operation success status

» message

string

true

none

Error message

Status Code 500

Name
Type
Required
Restrictions
Description

» success

boolean

true

none

Operation success status

» message

string

true

none

Error message

Notes

  • Authentication Required: User must be authenticated with a valid Bearer token

  • Permissions: User must have ADMIN access to the workspace to perform updates

  • Account Validation: User account must be validated to update workspaces

  • Workspace Naming: If updating the name, it must be unique within the organization

  • Organization Scoped: Workspaces are scoped to the user's organization

  • Partial Updates: Only the fields provided in the request body will be updated

Last updated

Was this helpful?