---
title: "POST /v2/packages"
method: POST
path: "/v2/packages"
---

# POST /v2/packages

`POST /v2/packages`

Behaves the same as /dars. This endpoint will be deprecated and removed in a future release.
Upload a DAR file to the participant.

If vetting is enabled in the request, the DAR is checked for upgrade compatibility
with the set of the already vetted packages on the target vetting synchronizer
See UploadDarFileRequest for details regarding vetting and the target vetting synchronizer.

## Query parameters

- `vetAllPackages` boolean
- `synchronizerId` string

## Response `200`

- UploadDarFileResponse — A message that is received when the upload operation succeeded.

## Other responses

- `400` — Invalid value, Invalid value for: body, Invalid value for: query parameter vetAllPackages, Invalid value for: query parameter synchronizerId
- `default`

---

[API](https://skmtc.dev/canton/apis/json-ledger-api-http-endpoints.md) · [All operations](https://skmtc.dev/canton/apis/json-ledger-api-http-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/canton/json-ledger-api-http-endpoints/revisions/296292e8b8f1/schema)
