Skip to content

Create a connection

POST https://api.copper.com/developer_api/v1/related_links

Once you have created connect fields, use the create a connection API to add connections to the connect field.

Request Body

{
    "custom_field_definition_id": 169,
    "source": {
        "id": 1001,
        "entity_type": "lead"
    },
    "target": {
        "id": 1002,
        "entity_type": "lead"
    }
}

Example Requests

Create a new connection

curl --request POST "https://api.copper.com/developer_api/v1/related_links" \
  --header "X-PW-AccessToken: YOUR_TOKEN_HERE" \
  --header "X-PW-Application: developer_api" \
  --header "X-PW-UserEmail: YOUR_EMAIL_HERE" \
  --header "Content-Type: application/json" \
  --data "{
    \"custom_field_definition_id\": 169,
    \"source\": {
        \"id\": 1001,
        \"entity_type\": \"lead\"
    },
    \"target\": {
        \"id\": 1002,
    \"entity_type\": \"lead\"
    }
}
"
{
    "id": 2103,
    "custom_field_definition_id": 169,
    "source": {
        "id": 1001,
        "entity_type": "lead",
        "name": "1001"
    },
    "target": {
        "id": 1002,
        "entity_type": "lead",
        "name": "1002"
    }
}