Workspaces

Get a workspace by ID

Retrieves a specific workspace by its ID

GEThttps://api.laminar.run/workspaces/{id}
Path parameters
id*integer (int64)
Response

Workspace retrieved successfully

Body
idinteger (int64)
name*string
Request
const response = await fetch('https://api.laminar.run/workspaces/{id}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "id": 0,
  "name": "text"
}

Update workspace

Updates the name of the specified workspace

PUThttps://api.laminar.run/workspaces/{id}
Path parameters
id*integer (int64)
Query parameters
Response

Workspace updated successfully

Body
idinteger (int64)
name*string
Request
const response = await fetch('https://api.laminar.run/workspaces/{id}?name=text', {
    method: 'PUT',
    headers: {},
});
const data = await response.json();
Response
{
  "id": 0,
  "name": "text"
}

Delete workspace

Deletes the specified workspace

DELETEhttps://api.laminar.run/workspaces/{id}
Path parameters
id*integer (int64)
Response

Workspace deleted successfully

Request
const response = await fetch('https://api.laminar.run/workspaces/{id}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();

Get all workspaces

Retrieves all workspaces for the authenticated user

GEThttps://api.laminar.run/workspaces
Response

Successfully retrieved workspaces

Body
idinteger (int64)
name*string
Request
const response = await fetch('https://api.laminar.run/workspaces', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "id": 0,
  "name": "text"
}

Create a new workspace

Creates a new workspace with the given name

POSThttps://api.laminar.run/workspaces
Query parameters
Response

Workspace created successfully

Body
idinteger (int64)
name*string
Request
const response = await fetch('https://api.laminar.run/workspaces?name=text', {
    method: 'POST',
    headers: {},
});
const data = await response.json();
Response
{
  "id": 0,
  "name": "text"
}