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"
}'
import requests
url = "https://integrations.projectcor.com/v2/integrations/workspaces"
payload = {
"metadata": {
"source": "MICROSOFT_TEAMS"
},
"id": "TEAMS-WS-12345",
"name": "Marketing Team",
"active": True,
"description": "Workspace for the marketing department"
}
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch(
'https://integrations.projectcor.com/v2/integrations/workspaces',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
metadata: {
source: 'MICROSOFT_TEAMS'
},
id: 'TEAMS-WS-12345',
name: 'Marketing Team',
active: true,
description: 'Workspace for the marketing department'
})
}
);
const data = await response.json();
console.log(data);
{
"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"
}
{
"error": "ValidationError",
"message": "Missing required field: name",
"code": "ZC002"
}
Workspaces
Create Workspace
Creates a new workspace in your COR instance with external ID mapping
POST
/
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"
}'
import requests
url = "https://integrations.projectcor.com/v2/integrations/workspaces"
payload = {
"metadata": {
"source": "MICROSOFT_TEAMS"
},
"id": "TEAMS-WS-12345",
"name": "Marketing Team",
"active": True,
"description": "Workspace for the marketing department"
}
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch(
'https://integrations.projectcor.com/v2/integrations/workspaces',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
metadata: {
source: 'MICROSOFT_TEAMS'
},
id: 'TEAMS-WS-12345',
name: 'Marketing Team',
active: true,
description: 'Workspace for the marketing department'
})
}
);
const data = await response.json();
console.log(data);
{
"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"
}
{
"error": "ValidationError",
"message": "Missing required field: name",
"code": "ZC002"
}
Creates a new workspace in your COR instance through the integrations service. Validates workspace name, ID, and active status before creating.
Request Body Requirements
string
required
External workspace ID from your source system
string
required
Workspace name
boolean
Whether the workspace is active (default: true)
string
Workspace description
Known Errors
ValidationError— Missing required fieldsDuplicateExternalIdError— 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"
}'
import requests
url = "https://integrations.projectcor.com/v2/integrations/workspaces"
payload = {
"metadata": {
"source": "MICROSOFT_TEAMS"
},
"id": "TEAMS-WS-12345",
"name": "Marketing Team",
"active": True,
"description": "Workspace for the marketing department"
}
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const response = await fetch(
'https://integrations.projectcor.com/v2/integrations/workspaces',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
metadata: {
source: 'MICROSOFT_TEAMS'
},
id: 'TEAMS-WS-12345',
name: 'Marketing Team',
active: true,
description: 'Workspace for the marketing department'
})
}
);
const data = await response.json();
console.log(data);
{
"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"
}
{
"error": "ValidationError",
"message": "Missing required field: name",
"code": "ZC002"
}
Was this page helpful?
⌘I

