createList(listObject, token) {
        const uri = this.apiEndpoint + LIST_MANAGEMENT_PATH;
        const headers = this.__buildHeaders(token, listObject);

        return this.apiClient.post(uri, headers, JSON.stringify(listObject))
            .then(this.__validateApiResponse);
    }
/**
     * Create a custom list. The new list name must be different than any existing list name
     * @param {ListObject} listObject
     * @param {string} token bearer token for list management permission
     * @returns {Promise<Object>}
     * @memberOf ListManagementService
     */
Create a custom list. The new list name must be different than any existing list name
@param {ListObject} listObject
@param {string} token bearer token for list management permission
@returns {Promise}
@memberOf ListManagementService
Create a custom list . The new list name must be different than any existing list name @param { ListObject } listObject @param { string } token bearer token for list management permission @returns { Promise } @memberOf ListManagementService
createList(listObject, token) {
        const uri = this.apiEndpoint + LIST_MANAGEMENT_PATH;
        const headers = this.__buildHeaders(token, listObject);
        return this.apiClient.post(uri, headers, JSON.stringify(listObject))
            .then(this.__validateApiResponse);
    }
createList ( listObject , token ) { const uri = this . apiEndpoint + LIST_MANAGEMENT_PATH ; const headers = this . __buildHeaders ( token , listObject ) ; return this . apiClient . post ( uri , headers , JSON . stringify ( listObject ) ) . then ( this . __validateApiResponse ) ; }
Create a custom list.
Create a custom list .