---
title: "Create child worker relation with external Id"
method: PUT
path: "/hris/worker_relations/profile/external/{profileId}/child"
tags: ["workerRelations"]
---

# Create child worker relation with external Id

`PUT /hris/worker_relations/profile/external/{profileId}/child`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/hris/worker_relations/profile/external/{profileId}/child`
- Auth: HTTP bearer

Creates or replaces the child worker relation for the HrisProfile identified by the given external ID. If a child relation already exists for this profile, it is overwritten with the supplied data.

 **Token scopes**: `profile:write`

## Path parameters

- `profileId` string, required

## Request body

- object
  - `data` HrisWorkerRelationsProfileExternalProfileIdChildPutRequestBodyContentApplicationJsonSchemaData
    - `child_hris_profile_ids` HrisWorkerRelationsProfileExternalProfileIdChildPutRequestBodyContentApplicationJsonSchemaDataChildHrisProfileIdsItems[], required
      - `relation_external_id` string, required
      - `external_hris_profile_id` string, required
    - `hris_relationship_type_external_id` string, uuid

## Response `204`

Successful operation

- object

## Other responses

- `400`: Operation failed.
- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Operation failed.
- `500`: Operation failed.

---

[API](https://skmtc.dev/deel/apis/hris-endpoints.md) - [All operations](https://skmtc.dev/deel/apis/hris-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/hris-endpoints/revisions/b7b456c45a40?raw)
