Skip to main content
POST
https://integrations.projectcor.com
/
v2
/
integrations
/
contracts
/
{id}
/
users
curl --location '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-12345",
    "OKTA-USER-67890",
    "OKTA-USER-11111"
  ]
}'
{
  "message": "Users attached successfully",
  "contract_id": 30001,
  "attached_users": [8546, 8547, 8548]
}
Associates one or more users with an existing contract. This operation validates that all provided users exist and are already mapped in COR before attaching them to the contract.

Path Parameters

id
string
required
External contract ID

Request Body Requirements

metadata
object
required
users
array
required
Array of external user IDs to attach to 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
  • AlreadyAttachedError — One or more users are already attached to this contract
curl --location '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-12345",
    "OKTA-USER-67890",
    "OKTA-USER-11111"
  ]
}'
{
  "message": "Users attached successfully",
  "contract_id": 30001,
  "attached_users": [8546, 8547, 8548]
}