Create Versions
- POST
- /workspaces
- /:workspace
- /artifacts
- /:artifact_id
- /versions
Create a new artifact version
Request
REQUIRED SCOPES
ARTIFACT_WRITE
URL PARAMETERS
workspacerequiredstring
The human-readable ID of the workspaceExample: "my-company"
artifact_idrequiredstring
The Artifact IDExample: "x5169jL2"
BODY PARAMETERS (e.g., refs/heads/main) or refs/tags/ (e.g., refs/tags/v1.2.0).
versionrequiredstring
The version identifier (e.g., latest, v1.2.0, stable). For GIT artifacts it must be a full git ref: refs/heads/fromstring
Version to copy content fromnotestring
Note for this resourceagent_notestring
YAML note for AI agents operating on this resourceResponse
RESPONSE BODY (e.g., refs/heads/main) or refs/tags/ (e.g., refs/tags/v1.2.0).
urlread-onlystring
API endpoint to GET this objecthtml_urlread-onlystring
Web URL to view this object in Buddy.worksidstring
The unique ID of the version (used in API endpoints)versionstring
The version identifier (e.g., latest, v1.2.0, stable). For GIT artifacts it must be a full git ref: refs/heads/sizeinteger
Size of the version content in bytescreated_datestring
Version creation timestampdraftboolean
Whether the GitHub release synced into this version is a draft. Present only for GH_RELEASE artifactsprereleaseboolean
Whether the GitHub release synced into this version is a pre-release. Present only for GH_RELEASE artifactsgit_metadataGitVersionMetadataView
Git metadata for a GIT artifact versionstatusstring enum
Status of the version. READY when its content is available, COPYING while the content of the version given in 'from' is being copied into it, COPY_FAILED when that copy failedAllowed enum:
READY,COPYING,COPY_FAILEDnotestring
Note for this resourceagent_notestring
YAML note for AI agents operating on this resourceversion_urlstring
Direct URL to access the artifact version content. For CONTAINER artifacts, this is the registry URL (e.g., container.registry.sh/ttests/ubuntu:latest). For FILES artifacts, this is the HTTP server URL where the content is served (e.g., https://latest-my-artifact.bucket-1.registry.sh/). For TURSO artifacts, this is the database URL the SQL client connects to (e.g., https://v1-my-database-workspace.turso-1.registry.sh)Last modified on Nov 17, 2026
Request example
curl -X POST "https://api.buddy.works/workspaces/:workspace/artifacts/:artifact_id/versions" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"version": "v1.2.1"
}'