v4

latestOpenAPI 3.0.1Apache 2.02026-07-312457525.9 MB
Artifact Versions API

Create new directory in artifact version

post/workspaces/{workspace_domain}/artifacts/{artifactId}/versions/{versionId}/content/{path}

Path parameters

workspace_domainstring required
Example:my-company

The human-readable ID of the workspace

artifactIdstring required
Example:x5169jL2

The Artifact ID

versionIdstring required
Example:a9f84k2L

The Version ID

pathstring required
Example:src/components

Path where the directory should be created

Response

urlstring

API endpoint to GET this object

html_urlstring

Web URL to view this object in Buddy.works

type'FILE' | 'DIR'

Type of the content item

namestring

File or directory name

pathstring

Full path to the file or directory

sizeinteger

Size in bytes. Only present when type=FILE.

Example response

{
  "type": "FILE",
  "name": "README.md",
  "path": "/dir/README.md",
  "size": 2048
}