All URIs are relative to https://sandbox.caplinked.com/api/v1
| Method | HTTP request | Description |
|---|---|---|
| GetWorkspaces | GET /workspaces | List all workspaces for a team |
| GetWorkspacesId | GET /workspaces/{id} | Get workspace information |
| PostWorkspaces | POST /workspaces | Create workspace |
| PutWorkspacesId | PUT /workspaces/{id} | Update workspace |
Workspace GetWorkspaces (int? teamId)
List all workspaces for a team
List all workspaces for a team
using System;
using System.Diagnostics;
using Caplinked.Api;
using Caplinked.Client;
using Caplinked.Model;
namespace Example
{
public class GetWorkspacesExample
{
public void main()
{
var apiInstance = new WorkspacesApi();
var teamId = 56; // int? | ID of team from which to list workspaces
try
{
// List all workspaces for a team
Workspace result = apiInstance.GetWorkspaces(teamId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling WorkspacesApi.GetWorkspaces: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| teamId | int? | ID of team from which to list workspaces |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Workspace GetWorkspacesId (int? id)
Get workspace information
Get workspace information
using System;
using System.Diagnostics;
using Caplinked.Api;
using Caplinked.Client;
using Caplinked.Model;
namespace Example
{
public class GetWorkspacesIdExample
{
public void main()
{
var apiInstance = new WorkspacesApi();
var id = 56; // int? | ID of workspace
try
{
// Get workspace information
Workspace result = apiInstance.GetWorkspacesId(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling WorkspacesApi.GetWorkspacesId: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int? | ID of workspace |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Workspace PostWorkspaces (int? teamId, string workspaceName)
Create workspace
Create workspace. Workspace creator will be added to Workspace Admins group.
using System;
using System.Diagnostics;
using Caplinked.Api;
using Caplinked.Client;
using Caplinked.Model;
namespace Example
{
public class PostWorkspacesExample
{
public void main()
{
var apiInstance = new WorkspacesApi();
var teamId = 56; // int? | ID of parent team for this workspace
var workspaceName = workspaceName_example; // string | Name of workspace to create
try
{
// Create workspace
Workspace result = apiInstance.PostWorkspaces(teamId, workspaceName);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling WorkspacesApi.PostWorkspaces: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| teamId | int? | ID of parent team for this workspace | |
| workspaceName | string | Name of workspace to create |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Workspace PutWorkspacesId (int? id, string workspaceName = null)
Update workspace
Update workspace
using System;
using System.Diagnostics;
using Caplinked.Api;
using Caplinked.Client;
using Caplinked.Model;
namespace Example
{
public class PutWorkspacesIdExample
{
public void main()
{
var apiInstance = new WorkspacesApi();
var id = 56; // int? | ID of workspace to update
var workspaceName = workspaceName_example; // string | Name of workspace to update (optional)
try
{
// Update workspace
Workspace result = apiInstance.PutWorkspacesId(id, workspaceName);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling WorkspacesApi.PutWorkspacesId: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | int? | ID of workspace to update | |
| workspaceName | string | Name of workspace to update | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]