Gallery

Attachment Bulk Actions

Changed on

Multi-purpose bulk dispatcher for Job gallery attachments. The action field selects one of five operations — update_visibility, add_tags, remove_tags, copy, or move — each with its own action_options shape (see request body). All actions are scoped to the authenticated company; copy/move additionally verify both jobs belong to the caller's company before making any change.move relocates attachments to the destination job and never fails on a destination duplicate: a soft-deleted row at the destination is recovered, an already-active row is skipped, and once the attachment is settled at the destination the source row is hard-deleted.copy never modifies the source row.

post/attachments/bulk_actions

Request

  • Base URL
    https://dc-region.zuperpro.com/api
  • URL
    https://dc-region.zuperpro.com/api/attachments/bulk_actions
  • Auth
    API key in header x-api-key

Request body

action'update_visibility' | 'add_tags' | 'remove_tags' | 'copy' | 'move' required

Which bulk operation to perform.

filter.module'JOB'

Required for update_visibility, copy, and move. Only JOB is currently supported.

filter.module_uidstring

Required for update_visibility, copy, and move. The job_uid to scope/source the action from (from_job_uid for copy/move).

attachment_uidsstring[]

Optional. Narrows the matched attachments to this specific set.

is_photo_feedboolean

Optional. Treated as true automatically when filter.module_uid is omitted.

Response

200

object required

Changes