aboutsummaryrefslogtreecommitdiff
path: root/doc/schema-batch.rst
blob: ee6194be602f3bdcce93ded8694295d85393a857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.. _schema_batch:

batch
-----

A batch request object.

::

    {
        "title": "batch",
        "description": "A batch request to perform multiple operations",
        "type": "array",
        "items": {
            "type": "object",
            "properties": {
                "method": {
                    "type": "string",
                    "description": "The method of the request operation as if this operation was performed in a normal HTTP request"
                },
                "operation_id": {
                    "type": "string",
                    "description": "A unique identifier for the operation to perform"
                },
                "collection": {
                    "type": "string",
                    "description": "The resource where to perform the operation"
                },
                "document_id": {
                    "type": "string",
                    "description": "The ID of the document in the collection"
                },
                "query": {
                    "type": "string",
                    "description": "A key=value pairs, separated by the ampersand character, that define the query to perform on the resource"
                }
            }
        }
    }