---
title: "Create a parent worker relation with external id"
method: PUT
path: "/hris/worker_relations/profile/external/{profile_id}/parent"
tags: ["workerRelations"]
---

# Create a parent worker relation with external id

`PUT /hris/worker_relations/profile/external/{profile_id}/parent`

## Request

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

Sets or replaces the parent relationship for the specified HRIS profile, using external identifiers. Pass null as parent_profile_external_id to remove the existing parent relationship.

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

## Path parameters

- `profile_id` string, uuid, required

## Request body

- object
  - `data` HrisWorkerRelationsProfileExternalProfileIdParentPutRequestBodyContentApplicationJsonSchemaData: The request payload containing parent relationship details.
    - `relation_external_id` string, nullable: The external identifier for this specific relation record.
    - `parent_profile_external_id` string, nullable, required: The external identifier of the parent HRIS Profile. Pass null to remove the existing parent relationship.
    - `hris_relationship_type_external_id` string, required: The external identifier of the relationship type to apply.

## 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, relationship type, or parent profile 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)
