3 Replies Latest reply on Sep 17, 2015 11:12 PM by ravishankar_d

    REST: Attaching image to person fails with 415


      I'm trying to upload a person's profile image. It looks like I can successfully uploaded an image, but when I try to attach it to a person I get back HTTP status 415 (Unsupported Media Type).

      - POST a .jpg JPEG file to /images

          - Response has HTTP code 201, the Location header, and the body contains JSON describing the uploaded image as expected

      - POST to /people/12345/images/1 with body JSON data {imageURI: "the-image-url")

          - Response contains the HTTP status 415 and an empty body

      I've tried setting the Accept header, but that didn't help. Could the problem be that the image isn't already square or the correct size?

        This content has been marked as final.  Show 3 replies