Units API.

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

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

{
    "translation": "https://translate-dev.freebsd.org/api/translations/documentation/booksarch-handbookmac_index/zh_TW/?format=api",
    "source": [
        "This entry point permits policy modules to perform MAC-related events when a thread returns to user space, via a system call return, trap return, or otherwise.  This is required for policies that have floating process labels, as it is not always possible to acquire the process lock at arbitrary points in the stack during system call processing; process labels might represent traditional authentication data, process history information, or other data.  To employ this mechanism, intended changes to the process credential label may be stored in the `p_label` protected by a per-policy spin lock, and then set the per-thread `TDF_ASTPENDING` flag and per-process `PS_MACPENDM` flag to schedule a call to the `userret` entry point.  From this entry point, the policy may create a replacement credential with less concern about the locking context.  Policy writers are cautioned that event ordering relating to scheduling an AST and the AST being performed may be complex and interlaced in multithreaded applications."
    ],
    "previous_source": "",
    "target": [
        ""
    ],
    "id_hash": 7574611502461627827,
    "content_hash": 7574611502461627827,
    "location": "documentation/content/en/books/arch-handbook/mac/_index.adoc:478",
    "context": "",
    "note": "type: Plain text",
    "flags": "",
    "labels": [],
    "state": 0,
    "fuzzy": false,
    "translated": false,
    "approved": false,
    "position": 133,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 156,
    "source_unit": "https://translate-dev.freebsd.org/api/units/1569919/?format=api",
    "priority": 100,
    "id": 1573922,
    "web_url": "https://translate-dev.freebsd.org/translate/documentation/booksarch-handbookmac_index/zh_TW/?checksum=e91e6d078bd02db3",
    "url": "https://translate-dev.freebsd.org/api/units/1573922/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2023-05-21T18:09:44.635563Z"
}