translations

Embed
Preview of the card
<a href="https://linkyhub.net/docs/ref-translations"><img src="https://linkyhub.net/docs/_api/public/orgs/2fd2a4b7-b627-4925-af1e-1c51bf890403/spaces/c4b920fb-a433-40b5-b354-ff84bf0c3eb1/pages/f2a77e23-21cc-45b2-8351-d4de13b485a3/social-card.svg?v=3e7ae33eec8b" alt="translations" width="600" height="315"></a>
GEThttps://linkyhub.net/api/v3/page/translationsScope pages:read

The main page’s language, its translations, which settings of each block are translatable, and the supported languages.

Code samples

cURL
curl -X GET "https://linkyhub.net/api/v3/page/translations" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
Example
{
  "data": [
    {}
  ]
}
Schema
dataobject[]required
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.
Example
{
  "error": "string",
  "message": "string"
}
Schema
errorstringrequired
A stable code to branch on, e.g. insufficient_scope.
messagestringrequired
A sentence to show a person.
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
PUThttps://linkyhub.net/api/v3/page/localeScope pages:write

Set the language the main page is written in.

Request body

application/json
localestringrequired
{
  "locale": "string"
}

Code samples

cURL
curl -X PUT "https://linkyhub.net/api/v3/page/locale" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"locale":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /page/translations

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
PUThttps://linkyhub.net/api/v3/page/translations/{locale}Scope pages:write

Create or change a translation. Only fields sent are changed; isPublished adds it to the language switcher.

Parameters

localestringpathrequired

Request body

application/json
profileOverridesobject
Show child parameters
displayNamestring
biostring
blockOverridesobject
By block id: translated values for the keys translations.list names.
seoTitlestring
seoDescriptionstring
isPublishedboolean
{
  "profileOverrides": {
    "displayName": "string",
    "bio": "string"
  },
  "blockOverrides": {},
  "seoTitle": "string",
  "seoDescription": "string",
  "isPublished": true
}

Code samples

cURL
curl -X PUT "https://linkyhub.net/api/v3/page/translations/{locale}" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"profileOverrides":{"displayName":"string","bio":"string"},"blockOverrides":{},"seoTitle":"string","seoDescription":"string","isPublished":true}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /page/translations

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
DELETEhttps://linkyhub.net/api/v3/page/translations/{locale}Scope pages:write

Delete a translation.

Parameters

localestringpathrequired

Code samples

cURL
curl -X DELETE "https://linkyhub.net/api/v3/page/translations/{locale}" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /page/translations

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
Updated