We would like to start using the job attachment webhooks in order to ensure that the job cards get sent where they need to go:
"job.attachment.created"
"job.attachment.updated"
"job.attachment.deleted"
However, when we ran a test we were a bit disappointed to see that there is no information on which job the attachment is for? Is there an endpoint that will allow us to get this data as I'm only aware of the ones that require a JobID.
Also, does adding an attachment trigger a job.updated webhook or has it been moved solely to these webhooks?
Code: Select all
{
"ID": "job.attachment.updated",
"name": "Job",
"build": "xxxxxx.simprosuite.com",
"action": "attachment.updated",
"description": "Attachment #fn5hgCfBRCg9UmygH6qtozdiD8w8hsIJ7xa0eJfMnN8 has been updated.",
"date_triggered": "2023-06-20T15:58:38+01:00",
"reference": {
"companyID": 0
}
},
{
"ID": "job.attachment.created",
"name": "Job",
"build": "xxxxxx.simprosuite.com",
"action": "attachment.created",
"description": "Attachment #s2oFbaMkm657T_wRMYSmtzecXTiptUkCrYH4Nkw695M has been created.",
"date_triggered": "2023-06-20T16:11:16+01:00",
"reference": {
"companyID": 0
}
},
{
"ID": "job.attachment.deleted",
"name": "Job",
"build": "xxxxx.simprosuite.com",
"action": "attachment.deleted",
"description": "Attachment #R6HAo7cF9LC5hcnk7LYY7OEXHGqm-hQH1wGXRQpLjf8 has been deleted.",
"date_triggered": "2023-06-20T16:30:56+01:00",
"reference": {
"companyID": 0
}
}Michelle
DEVELOPER CENTER