Update localization in a report

put/translationWorksheets/{reportId}/{translationLocale}
Internal-Use Only

Insert the translator's language worksheet into an existing report and save the report. This saves the human translator's strings for the specified locale so that the report can be generated later in the locale's language. This action returns no content.

Request Samples

1

Response Samples

1No example avaliable

Path Parameters

NameTypeRequiredDescription
reportId
string
true

The report from which the original report should be read.

translationLocale
string
true

The locale for which the translation should be extracted.

Header Parameters

NameTypeRequiredDescription
If-Match
string
false

The etag identifier from the last GET of the report.

Request Body

The body of the request is the 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
200OKSee code 204. This is a departure from a typical PUT, which would return the modified object, but in this case, returning the modified report is undesirable.Headers
204No ContentWorksheet was inserted into the report. No content returned.Headers
400Bad RequestThe request was invalid.HeadersSchema
412Precondition FailedThe header If-Match Etag value did not match.HeadersSchema
428Precondition RequiredThe precondition header If-Match was not provided.HeadersSchema