Procore.Api.QualitySafetyIncidentsIncidentAttachments (procore_sdk v0.3.0)
API calls for all endpoints tagged QualitySafetyIncidentsIncidentAttachments.
Summary
Functions
Create Attachment Creates an attachment for the specified Incident.
Functions
Link to this function
rest_v10_projects_project_id_incidents_incident_id_attachments_post(connection, procore_company_id, project_id, incident_id, attachment, opts \\ [])
@spec rest_v10_projects_project_id_incidents_incident_id_attachments_post( Tesla.Env.client(), integer(), integer(), integer(), String.t(), keyword() ) :: {:ok, Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()} | {:ok, Procore.Model.IncidentAttachment1.t()} | {:error, Tesla.Env.t()}
Create Attachment Creates an attachment for the specified Incident.
Parameters
connection(Procore.Connection): Connection to serverprocore_company_id(integer()): Unique company identifier associated with the Procore User Account.project_id(integer()): Unique identifier for the project.incident_id(integer()): Incident IDattachment(String.t): Incident Attachment. To upload an attachment you must upload the entire payload asmultipart/form-datacontent-type with theattachmentfile.opts(keyword): Optional parameters:run_configurable_validations(boolean()): Whether or not Configurable validations from the Incident/Injury Configurable Field Set should be run (default: false). See (https://developers.procore.com/reference/configurable-field-sets#list-project-configurable-field-sets) for a list of Configurable validations enabled on this project.
Returns
{:ok, Procore.Model.IncidentAttachment1.t}on success{:error, Tesla.Env.t}on failure