public function create($name, $enabled = null)
    {
        if (is_null($name)) {
            throw new PlivoValidationException(
                "Mandatory parameters cannot be null");
        }

        $data = [
            'name' => $name,
            'enabled' => $enabled
        ];

        $response = $this->client->update(
            $this->uri,
            $data
        );
        $responseContents = $response->getContent();
        if(!array_key_exists("error",$responseContents)){

            return new SubAccountCreateResponse(
                $responseContents['message'],
                $responseContents['auth_id'], 
                $responseContents['auth_token'], 
                $responseContents['api_id'],
                $response->getStatusCode()
            );
            
        } else {
            throw new PlivoResponseException(
                $responseContents['error'],
                0,
                null,
                $response->getContent(),
                $response->getStatusCode()

            );
        }
    }