uploadFile
PUT
/api/v1/namespaces/{namespace}/file
const url = 'https://example.com/api/v1/namespaces/example/file?path=example';const options = { method: 'PUT', headers: {'Content-Type': 'application/octet-stream'}, body: 'binary'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url 'https://example.com/api/v1/namespaces/example/file?path=example' \ --header 'Content-Type: application/octet-stream' \ --data binaryParameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”namespace
required
string
Query Parameters
Section titled “Query Parameters”path
required
string
File path relative to the namespace root.
message
string
executable
boolean
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/octet-stream
string format: binary
Responses
Section titled “ Responses ”New version.
Media typeapplication/json