---
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' | 'paused' | '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

---

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