Update existing artifacts

put

/mftapp/rest/v1/artifacts

Update the specified artifact.

Request

Supported Media Types
Query Parameters
Form Parameters
Back to Top

Response

Supported Media Types

200 Response

Body ()
Root Schema : MFT Artifacts result
Type: object
Title: MFT Artifacts result
Show Source
Nested Schema : failureResults
Type: array
Show Source
Nested Schema : successResults
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source

500 Response

Body ()
Root Schema : schema
Type: object
Show Source
Example Response (application/json)
{
    "errorCode":"MFT-7439",
    "errorKey":"MFT_UTILITY_COULD_NOT_QUERY_MDS_ARTIFACT_ID_BY_NAME",
    "errorMessage":"Unable to find artifact by artifact name src1"
}
Back to Top

Examples

Example of Response Body

The following example shows how to update an existing artifact by submitting a PUT request on the REST resource using cURL.
curl -i -X PUT -H "Content-Type: multipart/form-data" -F "artifacts=@artifact.xml" http://host:port/mftapp/rest/v1/artifacts?previewModeFlag=false

The following example shows the contents of the response body for a successful request in xml format:

<mft-artifacts version="12.2.x.x"> 
	<source> 
		<ftp-embedded name="ES"> 
			<generalProperties contentFolder="/scratch/filein" includeContentInSubfolder="false"/> 
			<advancedProperties includeExcludePatternType="Wildcard"/> 
		</ftp-embedded> 
	</source>
 	<target> 
		<file name="File"> 
			<generalProperties contentFolder="/scratch/fileout" retryInterval="30" retryCount="1" alwaysSaveModifiedFiles="false" propagateSourceSubfolders="false"/> 
			<advancedProperties overwrite="true" concurrentThreshold="20" renameOnCompletion="false"> 
			</advancedProperties> 
		</file> 
	</target> 
	<transfer name="ES to File" priority="medium"> 
		<source name="ES"> 
		</source> 
		<targets> 
			<target name="File"> 
				<postProcessingActions> 
					<TransferNotification order="1" minFileSize="0" fileNamePattern="*" patternType="Wildcard" templateFile="/tmp/notifytestothervariables.eml"> 
					<ContactsToNotify contactType="External" contactDetails="test@oracle.com"> 
					</ContactsToNotify> 
					</TransferNotification> 
				</postProcessingActions> 
			</target> 
		</targets> 
		</security> 
		</security> 
	</transfer> 
</mft-artifacts>	  
Back to Top