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

# Create child worker relation

`PUT /hris/worker_relations/profile/{hris_profile_oid}/child`

## Request

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

Replaces all child relationships of a given type for the specified HRIS profile. Any existing child relationships of that type not included in the request will be removed.

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

## Path parameters

- `hris_profile_oid` string, uuid, required

## Request body

- object
  - `data` HrisWorkerRelationsProfileHrisProfileOidChildPutRequestBodyContentApplicationJsonSchemaData
    - `ids` string[], required: An array containing the IDs of the child profiles
    - `hris_relationship_type_id` string, uuid, required: The ID of the relationship type

## Response `204`

Successful operation

- object

## Other responses

- `400`: Bad request - The request body is invalid or missing required fields.
- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Not found - The HRIS profile or relationship type was not found.
- `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)
