Codevisor Server
Api reference

POST Files

POST/v1/files

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

name?string
Default"attachment"

Request Body

application/octet-stream

TypeScript Definitions

Use the request body type in TypeScript.

body*file
Formatbinary

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/files" \  -H "Content-Type: application/octet-stream" \  -d 'string'
{  "id": "string",  "name": "string",  "mimeType": "string",  "sizeBytes": 0,  "sha256": "string",  "kind": "image",  "createdAt": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}