---
title: "Add application dependency"
method: PUT
path: "/zones/{zoneId}/applications/{id}/dependencies/{dependencyId}"
tags: ["Applications"]
---

# Add application dependency

`PUT /zones/{zoneId}/applications/{id}/dependencies/{dependencyId}`

## Request

- Base URL: `https://docs.keycard.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://docs.keycard.ai/zones/{zoneId}/applications/{id}/dependencies/{dependencyId}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Client credentials
    - Token URL: `/service-account-token`

Adds a resource dependency to an application

## Path parameters

- `zoneId` string, required
- `id` string, required
- `dependencyId` string, required

## Query parameters

- `when_accessing` string[]

## Response `204`

Default Response

## Other responses

- `403`: Error response
- `404`: Error response
- `default`: Error response

## Changes

- **2026-08-26** `d65d51379d93`: 2 info
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
- **2026-03-16** `d3d69f45bfed`: 3 info
  - the endpoint scheme security `OAuth2` was added to the API
  - the endpoint scheme security `bearerAuth` was added to the API
  - the endpoint scheme security `iam_bearerAuth` was removed from the API

[Operation history](https://skmtc.dev/keycardai/apis/keycard-ai-keycard-api/changes/zones/:zoneId/applications/:id/dependencies/:dependencyId/put.md)

---

[API](https://skmtc.dev/keycardai/apis/keycard-ai-keycard-api.md) - [All operations](https://skmtc.dev/keycardai/apis/keycard-ai-keycard-api/llms.txt) - [OpenAPI document](https://skmtc.dev/keycardai/apis/keycard-ai-keycard-api/revisions/0dee67e0a73a?raw)
