Skip to content

Commit

Permalink
Merge pull request #90 from pplu/application_json_header
Browse files Browse the repository at this point in the history
Specify cases for required Content-Type: application/json header
  • Loading branch information
HumanistSerif authored Jul 8, 2019
2 parents f494358 + a262b4e commit daab290
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _documentation/how-to-use-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ content_markdown: |-
-H 'Accept: application/json'
```
* POST requests send data to the CloudHealth Platform. They include a JSON-formatted message body, which contains the data that should be sent. Here, the message body is specified as a parameter following the `-d` flag.
* The `Content-Type: application/json` header is required when PUTting or POSTing JSON to the API, else an HTTP 422 Unprocessable Entity is issued
```
curl 'https://chapi.cloudhealthtech.com/v1/perspective_schemas'
-H 'Authorization: Bearer XXXXX98900000YYYY'
Expand Down

0 comments on commit daab290

Please sign in to comment.