curl --location --request DELETE 'https://integrations.projectcor.com/v2/integrations/projects/SF-OPP-12345' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"metadata": {
"source": "SALESFORCE"
}
}'
import requests
url = "https://integrations.projectcor.com/v2/integrations/projects/SF-OPP-12345"
payload = {
"metadata": {
"source": "SALESFORCE"
}
}
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.status_code)
const response = await fetch(
'https://integrations.projectcor.com/v2/integrations/projects/SF-OPP-12345',
{
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
metadata: {
source: 'SALESFORCE'
}
})
}
);
console.log(response.status);
{
"message": "Project deleted successfully",
"external_id": "SF-OPP-12345",
"cor_id": 155693
}
{
"error": "ProjectNotFoundError",
"message": "Project with external ID 'SF-OPP-12345' not found for source SALESFORCE",
"code": "ZC004"
}
Projects
Delete Project
Deletes a project from your COR instance using its external ID
DELETE
/
v2
/
integrations
/
projects
/
{id}
curl --location --request DELETE 'https://integrations.projectcor.com/v2/integrations/projects/SF-OPP-12345' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"metadata": {
"source": "SALESFORCE"
}
}'
import requests
url = "https://integrations.projectcor.com/v2/integrations/projects/SF-OPP-12345"
payload = {
"metadata": {
"source": "SALESFORCE"
}
}
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.status_code)
const response = await fetch(
'https://integrations.projectcor.com/v2/integrations/projects/SF-OPP-12345',
{
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
metadata: {
source: 'SALESFORCE'
}
})
}
);
console.log(response.status);
{
"message": "Project deleted successfully",
"external_id": "SF-OPP-12345",
"cor_id": 155693
}
{
"error": "ProjectNotFoundError",
"message": "Project with external ID 'SF-OPP-12345' not found for source SALESFORCE",
"code": "ZC004"
}
Deletes a project from your COR instance using its external ID. This also removes the integration mapping for the project.
Path Parameters
External project ID that was used when creating the project
Request Body Requirements
Show properties
Show properties
Integration source identifier. Must match the source used when creating the project.
Known Errors
ProjectNotFoundError— No project found with the specified external ID for this sourceValidationError— Missing requiredmetadata.sourcefieldDeletionError— Project cannot be deleted due to existing dependencies (tasks, time entries, etc.)
curl --location --request DELETE 'https://integrations.projectcor.com/v2/integrations/projects/SF-OPP-12345' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"metadata": {
"source": "SALESFORCE"
}
}'
import requests
url = "https://integrations.projectcor.com/v2/integrations/projects/SF-OPP-12345"
payload = {
"metadata": {
"source": "SALESFORCE"
}
}
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.status_code)
const response = await fetch(
'https://integrations.projectcor.com/v2/integrations/projects/SF-OPP-12345',
{
method: 'DELETE',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
metadata: {
source: 'SALESFORCE'
}
})
}
);
console.log(response.status);
{
"message": "Project deleted successfully",
"external_id": "SF-OPP-12345",
"cor_id": 155693
}
{
"error": "ProjectNotFoundError",
"message": "Project with external ID 'SF-OPP-12345' not found for source SALESFORCE",
"code": "ZC004"
}
Was this page helpful?
⌘I

