Validate conditional put operations

put/commons/validations/translationWorksheets/{reportId}
Internal-Use Only

Pre-flight validation of the PUT operation, which would update the internal localization strings of an existing report. Always returns HTTP response 200 unless a server error prevents the actual validation logic from being executed.

Request Samples

1

Response Samples

1en_US vi6.Section.label = Page 1 ve20.Graph.label = Bar - dealer 1 ve29.Graph.label = Scatter - returns 1 bi10.DataItem_CARS_dealer.label = dealer bi13.DataItem_CARS_returns.label = returns bi14.DataItem_CARS_sales.label = sales bi17.SourcePredefinedDataItem_CARS.label = Frequency

Path Parameters

NameTypeRequiredDescription
reportId
string
true

The id of the report that would have its localization be updated by the PUT operation.

Header Parameters

NameTypeRequiredDescription
If-Match
string
true

ETag identifier from last GET of the report.

Request Body

The body of the request is a string translation worksheet.

Prior to version 2, this was not an object. Instead, it was serialized as lines of user-editable plain text. When serialized as text, the first line is the locale indicator, and the subsequent lines have the form proprietary path identifiers = translatable text.

NameTypeRequiredDescription
locale
string
false

A valid IETF language tag.

lines
array [string]
false

Individual lines with translatable strings. Each line has a substructure of identifier=value, where the value part is what should be translated.

links
array [Link]
false

Link objects, as described in SAS standards documentation.

version
integer
false

Standard field. This media type's schema version number. This representation is version 1.

Responses

StatusMeaningDescription
200OKExcept for unusual server problems, this will always be returned. However, the validation will contain information about errors that would happen if the PUT were actually called, as shown by the additional errors.HeadersSchema
400Bad RequestThe request was invalid. Some error in the request resulted in failure to perform the action. See the error codes table for further details.HeadersSchema
412Precondition FailedThe header If-Match Etag value does not match.HeadersSchema
428Precondition RequiredThe If-Match head ETag did not match current report.HeadersSchema