Documents
Manage documents and files associated with jobs, companies, or contacts. Includes invoices, bills of lading, photos, and other supporting documentation.
Quick Reference
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 /api/documents/get/thumbnail/{docPath}
Parameters:
Path Parameters:
docPath (string, path) (required): No description available
Example Request:
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)
ab api raw get /api/documents/get/thumbnail/{docPath} \
docPath=example-value
curl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://api.abconnect.co/api/documents/get/thumbnail/example-value'
Sample Response:
1{
2 "status": "success",
3 "data": {}
4}
GET /api/documents/get/{docPath}
Parameters:
Path Parameters:
docPath (string, path) (required): No description available
Example Request:
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)
ab api raw get /api/documents/get/{docPath} \
docPath=example-value
curl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://api.abconnect.co/api/documents/get/example-value'
Sample Response:
1{
2 "status": "success",
3 "data": {}
4}
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:
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)
ab api raw get /api/documents/list
curl -X GET \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
'https://api.abconnect.co/api/documents/list'
Sample Response:
1{
2 "status": "success",
3 "data": {}
4}
POST /api/documents
Example Request:
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)
ab api raw post /api/documents
curl -X POST \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
'https://api.abconnect.co/api/documents'
Sample Response:
1{
2 "id": "789e0123-e89b-12d3-a456-426614174002",
3 "status": "created",
4 "message": "Resource created successfully"
5}
PUT /api/documents/update/{docId}
Parameters:
Path Parameters:
docId (integer, path) (required): No description available
Example Request:
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)
ab api raw put /api/documents/update/{docId} \
docId=789e0123-e89b-12d3-a456-426614174002
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:
1{
2 "id": "123e4567-e89b-12d3-a456-426614174000",
3 "status": "updated",
4 "message": "Resource updated successfully"
5}
PUT /api/documents/hide/{docId}
Parameters:
Path Parameters:
docId (integer, path) (required): No description available
Example Request:
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)
ab api raw put /api/documents/hide/{docId} \
docId=789e0123-e89b-12d3-a456-426614174002
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:
1{
2 "id": "123e4567-e89b-12d3-a456-426614174000",
3 "status": "updated",
4 "message": "Resource updated successfully"
5}