Documents ========= Manage documents and files associated with jobs, companies, or contacts. Includes invoices, bills of lading, photos, and other supporting documentation. Quick Reference --------------- .. list-table:: :header-rows: 1 :widths: 10 40 50 * - Method - Endpoint - Description * - GET - /api/documents/get/thumbnail/{docPath} - * - GET - /api/documents/get/{docPath} - * - GET - /api/documents/list - * - POST - /api/documents - * - PUT - /api/documents/update/{docId} - * - PUT - /api/documents/hide/{docId} - .. _get-apidocumentsgetthumbnaildocpath: GET /api/documents/get/thumbnail/{docPath} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `docPath` (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/documents/get/thumbnail/{docPath}" , docPath="example-value" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/documents/get/thumbnail/{docPath} \ docPath=example-value .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/documents/get/thumbnail/example-value' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _get-apidocumentsgetdocpath: GET /api/documents/get/{docPath} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `docPath` (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/documents/get/{docPath}" , docPath="example-value" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/documents/get/{docPath} \ docPath=example-value .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/documents/get/example-value' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _get-apidocumentslist: GET /api/documents/list ~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Query Parameters:* - `jobDisplayId` (string, query): No description available - `itemId` (string, query): No description available - `rfqId` (integer, 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.get( "/api/documents/list" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/documents/list .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/documents/list' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _post-apidocuments: POST /api/documents ~~~~~~~~~~~~~~~~~~~ **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/documents" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/documents .. tab:: curl .. code-block:: bash curl -X POST \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ 'https://api.abconnect.co/api/documents' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" } ---- .. _put-apidocumentsupdatedocid: PUT /api/documents/update/{docId} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `docId` (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/documents/update/{docId}" , docId=789e0123-e89b-12d3-a456-426614174002 , data= { "example": "data" } ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw put /api/documents/update/{docId} \ docId=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/documents/update/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-apidocumentshidedocid: PUT /api/documents/hide/{docId} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `docId` (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/documents/hide/{docId}" , docId=789e0123-e89b-12d3-a456-426614174002 ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw put /api/documents/hide/{docId} \ docId=789e0123-e89b-12d3-a456-426614174002 .. tab:: curl .. code-block:: bash curl -X PUT \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ 'https://api.abconnect.co/api/documents/hide/789e0123-e89b-12d3-a456-426614174002' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "123e4567-e89b-12d3-a456-426614174000", "status": "updated", "message": "Resource updated successfully" }