Component Submission Pipeline

Submit a Component

This endpoint initiates an asynchronous job to process a new component package. It returns a `jobId` that can be used to track the submission's progress.

POST
https://api.nodepine.ai/api/submit-component

Request Body

The request must be sent as `multipart/form-data`.

file

The component package.

Required

File (.zip)

versionBump

The semantic version bump type.

Required

Enum: 'patch' | 'minor' | 'major'

Workflow

1. Call this endpoint to start the process and receive a `jobId`.
2. Use the `jobId` to poll the https://api.nodepine.ai/api/submission-status endpoint for real-time updates.

Responses

202 Accepted

Returned when the submission is accepted for processing.

json
{
  "jobId": "a1b2c3d4-e5f6-7890-1234-567890abcdef"
}
400 Bad Request

Returned for invalid input, like a missing file or wrong file type.

413 Payload Too Large

Returned if the uploaded file exceeds the 5MB size limit.