Units API.

See the Weblate's Web API documentation for detailed description of the API.

GET /api/units/570831/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "translation": "https://l10n.xwiki.org/api/translations/xwiki-platform/xwiki-platform-attachment%252Fattachment-validation-default/ru/?format=api",
    "source": [
        "Define the list of allowed attachment mimetypes. By default, this list is empty, but you can specify a comma-separated list of allowed mimetypes. Note that a joker (*) can be used to accept any media type. Once this list is not empty, any attachment with an unlisted mimetype will be rejected. For instance, if you want to only accept plain text and any kind of images, you can set the list to: text/plain,image/*"
    ],
    "previous_source": "",
    "target": [
        "Определяет список разрешенных MIME-типов вложений. По умолчанию этот список пуст, но вы можете указать список разрешенных MIME-типов, разделенный запятыми. Обратите внимание, что джокер (*) может быть использован для обозначения любого типа медиаданных. Если этот список не пуст, то любое вложение с не указанным в списке типом файла будет отклонено. Например, если вы хотите принимать только обычный текст и любые изображения, вы можете задать список в виде: text/plain,image/*"
    ],
    "id_hash": 8430848881023793457,
    "content_hash": 7803981987805467600,
    "location": "",
    "context": "XWiki.Attachment.Validation.Code.AttachmentMimetypeRestrictionClass_allowedMimetypes_hint",
    "note": "",
    "flags": "",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 6,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 73,
    "source_unit": "https://l10n.xwiki.org/api/units/552762/?format=api",
    "priority": 100,
    "id": 570831,
    "web_url": "https://l10n.xwiki.org/translate/xwiki-platform/xwiki-platform-attachment/attachment-validation-default/ru/?checksum=f5006463846c3931",
    "url": "https://l10n.xwiki.org/api/units/570831/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2023-09-19T17:19:09.568289Z"
}