---
title: "增加应用依赖关系"
method: POST
path: "/v2/tenants/{tenant_name}/services/{service_alias}/dependency"
tags: ["v2"]
---

# 增加应用依赖关系

`POST /v2/tenants/{tenant_name}/services/{service_alias}/dependency`

add dependency

## Path parameters

- `tenant_name` string, required
- `service_alias` string, required

## Request body

- object
  - `dep_order` string — 不明，默认传 1, 可以不传 in: body
  - `dep_service_id` string, required — 被依赖的应用id in: body
  - `dep_service_type` string — 被依赖的应用类型,添加时需要传值, 删除时不需要传值 in: body

## Response `default`

统一返回格式

- CommandResponse — unresolved $ref

---

[API](https://skmtc.dev/goodrain/apis/untitled-api.md) · [All operations](https://skmtc.dev/goodrain/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc.dev/goodrain/apis/untitled-api/revisions/8c773e222448?raw)
