Skip to main content
DELETE
https://integrations.projectcor.com
/
v2
/
integrations
/
contracts
/
{id}
/
users
curl --location --request DELETE 'https://integrations.projectcor.com/v2/integrations/contracts/SF-CONTRACT-12345/users' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "metadata": {
    "source": "SALESFORCE"
  },
  "users": [
    "OKTA-USER-67890"
  ]
}'
{
  "message": "Users detached successfully",
  "contract_id": 30001,
  "detached_users": [8547]
}
Removes one or more users from an existing contract. Validates that users are currently attached to the contract before detaching them.

Path Parameters

id
string
required
External contract ID

Request Body Requirements

metadata
object
required
users
array
required
Array of external user IDs to detach from the contract

Known Errors

  • ContractNotFoundError — No contract found with the specified external ID
  • UserNotFoundError — One or more users not found with the specified external IDs
  • ValidationError — Missing required fields or empty users array
  • NotAttachedError — One or more users are not attached to this contract
curl --location --request DELETE 'https://integrations.projectcor.com/v2/integrations/contracts/SF-CONTRACT-12345/users' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "metadata": {
    "source": "SALESFORCE"
  },
  "users": [
    "OKTA-USER-67890"
  ]
}'
{
  "message": "Users detached successfully",
  "contract_id": 30001,
  "detached_users": [8547]
}