public function createRecord($spaceId, $objectId, RecordParameters $parameters)
    {
        $requestData = $this->getDefaultRequestData('json', $parameters->exportToArray());
        $endpoint = vsprintf('projects/%s/spaces/%s/objects/%s/records', [
            $this->getProjectId(),
            $spaceId,
            $objectId,
        ]);

        return $this->sendRequest($endpoint, $requestData, static::HTTP_METHOD_POST);
    }
public function createRecord($spaceId, $objectId, RecordParameters $parameters)
    {
        $requestData = $this->getDefaultRequestData('json', $parameters->exportToArray());
        $endpoint = vsprintf('projects/%s/spaces/%s/objects/%s/records', [
            $this->getProjectId(),
            $spaceId,
            $objectId,
        ]);

        return $this->sendRequest($endpoint, $requestData, static::HTTP_METHOD_POST);
    }
public function createRecord ( $ spaceId , $ objectId , RecordParameters $ parameters ) { $ requestData = $ this -> getDefaultRequestData ( 'json' , $ parameters -> exportToArray ( ) ) ; $ endpoint = vsprintf ( 'projects/%s/spaces/%s/objects/%s/records' , [ $ this -> getProjectId ( ) , $ spaceId , $ objectId , ] ) ; return $ this -> sendRequest ( $ endpoint , $ requestData , static :: HTTP_METHOD_POST ) ; }
Creates a new record.

@param $spaceId
@param $objectId
@param RecordParameters $parameters

@return array
@throws \Smartling\Exceptions\SmartlingApiException
Creates a new record .