Skip to content

Commit df80a0b

Browse files
committed
Docs update
1 parent e8c3488 commit df80a0b

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

lib/contentstackClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default function contentstackClient ({ http }) {
8282
* import * as contentstack from '@contentstack/management'
8383
* const client = contentstack.client()
8484
*
85-
* client.stack({ api_key: 'api_key', management_token: 'management_token' }).fetch()
85+
* client.stack({ api_key: 'api_key', management_token: 'management_token' }).contentType('content_type_uid').fetch()
8686
* .then((stack) => console.log(stack))
8787
*
8888
*/

lib/organization/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function Organization (http, data) {
7575
* import * as contentstack from '@contentstack/management'
7676
* const client = contentstack.client()
7777
*
78-
* client.stack({ api_key: 'api_key'}).transferOwnership('emailId')
78+
* client.organization('organization_uid').transferOwnership('emailId')
7979
* .then((response) => console.log(response.notice))
8080
*
8181
*/

lib/stack/index.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -579,13 +579,6 @@ export function Stack (http, data) {
579579
* import * as contentstack from '@contentstack/management'
580580
* const client = contentstack.client()
581581
*
582-
* client.organization('org_uid').stack().create({name: 'My New Stack'})
583-
* .then((stack) => console.log(stack))
584-
*
585-
* @example
586-
* import * as contentstack from '@contentstack/management'
587-
* const client = contentstack.client()
588-
*
589582
* client.stack().create({name: 'My New Stack'}, { organization_uid: 'org_uid' })
590583
* .then((stack) => console.log(stack))
591584
*/

0 commit comments

Comments
 (0)