{"openapi":"3.0.1","info":{"title":"CMS","description":"CMS API - Content management.\n <b><h1>Deprecated endpoints:</h1></b><table border=\"1px;\"><tr><th style=\"text-align: center; vertical-align: middle;\"><b><h3>Uri</b></h3></th><th><b>Method</b></th><th><b><h3>Since</h3></b></th><th><b><h3>End of life</h3></b></th></tr></table>","version":"1-apps"},"servers":[{"url":"api.test.bluestonepim.com/cms-context"}],"tags":[{"name":"Technical","description":"To get technical information."},{"name":"Contents","description":"To manage content."},{"name":"Trees","description":"To manage Tree."},{"name":"Content versions","description":"To manage content version."},{"name":"Fields","description":"To manage fields."},{"name":"Freetexts","description":"To manage freetext."},{"name":"Links","description":"To manage content link."},{"name":"Models","description":"To manage models"},{"name":"Previews","description":"Preview content."},{"name":"Settings","description":"CMS settings."}],"paths":{"/technical/version":{"get":{"tags":["Technical"],"summary":"Show service version.","operationId":"presentVersion","responses":{"200":{"description":"Show service version."},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/contents/{contentId}":{"get":{"tags":["Contents"],"summary":"Get a content detail by ID.","operationId":"getContentById","parameters":[{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The content is described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The content is not found"},"422":{"description":"Unable to fetch the content"}},"security":[{"oauth2":[]}]},"put":{"tags":["Contents"],"summary":"Update a content","operationId":"updateContent","parameters":[{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContentRequest"}}},"required":true},"responses":{"200":{"description":"The content is updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The content is not found"},"422":{"description":"Unable to update the content"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Contents"],"summary":"Archive a content.","operationId":"archiveContent","parameters":[{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The content is archived"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The content is not found"},"422":{"description":"Unable to process the archive content"}},"security":[{"oauth2":[]}]}},"/contents":{"post":{"tags":["Contents"],"summary":"Create a content.","operationId":"createContent","requestBody":{"description":"Request object for content creation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContentRequest"}}}},"responses":{"201":{"description":"A content is created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentVersionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unable to create a content."}},"security":[{"oauth2":[]}]}},"/contents/by-ids":{"post":{"tags":["Contents"],"summary":"Get multiple contents by IDs.","operationId":"getContentsByIds","parameters":[{"name":"context","in":"header","description":"Context ID.","required":true,"schema":{"type":"string"},"example":"en"}],"requestBody":{"description":"Request object with list of content IDs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetContentsByIdsRequest"}}}},"responses":{"200":{"description":"Contents fetched successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentVersionListResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden"}},"security":[{"oauth2":[]}]}},"/contents/migrate":{"patch":{"tags":["Contents"],"summary":"Add/Remove contentId field to/from UniqueFieldValue.","operationId":"migrateData","parameters":[{"name":"revert","in":"query","description":"Revert.","schema":{"type":"boolean"}}],"requestBody":{"description":"List of organization ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrateRequest"}}}},"responses":{"200":{"description":"Migrate"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/contents/{contentId}/publish":{"post":{"tags":["Contents"],"summary":"Publish a content.","operationId":"publishContent","parameters":[{"name":"context","in":"header","description":"Context ID.","schema":{"type":"string","default":"en"},"example":"en"},{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The content is published"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The content is not found"},"422":{"description":"Unable to publish the content"}},"security":[{"oauth2":[]}]}},"/contents/{contentId}/restore/{versionNo}":{"post":{"tags":["Contents"],"summary":"Restore version for content.","operationId":"restoreVersion","parameters":[{"name":"context","in":"header","description":"Context.","required":true,"schema":{"type":"string"}},{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}},{"name":"versionNo","in":"path","description":"Version no.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Content is restored","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentVersionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Cannot restore a version"}},"security":[{"oauth2":[]}]}},"/contents/{contentId}/schedule":{"post":{"tags":["Contents"],"summary":"Set schedule date for a content.","operationId":"scheduleContent","parameters":[{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}},{"name":"context","in":"header","description":"Context ID.","schema":{"type":"string"},"example":"en"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleContentRequest"}}},"required":true},"responses":{"200":{"description":"Set schedule date for the content"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The content is not found"},"422":{"description":"Unable to set schedule for the content"}},"security":[{"oauth2":[]}]}},"/contents/search":{"post":{"tags":["Contents"],"summary":"Search for contents.","operationId":"searchContent","parameters":[{"name":"context","in":"header","description":"Context ID.","required":true,"schema":{"type":"string"},"example":"en"},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"sortField","in":"query","description":"Sort field.","schema":{"type":"string","default":"modifiedAt","enum":["title","modelName","modifiedAt","modifiedBy","publishedAt","structurePriority"]}},{"name":"sort","in":"query","description":"Soring order of the field.","schema":{"type":"string","default":"asc","enum":["asc","desc"]}}],"requestBody":{"description":"Request object for content search.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchContentVersionRequest"}}}},"responses":{"201":{"description":"Contents are searched","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContentVersionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Cannot search for contents"}},"security":[{"oauth2":[]}]}},"/contents/{contentId}/unarchive":{"put":{"tags":["Contents"],"summary":"Unarchive a content","operationId":"unarchiveContent","parameters":[{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The content is unarchived","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnarchivedResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The content is not found"},"422":{"description":"Unable to unarchive the content"}},"security":[{"oauth2":[]}]}},"/contents/{contentId}/unpublish":{"put":{"tags":["Contents"],"summary":"Unpublish a content.","operationId":"unpublishContent","parameters":[{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}},{"name":"context","in":"header","description":"Context.","schema":{"type":"string","default":"en"},"example":"en"}],"responses":{"200":{"description":"The content is unpublished"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The content is not found"},"422":{"description":"Unable to unpublish the content"}},"security":[{"oauth2":[]}]}},"/tree":{"get":{"tags":["Trees"],"summary":"List no parent content.","operationId":"listAllContentChildren","parameters":[{"name":"context","in":"header","description":"Context.","schema":{"type":"string","default":"en"},"example":"en"},{"name":"deep","in":"query","description":"Content level to retrieve.","schema":{"maximum":10,"minimum":0,"type":"integer","format":"int32"}},{"name":"published","in":"query","description":"List only published content.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Contents described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTreeResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Cannot fetch contents"}},"security":[{"oauth2":[]}]}},"/tree/contents/{contentId}":{"get":{"tags":["Trees"],"summary":"Get list of content children.","operationId":"listChildContent","parameters":[{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}},{"name":"context","in":"header","description":"Context.","required":true,"schema":{"type":"string","default":"en"},"example":"en"},{"name":"version","in":"query","description":"Version of content.","schema":{"type":"string","default":"published","enum":["published","unpublished"]}},{"name":"modelId","in":"query","description":"Model ID.","schema":{"type":"string"}},{"name":"subContents","in":"query","description":"Boolean of include sub content.","schema":{"type":"boolean"}},{"name":"excludeModelIds","in":"query","description":"List of exclude model IDs.","schema":{"type":"array","items":{"type":"string"}}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"sortField","in":"query","description":"Sort field.","schema":{"type":"string","default":"modifiedAt","enum":["title","modelName","modifiedAt","modifiedBy","publishedAt","structurePriority"]}},{"name":"sort","in":"query","description":"Soring order of the field.","schema":{"type":"string","default":"asc","enum":["asc","desc"]}}],"responses":{"200":{"description":"Contents described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContentVersionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Cannot fetch contents"}},"security":[{"oauth2":[]}]}},"/tree/{contentId}":{"get":{"tags":["Trees"],"summary":"List content children.","operationId":"listContentChildren","parameters":[{"name":"context","in":"header","description":"Context.","schema":{"type":"string","default":"en"},"example":"en"},{"name":"excludeModelIds","in":"query","description":"List of exclude model IDs.","schema":{"type":"array","items":{"type":"string"}}},{"name":"contentId","in":"path","description":"The ID of the parent content.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Contents described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTreeChildNodeResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Cannot fetch contents"}},"security":[{"oauth2":[]}]}},"/tree/contents":{"get":{"tags":["Trees"],"summary":"Get list of content.","operationId":"listTreeContent","parameters":[{"name":"context","in":"header","description":"Context.","required":true,"schema":{"type":"string","default":"en"},"example":"en"},{"name":"version","in":"query","description":"Version of content.","schema":{"type":"string","default":"published","enum":["published","unpublished"]}},{"name":"modelId","in":"query","description":"Model ID.","schema":{"type":"string"}},{"name":"subContents","in":"query","description":"Boolean of include sub content.","schema":{"type":"boolean"}},{"name":"excludeModelIds","in":"query","description":"List of exclude model IDs.","schema":{"type":"array","items":{"type":"string"}}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"sortField","in":"query","description":"Sort field.","schema":{"type":"string","default":"modifiedAt","enum":["title","modelName","modifiedAt","modifiedBy","publishedAt","structurePriority"]}},{"name":"sort","in":"query","description":"Soring order of the field.","schema":{"type":"string","default":"asc","enum":["asc","desc"]}}],"responses":{"200":{"description":"Contents described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContentVersionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Cannot fetch contents"}},"security":[{"oauth2":[]}]}},"/tree/{contentId}/move":{"put":{"tags":["Trees"],"summary":"Move content node.","operationId":"moveContent","parameters":[{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveChildNodeRequest"}}},"required":true},"responses":{"200":{"description":"Content moved successfully"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Content not found"}},"security":[{"oauth2":[]}]}},"/contents/{contentId}/versions/{versionNo}":{"get":{"tags":["Content versions"],"description":"Get a content version.","operationId":"getFilteredVersion","parameters":[{"name":"context","in":"header","description":"Context ID.","required":true,"schema":{"type":"string"}},{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}},{"name":"versionNo","in":"path","description":"Version No.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"A selected content version described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentVersionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/contents/{contentId}/versions/latest":{"get":{"tags":["Content versions"],"description":"Get latest content versions of a content.","operationId":"getLatestVersions","parameters":[{"name":"context","in":"header","description":"Context ID.","required":true,"schema":{"type":"string"}},{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Latest content versions are described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentVersionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]},"put":{"tags":["Content versions"],"description":"Update the latest version of content","operationId":"updateDraftContent","parameters":[{"name":"context","in":"header","description":"Context ID.","required":true,"schema":{"type":"string"}},{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContentVersionRequest"}}},"required":true},"responses":{"200":{"description":"The content is updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentVersionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The content is not found"}},"security":[{"oauth2":[]}]}},"/contents/{contentId}/versions/publish":{"get":{"tags":["Content versions"],"description":"Get a published content.","operationId":"getPublished","parameters":[{"name":"context","in":"header","description":"Context ID.","required":true,"schema":{"type":"string"}},{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The published content is described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentVersionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid arguments"}},"security":[{"oauth2":[]}]}},"/contents/{contentId}/versions":{"get":{"tags":["Content versions"],"description":"Get all versions of a content.","operationId":"getVersions","parameters":[{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}},{"name":"context","in":"header","description":"Context.","required":true,"schema":{"type":"string"}},{"name":"sortField","in":"query","description":"Sort field.","schema":{"type":"string","default":"version","enum":["version","title"]}},{"name":"sort","in":"query","description":"Soring order of the field.","schema":{"type":"string","default":"asc","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"All versions are described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListVersionInfoResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/model/{modelId}/field":{"post":{"tags":["Fields"],"summary":"Create field.","description":"Create a new field.","operationId":"createField","parameters":[{"name":"modelId","in":"path","description":"The ID of the model.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFieldRequest"}}},"required":true},"responses":{"201":{"description":"Field created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldPresentable"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Cannot create field"},"404":{"description":"Model not found"}},"security":[{"oauth2":[]}]}},"/model/{modelId}/field/{id}/data":{"put":{"tags":["Fields"],"summary":"Update field's data","description":"Update the data of a field.","operationId":"updateModelData","parameters":[{"name":"modelId","in":"path","description":"Model ID.","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"Field ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFieldDataRequest"}}},"required":true},"responses":{"200":{"description":"Field updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldPresentable"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Field not found"}},"security":[{"oauth2":[]}]}},"/model/{modelId}/fields":{"put":{"tags":["Fields"],"summary":"Update multiple fields.","operationId":"bulkUpdate","parameters":[{"name":"modelId","in":"path","description":"Model ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UpdateFieldItem"}}}},"required":true},"responses":{"200":{"description":"Field updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFieldResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/freetext":{"get":{"tags":["Freetexts"],"summary":"Search for freetext.","operationId":"searchFreetext","parameters":[{"name":"context","in":"header","description":"Context ID.","required":true,"schema":{"type":"string"},"example":"en"},{"name":"context-fallback","in":"header","description":"Context fallback.","schema":{"type":"boolean","default":false}},{"name":"searchText","in":"query","description":"Search text keyword.","schema":{"type":"string","description":"searchText"}},{"name":"contentType","in":"query","description":"Filter by content type. Leave empty to return all.","schema":{"type":"string","enum":["TEXT","HTML"]}},{"name":"enabled","in":"query","description":"Filter by enabled freetext. Leave empty to return all.","schema":{"type":"boolean"}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"sortField","in":"query","description":"Sort field.","schema":{"title":"Sort field.","type":"string","default":"key","enum":["key","value"]}},{"name":"sort","in":"query","description":"Soring order of the field.","schema":{"type":"string","default":"asc","enum":["asc","desc"]}}],"responses":{"200":{"description":"Freetexts are searched","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchFreetextResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid content type"},"500":{"description":"Cannot search for freetext"}},"security":[{"oauth2":[]}]},"put":{"tags":["Freetexts"],"summary":"Bulk update freetext.","operationId":"bulkUpdateFreeText","parameters":[{"name":"context","in":"header","description":"Context ID.","required":true,"schema":{"type":"string"},"example":"en"},{"name":"replace","in":"query","description":"Is replace old freetext.","schema":{"type":"boolean","default":false}},{"name":"completeUpdate","in":"query","description":"Is complete updated.","schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUpdateBulkFreetextRequest"}}},"required":true},"responses":{"200":{"description":"The freetext are all synced","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBulkFreetextSummaryResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The freetext synced error"}},"security":[{"oauth2":[]}]},"post":{"tags":["Freetexts"],"summary":"Create a freetext.","operationId":"createFreeText","parameters":[{"name":"context","in":"header","description":"Context ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFreetextRequest"}}},"required":true},"responses":{"201":{"description":"A freetext is created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreetextResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unable to create a freetext"}},"security":[{"oauth2":[]}]}},"/freetext/compact":{"get":{"tags":["Freetexts"],"summary":"Get freetext data in a compact structure.","operationId":"getCompactFreetext","parameters":[{"name":"context","in":"header","description":"Context ID.","required":true,"schema":{"type":"string"},"example":"en"},{"name":"context-fallback","in":"header","description":"Context fallback.","schema":{"type":"boolean","default":false}},{"name":"contentType","in":"query","description":"Filter by content type. Leave empty to return all.","schema":{"type":"string","enum":["TEXT","HTML"]}}],"responses":{"200":{"description":"Freetext by context is described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreetextCompactMapResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid content type"},"500":{"description":"Cannot describe freetext"}},"security":[{"oauth2":[]}]}},"/freetext/{key}":{"get":{"tags":["Freetexts"],"summary":"Get a freetext detail by key.","operationId":"getFreetextByKey","parameters":[{"name":"context","in":"header","description":"Context ID.","required":true,"schema":{"type":"string"},"example":"en"},{"name":"context-fallback","in":"header","description":"Context fallback.","schema":{"type":"boolean","default":false}},{"name":"key","in":"path","description":"Freetext key.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The freetext is described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetFreetextResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The freetext is not found"},"422":{"description":"Unable to fetch the freetext"}},"security":[{"oauth2":[]}]},"put":{"tags":["Freetexts"],"summary":"Update a freetext.","operationId":"updateFreeText","parameters":[{"name":"context","in":"header","description":"Context ID.","required":true,"schema":{"type":"string"}},{"name":"key","in":"path","description":"Freetext key.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFreetextRequest"}}}},"responses":{"200":{"description":"The freetext is updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetFreetextResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The freetext is not found"},"422":{"description":"Unable to update the freetext"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Freetexts"],"summary":"Remove a freetext on every language.","operationId":"removeFreeText","parameters":[{"name":"key","in":"path","description":"Freetext key.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The freetext is removed"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"The freetext is not found"},"422":{"description":"Unable to remove freetext"}},"security":[{"oauth2":[]}]}},"/links/{refType}/{refId}/contents":{"get":{"tags":["Links"],"summary":"Get all links between a product/category and contents.","operationId":"getLinks","parameters":[{"name":"refType","in":"path","description":"Reference type.","required":true,"schema":{"type":"string"}},{"name":"refId","in":"path","description":"Reference ID.","required":true,"schema":{"type":"string"}},{"name":"context","in":"header","description":"Context ID.","schema":{"type":"string"}},{"name":"sortField","in":"query","description":"Sort field.","schema":{"type":"string","default":"createdAt","enum":["createdAt"]}},{"name":"sort","in":"query","description":"Soring order of the field.","schema":{"type":"string","default":"asc","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"All links are described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLinkResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]},"post":{"tags":["Links"],"summary":"Create a link between a product/category and a content.","operationId":"createLink","parameters":[{"name":"refType","in":"path","description":"Reference type.","required":true,"schema":{"type":"string"}},{"name":"refId","in":"path","description":"Reference ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLinkRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Duplicate key"}},"security":[{"oauth2":[]}]}},"/links/{refType}/{refId}/contents-list":{"post":{"tags":["Links"],"summary":"Create a link between a product/category and a content list.","operationId":"createLinkList","parameters":[{"name":"context","in":"header","description":"Context ID.","schema":{"type":"string"}},{"name":"refType","in":"path","description":"Reference type.","required":true,"schema":{"type":"string"}},{"name":"refId","in":"path","description":"Reference ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLinkListRequest"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/links/{refType}/contents/{contentId}":{"get":{"tags":["Links"],"summary":"Get all products/categories linked with specific content.","operationId":"getLinksByContentId","parameters":[{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}},{"name":"refType","in":"path","description":"Reference type.","required":true,"schema":{"type":"string"}},{"name":"sortField","in":"query","description":"Sort field.","schema":{"type":"string","default":"createdAt","enum":["createdAt"]}},{"name":"sort","in":"query","description":"Soring order of the field.","schema":{"type":"string","default":"asc","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"All links are described.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLinkResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found"}},"security":[{"oauth2":[]}]},"delete":{"tags":["Links"],"summary":"Remove linked products/categories from contentId.","operationId":"remove","parameters":[{"name":"refType","in":"path","description":"Reference type.","required":true,"schema":{"type":"string"}},{"name":"contentId","in":"path","description":"Content Id.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteLinkRequest"}}},"required":true},"responses":{"200":{"description":"Removed"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found the link"}},"security":[{"oauth2":[]}]}},"/links/{refType}/{refId}/contents/{contentId}":{"delete":{"tags":["Links"],"summary":"Remove a link between a product/category and a content by refId and contentId.","operationId":"removeLink","parameters":[{"name":"refType","in":"path","description":"Reference type.","required":true,"schema":{"type":"string"}},{"name":"refId","in":"path","description":"Reference ID.","required":true,"schema":{"type":"string"}},{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Removed"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found the link"}},"security":[{"oauth2":[]}]}},"/models":{"get":{"tags":["Models"],"summary":"List models.","operationId":"listModels","parameters":[{"name":"activeOnly","in":"query","description":"Get model active only.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Models described","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ModelPresentable"}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Cannot fetch models"}},"security":[{"oauth2":[]}]},"post":{"tags":["Models"],"description":"Create Model.","operationId":"createModel","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateModelRequest"}}},"required":true},"responses":{"201":{"description":"Model created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelPresentable"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Cannot create model"}},"security":[{"oauth2":[]}]}},"/models/{modelId}":{"get":{"tags":["Models"],"summary":"Get model.","operationId":"getModel","parameters":[{"name":"modelId","in":"path","description":"Model ID.","required":true,"schema":{"type":"string"}},{"name":"activeFieldOnly","in":"query","description":"Get only active field.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Model found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelPresentable"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Model not found"}},"security":[{"oauth2":[]}]},"put":{"tags":["Models"],"description":"Update model's data by key and value.","operationId":"updateModel","parameters":[{"name":"modelId","in":"path","description":"Model ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateModelRequest"}}},"required":true},"responses":{"200":{"description":"Model updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelPresentable"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Model not found"}},"security":[{"oauth2":[]}]}},"/models/search":{"post":{"tags":["Models"],"summary":"Search model.","operationId":"searchModel","parameters":[{"name":"page","in":"query","schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","schema":{"minimum":1,"type":"integer","format":"int32","default":10}},{"name":"sortField","in":"query","description":"Sort field.","schema":{"title":"Sort fields","type":"string","default":"modifiedAt"}},{"name":"sort","in":"query","description":"Soring order of the field.","schema":{"type":"string","default":"asc","enum":["asc","desc"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchModelRequest"}}}},"responses":{"201":{"description":"Model searched","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchModelResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Cannot search model"}},"security":[{"oauth2":[]}]}},"/preview/contents":{"post":{"tags":["Previews"],"summary":"Create preview token for content.","operationId":"createToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePreviewTokenRequest"}}},"required":true},"responses":{"201":{"description":"Token created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewTokenResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Cannot create token"}},"security":[{"oauth2":[]}]}},"/preview/contents/{token}":{"get":{"tags":["Previews"],"summary":"Get a content for preview.","operationId":"getContent","parameters":[{"name":"context","in":"header","description":"Context ID.","required":true,"schema":{"type":"string","default":"en"}},{"name":"token","in":"path","description":"Token ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Content to preview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContentVersionResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/seo/sefurls/{sefId}/history/{historyId}":{"delete":{"tags":["SEO"],"summary":"Delete SEF URL.","operationId":"deleteSefUrlsHistory","parameters":[{"name":"sefId","in":"path","description":"SEF URL ID.","required":true,"schema":{"type":"string"}},{"name":"historyId","in":"path","description":"HISTORY ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"A SEF URL is deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Cannot find a SEF URL"}},"security":[{"oauth2":[]}]}},"/seo/contents/{contentId}/url":{"get":{"tags":["SEO"],"summary":"Get SEF Object By contentId.","operationId":"getSEFUrlsByContentId","parameters":[{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"A SEF object described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSeoResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/seo/contents/{contentId}/url/history":{"get":{"tags":["SEO"],"summary":"Get SEF History Object By contentId.","operationId":"getSEFUrlsHistory","parameters":[{"name":"contentId","in":"path","description":"Content ID.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"A SEF history object described","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSeoResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/seo/{sefId}/metaInformation":{"put":{"tags":["SEO"],"summary":"Update meta information.","operationId":"updateMetaInformation","parameters":[{"name":"sefId","in":"path","description":"SEF URL ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaInformationRequest"}}},"required":true},"responses":{"200":{"description":"A meta information is updated"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/seo/{sefId}/openGraphInformation":{"put":{"tags":["SEO"],"summary":"Update open graph information.","operationId":"updateOpenGraphInformation","parameters":[{"name":"sefId","in":"path","description":"SEF URL ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenGraphInformationRequest"}}},"required":true},"responses":{"200":{"description":"An open graph information is updated"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/seo/sefurls/{sefId}/url":{"put":{"tags":["SEO"],"summary":"Update SEF URL.","operationId":"updateSefUrls","parameters":[{"name":"sefId","in":"path","description":"SEF URL ID.","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSefUrlRequest"}}},"required":true},"responses":{"200":{"description":"A SEF URL is updated"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]}},"/settings":{"get":{"tags":["Settings"],"summary":"Get settings of current user's organization.","operationId":"getSettings","responses":{"200":{"description":"Settings data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"oauth2":[]}]},"put":{"tags":["Settings"],"summary":"Update settings of current user's organization.","operationId":"updateSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsRequest"}}},"required":true},"responses":{"200":{"description":"Setting updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Cannot update setting"}},"security":[{"oauth2":[]}]}}},"components":{"schemas":{"ErrorResponse":{"type":"object","properties":{"status":{"title":"Error status code.","type":"integer","format":"int32"},"error":{"title":"General error description.","type":"string"},"errorDetails":{"title":"List of errors details.","type":"array","items":{"$ref":"#/components/schemas/ErrorDetails"}},"requestId":{"title":"Request ID used for logging.","type":"string"},"timestamp":{"title":"Error timestamp.","type":"integer","format":"int64"},"quotaLimitExceededDetails":{"title":"Additional entity id list related to error","type":"array","items":{"$ref":"#/components/schemas/QuotaLimitExceededDetails"}}}},"ErrorDetails":{"type":"object","properties":{"message":{"title":"Error message.","type":"string"},"field":{"title":"Error related field.","type":"string"},"rejectedValue":{"title":"Invalid value causing error.","type":"string"}}},"QuotaLimitExceededDetails":{"type":"object","properties":{"quota":{"title":"Quota name.","type":"string"},"message":{"title":"Quota limit message.","type":"string"},"limit":{"title":"Quota limit.","type":"integer","format":"int32"},"entityId":{"title":"Id of the entity that caused the quota limit to be exceeded.","type":"string","nullable":true},"entityType":{"title":"Type of the entity that caused the quota limit to be exceeded.","type":"string","nullable":true}}},"ContentVersionResponse":{"type":"object","properties":{"id":{"title":"ID.","type":"string"},"contentId":{"title":"Content ID.","type":"string"},"contextId":{"title":"Context ID.","type":"string"},"title":{"title":"Content title.","type":"string"},"structurePriority":{"title":"Structure priority.","type":"integer","format":"int32"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldDataResponse"}},"version":{"title":"Version.","type":"integer","format":"int32"},"createdAt":{"title":"Created time.","type":"string"},"createdBy":{"title":"Created user.","type":"string"},"modifiedAt":{"title":"Modified time.","type":"string"},"modifiedBy":{"title":"Modified user.","type":"string"},"publishedAt":{"title":"Published time.","type":"string"},"publishedBy":{"title":"Published user.","type":"string"},"link":{"title":"Link.","type":"string"},"body":{"title":"Body.","type":"string"},"modelId":{"title":"Model ID.","type":"string"},"modelName":{"title":"Model name.","type":"string"},"status":{"title":"Status.","type":"string"},"scheduleDate":{"title":"Schedule date.","type":"string"},"publishState":{"title":"Publish state.","type":"string"},"displayPublishState":{"title":"Display publish state.","type":"string"}}},"FieldDataResponse":{"type":"object","properties":{"id":{"title":"Field ID.","type":"string"},"value":{"title":"Field value.","type":"string"},"oldValue":{"title":"Old value.","type":"string"},"name":{"title":"Field name.","type":"string"},"dataType":{"title":"Data type of field.","type":"string"},"assetUrl":{"title":"Asset URL.","type":"object","additionalProperties":{"title":"Asset URL.","type":"string"}},"options":{"title":"Options list.","type":"array","items":{"$ref":"#/components/schemas/Option"}}}},"Option":{"title":"Options list.","type":"object","properties":{"name":{"title":"Option name.","type":"string"},"value":{"title":"Option value.","type":"string"}}},"CreateContentRequest":{"required":["contextId","modelId"],"type":"object","properties":{"modelId":{"title":"Model ID.","type":"string","description":"modelId","example":"modelId"},"parentId":{"title":"Parent ID.","type":"string","description":"parent identified. 0 means no parent.","example":"parent-content-id"},"priority":{"title":"Priority.","type":"integer","description":"priority","format":"int32","example":0,"default":0},"fields":{"title":"Field data.","type":"array","description":"fields","items":{"$ref":"#/components/schemas/FieldDataRequest"}},"contextId":{"title":"Context ID.","type":"string","description":"contextId","example":"en"}}},"FieldDataRequest":{"required":["id"],"type":"object","properties":{"id":{"title":"Field ID.","type":"string","description":"id","example":"id"},"value":{"title":"Field value.","type":"string","description":"value","example":"value"}}},"ContentResponse":{"type":"object","properties":{"id":{"type":"string"},"modelId":{"type":"string"},"context":{"title":"A list of context.","type":"array","items":{"title":"A list of context.","type":"string"}},"parentId":{"type":"string"},"parentIdList":{"type":"array","items":{"type":"string"}},"structurePriority":{"title":"A priority of structure.","type":"integer","format":"int32"},"publications":{"title":"A list of published content.","type":"object","additionalProperties":{"$ref":"#/components/schemas/PublishedField"}},"scheduleDate":{"title":"Schedule date.","type":"object","additionalProperties":{"title":"Schedule date.","type":"string","format":"date-time"}},"createdAt":{"title":"Created date.","type":"string"},"createdBy":{"title":"Created user.","type":"string"},"modifiedAt":{"title":"Modified date.","type":"string"},"modifiedBy":{"title":"Modified user.","type":"string"},"archivedAt":{"title":"Archived date.","type":"string"},"archivedBy":{"title":"Archived user.","type":"string"},"latestVersions":{"title":"Latest version","type":"object","additionalProperties":{"$ref":"#/components/schemas/LatestVersionField"}}}},"LatestVersionField":{"title":"Latest version","type":"object","properties":{"id":{"title":"Id.","type":"string","example":"507f1f77bcf86cd799439011"},"title":{"title":"Title.","type":"string"},"modifiedBy":{"title":"Modified By.","type":"string"},"modifiedAt":{"title":"Modified At.","type":"string","format":"date-time"}}},"PublishedField":{"title":"A list of published content.","required":["date","id"],"type":"object","properties":{"id":{"type":"string","description":"contentVersionId","example":"contentVersionId"},"date":{"title":"Published date.","type":"string","example":"2017-05-22T09:26:00Z"},"title":{"title":"Title","type":"string"},"publishedBy":{"title":"Published By","type":"string"}}},"ContentVersionListResponse":{"type":"object","properties":{"data":{"title":"Result data.","type":"array","items":{"$ref":"#/components/schemas/ContentVersionResponse"}},"total":{"type":"integer","format":"int32"}}},"GetContentsByIdsRequest":{"required":["ids"],"type":"object","properties":{"ids":{"maxItems":100,"minItems":1,"type":"array","description":"Array of content IDs to retrieve. Each ID must be unique, non-blank, and up to 255 characters.","example":["68663fbbdd47f01d7817dbc7","6864e0fa4a4a8a133866ade3"],"items":{"maxLength":255,"minLength":0,"type":"string","description":"Array of content IDs to retrieve. Each ID must be unique, non-blank, and up to 255 characters.","example":"[\"68663fbbdd47f01d7817dbc7\",\"6864e0fa4a4a8a133866ade3\"]"}},"version":{"pattern":"^(latest|published)?$","type":"string","description":"Version of content to retrieve. Allowed values: latest, published. Default: latest.","example":"latest","enum":["latest","published"]},"status":{"pattern":"^(active|archived|all)?$","type":"string","description":"Status filter. Allowed values: active, archived, all. Default: all.","example":"active","enum":["active","archived","all"]}}},"MigrateRequest":{"required":["organizationIds"],"type":"object","properties":{"organizationIds":{"title":"List of organization ID.","type":"array","items":{"type":"string"}}}},"ScheduleContentRequest":{"required":["scheduleDate"],"type":"object","properties":{"scheduleDate":{"title":"Schedule date.","type":"string","format":"date-time","example":"2017-05-22T09:26:00Z"}}},"ListContentVersionResponse":{"type":"object","properties":{"data":{"title":"Result data.","type":"array","items":{"$ref":"#/components/schemas/ContentVersionResponse"}},"total":{"title":"Total of results.","type":"integer","format":"int64"}}},"FieldFilter":{"title":"Field filter data.","required":["name","type","value"],"type":"object","properties":{"name":{"title":"Field name.","type":"string"},"value":{"title":"Field value.","type":"string"},"type":{"title":"Field filter type.","type":"string","enum":["CONTAINS","EQUALS","EMPTY"]}}},"SearchContentVersionRequest":{"type":"object","properties":{"updatedAfter":{"title":"Updated after.","type":"string","description":"updatedAfter","format":"date-time","example":"2017-05-22T09:26:00Z"},"searchText":{"title":"Searching text.","type":"string","description":"searchText","example":"title search"},"searchFieldValue":{"title":"Search file value.","type":"boolean"},"archiveState":{"title":"Archive state.","type":"string","description":"archiveState","example":"active","enum":["active","archived"]},"includeModelIds":{"title":"Model IDs to searching.","type":"array","items":{"title":"Model IDs to searching.","type":"string"}},"excludeModelIds":{"title":"Model IDs to not searching.","type":"array","items":{"title":"Model IDs to not searching.","type":"string"}},"fieldFilters":{"title":"Field filter data.","type":"array","items":{"$ref":"#/components/schemas/FieldFilter"}},"modelName":{"title":"Model name list.","type":"array","items":{"title":"Model name list.","type":"string"}},"ids":{"type":"array","items":{"type":"string"}},"unpublished":{"title":"Include unpublished.","type":"boolean"}}},"UnarchivedResponse":{"type":"object","properties":{"originParent":{"title":"Origin parent.","type":"string"},"originTitle":{"title":"Origin title.","type":"string"},"newParent":{"title":"New parent.","type":"string"},"newParentTitle":{"title":"New parent title.","type":"string"}}},"UpdateContentRequest":{"type":"object","properties":{"parentId":{"title":"Parent ID.","type":"string"},"structurePriority":{"title":"A priority of this structure.","minimum":0,"type":"integer","format":"int32","example":0,"default":0},"publications":{"title":"A list of published content.","type":"object","additionalProperties":{"$ref":"#/components/schemas/PublishedField"}},"scheduleDate":{"title":"A predefined date to schedule this content.","type":"object","additionalProperties":{"title":"A predefined date to schedule this content.","type":"string","format":"date-time"}}}},"ListTreeResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TreeNode"}}}},"TreeNode":{"type":"object","properties":{"id":{"type":"string","description":"id"},"title":{"type":"string"},"hasChild":{"type":"boolean"},"structurePriority":{"type":"integer","format":"int32"},"modelId":{"type":"string","description":"modelId"},"children":{"type":"array","description":"children","items":{"$ref":"#/components/schemas/TreeNode"}}},"description":"TreeNode"},"ListTreeChildNodeResponse":{"type":"object","properties":{"data":{"title":"Result data.","type":"array","items":{"$ref":"#/components/schemas/TreeChildNodeResponse"}},"total":{"title":"Total of results.","type":"integer","format":"int64"}}},"TreeChildNodeResponse":{"title":"Result data.","type":"object","properties":{"id":{"type":"string","description":"id"},"title":{"type":"string"},"hasChild":{"type":"boolean"},"structurePriority":{"type":"integer","format":"int32"},"modelId":{"type":"string","description":"modelId"}}},"MoveChildNodeRequest":{"required":["priority"],"type":"object","properties":{"parentId":{"type":"string","description":"parentId","example":"parentId"},"priority":{"title":"Priority.","type":"integer","format":"int32","example":1},"contextId":{"title":"Context ID.","type":"string","example":"en"}}},"ListVersionInfoResponse":{"type":"object","properties":{"data":{"title":"Result data.","type":"array","items":{"$ref":"#/components/schemas/VersionInfoResponse"}},"total":{"title":"Total of results.","type":"integer","format":"int64"}}},"VersionInfoResponse":{"title":"Result data.","type":"object","properties":{"version":{"title":"Version.","type":"string"},"versionNo":{"title":"Version number.","type":"integer","format":"int32"},"title":{"title":"Content title.","type":"string"},"validFrom":{"title":"Version valid from date.","type":"string"},"validTo":{"title":"Version valid to date.","type":"string"}}},"UpdateContentVersionRequest":{"type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldDataRequest"}}}},"FieldPresentable":{"title":"Fields list.","type":"object","properties":{"id":{"title":"Field ID.","type":"string"},"name":{"title":"Field name.","type":"string"},"description":{"title":"Field description.","type":"string"},"dataType":{"title":"Data type.","type":"string"},"status":{"title":"Field status.","type":"string"},"priority":{"title":"Field priority.","type":"integer","format":"int32"},"options":{"title":"Options.","type":"array","items":{"$ref":"#/components/schemas/Option"}}}},"CreateFieldRequest":{"required":["dataType","name","status"],"type":"object","properties":{"name":{"title":"Field name.","type":"string","description":"name","example":"Name"},"description":{"title":"Field description.","type":"string","description":"description","example":"Name"},"dataType":{"title":"Data type.","type":"string","description":"dataType","example":"text"},"options":{"title":"Options.","type":"array","description":"options","items":{"$ref":"#/components/schemas/OptionRequest"}},"status":{"title":"Status.","type":"string","description":"status","example":"active"},"priority":{"title":"Field priority.","type":"integer","format":"int32"}}},"OptionRequest":{"title":"Options.","required":["name","value"],"type":"object","properties":{"name":{"title":"Option name.","type":"string","description":"name","example":"name"},"value":{"title":"Option value.","type":"string","description":"value","example":"value"}},"description":"options"},"UpdateFieldDataRequest":{"type":"object","properties":{"name":{"title":"Field name.","type":"string"},"description":{"title":"Field description.","type":"string"},"dataType":{"title":"Field data type.","type":"string"},"options":{"title":"Options.","type":"array","description":"options","items":{"$ref":"#/components/schemas/OptionRequest"}},"status":{"title":"Status.","type":"string","enum":["active","archived"]},"priority":{"title":"Priority.","type":"integer","format":"int32"}}},"ErrorMessage":{"type":"object","properties":{"errorCode":{"type":"integer","format":"int32"},"errorMsg":{"type":"string"}}},"UpdateFieldResponse":{"type":"object","properties":{"result":{"title":"Updated result.","type":"array","items":{"$ref":"#/components/schemas/UpdateFieldResult"}},"hasError":{"title":"Has error on updated..","type":"boolean"}}},"UpdateFieldResult":{"title":"Updated result.","type":"object","properties":{"fieldId":{"type":"string"},"name":{"title":"Field name.","type":"string"},"data":{"$ref":"#/components/schemas/FieldPresentable"},"error":{"$ref":"#/components/schemas/ErrorMessage"}}},"UpdateFieldItem":{"required":["fieldId"],"type":"object","properties":{"name":{"title":"Field name.","type":"string"},"description":{"title":"Field description.","type":"string"},"dataType":{"title":"Field data type.","type":"string"},"options":{"title":"Options.","type":"array","description":"options","items":{"$ref":"#/components/schemas/OptionRequest"}},"status":{"title":"Status.","type":"string","enum":["active","archived"]},"priority":{"title":"Priority.","type":"integer","format":"int32"},"fieldId":{"type":"string"}}},"UpdateBulkFreetextResponse":{"type":"object","properties":{"data":{"title":"Freetext keys list.","type":"array","items":{"title":"Freetext keys list.","type":"string"}},"error":{"title":"Error messages list.","type":"object","additionalProperties":{"title":"Error messages list.","type":"string"}},"total":{"title":"Total of result.","type":"integer","format":"int32"}}},"UpdateBulkFreetextSummaryResponse":{"type":"object","properties":{"created":{"$ref":"#/components/schemas/UpdateBulkFreetextResponse"},"updated":{"$ref":"#/components/schemas/UpdateBulkFreetextResponse"},"deleted":{"$ref":"#/components/schemas/UpdateBulkFreetextResponse"},"update":{"$ref":"#/components/schemas/UpdateBulkFreetextSummaryResponse"}}},"ListUpdateBulkFreetextRequest":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/UpdateBulkFreetextRequest"}}}},"UpdateBulkFreetextRequest":{"type":"object","properties":{"key":{"title":"Freetext key.","type":"string"},"value":{"title":"Freetext value.","type":"string"},"description":{"title":"Freetext description.","type":"string"},"enabled":{"title":"Is freetext enabled.","type":"boolean","example":true},"contentType":{"title":"Content type of freetext value.","type":"string","example":"TEXT","enum":["TEXT","HTML"]}}},"FreetextResponse":{"type":"object","properties":{"id":{"title":"Freetext ID.","type":"string"},"key":{"title":"Freetext key.","type":"string"},"organizationId":{"title":"Organization ID.","type":"string"},"value":{"title":"Freetext value.","type":"object","additionalProperties":{"title":"Freetext value.","type":"string"}},"description":{"title":"Freetext description.","type":"string"},"createdAt":{"title":"Created date.","type":"string"},"createdBy":{"title":"Created user.","type":"string"},"modifiedAt":{"title":"Modified date.","type":"string"},"modifiedBy":{"title":"Modified user.","type":"string"},"contentType":{"title":"Content type.","type":"string","enum":["TEXT","HTML"]}}},"CreateFreetextRequest":{"required":["key"],"type":"object","properties":{"key":{"title":"Freetext key.","type":"string","example":"free-text-key"},"value":{"title":"Freetext value.","type":"string"},"description":{"title":"Freetext description.","type":"string"},"enabled":{"title":"Is enabled of this freetext.","type":"boolean"},"contentType":{"title":"Content type of freetext value.","type":"string","example":"TEXT","enum":["TEXT","HTML"]}}},"FreetextCompactMapResponse":{"type":"object","properties":{"data":{"title":"Result data.","type":"object","additionalProperties":{"title":"Result data.","type":"string"}}}},"GetFreetextResponse":{"type":"object","properties":{"id":{"title":"Freetext ID.","type":"string"},"key":{"title":"Freetext key.","type":"string"},"value":{"title":"Freetext value.","type":"string"},"description":{"title":"Freetext description.","type":"string"},"enabled":{"title":"Is enabled.","type":"boolean"},"contentType":{"title":"Content type.","type":"string","enum":["TEXT","HTML"]}}},"SearchFreetextResponse":{"type":"object","properties":{"data":{"title":"Result data.","type":"array","items":{"$ref":"#/components/schemas/GetFreetextResponse"}},"total":{"title":"Total of results.","type":"integer","format":"int64"}}},"UpdateFreetextRequest":{"type":"object","properties":{"value":{"title":"Freetext value.","type":"string"},"description":{"title":"Freetext description.","type":"string"},"enabled":{"title":"Is freetext enabled.","type":"boolean"},"contentType":{"title":"Content type of freetext value.","type":"string","example":"TEXT","enum":["TEXT","HTML"]}}},"LinkResponse":{"title":"Result data.","type":"object","properties":{"id":{"type":"string"},"referenceType":{"title":"Reference type.","type":"string","enum":["PRODUCTS","CATEGORIES"]},"referenceId":{"title":"Reference ID.","type":"string"},"contentId":{"title":"Content ID.","type":"string"},"title":{"title":"Title.","type":"string"},"node":{"title":"Nodes list.","type":"array","items":{"$ref":"#/components/schemas/Node"}},"createdAt":{"title":"Created time.","type":"string"},"createdBy":{"title":"Created by.","type":"string"}}},"Node":{"title":"Nodes list.","type":"object","properties":{"id":{"type":"string"},"text":{"title":"Node text.","type":"string"}}},"CreateLinkRequest":{"required":["contentId"],"type":"object","properties":{"contentId":{"type":"string","description":"contentId"}}},"CreateLinkListRequest":{"required":["contentIds"],"type":"object","properties":{"contentIds":{"title":"List of content ID.","type":"array","items":{"type":"string"}}}},"ListLinkResponse":{"type":"object","properties":{"data":{"title":"Result data.","type":"array","items":{"$ref":"#/components/schemas/LinkResponse"}},"total":{"title":"Total of results.","type":"integer","format":"int64"}}},"DeleteLinkRequest":{"required":["refIds"],"type":"object","properties":{"refIds":{"title":"List of ref ID.","uniqueItems":true,"type":"array","items":{"type":"string"}}}},"ModelPresentable":{"type":"object","properties":{"id":{"title":"Model ID.","type":"string"},"name":{"title":"Model name.","type":"string"},"description":{"title":"Model description.","type":"string"},"status":{"title":"Model status.","type":"string"},"modifiedAt":{"title":"Modified time.","type":"string"},"modifiedBy":{"title":"Modified by.","type":"string"},"titleFiledId":{"title":"Title field ID.","type":"string"},"fields":{"title":"Fields list.","type":"array","items":{"$ref":"#/components/schemas/FieldPresentable"}}}},"CreateModelRequest":{"required":["name","status"],"type":"object","properties":{"name":{"title":"Model name.","type":"string","description":"Name.","example":"News"},"description":{"title":"Model description.","type":"string","description":"Description.","example":"News Article"},"status":{"title":"Model status.","type":"string","description":"status","example":"active","enum":["active","archived"]}}},"SearchModelResponse":{"type":"object","properties":{"data":{"title":"Result data.","type":"array","items":{"$ref":"#/components/schemas/ModelPresentable"}},"total":{"title":"Total of results.","type":"integer","format":"int64"}}},"SearchModelRequest":{"type":"object","properties":{"searchText":{"title":"Search text.","type":"string","description":"searchText","example":"searchText"},"excludeModelIds":{"type":"array","items":{"title":"Exclude Model ID.","type":"string"}}}},"UpdateModelRequest":{"required":["key","value"],"type":"object","properties":{"key":{"title":"Model attribute key.","type":"string","example":"Model attribute"},"value":{"title":"Model value.","type":"string","example":"Value need to update"}}},"PreviewTokenResponse":{"type":"object","properties":{"token":{"type":"string"},"expire":{"title":"Expire.","type":"string"},"url":{"title":"URL.","type":"string"}}},"CreatePreviewTokenRequest":{"required":["id"],"type":"object","properties":{"id":{"title":"ID.","type":"string"},"contextId":{"title":"Context ID.","type":"string"}}},"ListSeoResponse":{"type":"object","properties":{"sefurls":{"type":"array","items":{"$ref":"#/components/schemas/SeoResponse"}},"total":{"type":"integer","format":"int64"},"metaInformation":{"$ref":"#/components/schemas/MetaInformation"},"openGraphInformation":{"$ref":"#/components/schemas/OpenGraphInformation"}}},"MetaInformation":{"type":"object","properties":{"metaTitle":{"type":"string"},"metaDescription":{"type":"string"},"metaKeyWords":{"type":"array","items":{"type":"string"}},"metaNoIndex":{"type":"boolean"},"metaNoFollow":{"type":"boolean"}}},"OpenGraphInformation":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"},"media":{"type":"string"}}},"SeoResponse":{"type":"object","properties":{"default":{"type":"boolean"},"id":{"type":"string"},"url":{"type":"string"},"type":{"type":"string","enum":["CATEGORY","PRODUCT","CMS","SEFURL","CAMPAIGN","CONTENT"]},"structure":{"type":"array","items":{"$ref":"#/components/schemas/Structure"}},"organizationId":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","HISTORICAL","ARCHIVE"]},"canonicalId":{"type":"string"},"modifiedAt":{"type":"string"},"modifiedBy":{"type":"string"},"sefId":{"type":"string"},"updated":{"type":"boolean"}}},"Structure":{"type":"object","properties":{"name":{"type":"string"},"id":{"type":"string"}}},"MetaInformationRequest":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}},"noIndex":{"type":"boolean"},"noFollow":{"type":"boolean"}}},"OpenGraphInformationRequest":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"},"media":{"type":"string"}}},"UpdateSefUrlRequest":{"required":["url"],"type":"object","properties":{"default":{"type":"boolean"},"url":{"type":"string"}}},"SettingResponse":{"type":"object","properties":{"url":{"title":"URL","type":"string"},"tokenLifetime":{"title":"Token life time","type":"integer","format":"int32"},"previewUrlStructure":{"title":"Preview URL structure","type":"string"}}},"SettingsRequest":{"type":"object","properties":{"url":{"title":"URL.","type":"string"},"tokenLifetime":{"title":"Token life time.","minimum":1,"type":"integer","format":"int32"},"previewUrlStructure":{"title":"Preview URL structure.","type":"string"}}}},"securitySchemes":{"oauth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://idp.test.bluestonepim.com/op/token","scopes":{"openid profile systemRoles permissions organization email name nickname":"All needed scopes."}}}}}},"x-amazon-apigateway-api-key-source":"AUTHORIZER"}