/jobnote/file/list
The action returns files attached to a job note.
Request
| Field | Description | Required | |
|---|---|---|---|
note_id | Unique identifier for the job note | number | Yes |
Example:
{
"note_id": 204
}
curl -H 'Content-Type: application/json' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-d '{"note_id":204}' \
https://ppw.web/svc/jobnote/file/list
Response
| Field | Description | Type |
|---|---|---|
files | List of files attached to the job note | array |
Each item in the files array is an object with the following fields:
| Field | Description | Type |
|---|---|---|
file_id | Unique identifier for a file attached the job note | number |
file_name | Name of the file | string |
file_type | MIME type name of the file | string |
Example successful response:
{
"files": [{
"file_id": 48,
"file_name": "Work_Order_Electrical_Repair_Conference_Room_2023-10-05.pdf",
"file_type": "application\/pdf"
}, {
"file_id": 49,
"file_name": "Job_Report_Conference_Room_Electrical_Issue_Repair_2023-10-05.pdf",
"file_type": "application\/pdf"
}]
}
Errors
| Error Type | Description | Status Code |
|---|---|---|
note_id_required | Valid note_id is required | 400 |