---
title: "Create a worker relation"
method: POST
path: "/hris/worker_relations/profile"
tags: ["workerRelations"]
---

# Create a worker relation

`POST /hris/worker_relations/profile`

## Request

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

Establishes a hierarchical relationship between a worker and one or more subordinates. The request body must identify both the parent worker and the subordinate profiles to be linked.

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

## Request body

- object
  - `data` HrisWorkerRelationsProfilePostRequestBodyContentApplicationJsonSchemaData: The request payload containing the relationship details.
    - `child_hris_profile_ids` string[], required: An array containing the secondary HrisProfiles IDs.
    - `parent_hris_profile_id` string, uuid, required: Primary HrisProfile ID
    - `hris_relationship_type_id` string, uuid, required: The ID of the Worker Relation Type.

## Response `201`

Successful operation

- WorkerRelationsCreateWorkerRelationProfileResponse201: Empty response body

## Other responses

- `400`: Bad request - The request body is invalid, missing required fields, or a circular relationship was detected.
- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Not found - The parent profile, child 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)
