public function TranslationRequestsApi::updateTranslationRequest in TMGMT Translator Smartling 8.3
Same name and namespace in other branches
- 8.4 vendor/smartling/api-sdk-php/src/TranslationRequests/TranslationRequestsApi.php \Smartling\TranslationRequests\TranslationRequestsApi::updateTranslationRequest()
Parameters
string $bucketName:
string $translationRequestUid:
UpdateTranslationRequestParams $params:
Return value
mixed
Throws
File
- vendor/
smartling/ api-sdk-php/ src/ TranslationRequests/ TranslationRequestsApi.php, line 72
Class
- TranslationRequestsApi
- Class TranslationRequestsApi @package Smartling\TranslationRequests
Namespace
Smartling\TranslationRequestsCode
public function updateTranslationRequest($bucketName, $translationRequestUid, UpdateTranslationRequestParams $params) {
$requestData = $this
->getDefaultRequestData('json', $params
->exportToArray());
$requestUri = vsprintf('buckets/%s/translation-requests/%s', [
$bucketName,
$translationRequestUid,
]);
return $this
->sendRequest($requestUri, $requestData, static::HTTP_METHOD_PUT);
}