Units API.

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

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

{
    "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-system-administrat/f26pagesmonitoring-and-automationsystem_monitoring_tools/hi/?format=api",
    "source": [
        "for($request = $requests; $request; $request = $request->next()) {\n  my $oid = $request->getOID();\n  if ($request_info->getMode() == MODE_GET) {\n    if ($oid == new NetSNMP::OID(\".1.3.6.1.4.1.8072.9999.9999.1.0\")) {\n      $request->setValue(ASN_OCTET_STR, $string_value);\n    }\n    elsif ($oid == new NetSNMP::OID(\".1.3.6.1.4.1.8072.9999.9999.1.1\")) {\n      $request->setValue(ASN_INTEGER, $integer_value);\n    }\n  } elsif ($request_info->getMode() == MODE_GETNEXT) {\n    if ($oid == new NetSNMP::OID(\".1.3.6.1.4.1.8072.9999.9999.1.0\")) {\n      $request->setOID(\".1.3.6.1.4.1.8072.9999.9999.1.1\");\n      $request->setValue(ASN_INTEGER, $integer_value);\n    }\n    elsif ($oid < new NetSNMP::OID(\".1.3.6.1.4.1.8072.9999.9999.1.0\")) {\n      $request->setOID(\".1.3.6.1.4.1.8072.9999.9999.1.0\");\n      $request->setValue(ASN_OCTET_STR, $string_value);\n    }\n  }\n}\n"
    ],
    "previous_source": "",
    "target": [
        ""
    ],
    "id_hash": 4307380048961252623,
    "content_hash": 4307380048961252623,
    "location": "./pages/monitoring-and-automation/System_Monitoring_Tools.adoc:1402",
    "context": "",
    "note": "type: delimited block -",
    "flags": "no-wrap",
    "labels": [],
    "state": 0,
    "fuzzy": false,
    "translated": false,
    "approved": false,
    "position": 323,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 63,
    "source_unit": "https://translate.fedoraproject.org/api/units/889432/?format=api",
    "priority": 100,
    "id": 17821041,
    "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-system-administrat/f26pagesmonitoring-and-automationsystem_monitoring_tools/hi/?checksum=bbc6e35542f0ad0f",
    "url": "https://translate.fedoraproject.org/api/units/17821041/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2024-05-09T18:49:14.338255Z"
}