JobTimeline =========== Quick Reference --------------- .. list-table:: :header-rows: 1 :widths: 10 40 50 * - Method - Endpoint - Description * - GET - /api/job/{jobDisplayId}/timeline - * - POST - /api/job/{jobDisplayId}/timeline - * - PATCH - /api/job/{jobDisplayId}/timeline/{timelineTaskId} - * - DELETE - /api/job/{jobDisplayId}/timeline/{timelineTaskId} - * - GET - /api/job/{jobDisplayId}/timeline/{timelineTaskIdentifier} - * - GET - /api/job/{jobDisplayId}/timeline/{taskCode}/agent - .. _get-apijobjobdisplayidtimeline: GET /api/job/{jobDisplayId}/timeline ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `jobDisplayId` (string, path) *(required)*: No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/job/{jobDisplayId}/timeline" , jobDisplayId="2000000" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/job/{jobDisplayId}/timeline \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/job/2000000/timeline' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _post-apijobjobdisplayidtimeline: POST /api/job/{jobDisplayId}/timeline ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `jobDisplayId` (string, path) *(required)*: No description available *Query Parameters:* - `createEmail` (boolean, query): No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.post( "/api/job/{jobDisplayId}/timeline" , jobDisplayId="2000000" , data= { "example": "data" } ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/job/{jobDisplayId}/timeline \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X POST \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "example": "data" }' \ 'https://api.abconnect.co/api/job/2000000/timeline' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" } ---- .. _patch-apijobjobdisplayidtimelinetimelinetaskid: PATCH /api/job/{jobDisplayId}/timeline/{timelineTaskId} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `timelineTaskId` (integer, path) *(required)*: No description available - `jobDisplayId` (string, path) *(required)*: No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.patch( "/api/job/{jobDisplayId}/timeline/{timelineTaskId}" , timelineTaskId="789e0123-e89b-12d3-a456-426614174002" , jobDisplayId="2000000" , data= { "example": "data" } ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw patch /api/job/{jobDisplayId}/timeline/{timelineTaskId} \ timelineTaskId=789e0123-e89b-12d3-a456-426614174002 \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X PATCH \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "example": "data" }' \ 'https://api.abconnect.co/api/job/2000000/timeline/789e0123-e89b-12d3-a456-426614174002' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "123e4567-e89b-12d3-a456-426614174000", "status": "updated", "message": "Resource updated successfully" } ---- .. _delete-apijobjobdisplayidtimelinetimelinetaskid: DELETE /api/job/{jobDisplayId}/timeline/{timelineTaskId} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `timelineTaskId` (integer, path) *(required)*: No description available - `jobDisplayId` (string, path) *(required)*: No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.delete( "/api/job/{jobDisplayId}/timeline/{timelineTaskId}" , timelineTaskId="789e0123-e89b-12d3-a456-426614174002" , jobDisplayId="2000000" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw delete /api/job/{jobDisplayId}/timeline/{timelineTaskId} \ timelineTaskId=789e0123-e89b-12d3-a456-426614174002 \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X DELETE \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/job/2000000/timeline/789e0123-e89b-12d3-a456-426614174002' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "message": "Resource deleted successfully" } ---- .. _get-apijobjobdisplayidtimelinetimelinetaskidentifier: GET /api/job/{jobDisplayId}/timeline/{timelineTaskIdentifier} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `timelineTaskIdentifier` (string, path) *(required)*: No description available - `jobDisplayId` (string, path) *(required)*: No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/job/{jobDisplayId}/timeline/{timelineTaskIdentifier}" , timelineTaskIdentifier="789e0123-e89b-12d3-a456-426614174002" , jobDisplayId="2000000" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/job/{jobDisplayId}/timeline/{timelineTaskIdentifier} \ timelineTaskIdentifier=789e0123-e89b-12d3-a456-426614174002 \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/job/2000000/timeline/789e0123-e89b-12d3-a456-426614174002' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _get-apijobjobdisplayidtimelinetaskcodeagent: GET /api/job/{jobDisplayId}/timeline/{taskCode}/agent ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `taskCode` (string, path) *(required)*: No description available - `jobDisplayId` (string, path) *(required)*: No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/job/{jobDisplayId}/timeline/{taskCode}/agent" , taskCode="CODE-001" , jobDisplayId="2000000" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/job/{jobDisplayId}/timeline/{taskCode}/agent \ taskCode=CODE-001 \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/job/2000000/timeline/CODE-001/agent' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} }