Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • API, CLI, and SDK Documentation
  • REST API Documentation
  • Jobs Using REST API
  • Job Policies (REST API)

Item Overwrite Policy Using REST API

Learn how to set the item overwrite policy for migration jobs using the DryvIQ REST API.

Written by Andrea Harvey

Updated at May 2nd, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Insights
    Prebuilt Insights Custom Insights
  • Content
  • Accounts
  • Activity Log
  • Content Scans
  • Migrations
    Migration Jobs Migration Reports Maps Flagged Items Migration Tools
  • Connections
    Supported Platform Connections Creating Connections Connection Maintenance Connection Pools
  • Entity Types
    DryvIQ Available Entity Types Custom Entity Types Entity Type Maintenance
  • Action Sets
    Creating Action Sets Action Sets Maintenance
  • Settings
    License Performance Notifications Extensions Entity Types Settings Display Settings Configuration
  • API, CLI, and SDK Documentation
    REST API Documentation Command-line Interface SDK Development
  • POC Offering
  • Release Notes
+ More

Table of Contents

Overview Job JSON Example

Overview

The Overwrite policy controls DryvIQ's behavior when it detects the same file name on the target platform. The overwrite policy applies only to files; if DryvIQ detects folders with the same name, it merges them. 

Options Behaviors
"item_overwrite": "overwrite"

This is the recommended and default setting.

 

When overwrite policy is configured, it will overwrite the target location when DryvIQ detects an event indicating that a change occurred. If no event is detected, the item overwrite policy is not applicable. Item overwrite behaves the same on the first and subsequent runs. Conflict Policy and Delete Policy are also triggered by event detection. However, overwrite policy will take precedence.

"item_overwrite": "skip"

Not recommended/Special case configuration only

 

When overwrite policy skip is configured, DryvIQ will skip any files that exist on both sides of the given platforms and report it as an error. All other policies may still apply.

 

This is not a recommended configuration because it can lead to unintended discrepancies between the source and destination. For example, when an event is detected to transfer the file using a conflict policy, overwrite skip setting will take precedence. This will veto the transfer decision for existing files and log a warning message.

"item_overwrite": "fail"

Not recommended / Special case configuration only

 

When overwrite policy fail is configured, DryvIQ will fail any files that exist on both sides of the given platforms and report it as an error. All other policies may still apply.

 

This is not a recommended configuration because it can lead to unintended discrepancies between the source and destination. For example, when an event is detected to transfer the file using a conflict policy, overwrite fail setting will take precedence. This will veto the transfer decision for existing files and log a failure message. 

Job JSON Example

{
	"name":"Simple Transfer Job with Overwrite Policy",
	"kind": "transfer",
	"transfer": {
		"item_overwrite": "overwrite",
    	"transfer_type": "copy",
	    "source": {
    		"connection": { "id": "{{nfs_connection}}" },
			"target": {
                "path": "/SourcePath"
			}
    	},
    	"destination": {
    		"connection": { "id": "{{cloud_connection}}" },
    		"target": {
    			"path": "/DestinationPath"
    		}
    	}
	},
	"schedule": {
		"mode": "manual"
	}
}

 

api rest api job migration policy overwrite duplicate

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Connection Management Using REST API
  • Connection Pools Using REST API
  • LDAP Account and Group Maps Using REST API

Copyright 2025 – DryvIQ, Inc.

Knowledge Base Software powered by Helpjuice

Expand