your url is a path to a document, not a path to an attachment.

 /wcs/z1/attachment_name_goes_here

On 4 November 2013 19:10, Hank Knight <[email protected]> wrote:
> You can view my document here:
> https://zuhqtr5.couchappy.com/wcs/z1?rev=7-15810428fa1a0eb14c72e456457bb467
>
> I am trying to add an attachement:
>
> curl -vkX PUT -u [email protected]:password123 \
>  https://zuhqtr5.couchappy.com/wcs/z1?rev=7-15810428fa1a0eb14c72e456457bb467 \
>  --data-binary @image.jpg -H "Content-Type: image/jpg"
>
> I get an error:
> {"error":"bad_request","reason":"invalid_json"}
>
> Could you please help me figure out what I am doing wrong?
> Thanks.

Reply via email to