You are here

public function ProgressTrackerApi::updateRecord in TMGMT Translator Smartling 8.3

Same name and namespace in other branches
  1. 8.4 vendor/smartling/api-sdk-php/src/ProgressTracker/ProgressTrackerApi.php \Smartling\ProgressTracker\ProgressTrackerApi::updateRecord()

Updates record

Parameters

$spaceId:

$objectId:

$recordId:

RecordParameters $parameters:

Return value

mixed

Throws

\Smartling\Exceptions\SmartlingApiException

File

vendor/smartling/api-sdk-php/src/ProgressTracker/ProgressTrackerApi.php, line 118

Class

ProgressTrackerApi
Class ProgressTrackerApi

Namespace

Smartling\ProgressTracker

Code

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