dist/corbel.with-polyfills.js
function(scope) {
                corbel.validate.failIfIsDefined(this.id, 'This function not allowed scope identifier');
                console.log('iamInterface.scope.create', scope);
                return this.request({
                    url: this._buildUriWithDomain(this.uri),
                    method: corbel.request.method.POST,
                    data: scope
                }).then(function(res) {
                    return corbel.Services.getLocationId(res);
                });
            }
function(scope) {
                corbel.validate.failIfIsDefined(this.id, 'This function not allowed scope identifier');
                console.log('iamInterface.scope.create', scope);
                return this.request({
                    url: this._buildUriWithDomain(this.uri),
                    method: corbel.request.method.POST,
                    data: scope
                }).then(function(res) {
                    return corbel.Services.getLocationId(res);
                });
            }
function ( scope ) { corbel . validate . failIfIsDefined ( this . id , 'This function not allowed scope identifier' ) ; console . log ( 'iamInterface.scope.create' , scope ) ; return this . request ( { url : this . _buildUriWithDomain ( this . uri ) , method : corbel . request . method . POST , data : scope } ) . then ( function ( res ) { return corbel . Services . getLocationId ( res ) ; } ) ; }
Creates a new scope.

@method
@memberOf corbel.Iam.ScopeBuilder

@param {Object} scope        The scope.
@param {Object} scope.rules  Scope rules.
@param {String} scope.type   Scope type.
@param {Object} scope.scopes Scopes for a composite scope.

@return {Promise} A promise with the id of the created scope or fails
with a {@link corbelError}.
Creates a new scope .