Units API.

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

GET /api/units/17821048/?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}\n"
    ],
    "previous_source": "",
    "target": [
        ""
    ],
    "id_hash": -5011634620765975011,
    "content_hash": -5011634620765975011,
    "location": "./pages/monitoring-and-automation/System_Monitoring_Tools.adoc:1443",
    "context": "",
    "note": "type: delimited block -",
    "flags": "no-wrap",
    "labels": [],
    "state": 0,
    "fuzzy": false,
    "translated": false,
    "approved": false,
    "position": 330,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 64,
    "source_unit": "https://translate.fedoraproject.org/api/units/889474/?format=api",
    "priority": 100,
    "id": 17821048,
    "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-system-administrat/f26pagesmonitoring-and-automationsystem_monitoring_tools/hi/?checksum=3a7318dd7d31ce1d",
    "url": "https://translate.fedoraproject.org/api/units/17821048/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2024-05-09T18:49:14.379033Z"
}