Skip to main content
Solved

Update JSON document via Box api

  • August 19, 2016
  • 1 reply
  • 11 views

Forum|alt.badge.img+4

Hi, got a bit of an issue updating metadata templates (json documents) using the Box.com api with the httpcaller in FME. Specifically I have some content in Box which has some metadata associated with it and it can be updated via an api call. The call needs to be a PUT and the content type needs to be application/json-patch+json as per their documentation here.

Using the http caller there is no option to set this sort of content type in the 'Content type' selector in the httpcaller 'body' dialogue. Would be grateful for some ideas. I did try to set the content type by manually inserting into the header but this just returns an http 400 error.

Best answer by james_rutter

Ok...I answered my own question....should have read the FME help first! You can free type the 'content type' into the dialogue which is used instead of the commonly used pre-built types in the dropdown selection.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

Forum|alt.badge.img+4
  • Author
  • Best Answer
  • August 19, 2016

Ok...I answered my own question....should have read the FME help first! You can free type the 'content type' into the dialogue which is used instead of the commonly used pre-built types in the dropdown selection.