---
title: "adds an inventory item"
method: POST
path: "/dependencies"
tags: ["admins"]
---

# adds an inventory item

`POST /dependencies`

## Request

- Base URL: `http://localhost:8506/api`
- URL: `http://localhost:8506/api/dependencies`
- Auth: HTTP bearer

Adds an item to the system

## Query parameters

- `async` boolean

## Request body

- DependencyList
  - `language` string
  - `languageVersion` string
  - `vcsHost` 'Github HMCTS' | 'Gerrit' | 'Github MoJ' | 'Github CJS Common Platform' | 'Azure Portal' | 'S: Drive' | 'SharePoint' | 'Gitlab' | 'Subversion' | 'OneDrive Justice.gov.uk (individuals)', required
  - `hmctsApplication` string, required
  - `codeRepository` string, required
  - `encodedDependencyList` string, byte, required
  - `encodedDependencyListOther` string, byte
  - `parser` 'gradle' | 'maven' | 'npm' | 'yarn' | 'pip' | 'dotnet', required

## Response `201`

item created

## Other responses

- `400`: invalid input, object invalid
- `409`: an existing item already exists

## Changes

- **2024-07-05** `ecb0da8d0c8f`: 1 breaking, 1 warning, 1 info
  - added the new required request property `encodedDependencyList`
  - removed the request property `encodedDependecyList`
  - added the new optional request property `encodedDependencyListOther`
- **2023-07-14** `9af1b196dbf1`: 7 breaking, 10 info
  - removed the enum value `azure devops` of the request property `vcsHost`
  - removed the enum value `cpp gerrit` of the request property `vcsHost`
  - removed the enum value `github.com/cjscommonplatform` of the request property `vcsHost`
  - removed the enum value `github.com/hmcts` of the request property `vcsHost`
  - …13 more
- **2023-06-13** `dd1c599e3a7b`: 1 info
  - added the new optional `query` request parameter `async`
- **2023-05-23** `655fe160eb3e`: 2 info
  - added the new optional request property `language`
  - added the new optional request property `languageVersion`
- **2023-04-20** `195ff801c982`: 1 info
  - the `hmctsApplication` request property format was generalized from `uuid` to no format

[Operation history](https://skmtc.dev/hm-courts-and-tribunals-service/apis/dtsse-ardoq-adapter/changes/dependencies/post.md)

---

[API](https://skmtc.dev/hm-courts-and-tribunals-service/apis/dtsse-ardoq-adapter.md) - [All operations](https://skmtc.dev/hm-courts-and-tribunals-service/apis/dtsse-ardoq-adapter/llms.txt) - [OpenAPI document](https://skmtc.dev/hm-courts-and-tribunals-service/apis/dtsse-ardoq-adapter/revisions/ecb0da8d0c8f?raw)
