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

# media.upload-create@1 · OpenVibe.Services

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

# MediaUploadCreate `media.upload-create@1`

Generated at 2026-11-13 06:25:48 UTC from [`openvibe-contracts v0.419.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.419.0) and [`openvibe-sdk v0.161.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.161.0).

- Version: 1.0.0
- Owner: media
- Visibility: public
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/media/upload-create.v1.json`](/docs/contracts/media.upload-create.json)

Create a Media object with a multipart upload session. The caller needs media.object.upload for the tenant namespace; the upload token then authorizes parts and completion.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `kind` | enum | yes |  | - `one of "vod", "clip", "file", "thumbnail", "screenshot", "avatar", "asset"` |
| `size_bytes` | integer | yes |  | - `minimum 1` |
| `multipart` | const | yes |  | - `= true` |
| `part_size` | integer |  | Use 8388608 for 8 MiB parts; the service may increase it to stay below 10000 parts. | - `minimum 5242880` |
| `visibility` | enum |  |  | - `one of "public", "unlisted", "private"` |
| `mime_type` | string |  |  |  |
| `filename` | string |  |  |  |
| `content_hash` | string |  |  | - `pattern ^[a-fA-F0-9]{64}$` |
| `namespace` | string |  |  |  |
| `user_id` | string \| integer |  |  |  |
| `metadata` | object |  |  |  |

## Examples

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

 Valid: basic

~~~~
{
  "kind": "file",
  "size_bytes": 8388608,
  "multipart": true,
  "part_size": 8388608,
  "visibility": "private"
}
~~~~

Rejected: basic

~~~~
{
  "kind": "file",
  "size_bytes": 0,
  "multipart": false
}
~~~~

## Validate

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