Fork me on GitHub
Phraseanet Documentation

Créer une commande

A propos

Créer une nouvelle commande.

/api/v2/orders/
Information  
Méthode HTTP POST
Requires Authentication Yes

Corps de la requête

{
    "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
            }
        ]
    }
}

Champ dans le corps de la réponse

Champs Description
data La commande créée

Exemple de réponse

{
  "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
            }
          }
        ]
      }
    }
  }
}