Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Sending content updates to a Flex document is done with a JSON format and API method apps/wbflex/documents/{id}/contents/push

This page shows a few examples of JSON content.

...

Code Block
{
  "header": { "mode": "partial" },
  "segments": [

  {
     "key": "1000-10",
     "texts": { "en": { "v": "Hello world"} }
  },

  {
     "key": "890-5",
     "texts": { "en": { "v": "Please click here"} }
  },

  {
     "key": "890-6",
     "format": "html_1",
     "texts": { "en": { "v": "Go to the <bold>Settings</bold> screen. Then click the Edit button."} }
  },

  {
     "key": "890-7",
     "parent": "890-6",
     "format": "html_1",
     "texts": { "en": { "v": "Fill in your details and click the Submit button."} }
  },

  {
     "key": "890-5",
     "texts": { "en": { "v": "Please click here" }, "de": { "v": "Bitte hier klicken" } }
  }

  ]
}


Example 2- Partial update of a single translation

...