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 |
\Caplinked\Model\Workspace getWorkspaces($team_id)
List all workspaces for a team
List all workspaces for a team
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Caplinked\Api\WorkspacesApi();
$team_id = 56; // int | ID of team from which to list workspaces
try {
$result = $api_instance->getWorkspaces($team_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WorkspacesApi->getWorkspaces: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| team_id | 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]
\Caplinked\Model\Workspace getWorkspacesId($id)
Get workspace information
Get workspace information
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Caplinked\Api\WorkspacesApi();
$id = 56; // int | ID of workspace
try {
$result = $api_instance->getWorkspacesId($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WorkspacesApi->getWorkspacesId: ', $e->getMessage(), PHP_EOL;
}
?>| 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]
\Caplinked\Model\Workspace postWorkspaces($team_id, $workspace_name)
Create workspace
Create workspace. Workspace creator will be added to Workspace Admins group.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Caplinked\Api\WorkspacesApi();
$team_id = 56; // int | ID of parent team for this workspace
$workspace_name = "workspace_name_example"; // string | Name of workspace to create
try {
$result = $api_instance->postWorkspaces($team_id, $workspace_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WorkspacesApi->postWorkspaces: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| team_id | int | ID of parent team for this workspace | |
| workspace_name | 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]
\Caplinked\Model\Workspace putWorkspacesId($id, $workspace_name)
Update workspace
Update workspace
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Caplinked\Api\WorkspacesApi();
$id = 56; // int | ID of workspace to update
$workspace_name = "workspace_name_example"; // string | Name of workspace to update
try {
$result = $api_instance->putWorkspacesId($id, $workspace_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WorkspacesApi->putWorkspacesId: ', $e->getMessage(), PHP_EOL;
}
?>| Name | Type | Description | Notes |
|---|---|---|---|
| id | int | ID of workspace to update | |
| workspace_name | 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]