public function createRole($organizationUuid, $name, array $permissions, $description = null)
    {
        $options = [
            'form_params' => [
                'name' => $name,
                'permissions' => $permissions,
                'description' => $description,
            ],
        ];

        return new OperationResponse(
            $this->connector->request('post', "/organizations/${organizationUuid}/roles", $this->query, $options)
        );
    }
public function createRole($organizationUuid, $name, array $permissions, $description = null)
    {
        $options = [
            'form_params' => [
                'name' => $name,
                'permissions' => $permissions,
                'description' => $description,
            ],
        ];

        return new OperationResponse(
            $this->connector->request('post', "/organizations/${organizationUuid}/roles", $this->query, $options)
        );
    }
public function createRole ( $ organizationUuid , $ name , array $ permissions , $ description = null ) { $ options = [ 'form_params' => [ 'name' => $ name , 'permissions' => $ permissions , 'description' => $ description , ] , ] ; return new OperationResponse ( $ this -> connector -> request ( 'post' , "/organizations/${organizationUuid}/roles" , $ this -> query , $ options ) ) ; }
Create a new role.

@param string      $organizationUuid
@param string      $name
@param array       $permissions
@param null|string $description
@return OperationResponse
Create a new role .