Skip to main content
PUT
/
v2
/
integrations
/
teams
/
{id}
/
attach
curl --location 'https://integrations.projectcor.com/v2/integrations/teams/{{external_team_id}}/attach' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "users": ["{{external_user_id}}"],
  "metadata": {
    "source": "GLOBANT"
  }
}'
{
  "users": [
    {
      "team_id": 4241,
      "user_id": 48878,
      "created_at": "2026-01-08 19:20:47",
      "updated_at": "2026-01-08 19:20:47",
      "id": 178148,
      "__meta__": {
        "company_id": 2336,
        "user": {
          "id": 48878,
          "first_name": "JOTA",
          "last_name": "Olaechea",
          "email": "gracie.mccullough@yahoo.com",
          "company_id": 2336
        }
      }
    }
  ],
  "errors": []
}

Documentation Index

Fetch the complete documentation index at: https://developers.projectcor.com/llms.txt

Use this file to discover all available pages before exploring further.

Associates one or more users with an existing team. This operation validates that all provided users exist and are already mapped in COR before attaching them to the team.

Path Parameters

id
string
required
External team ID

Request Body Requirements

metadata
object
required
users
array
required
Array of external user IDs to attach to the team

Known Errors

  • ZC001 — Entity is not associated (team with the specified external ID not found) or missing associations for users
  • ValidationError — Missing required fields or empty users array

Per-User Errors

When some users fail validation, the response still returns 200 but includes an errors array alongside the successfully attached users. Each error object contains:
FieldTypeDescription
user_idintegerInternal COR user ID
namestringError name
codestringError code
messagestringHuman-readable description
CodeNameDescription
UT011ALREADY_ASSIGNEDUser is already assigned to this team
UT012NOT_IN_WORKSPACEUser does not belong to the team’s workspace
UT013WORKSPACE_CONFLICTUser already belongs to another team in the same workspace
curl --location 'https://integrations.projectcor.com/v2/integrations/teams/{{external_team_id}}/attach' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
  "users": ["{{external_user_id}}"],
  "metadata": {
    "source": "GLOBANT"
  }
}'
{
  "users": [
    {
      "team_id": 4241,
      "user_id": 48878,
      "created_at": "2026-01-08 19:20:47",
      "updated_at": "2026-01-08 19:20:47",
      "id": 178148,
      "__meta__": {
        "company_id": 2336,
        "user": {
          "id": 48878,
          "first_name": "JOTA",
          "last_name": "Olaechea",
          "email": "gracie.mccullough@yahoo.com",
          "company_id": 2336
        }
      }
    }
  ],
  "errors": []
}