Skip to content
Status

Reset a string

DELhttps://app.shuttleglobal.com/c/api/instances/{instance_key}/strings/{string_id}

DELETE
/strings/{string_id}

Removes your wording for one string in one language, so it goes back to the wording it inherits.

language and branding must be sent as query parameters. A request body is ignored, so leaving language out of the query string resets the default (base) wording instead.

Resetting a string that has no wording of its own is accepted and changes nothing. Resetting every string in a language does not remove the language.

Returns 204 with no body. Read the string back to see the wording that now applies.

string_id
required
string

The string’s id, e.g. web.payment_form.card_number.

language
string
default "default"
e.g. "ar"

Lowercase two-letter ISO 639-1 language code (e.g. ar), or default for the base wording. Defaults to default.

branding
string

Enterprise field, for accounts with more than one branding. Leave out to use your own branding.

String reset

Bad request

Media typeapplication/json

Every error has a code and a message. Some add more fields alongside them, with detail about the error.

object
code
string

The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.

message
string

What went wrong, in words, for logs and support.

Authentication required

Media typeapplication/json

Every error has a code and a message. Some add more fields alongside them, with detail about the error.

object
code
string

The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.

message
string

What went wrong, in words, for logs and support.

Example
{
"code": "UNAUTHORIZED",
"message": "Unauthorised"
}

Was this page helpful?