You are here

public function ProgressTrackerApi::deleteRecord in TMGMT Translator Smartling 8.4

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

Deletes record.

Parameters

$spaceId:

$objectId:

$recordId:

Return value

array

Throws

\Smartling\Exceptions\SmartlingApiException

File

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

Class

ProgressTrackerApi
Class ProgressTrackerApi

Namespace

Smartling\ProgressTracker

Code

public function deleteRecord($spaceId, $objectId, $recordId) {
  $requestData = $this
    ->getDefaultRequestData('query', []);
  $endpoint = vsprintf('projects/%s/spaces/%s/objects/%s/records/%s', [
    $this
      ->getProjectId(),
    $spaceId,
    $objectId,
    $recordId,
  ]);
  return $this
    ->sendRequest($endpoint, $requestData, static::HTTP_METHOD_DELETE);
}