Create Version From Source
Path Parameters
projectId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
slug*string
title?string|null
files*
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/projects/string/components/sources" \ -H "Content-Type: application/json" \ -d '{ "slug": "string", "files": { "property1": "string", "property2": "string" } }'{ "id": "string", "componentId": "string", "version": -9007199254740991, "sourceKind": "wasm", "status": "queued", "contentHash": "string", "panelHash": "string", "byteSize": -9007199254740991, "manifest": null, "isDeprecated": true, "deprecatedAt": "string", "warnings": [ "conformance_not_run" ], "conformance": { "hasPassed": true, "checks": [ { "name": "string", "status": "pass", "errors": [ "string" ], "warnings": [ "string" ] } ] }, "createdBy": "string", "createdAt": "string", "builtAt": "string"}{ "error": { "type": "invalid_request", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "unauthenticated", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "permission_denied", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "not_found", "code": "string", "message": "string", "param": "string" }}{ "error": { "type": "internal", "code": "string", "message": "string", "param": "string" }}