Skip to main content
POST
https://integrations.projectcor.com
/
v2
/
integrations
/
workspaces
curl --location 'https://integrations.projectcor.com/v2/integrations/workspaces' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "metadata": {
    "source": "MICROSOFT_TEAMS"
  },
  "id": "TEAMS-WS-12345",
  "name": "Marketing Team",
  "active": true,
  "description": "Workspace for the marketing department"
}'
{
  "id": 5001,
  "name": "Marketing Team",
  "active": true,
  "description": "Workspace for the marketing department",
  "company_id": 1234,
  "created_at": "2025-01-10T14:30:00Z",
  "updated_at": "2025-01-10T14:30:00Z"
}
Creates a new workspace in your COR instance through the integrations service. Validates workspace name, ID, and active status before creating.

Request Body Requirements

metadata
object
required
id
string
required
External workspace ID from your source system
name
string
required
Workspace name
active
boolean
Whether the workspace is active (default: true)
description
string
Workspace description

Known Errors

  • ValidationError — Missing required fields
  • DuplicateExternalIdError — A workspace with this external ID already exists
curl --location 'https://integrations.projectcor.com/v2/integrations/workspaces' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "metadata": {
    "source": "MICROSOFT_TEAMS"
  },
  "id": "TEAMS-WS-12345",
  "name": "Marketing Team",
  "active": true,
  "description": "Workspace for the marketing department"
}'
{
  "id": 5001,
  "name": "Marketing Team",
  "active": true,
  "description": "Workspace for the marketing department",
  "company_id": 1234,
  "created_at": "2025-01-10T14:30:00Z",
  "updated_at": "2025-01-10T14:30:00Z"
}