Procore.Api.QualitySafetyInspectionsChecklistScheduleAttachments (procore_sdk v0.3.0)

API calls for all endpoints tagged QualitySafetyInspectionsChecklistScheduleAttachments.

Summary

Functions

Link to this function

rest_v10_projects_project_id_checklist_schedules_schedule_id_attachments_get(connection, procore_company_id, project_id, schedule_id, opts \\ [])

@spec rest_v10_projects_project_id_checklist_schedules_schedule_id_attachments_get(
  Tesla.Env.client(),
  integer(),
  integer(),
  integer(),
  keyword()
) ::
  {:ok,
   Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()}
  | {:ok, [Procore.Model.ChecklistScheduleAttachment.t()]}
  | {:error, Tesla.Env.t()}

List Checklist Schedule Attachments Lists Checklist Schedule Attachments for given Project and Schedule

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • project_id (integer()): Unique identifier for the project.
  • schedule_id (integer()): Checklist Schedule ID
  • opts (keyword): Optional parameters
    • :page (integer()): Page
    • :per_page (integer()): Elements per page

Returns

  • {:ok, [%ChecklistScheduleAttachment{}, ...]} on success
  • {:error, Tesla.Env.t} on failure
Link to this function

rest_v10_projects_project_id_checklist_schedules_schedule_id_attachments_id_delete(connection, procore_company_id, project_id, schedule_id, id, opts \\ [])

Delete Checklist Schedule Attachment Delete the attachment pertaining to the Checklist Schedule Attachment

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • project_id (integer()): Unique identifier for the project.
  • schedule_id (integer()): Checklist Schedule ID
  • id (integer()): Checklist Schedule Attachment ID
  • opts (keyword): Optional parameters

Returns

  • {:ok, nil} on success
  • {:error, Tesla.Env.t} on failure
Link to this function

rest_v10_projects_project_id_checklist_schedules_schedule_id_attachments_post(connection, procore_company_id, project_id, schedule_id, attachment, opts \\ [])

@spec rest_v10_projects_project_id_checklist_schedules_schedule_id_attachments_post(
  Tesla.Env.client(),
  integer(),
  integer(),
  integer(),
  String.t(),
  keyword()
) ::
  {:ok,
   Procore.Model.RestV10CompaniesCompanyIdWorkflowPermanentLogsGet401Response.t()}
  | {:ok, Procore.Model.ChecklistScheduleAttachment.t()}
  | {:error, Tesla.Env.t()}

Create Checklist Schedule Attachment Uploads an Attachment to the specified Checklist Schedule

Parameters

  • connection (Procore.Connection): Connection to server
  • procore_company_id (integer()): Unique company identifier associated with the Procore User Account.
  • project_id (integer()): Unique identifier for the project.
  • schedule_id (integer()): Checklist Schedule ID
  • attachment (String.t): Checklist Schedule Attachment. To upload an attachment you must upload the entire payload as multipart/form-data content-type and specify each parameter as form-data together with the attachment file.
  • opts (keyword): Optional parameters

Returns

  • {:ok, Procore.Model.ChecklistScheduleAttachment.t} on success
  • {:error, Tesla.Env.t} on failure