Units API.

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

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

{
    "translation": "https://translate.yunohost.org/api/translations/yunohost-apps-test/transfersh/en/?format=api",
    "source": [
        "transfer(){ if [ $# -eq 0 ];then echo \"No arguments specified.\\nUsage:\\n  transfer <file|directory>\\n  ... | transfer <file_name>\">&2;return 1;fi;if tty -s;then file=\"$1\";file_name=$(basename \"$file\");if [ ! -e \"$file\" ];then echo \"$file: No such file or directory\">&2;return 1;fi;if [ -d \"$file\" ];then file_name=\"$file_name.zip\" ,;(cd \"$file\"&&zip -r -q - .)|curl --progress-bar --upload-file \"-\" \"https://__DOMAIN__/$file_name\"|tee /dev/null,;else cat \"$file\"|curl --progress-bar --upload-file \"-\" \"https://__DOMAIN__/$file_name\"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file \"-\" \"https://__DOMAIN__/$file_name\"|tee /dev/null;fi;}\n"
    ],
    "previous_source": "",
    "target": [
        "transfer(){ if [ $# -eq 0 ];then echo \"No arguments specified.\\nUsage:\\n  transfer <file|directory>\\n  ... | transfer <file_name>\">&2;return 1;fi;if tty -s;then file=\"$1\";file_name=$(basename \"$file\");if [ ! -e \"$file\" ];then echo \"$file: No such file or directory\">&2;return 1;fi;if [ -d \"$file\" ];then file_name=\"$file_name.zip\" ,;(cd \"$file\"&&zip -r -q - .)|curl --progress-bar --upload-file \"-\" \"https://__DOMAIN__/$file_name\"|tee /dev/null,;else cat \"$file\"|curl --progress-bar --upload-file \"-\" \"https://__DOMAIN__/$file_name\"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file \"-\" \"https://__DOMAIN__/$file_name\"|tee /dev/null;fi;}\n"
    ],
    "id_hash": -5227613761614539081,
    "content_hash": -5227613761614539081,
    "location": "src/transfersh/ADMIN.md:7",
    "context": "",
    "note": "type: Fenced code block",
    "flags": "no-wrap",
    "labels": [],
    "state": 100,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 5,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": true,
    "num_words": 64,
    "source_unit": "https://translate.yunohost.org/api/units/149882/?format=api",
    "priority": 100,
    "id": 149882,
    "web_url": "https://translate.yunohost.org/translate/yunohost-apps-test/transfersh/en/?checksum=3773c8fb1c0596b7",
    "url": "https://translate.yunohost.org/api/units/149882/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2025-04-03T22:16:28.040397Z"
}