cURL
curl --request POST \ --url https://api.copera.ai/public/v1/docs/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "title": "<string>", "parent": "<string>", "content": "<string>" } '
{ "_id": "<string>", "title": "<string>", "owner": "<string>", "createdAt": "<string>", "updatedAt": "<string>", "icon": { "type": "<string>", "value": "<string>" }, "cover": { "type": "<string>", "value": "<string>" }, "starred": true, "parent": "<string>" }
Create a new document in the workspace.
title
parent
Bearer token
Document title
Parent document ID for nesting
^[0-9a-fA-F]{24}$
Initial markdown content
Default Response
Show child attributes
Was this page helpful?