---
title: "host.deploy-create-request@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/host.deploy-create-request"
updated: null
---

# host.deploy-create-request@1 · OpenVibe.Services

HTML: [host.deploy-create-request@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/host.deploy-create-request)

# HostDeployCreateRequest `host.deploy-create-request@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: host
- Visibility: first-party
- Status: retired
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/host/deploy-create-request.v1.json`](/docs/contracts/host.deploy-create-request.json)

Deprecated since 0.150.0; use space.deploy-create-request@1. Removed after 1.0.0. the static hosting engine moved from OpenVibe.Host to OpenVibe.Space (2026-10-12, plan T20)

host.deploy-create-request@1: bodies of host.deploy.create on OpenVibe.Host (a deployer or above of the project; an app principal added as deployer can deploy from CI). POST /api/v1/sites/:id/deploys uploads a deploy: the raw body is a tar or tar.gz archive (Content-Type application/gzip, application/x-gzip, application/x-tar or application/octet-stream), or multipart/form-data with archive=<one archive> or files=<file>… (each part's filename is its path); optional fields activate=1, root=<subdirectory to deploy> and strip=folder (removes a shared first segment) also work as query parameters. It is validated (path traversal, links, special and hidden files, server-side code, file types, sizes and quotas) and never executed; a refusal is a problem whose extra carries the failed deploy\_id and its log (413 upload.too\_large, quota.storage; 422 validation codes; 429 quota.deploys\_per\_day; 403 site.taken\_down; 503 upload.busy; 507 storage.host\_full). POST /api/v1/deploys/:id/activate { expected\_active? } and POST /api/v1/sites/:id/rollback { deploy\_id?, expected\_active? } switch the site's pointer in one step (rollback without deploy\_id goes to the deploy active before; 409 deploy.not\_ready, site.active\_changed when expected\_active is stale, deploy.no\_previous). GET /api/v1/sites/:id/deploys, /deploys/:id and /deploys/:id/log take no body.

## Fields

This schema has no named fields.

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: activate

~~~~
{
  "expected_active": "dpl_01JAD3D4E5F6G7H8J9K0M1N2P3"
}
~~~~

Valid: rollback-previous

~~~~
{}
~~~~

Valid: rollback

~~~~
{
  "deploy_id": "dpl_01JAD3D4E5F6G7H8J9K0M1N2P3",
  "expected_active": "dpl_01JAD4D4E5F6G7H8J9K0M1N2P3"
}
~~~~

Rejected: wrong-types

~~~~
{
  "deploy_id": 42,
  "expected_active": 7
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('host.deploy-create-request@1', value);   // { valid, errors: [{ path, message }] }
~~~~
