Skip to main content
DELETE
https://integrations.projectcor.com
/
v2
/
integrations
/
users
/
{id}
curl --location --request DELETE 'https://integrations.projectcor.com/v2/integrations/users/OKTA-USER-12345' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "metadata": {
    "source": "OKTA"
  }
}'
{
  "message": "User deleted successfully",
  "external_id": "OKTA-USER-12345",
  "cor_id": 8546
}
Deletes a user from your COR instance using their external ID. This removes the user and the integration mapping.

Path Parameters

id
string
required
External user ID that was used when creating the user

Request Body Requirements

metadata
object
required

Known Errors

  • ZC001 — Entity is not associated (user with the specified external ID not found)
  • UserNotFoundError — No user found with the specified external ID for this source
  • ValidationError — Missing required metadata.source field
  • DeletionError — User cannot be deleted due to existing time entries or project assignments
curl --location --request DELETE 'https://integrations.projectcor.com/v2/integrations/users/OKTA-USER-12345' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "metadata": {
    "source": "OKTA"
  }
}'
{
  "message": "User deleted successfully",
  "external_id": "OKTA-USER-12345",
  "cor_id": 8546
}