diff --git a/docs/api/datamodel.rst b/docs/api/datamodel.rst index a55554e9e..abf0ba2b9 100644 --- a/docs/api/datamodel.rst +++ b/docs/api/datamodel.rst @@ -219,6 +219,25 @@ Progress information - Integer - Estimate of time left to print, in seconds +.. _sec-api-datamodel-jobs-state: + +State information +----------------- + +.. list-table:: + :widths: 15 5 10 30 + :header-rows: 1 + + * - Name + - Multiplicity + - Type + - Description + * - body + - 1 + - String + - A textual representation of the current state of the job, i.e. "Operational", "Printing", "Pausing", "Paused", + "Cancelling", "Error" or "Offline". + .. _sec-api-datamodel-files: File related diff --git a/docs/api/job.rst b/docs/api/job.rst index 338a10ea7..bc9d67a1e 100644 --- a/docs/api/job.rst +++ b/docs/api/job.rst @@ -212,7 +212,8 @@ Retrieve information about the current job "filepos": 337942, "printTime": 276, "printTimeLeft": 912 - } + }, + "state": "Printing" } :statuscode 200: No error @@ -243,4 +244,7 @@ Job information response - 1 - :ref:`sec-api-datamodel-jobs-progress` - Information regarding the progress of the current print job - + * - ``state`` + - 1 + - :ref:`sec-api-datamodel-jobs-state` + - Information regarding the state of the current print job