Versions Compared

Key

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

...

Code Block
{
	"header": {
		"mode": "full"
	},
	"segments": [{
		"key": "k22992",
		"texts": {
			"en": {
				"v": "Hello world"
			},
			"de": {
				"v": "Guten Tag"
			}
		}
	},
	{
		"key": "k772",
		"format": "html_1",
		"texts": {
			"en": {
				"v": "Hello world",
				"cfs": [{
					"t": "Section",
					"id": 1,
					"v": "My value"
				}],
				"lbls": [{
					"t": "Section",
					"id": 4043,
					"v": 20
				}],
				"cms": [{
					"v": "Please help me!"
				}]
			},
			"de": {
				"v": "Guten Tag Welt"
			}
		},
		"cfs": [{
			"t": "Via 2",
			"v": "Quality issue"
		}]
	}]
}


Example 5 - Update metadata only

Setting the "v" property in a language to null (or simply omitting the property) will not modify the current text in that language. This is perfect if you only want to update some meta data.

In the example below we add a comment to the German translation. As you can see we do not specify the German text at all, simply because we do not want to change it.


Code Block
{
	"header": {
		"mode": "full"
	},
	"segments": [{
		"key": "k22992",
		"texts": {
			"de": {
				"cms": [{
					"v": "Please help me!"
				}]
			}
		}
	}]
}


Example 6 - Versioning

Here we push content for a specific major and minor version:

Code Block
{
	"header": {
		"mode": "full",
        "major": "v4",
        "minor": "2234.92"
	},
	"segments": [{
		"key": "k22992",
		"texts": {
			"en": { "v": "Good day" },
			"fr": { "v": "Bonjour" },
			"de": { "v": "Guten Tag" }
		}
	}]
}


Example

...

7 - Explicitly delete segments

Placing delete on a segment will remove it from the flex document (for the given major/minor version).

...