From b4eadc185207072ddbc300c1128c39ae832f32bf Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Wed, 30 Mar 2016 09:52:26 +0200 Subject: [PATCH] clarify extra Accept and Content-Type headers --- automation/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/automation/README.md b/automation/README.md index c119a3a..1391228 100644 --- a/automation/README.md +++ b/automation/README.md @@ -26,6 +26,22 @@ The authorization is performed by using the following header: Authorization: YOUR API KEY ~~~~ +### Accept and Content-Type headers + +When performing your request, depending on the type of request, you might need to explicitly specify in what content type you want to get your results. This is done by setting one of the below Accept headers: + +~~~~ +Accept: application/json +Accept: application/xml +~~~~ + +When submitting data in a POST, PUT or DELETE operation you also need to specify in what content-type you encoded the payload. This is done by setting one of the below Content-Type headers: + +~~~~ +Content-Type: application/json +Content-Type: application/xml +~~~~ + ### XML Export An automatic export of all events and attributes (except file attachments) is available under a custom XML format.