Request
Method:POST
Endpoint: /v1/capabilities/upload
Content-Type: multipart/form-data
Form Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
plugin | file | Yes | The .npack plugin archive file |
Response
Status Codes
| Code | Meaning |
|---|---|
| 200 | Success |
| 400 | Invalid file format or missing noorle.yaml |
| 401 | Unauthorized |
| 413 | File too large (>10MB) |
Response Fields
- capability_id: Unique ID for this plugin
- capability_name: Name from noorle.yaml
- version: Version number (auto-incremented for updates)
- files_processed: Files extracted from archive
- schema_warnings: Validation warnings (non-fatal)
Examples
First Upload
Update Plugin
File Format
Plugin must be .npack (tar.gz archive) containing:plugin.wasm(required)noorle.yaml(optional, but recommended)world.wit(optional).env(optional)