Units API.

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

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

{
    "translation": "https://hosted.weblate.org/api/translations/debian-handbook/12_advanced-administration/ko/?format=api",
    "source": [
        "define contact{\n    name                            generic-contact\n    service_notification_period     24x7\n    host_notification_period        24x7\n    service_notification_options    w,u,c,r\n    host_notification_options       d,u,r\n    service_notification_commands   notify-service-by-email\n    host_notification_commands      notify-host-by-email\n    register                        0 ; Template only\n}\ndefine contact{\n    use             generic-contact\n    contact_name    rhertzog\n    alias           Raphael Hertzog\n    email           hertzog@debian.org\n}\ndefine contact{\n    use             generic-contact\n    contact_name    rmas\n    alias           Roland Mas\n    email           lolando@debian.org\n}\n\ndefine contactgroup{\n    contactgroup_name     falcot-admins\n    alias                 Falcot Administrators\n    members               rhertzog,rmas\n}\n\ndefine host{\n    use                   generic-host ; Name of host template to use\n    host_name             www-host\n    alias                 www.falcot.com\n    address               192.168.0.5\n    contact_groups        falcot-admins\n    hostgroups            debian-servers,ssh-servers\n}\ndefine host{\n    use                   generic-host ; Name of host template to use\n    host_name             ftp-host\n    alias                 ftp.falcot.com\n    address               192.168.0.12\n    contact_groups        falcot-admins\n    hostgroups            debian-servers,ssh-servers\n}\n\n# 'check_ftp' command with custom parameters\ndefine command{\n    command_name          check_ftp2\n    command_line          /usr/lib/nagios/plugins/check_ftp -H $HOSTADDRESS$ -w 20 -c 30 -t 35\n}\n\n# Generic Falcot service\ndefine service{\n    name                  falcot-service\n    use                   generic-service\n    contact_groups        falcot-admins\n    register              0\n}\n\n# Services to check on www-host\ndefine service{\n    use                   falcot-service\n    host_name             www-host\n    service_description   HTTP\n    check_command         check_http\n}\ndefine service{\n    use                   falcot-service\n    host_name             www-host\n    service_description   HTTPS\n    check_command         check_https\n}\ndefine service{\n    use                   falcot-service\n    host_name             www-host\n    service_description   SMTP\n    check_command         check_smtp\n}\n\n# Services to check on ftp-host\ndefine service{\n    use                   falcot-service\n    host_name             ftp-host\n    service_description   FTP\n    check_command         check_ftp2\n}"
    ],
    "previous_source": "",
    "target": [
        ""
    ],
    "id_hash": 499462137914128759,
    "content_hash": 499462137914128759,
    "location": "",
    "context": "",
    "note": "",
    "flags": "",
    "labels": [],
    "state": 0,
    "fuzzy": false,
    "translated": false,
    "approved": false,
    "position": 685,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 192,
    "source_unit": "https://hosted.weblate.org/api/units/82697198/?format=api",
    "priority": 100,
    "id": 82700964,
    "web_url": "https://hosted.weblate.org/translate/debian-handbook/12_advanced-administration/ko/?checksum=86ee722b0d20f977",
    "url": "https://hosted.weblate.org/api/units/82700964/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2022-09-07T09:42:31.995675+02:00",
    "last_updated": "2023-05-23T12:28:47.723593+02:00"
}