Create Document
POST
/database/collections/{collectionId}/documents
database
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://appwrite.io/v1/database/collections//documents' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {},
"parentDocument": "string",
"parentProperty": "string",
"parentPropertyType": "string",
"read": [
"string"
],
"write": [
"string"
]
}'
Response Response Example
{
"$collection": "string",
"$id": "string",
"$permissions": {}
}
Request
Path Params
collectionId
string
required
Body Params application/json
Responses
Modified at 2023-08-16 07:28:13