---
title: "Add Service Dependency"
description: "To link one service to another, call the /dependencies/add endpoint and specify the service you want to attach as a dependency. For details on which dependency services are supported, refer to the documentation page of…"
stack: "Enterprise Stack (commercial) — version 0.21.0"
stack_version: "0.21.0"
stack_comparison: https://docs.walt.id/community-vs-enterprise.md
canonical_url: https://docs.walt.id/enterprise-stack/administration/services/dependency-services/add
generated: 2026-07-20
---
# Add Service Dependency

To link one service to another, call the `/dependencies/add` endpoint and specify the service you want to attach as a dependency.
For details on which dependency services are supported, refer to the documentation page of the service you are configuring.

## Attach dependency (DID Service example)

**Option: CURL**

Endpoint: `/v1/{target}/did-service-api/dids/dependencies/add` | [API Reference](https://enterprise.sandbox.walt.id/swagger/index.html#/DID%20Service/post_v1__target__did_service_api_dids_dependencies_add)

**Example Request**

```bash
curl -X 'POST' \
  'https://{orgHost}.enterprise-sandbox.waltid.dev/v1/{target}/did-service-api/dids/dependencies/add' \
  -H 'accept: */*' \
  -H 'Authorization: Bearer {yourToken}' \
  -H 'Content-Type: application/json' \
  -d 'test.tenant1.did-store-1'
```

**Path Parameters**

- `orgHost`: _String_ - Organization host alias to call against. When you are working in the sandbox organization `test`, the base URL becomes `https://test.enterprise-sandbox.waltid.dev`.
- `target`: _resourceIdentifier_ - Full path to the DID service you want to update, following `{organization}.{tenant}.{serviceId}`. For example, `test.tenant1.did-service-1`.

**Body Parameters**

- `dependency`: _String_ - JSON string containing the fully-qualified path of the service to link (for example `test.tenant1.did-store-1`). The referenced service must already exist and be accessible in the same org.

**Response Codes**

- `201` – Dependency attached successfully.
- `400` – Invalid path or dependency cannot be added.
- `401/403` – Authentication or authorization failure.
