Skip to content

Commit c559703

Browse files
committed
Docs update
1 parent ccc9ad0 commit c559703

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/contentstack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import httpClient from './core/contentstackHTTPClient.js'
3939
* import * as contentstack from '@contentstack/management'
4040
* const client = contentstack.client({ authtoken: 'value' })
4141
*
42-
* @prop {string=} params.timeout - Optional authorization token is a read-write token used to make authorized CMA requests, but it is a user-specific token.
42+
* @prop {string=} params.authorization - Optional authorization token is a read-write token used to make authorized CMA requests, but it is a user-specific token.
4343
* @example //Set the `authorization`
4444
* import * as contentstack from '@contentstack/management'
4545
* const client = contentstack.client({ authorization: 'Bearer <token_value>' })

lib/stack/contentType/entry/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ export function Entry (http, data) {
240240
* "name": "Role name"
241241
* }]
242242
* }
243-
* client.stack({ api_key: 'api_key'}).contentType('content_type_uid').entry('uid').publishRequest({ publishing_rule, locale: 'en-us'})
243+
* 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-
this.setWorkflowStage = async ({workflow_stage, locale}) => {
246+
this.setWorkflowStage = async ({ workflow_stage, locale }) => {
247247
const publishDetails = {
248248
workflow: { workflow_stage }
249249
}

0 commit comments

Comments
 (0)