Translations
List Translations
List all Translations that exist in Directus.
Query Parameters
Control what fields are being returned in the object.
A limit on the number of objects that are returned.
How many items to skip when fetching data.
What metadata to return in the response.
How to sort the returned items. sort
is a CSV of fields used to sort the fetched items. Sorting defaults to ascending (ASC) order but a minus sign (-
) can be used to reverse this to descending (DESC) order. Fields are prioritized by their order in the CSV. You can also use a ?
to sort randomly.
Select items in collection by given conditions.
Filter by items that contain the given search query in one of their fields.
Cursor for use in pagination. Often used in combination with limit.
GET /translations
{
"data": [
{
"id": "sc4346aa4-81a8-4885-b3a8-f647e4f6f769",
"key": "Test",
"language": "en-US",
"string": "Test"
}
],
"meta": {}
}
Create Multiple Translations
Create multiple new translations.
Query Parameters
Control what fields are being returned in the object.
A limit on the number of objects that are returned.
What metadata to return in the response.
How many items to skip when fetching data.
How to sort the returned items. sort
is a CSV of fields used to sort the fetched items. Sorting defaults to ascending (ASC) order but a minus sign (-
) can be used to reverse this to descending (DESC) order. Fields are prioritized by their order in the CSV. You can also use a ?
to sort randomly.
Select items in collection by given conditions.
Filter by items that contain the given search query in one of their fields.
Request Body
POST /translations
{
"data": [
{
"id": "sc4346aa4-81a8-4885-b3a8-f647e4f6f769",
"key": "Test",
"language": "en-US",
"string": "Test"
}
],
"meta": {}
}
Delete Multiple Translations
Delete multiple existing translations.
DELETE /translations
Update Multiple Translations
Update multiple Translations at the same time.
Query Parameters
Control what fields are being returned in the object.
A limit on the number of objects that are returned.
What metadata to return in the response.
How many items to skip when fetching data.
How to sort the returned items. sort
is a CSV of fields used to sort the fetched items. Sorting defaults to ascending (ASC) order but a minus sign (-
) can be used to reverse this to descending (DESC) order. Fields are prioritized by their order in the CSV. You can also use a ?
to sort randomly.
Select items in collection by given conditions.
Filter by items that contain the given search query in one of their fields.
Request Body
PATCH /translations
{
"data": [
{
"id": "sc4346aa4-81a8-4885-b3a8-f647e4f6f769",
"key": "Test",
"language": "en-US",
"string": "Test"
}
],
"meta": {}
}
Create a Translation
Create a new translation.
Query Parameters
Control what fields are being returned in the object.
What metadata to return in the response.
Request Body
POST /translations
{
"data": {
"id": "sc4346aa4-81a8-4885-b3a8-f647e4f6f769",
"key": "Test",
"language": "en-US",
"string": "Test"
}
}
Retrieve a Translation
List an existing translation by primary key.
Query Parameters
Unique identifier of the Translation.
Control what fields are being returned in the object.
What metadata to return in the response.
GET /translations/{id}
{
"data": {
"id": "sc4346aa4-81a8-4885-b3a8-f647e4f6f769",
"key": "Test",
"language": "en-US",
"string": "Test"
}
}
Delete a Translation
Delete an existing translation.
Query Parameters
Unique identifier of the Translation.
DELETE /translations/{id}
Update a Translation
Update an existing translation.
Query Parameters
Unique identifier of the Translation.
Control what fields are being returned in the object.
What metadata to return in the response.
Request Body
PATCH /translations/{id}
{
"data": {
"id": "sc4346aa4-81a8-4885-b3a8-f647e4f6f769",
"key": "Test",
"language": "en-US",
"string": "Test"
}
}