PUT
/
components
/
instances
/
links
curl --request PUT \
  --url https://api.serial.io/components/instances/links \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "parent_component_instance_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "child_component_instance_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "process_entry_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "break_prior_links": true
}'
{
  "broken_links": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "unique_identifier_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "has_child_of_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "process_entry_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "is_active": true,
      "dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "removed_at": "2023-11-07T05:31:56Z"
    }
  ],
  "new_link": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "unique_identifier_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "has_child_of_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "process_entry_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "is_active": true,
    "dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z",
    "removed_at": "2023-11-07T05:31:56Z"
  },
  "prior_link": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "unique_identifier_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "has_child_of_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "process_entry_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "is_active": true,
    "dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z",
    "removed_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API Key or Token formatted as Bearer <YOUR_KEY_OR_TOKEN>

Body

application/json

The body is of type object.

Response

200
application/json

OK

The response is of type object.