Create a new document

Document is the representation of a record in the bucket, it has a unique ID to identify the record in the bucket in the account.

Every document is a JSON object and can store any kind of data always following the JSON standard.


POST:/datenbanken/{version}/buckets/{id}/documents

{
    // My JSON object
}

Example:

POST:/datenbanken/v2/buckets/users/documents

{
    "name": "Luis Donis",
    "birthday": "1990",
    "role": "Admin"
}


Result:

{
    "id": "643378a1967e4376c0cfced7"
}


Error response:

{
    "code": "",
    "details": "",
    "message": ""
}