JobOnHold ========= Quick Reference --------------- .. list-table:: :header-rows: 1 :widths: 10 40 50 * - Method - Endpoint - Description * - GET - /api/job/{jobDisplayId}/onhold - * - POST - /api/job/{jobDisplayId}/onhold - * - DELETE - /api/job/{jobDisplayId}/onhold - * - GET - /api/job/{jobDisplayId}/onhold/{id} - * - PUT - /api/job/{jobDisplayId}/onhold/{onHoldId} - * - PUT - /api/job/{jobDisplayId}/onhold/{onHoldId}/resolve - * - POST - /api/job/{jobDisplayId}/onhold/{onHoldId}/comment - * - GET - /api/job/{jobDisplayId}/onhold/followupusers - * - GET - /api/job/{jobDisplayId}/onhold/followupuser/{contactId} - * - PUT - /api/job/{jobDisplayId}/onhold/{onHoldId}/dates - .. _get-apijobjobdisplayidonhold: GET /api/job/{jobDisplayId}/onhold ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **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}/onhold" , jobDisplayId="2000000" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/job/{jobDisplayId}/onhold \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/job/2000000/onhold' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _post-apijobjobdisplayidonhold: POST /api/job/{jobDisplayId}/onhold ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **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.post( "/api/job/{jobDisplayId}/onhold" , jobDisplayId="2000000" , data= { "example": "data" } ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/job/{jobDisplayId}/onhold \ 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/onhold' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" } ---- .. _delete-apijobjobdisplayidonhold: DELETE /api/job/{jobDisplayId}/onhold ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **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.delete( "/api/job/{jobDisplayId}/onhold" , jobDisplayId="2000000" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw delete /api/job/{jobDisplayId}/onhold \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X DELETE \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/job/2000000/onhold' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "message": "Resource deleted successfully" } ---- .. _get-apijobjobdisplayidonholdid: GET /api/job/{jobDisplayId}/onhold/{id} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `jobDisplayId` (string, path) *(required)*: No description available - `id` (integer, 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}/onhold/{id}" , jobDisplayId=2000000 , id=789e0123-e89b-12d3-a456-426614174002 ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/job/{jobDisplayId}/onhold/{id} \ jobDisplayId=2000000 \ id=789e0123-e89b-12d3-a456-426614174002 .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/job/2000000/onhold/789e0123-e89b-12d3-a456-426614174002' **Sample Response:** .. toggle:: .. code-block:: json :linenos: {} ---- .. _put-apijobjobdisplayidonholdonholdid: PUT /api/job/{jobDisplayId}/onhold/{onHoldId} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `jobDisplayId` (string, path) *(required)*: No description available - `onHoldId` (integer, 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.put( "/api/job/{jobDisplayId}/onhold/{onHoldId}" , jobDisplayId=2000000 , onHoldId=789e0123-e89b-12d3-a456-426614174002 , data= { "example": "data" } ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw put /api/job/{jobDisplayId}/onhold/{onHoldId} \ jobDisplayId=2000000 \ onHoldId=789e0123-e89b-12d3-a456-426614174002 .. tab:: curl .. code-block:: bash curl -X PUT \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "example": "data" }' \ 'https://api.abconnect.co/api/job/2000000/onhold/789e0123-e89b-12d3-a456-426614174002' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "123e4567-e89b-12d3-a456-426614174000", "status": "updated", "message": "Resource updated successfully" } ---- .. _put-apijobjobdisplayidonholdonholdidresolve: PUT /api/job/{jobDisplayId}/onhold/{onHoldId}/resolve ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `jobDisplayId` (string, path) *(required)*: No description available - `onHoldId` (integer, 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.put( "/api/job/{jobDisplayId}/onhold/{onHoldId}/resolve" , jobDisplayId=2000000 , onHoldId=789e0123-e89b-12d3-a456-426614174002 , data= { "example": "data" } ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw put /api/job/{jobDisplayId}/onhold/{onHoldId}/resolve \ jobDisplayId=2000000 \ onHoldId=789e0123-e89b-12d3-a456-426614174002 .. tab:: curl .. code-block:: bash curl -X PUT \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "example": "data" }' \ 'https://api.abconnect.co/api/job/2000000/onhold/789e0123-e89b-12d3-a456-426614174002/resolve' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "123e4567-e89b-12d3-a456-426614174000", "status": "updated", "message": "Resource updated successfully" } ---- .. _post-apijobjobdisplayidonholdonholdidcomment: POST /api/job/{jobDisplayId}/onhold/{onHoldId}/comment ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `jobDisplayId` (string, path) *(required)*: No description available - `onHoldId` (integer, 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.post( "/api/job/{jobDisplayId}/onhold/{onHoldId}/comment" , jobDisplayId=2000000 , onHoldId=789e0123-e89b-12d3-a456-426614174002 , data= { "example": "data" } ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/job/{jobDisplayId}/onhold/{onHoldId}/comment \ jobDisplayId=2000000 \ onHoldId=789e0123-e89b-12d3-a456-426614174002 .. 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/onhold/789e0123-e89b-12d3-a456-426614174002/comment' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" } ---- .. _get-apijobjobdisplayidonholdfollowupusers: GET /api/job/{jobDisplayId}/onhold/followupusers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **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}/onhold/followupusers" , jobDisplayId="2000000" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/job/{jobDisplayId}/onhold/followupusers \ jobDisplayId=2000000 .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/job/2000000/onhold/followupusers' **Sample Response:** .. toggle:: .. code-block:: json :linenos: [] ---- .. _get-apijobjobdisplayidonholdfollowupusercontactid: GET /api/job/{jobDisplayId}/onhold/followupuser/{contactId} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `jobDisplayId` (string, path) *(required)*: No description available - `contactId` (integer, 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}/onhold/followupuser/{contactId}" , jobDisplayId=2000000 , contactId=456e7890-e89b-12d3-a456-426614174001 ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/job/{jobDisplayId}/onhold/followupuser/{contactId} \ jobDisplayId=2000000 \ contactId=456e7890-e89b-12d3-a456-426614174001 .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/job/2000000/onhold/followupuser/456e7890-e89b-12d3-a456-426614174001' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _put-apijobjobdisplayidonholdonholdiddates: PUT /api/job/{jobDisplayId}/onhold/{onHoldId}/dates ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `jobDisplayId` (string, path) *(required)*: No description available - `onHoldId` (integer, 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.put( "/api/job/{jobDisplayId}/onhold/{onHoldId}/dates" , jobDisplayId=2000000 , onHoldId=789e0123-e89b-12d3-a456-426614174002 , data= { "example": "data" } ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw put /api/job/{jobDisplayId}/onhold/{onHoldId}/dates \ jobDisplayId=2000000 \ onHoldId=789e0123-e89b-12d3-a456-426614174002 .. tab:: curl .. code-block:: bash curl -X PUT \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "example": "data" }' \ 'https://api.abconnect.co/api/job/2000000/onhold/789e0123-e89b-12d3-a456-426614174002/dates' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "123e4567-e89b-12d3-a456-426614174000", "status": "updated", "message": "Resource updated successfully" }