Envoyer des données
Request
| Method | URL |
| POST | api/items/tableName/ |
| Type | Params | Values |
| HEAD | access_token | String |
| POST | data | JSON |
Response
Status | Response |
200 | {"msg":"Update Items OK."} |
400 | {"msg":"Please specify database version."} |
400 | {"msg":"Invalid database version."} |
401 | {"msg":"Invalid API key."} |
500 | {"msg":"Something went wrong. Please try again later."} |
Exemple
Avec curl.
curl -X POST \
{{URL}}/api/items/{{tableName}}/
-H "Authorization: Bearer {{access_token}}" \
-H 'content-type: application/json' \
-d '[{
"cle": "{{key}}",
"num_commande": "551035",
"date_billed": "2016-07-05",
"actual_billable_amount": "437.50",
"num_invoice": "16000162",
“date_closed”:”2016-09-05”
},{
"cle": "{{key}}",
"num_commande": "672620",
"date_billed": "2017-06-14",
"actual_billable_amount": "595",
"num_invoice": "17000100",
“date_closed”:”2017-07-31”
}]'Remarque :
Si aucune cle {{key}} n’est spécifiée alors une nouvelle fiche sera crée.