---
title: "Writes `composer.lock` and optional `composer.json` and runs a `composer install`"
method: PUT
path: "/api/packages/cloud"
tags: ["Packages"]
---

# Writes `composer.lock` and optional `composer.json` and runs a `composer install`

`PUT /api/packages/cloud`

## Request body

- object
  - `composerLock` object, required — New content of the `composer.lock` file
  - `composerJson` object — Optional content of the `composer.json` file

## Response `200`

Writes `composer.lock` and optional `composer.json` and runs a `composer install`

- TaskStatus
  - `id` string — A unique UUIDv4 for the current task.
  - `title` string
  - `console` string
  - `cancellable` boolean — If the task can be aborted
  - `autoclose` boolean — If it should be possible to close the task automatically.
  - `audit` boolean — If a successful task might requires audit (install tool).
  - `status` 'active' | 'complete' | 'error' | 'aborting' | 'stopped'
  - `operations` object[]
    - `summary` string
    - `details` string
    - `console` string
    - `status` 'active' | 'complete' | 'error' | 'stopped'
  - `sponsor` object — Sponsor of the current task on the Composer Cloud
    - `name` string
    - `link` string

## Changes

- **2025-03-06** `4dc3bf84edf7` — 2 info
  - the endpoint scheme security `CookieAuthentication` was added to the API
  - the endpoint scheme security `TokenAuthentication` was added to the API
- **2022-08-24** `8a278f8d40ef` — 1 info
  - added the optional property `sponsor` to the response with the `200` status
- **2021-04-21** `bf5dc6867454` — 1 info
  - removed the non-success response with the status `404`
- **2020-09-09** `6b322ef64f18` — 1 info
  - added the non-success response with the status `404`
- **2020-08-20** `3f160a3b11b4` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/contao/apis/contao-manager-api/changes/api/packages/cloud/put.md)

---

[API](https://skmtc.dev/contao/apis/contao-manager-api.md) · [All operations](https://skmtc.dev/contao/apis/contao-manager-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/contao/contao-manager-api/revisions/4dc3bf84edf7/schema)
