File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
lib/stack/contentType/entry Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -243,6 +243,7 @@ export function Entry (http, data) {
243243 * client.stack({ api_key: 'api_key'}).contentType('content_type_uid').entry('uid').setWorkflowStage({ workflow_stage, locale: 'en-us'})
244244 * .then((response) => console.log(response.notice));
245245 */
246+
246247 this . setWorkflowStage = async ( { workflow_stage, locale } ) => {
247248 const publishDetails = {
248249 workflow : { workflow_stage }
@@ -265,6 +266,19 @@ export function Entry (http, data) {
265266 throw error ( err )
266267 }
267268 }
269+
270+ /**
271+ * @description The get locales request allows to get the languages of an entry.
272+ * @memberof Entry
273+ * @func locales
274+ * @returns {Promise<Object> } Response Object.
275+ * @example
276+ * import * as contentstack from '@contentstack/management'
277+ * const client = contentstack.client()
278+ *
279+ * client.stack({ api_key: 'api_key'}).contentType('content_type_uid').entry('uid').locales()
280+ * .then((response) => console.log(response));
281+ */
268282 this . locales = async ( ) => {
269283 const headers = { }
270284 if ( this . stackHeaders ) {
You can’t perform that action at this time.
0 commit comments