400 Response REST API Creating Blog when using PostImageFileUploadContext

IF we remove the PostImageFileUploadContext parameter it posts fine, however the doucmetnation states this accepts a string. What are we doing wrong?

Parents
  • Are you evaluating the actual responses to get the error?  Also again, please do not use the SDK.  You cannot use it for file uploading which this requires as the post image url  context is the string used when uploading the actual image.  Second, you provided the string, but no PostImageFileName.

    I have stated this in previous threads as well, you do not concatenate data into a url.  Blog Id is a Path Parameter, you set the url to /blogs/{blogid}/posts.xml  then define blogid as a path parameter

Reply
  • Are you evaluating the actual responses to get the error?  Also again, please do not use the SDK.  You cannot use it for file uploading which this requires as the post image url  context is the string used when uploading the actual image.  Second, you provided the string, but no PostImageFileName.

    I have stated this in previous threads as well, you do not concatenate data into a url.  Blog Id is a Path Parameter, you set the url to /blogs/{blogid}/posts.xml  then define blogid as a path parameter

Children