Créer une nouvelle commande.
/api/v2/orders/
Information | |
---|---|
Méthode HTTP | POST |
Requires Authentication | Yes |
{
"data": {
"usage": "what I want",
"deadline": "2025-01-02T03:04:05-06:00",
"records": [
{
"databox_id": 1,
"record_id": 123
},
{
"databox_id": 1,
"record_id": 456
}
]
}
}
Champs | Description |
---|---|
data | La commande créée |
{
"meta": {
"api_version": "2.0.0",
"request": "POST /api/v2/orders/",
"response_time": "2016-03-23T18:11:34+01:00",
"http_code": 200,
"error_type": null,
"error_message": null,
"error_details": null,
"charset": "UTF-8"
},
"response": {
"data": {
"id": 23,
"owner_id": 1,
"created": "2016-03-23T18:11:34+01:00",
"usage": "Intended usage of the records",
"deadline": "2016-04-01T00:00:00+00:00",
"elements": {
"data": [
{
"id": 11,
"record": {
"databox_id": 1,
"record_id": 118
}
}
]
}
}
}
}