Assistance with 415 error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • themicstore
    Blueparker
    • May 2011
    • 84

    #1

    Assistance with 415 error

    Hi,

    I am trying to set up a simple API request to update the Product Title of a single product. This is being sent from our Filemaker database. Here is the structure of the JSON request being sent:

    Header:

    Code:
    "-u  [I]ourapiusername:ourapiKey[/I]  -X PUT  
    -H "Accept: application/json"
    -H "Content-Type: application/json"
    -H "Authorization: Basic" 
    
    
     --show-error --dump-header $$dump --trace $$trace"
    JSON Request:

    Code:
    {
        "title" : "Title via API"
    }
    When I sent the request, this is the response:

    Code:
    HTTP/1.1 415 Unsupported Media TypeDate: Wed, 23 May 2018 13:54:06 GMT
    Server: Apache
    X-Frame-Options: SAMEORIGIN
    Upgrade: h2,h2c
    Connection: Upgrade
    X-Requests-Limit: 500
    X-Requests-Remaining: 483
    Vary: Accept-Encoding,User-Agent
    Content-Encoding: gzip
    Content-Length: 142
    Content-Type: application/json
    Can anyone shed any light on this? Happy to provide any other information that might help solve this.

    Thanks, Matt
  • themicstore
    Blueparker
    • May 2011
    • 84

    #2
    Have fixed this now.

    Comment

    Working...