mosoodocs

Upload a Project file

Upload a Project draft file for direct or preset Session creation; no Agent is required.

POST/projects/{projectId}/files

Upload a Project draft file for direct or preset Session creation; no Agent is required.

Authorization

publicApiBearer
AuthorizationBearer <token>

Use Authorization: Bearer msp_... . Project API keys can configure Agents, execute Sessions, and access files only in their Project. Key and account management require console or CLI login. Legacy account tokens are rejected.

In: header

Path Parameters

projectId*string

Owned Project. A Project key can access only its own Project; CLI login supplies an explicit owned Project.

Match^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$
Formatulid

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/projects/01ARZ3NDEKTSV4RRFFQ69G5FAV/files" \  -F file="string"
{  "file": {    "createdAt": "2019-08-24T14:15:22Z",    "id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",    "mimeType": "string",    "name": "string",    "size": 0  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}
{  "error": {    "code": "agent_not_published",    "message": "string"  }}