<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Adding structured-content through headless API (part2)</title>
  <link rel="self" href="https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120450987" />
  <subtitle>Adding structured-content through headless API (part2)</subtitle>
  <id>https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120450987</id>
  <updated>2026-10-15T10:47:53Z</updated>
  <dc:date>2026-10-15T10:47:53Z</dc:date>
  <entry>
    <title>RE: RE: Adding structured-content through headless API (part2)</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122456242" />
    <author>
      <name>Jonathan HELL</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122456242</id>
    <updated>2024-03-08T15:36:59Z</updated>
    <published>2024-03-08T13:19:13Z</published>
    <summary type="html">&lt;p&gt;Thank you Fernando, you answer helped me a lot.&lt;/p&gt;
&lt;p&gt;I came across another issue giving me an error message &amp;quot;Invalid
  available locales set for field name&amp;quot;. For those wondering what
  is going on, the structure you are using MUST be translated in order
  for the API call to work. I don't know why but Liferay seems to check
  if the structure locales match the contentFieldValue locales. I
  doesn't make sense but it works.&lt;/p&gt;
&lt;p&gt;So if you get the message &amp;quot;Invalid available locales set for
  field name&amp;quot;, be sure to:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Send the correct Accept-Language header&lt;/li&gt;
  &lt;li&gt;Have translations available for the structure you are using (contentStructureId)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Jonathan.&lt;/p&gt;</summary>
    <dc:creator>Jonathan HELL</dc:creator>
    <dc:date>2024-03-08T13:19:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: Adding structured-content through headless API (part2)</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120474625" />
    <author>
      <name>Fernando Fernandez</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120474625</id>
    <updated>2020-11-26T22:41:58Z</updated>
    <published>2020-11-26T22:41:58Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;The problem was, finally, a bug on the handling of non US default
  languages, but also the need of sending the Accept-languages header
  with the default language selection.&lt;/p&gt;
&lt;p&gt;This post works:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-javascript"&gt;{
    "availableLanguages": ["en-US","pt-PT"],
    "taxonomyCategoryIds":[40745],
    "contentStructureId": 40463,
    "siteId": 40428,
    "title": "Lorem lacinia sed amet culpa integer",
    "title_i18n": {
        "pt-PT": "Rem cubilia, turpis eos",
        "en-US": "Lorem lacinia sed amet culpa integer"
    },
    "description": "&amp;amp;lt;p&amp;amp;gt;Summary&amp;amp;lt;/p&amp;amp;gt;",
    "description_i18n": {
        "pt-PT": "&amp;amp;lt;p&amp;amp;gt;Sumário&amp;amp;lt;/p&amp;amp;gt;",
        "en-US": "&amp;amp;lt;p&amp;amp;gt;Summary&amp;amp;lt;/p&amp;amp;gt;"
    },
    "contentFields": [
        {
            "contentFieldValue": { "data": "Lorem lacinia sed amet" },
            "contentFieldValue_i18n": {
                "pt-PT": {"data": "Rem cubilia, turpis eos"},
                "en-US": {"data": "Lorem lacinia sed amet"}
            },
            "name": "Titulo"
        },
        {
            "contentFieldValue": {"data": ""},
            "contentFieldValue_i18n": {
                "pt-PT": {"data": ""},
                "en-US": {"data": ""}
            },
            "name": "Subtitulo"
        },
        {
            "contentFieldValue": {"data": "2020-11-17T00:00:00Z"},
            "contentFieldValue_i18n": {
                "pt-PT": {"data": "2020-11-17T00:00:00Z"},
                "en-US": {"data": "2020-11-17T00:00:00Z"}
            },
            "name": "Data"
        },
        {
            "contentFieldValue": {
                "image": {"id": 41239}
            },
            "contentFieldValue_i18n": {
                "pt-PT": {"image": {"id": 41236}},
                "en-US": {"image": {"id": 41239}}
            },
            "name": "Imagens"
        },
        {
            "contentFieldValue": {
                "data": "&amp;amp;lt;p&amp;amp;gt;Lorem lacinia sed amet.&amp;amp;lt;/p&amp;amp;gt;"
            },
            "contentFieldValue_i18n": {
                "pt-PT": {"data": "&amp;amp;lt;p&amp;amp;gt;Rem cubilia, turpis eos! &amp;amp;lt;/p&amp;amp;gt;"},
                "en-US": {"data": "&amp;amp;lt;p&amp;amp;gt;Lorem lacinia sed amet. /p&amp;amp;gt;"}
            },
            "name": "Corpo"
        },
        {
            "contentFieldValue": {"data": ""},
            "contentFieldValue_i18n": {
                "pt-PT": {"data": ""},
                "en-US": {"data": ""}
            },
            "name": "idVideo"
        }
    ]
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this helps&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Fernando Fernandez</dc:creator>
    <dc:date>2020-11-26T22:41:58Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Adding structured-content through headless API (part2)</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120452032" />
    <author>
      <name>Fernando Fernandez</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120452032</id>
    <updated>2020-11-16T11:18:06Z</updated>
    <published>2020-11-16T11:18:06Z</published>
    <summary type="html">&lt;p&gt;Meanwhile, Javier, I've opened a ticket for your coleagues in
  support. Just letting you know, so there's no double work.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Fernando&lt;/p&gt;</summary>
    <dc:creator>Fernando Fernandez</dc:creator>
    <dc:date>2020-11-16T11:18:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Adding structured-content through headless API (part2)</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120451932" />
    <author>
      <name>Fernando Fernandez</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120451932</id>
    <updated>2020-11-16T10:23:16Z</updated>
    <published>2020-11-16T10:23:16Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;Hi Javier,&lt;/p&gt;
&lt;p&gt;I've gone back to the intended config and tried again (so forget the
  previous code), with the same result.&lt;/p&gt;
&lt;p&gt;At this point:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;default language in portal-ext-properties is company.default.locale=pt_PT&lt;/li&gt;
  &lt;li&gt;default language for the instance (in control panel) is pt-PT,
    with pt-PT and en-US available&lt;/li&gt;
  &lt;li&gt;default language for site is pt-PT with pt-PT and en-US available&lt;/li&gt;
  &lt;li&gt;default language for structure is pt_PT and pt_PT and en_US
    available (struct source below)&lt;/li&gt;
  &lt;li&gt;both locales are being sent in i18n attributes on POST (see below)&lt;/li&gt;
  &lt;li&gt;I'm not sending the&amp;nbsp;Accept-Language&amp;nbsp; with the POST&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;(I'm not sure what you mean by "the default language configured
  in the Portal" so I'm assuming you're referring to the instance configuration)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Fernando&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Structure code:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-javascript"&gt;{
    "availableLanguageIds": [
        "pt_PT",
        "en_US"
    ],
    "defaultLanguageId": "pt_PT",
    "fields": [
        {
            "label": {
                "pt_PT": "Titulo",
                "en_US": "Title"
            },
            "predefinedValue": {
                "pt_PT": "",
                "en_US": ""
            },
            "style": {
                "pt_PT": "",
                "en_US": ""
            },
            "tip": {
                "pt_PT": "",
                "en_US": ""
            },
            "dataType": "string",
            "indexType": "keyword",
            "localizable": true,
            "name": "Titulo",
            "readOnly": false,
            "repeatable": false,
            "required": true,
            "showLabel": true,
            "type": "text"
        },
        {
            "label": {
                "pt_PT": "Subtitulo",
                "en_US": "Subtitle"
            },
            "predefinedValue": {
                "pt_PT": "",
                "en_US": ""
            },
            "style": {
                "pt_PT": "",
                "en_US": ""
            },
            "tip": {
                "pt_PT": "",
                "en_US": ""
            },
            "dataType": "string",
            "indexType": "keyword",
            "localizable": true,
            "name": "Subtitulo",
            "readOnly": false,
            "repeatable": false,
            "required": false,
            "showLabel": true,
            "type": "text"
        },
        {
            "label": {
                "pt_PT": "Data",
                "en_US": "Date"
            },
            "predefinedValue": {
                "pt_PT": "",
                "en_US": ""
            },
            "style": {
                "pt_PT": "",
                "en_US": ""
            },
            "tip": {
                "pt_PT": "",
                "en_US": ""
            },
            "dataType": "date",
            "fieldNamespace": "ddm",
            "indexType": "keyword",
            "localizable": true,
            "name": "Data",
            "readOnly": false,
            "repeatable": false,
            "required": true,
            "showLabel": true,
            "type": "ddm-date"
        },
        {
            "label": {
                "pt_PT": "Imagens",
                "en_US": "Images"
            },
            "predefinedValue": {
                "pt_PT": "",
                "en_US": ""
            },
            "style": {
                "pt_PT": "",
                "en_US": ""
            },
            "tip": {
                "pt_PT": "",
                "en_US": ""
            },
            "dataType": "image",
            "fieldNamespace": "ddm",
            "indexType": "text",
            "localizable": true,
            "name": "Imagens",
            "readOnly": false,
            "repeatable": true,
            "required": false,
            "showLabel": true,
            "type": "ddm-image"
        },
        {
            "label": {
                "pt_PT": "Corpo notícia",
                "en_US": "News Body"
            },
            "predefinedValue": {
                "pt_PT": "",
                "en_US": ""
            },
            "style": {
                "pt_PT": "",
                "en_US": ""
            },
            "tip": {
                "pt_PT": "",
                "en_US": ""
            },
            "dataType": "html",
            "fieldNamespace": "ddm",
            "indexType": "text",
            "localizable": true,
            "name": "HTMLj7zr",
            "readOnly": false,
            "repeatable": false,
            "required": true,
            "showLabel": true,
            "type": "ddm-text-html"
        },
        {
            "label": {
                "pt_PT": "Link YouTube",
                "en_US": "Link YouTube"
            },
            "predefinedValue": {
                "pt_PT": "",
                "en_US": ""
            },
            "style": {
                "pt_PT": "",
                "en_US": ""
            },
            "tip": {
                "pt_PT": "",
                "en_US": ""
            },
            "dataType": "string",
            "indexType": "keyword",
            "localizable": true,
            "name": "idVideo",
            "readOnly": false,
            "repeatable": false,
            "required": false,
            "showLabel": true,
            "type": "text"
        }
    ]
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;POSTed data:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-javascript"&gt;{
    "siteId": 20124,
    "contentStructureId": 69782,
    "title": "Noticia Um",
    "title_i18n": {
        "pt-PT": "Noticia Um",
        "en-US": "Noticia Um"
    },
    "description": "&amp;amp;lt;p&amp;amp;gt;Summary&amp;amp;lt;/p&amp;amp;gt;",
    "description_i18n": {
        "pt-PT": "&amp;amp;lt;p&amp;amp;gt;Sumário&amp;amp;lt;/p&amp;amp;gt;",
        "en-US": "&amp;amp;lt;p&amp;amp;gt;Summary&amp;amp;lt;/p&amp;amp;gt;"
    },
    "contentFields": [
        {
            "name": "title",
            "value": {
                "data": "Story one"
            },
            "value_i18n": {
                "pt-PT": {
                    "data": "Noticia Um"
                },
                "en-US": {
                    "data": "Story one"
                }
            }
        },
        {
            "name": "subtitle",
            "value": {
                "data": ""
            },
            "value_i18n": {
                "pt-PT": {
                    "data": ""
                },
                "en-US": {
                    "data": ""
                }
            }
        },
        {
            "name": "newsDate",
            "value": {
                "data": "2020-11-14T00:00:00Z"
            },
            "value_i18n": {
                "pt-PT": {
                    "data": "2020-11-14T00:00:00Z"
                },
                "en-US": {
                    "data": "2020-11-14T00:00:00Z"
                }
            }
        },
        {
            "name": "HTMLj7zr",
            "value": {
                "data": "&amp;amp;lt;p&amp;amp;gt;Story Body&amp;amp;lt;/p&amp;amp;gt;"
            },
            "value_i18n": {
                "pt-PT": {
                    "data": "&amp;amp;lt;p&amp;amp;gt;Corpo da notícia&amp;amp;lt;/p&amp;amp;gt;"
                },
                "en-US": {
                    "data": "&amp;amp;lt;p&amp;amp;gt;Story Body&amp;amp;lt;/p&amp;amp;gt;"
                }
            }
        },
        {
            "name": "newsImg",
            "value": {
                "image": {
                    "id": 69726,
                    "description": "foto"
                }
            },
            "value_i18n": {
                "pt-PT": {
                    "image": {
                        "id": 69726,
                        "description": "foto"
                    }
                },
                "en-US": {
                    "image": {
                        "id": 69726,
                        "description": "foto"
                    }
                }
            }
        }
    ]
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Fernando Fernandez</dc:creator>
    <dc:date>2020-11-16T10:23:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: Adding structured-content through headless API (part2)</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120451829" />
    <author>
      <name>Javier De Arcos</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120451829</id>
    <updated>2020-11-16T09:03:50Z</updated>
    <published>2020-11-16T09:03:50Z</published>
    <summary type="html">&lt;p&gt;The error description means that the content field &amp;quot;title&amp;quot;
  is not getting all the locales it needs to update. It migth have more
  languages and you have to add the remaining ones in the data_i18n
  property, or it might need a different language than the one defined
  in the Accept-Language header (or the default language configured in
  the Portal if you are not setting the header).&lt;/p&gt;</summary>
    <dc:creator>Javier De Arcos</dc:creator>
    <dc:date>2020-11-16T09:03:50Z</dc:date>
  </entry>
  <entry>
    <title>Adding structured-content through headless API (part2)</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120450986" />
    <author>
      <name>Fernando Fernandez</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120450986</id>
    <updated>2020-11-15T22:50:35Z</updated>
    <published>2020-11-15T22:50:35Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;Hi guys,&lt;/p&gt;
&lt;p&gt;Some days ago I posted here about a project we're working to migrate
  sharepoint content to Liferay DXP SP2. The answers I got allowed me to
  create a webcontent with a simple structure, multi-language, with an
  image reference and categories.&lt;/p&gt;
&lt;p&gt;Now I'm working with the structure the client really needs and I'm
  having some strange problems with language fields. On my dev machine I
  was getting error 400
  "Validation&amp;nbsp;error:&amp;nbsp;Invalid&amp;nbsp;available&amp;nbsp;locales&amp;nbsp;set&amp;nbsp;for&amp;nbsp;field&amp;nbsp;name&amp;nbsp;title"
  and I had to reduce the structure to a en-US only structure on a clean
  site to make uploads work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now I'm trying to make the processo work on the client's dev machine
  and I'm not able to work around the same error.&lt;/p&gt;
&lt;p&gt;My structure is like this:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-javascript"&gt;{
    "availableLanguageIds": [
        "pt_PT",
        "en_US"
    ],
    "defaultLanguageId": "en_US",
    "fields": [
        {
            "label": {
                "pt_PT": "Título",
                "en_US": "Title"
            },
            "predefinedValue": {
                "pt_PT": "",
                "en_US": ""
            },
            "style": {
                "pt_PT": "",
                "en_US": ""
            },
            "tip": {
                "pt_PT": "",
                "en_US": ""
            },
            "dataType": "string",
            "indexType": "keyword",
            "localizable": true,
            "name": "title",
            "readOnly": false,
            "repeatable": false,
            "required": true,
            "showLabel": true,
            "type": "text"
        },
        {
            "label": {
                "pt_PT": "Subtítulo",
                "en_US": "Subtitle"
            },
            "predefinedValue": {
                "pt_PT": "",
                "en_US": ""
            },
            "style": {
                "pt_PT": "",
                "en_US": ""
            },
            "tip": {
                "pt_PT": "",
                "en_US": ""
            },
            "dataType": "string",
            "indexType": "keyword",
            "localizable": true,
            "name": "subtitle",
            "readOnly": false,
            "repeatable": false,
            "required": false,
            "showLabel": true,
            "type": "text"
        },
        {
            "label": {
                "pt_PT": "Data",
                "en_US": "Date"
            },
            "predefinedValue": {
                "pt_PT": "",
                "en_US": ""
            },
            "style": {
                "pt_PT": "",
                "en_US": ""
            },
            "tip": {
                "pt_PT": "",
                "en_US": ""
            },
            "dataType": "date",
            "fieldNamespace": "ddm",
            "indexType": "keyword",
            "localizable": true,
            "name": "newsDate",
            "readOnly": false,
            "repeatable": false,
            "required": true,
            "showLabel": true,
            "type": "ddm-date"
        },
        {
            "label": {
                "pt_PT": "Imagens",
                "en_US": "Images"
            },
            "predefinedValue": {
                "pt_PT": "",
                "en_US": ""
            },
            "style": {
                "pt_PT": "",
                "en_US": ""
            },
            "tip": {
                "pt_PT": "",
                "en_US": ""
            },
            "dataType": "image",
            "fieldNamespace": "ddm",
            "indexType": "text",
            "localizable": true,
            "name": "newsImg",
            "readOnly": false,
            "repeatable": true,
            "required": false,
            "showLabel": true,
            "type": "ddm-image"
        },
        {
            "label": {
                "pt_PT": "Corpo da notícia",
                "en_US": "News Body"
            },
            "predefinedValue": {
                "pt_PT": "",
                "en_US": ""
            },
            "style": {
                "pt_PT": "",
                "en_US": ""
            },
            "tip": {
                "pt_PT": "",
                "en_US": ""
            },
            "dataType": "html",
            "fieldNamespace": "ddm",
            "indexType": "text",
            "localizable": true,
            "name": "HTMLj7zr",
            "readOnly": false,
            "repeatable": false,
            "required": true,
            "showLabel": true,
            "type": "ddm-text-html"
        },
        {
            "label": {
                "pt_PT": "Link YouTube",
                "en_US": "Link YouTube"
            },
            "predefinedValue": {
                "pt_PT": "",
                "en_US": ""
            },
            "style": {
                "pt_PT": "",
                "en_US": ""
            },
            "tip": {
                "pt_PT": "",
                "en_US": ""
            },
            "dataType": "string",
            "indexType": "keyword",
            "localizable": true,
            "name": "idVideo",
            "readOnly": false,
            "repeatable": false,
            "required": false,
            "showLabel": true,
            "type": "text"
        }
    ]
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I wrote, I had to "downgrade" the structure to
  single-language to get around the error on local dev environment. The
  simpler structure looks like:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-javascript"&gt;{
    "availableLanguageIds": [
        "en_US"
    ],
    "defaultLanguageId": "en_US",
    "fields": [
        {
            "label": {
                "en_US": "Title"
            },
            "predefinedValue": {
                "en_US": ""
            },
            "style": {
                "en_US": ""
            },
            "tip": {
                "en_US": ""
            },
            "dataType": "string",
            "indexType": "keyword",
            "localizable": true,
            "name": "title",
            "readOnly": false,
            "repeatable": false,
            "required": true,
            "showLabel": true,
            "type": "text"
        },
        {
            "label": {
                "en_US": "Subtitle"
            },
            "predefinedValue": {
                "en_US": ""
            },
            "style": {
                "en_US": ""
            },
            "tip": {
                "en_US": ""
            },
            "dataType": "string",
            "indexType": "keyword",
            "localizable": true,
            "name": "subtitle",
            "readOnly": false,
            "repeatable": false,
            "required": false,
            "showLabel": true,
            "type": "text"
        },
        {
            "label": {
                "en_US": "Date"
            },
            "predefinedValue": {
                "en_US": ""
            },
            "style": {
                "en_US": ""
            },
            "tip": {
                "en_US": ""
            },
            "dataType": "date",
            "fieldNamespace": "ddm",
            "indexType": "keyword",
            "localizable": true,
            "name": "newsDate",
            "readOnly": false,
            "repeatable": false,
            "required": true,
            "showLabel": true,
            "type": "ddm-date"
        },
        {
            "label": {
                "en_US": "Images"
            },
            "predefinedValue": {
                "en_US": ""
            },
            "style": {
                "en_US": ""
            },
            "tip": {
                "en_US": ""
            },
            "dataType": "image",
            "fieldNamespace": "ddm",
            "indexType": "text",
            "localizable": true,
            "name": "newsImg",
            "readOnly": false,
            "repeatable": true,
            "required": false,
            "showLabel": true,
            "type": "ddm-image"
        },
        {
            "label": {
                "en_US": "News Body"
            },
            "predefinedValue": {
                "en_US": ""
            },
            "style": {
                "en_US": ""
            },
            "tip": {
                "en_US": ""
            },
            "dataType": "html",
            "fieldNamespace": "ddm",
            "indexType": "text",
            "localizable": true,
            "name": "HTMLj7zr",
            "readOnly": false,
            "repeatable": false,
            "required": true,
            "showLabel": true,
            "type": "ddm-text-html"
        },
        {
            "label": {
                "en_US": "Link YouTube"
            },
            "predefinedValue": {
                "en_US": ""
            },
            "style": {
                "en_US": ""
            },
            "tip": {
                "en_US": ""
            },
            "dataType": "string",
            "indexType": "keyword",
            "localizable": true,
            "name": "idVideo",
            "readOnly": false,
            "repeatable": false,
            "required": false,
            "showLabel": true,
            "type": "text"
        }
    ]
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I'm using this endpoint:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;http://10.99.99.53:8080/o/headless-delivery/v1.0/sites/20124/structured-contents/&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And I'm sending this body:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-javascript"&gt;{
    "siteId": 20124,
    "contentStructureId": 69782,
    
    "title": "Noticia Dois",
    "description": "&amp;amp;lt;p&amp;amp;gt;Summary&amp;amp;lt;/p&amp;amp;gt;",
    "contentFields": [
        {
            "name": "title",
            "value": {
                "data": "Story one"
            }
        },
        {
            "name": "subtitle",
            "value": {
                "data": ""
            }
        },
        {
            "name": "newsDate",
            "value": {
                "data": "2020-11-14T00:00:00Z"
            }
        },
        {
            "name": "HTMLj7zr",
            "value": {
                "data": "&amp;amp;lt;p&amp;amp;gt;Story Body&amp;amp;lt;/p&amp;amp;gt;"
            }
        },
        {
            "name": "newsImg",
            "value": {
                "image": {
                    "id": 69726,
                    "description": "foto"
                }
            }
        }
    ]
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Still I get:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-javascript"&gt;{
    "status": "BAD_REQUEST",
    "title": "Validation error: Invalid available locales set for field name title"
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I'm at a loss on why this is working on a local machine but now
  working on a simular setup (only it's not a freshly installed site).&lt;/p&gt;
&lt;p&gt;Any ideas on how to work around this problem?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;TIA&lt;/p&gt;
&lt;p&gt;Fernando&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Fernando Fernandez</dc:creator>
    <dc:date>2020-11-15T22:50:35Z</dc:date>
  </entry>
</feed>
