Trigger a source
post
                    /events
 Triggers the file transfer from the specified source, submitting the file to MFT for processing. Responds with a unique id called "eventSessionid" which is used to track the event status and to get the resulting instance details.
                Request
Supported Media Types
                                - application/json
Body Parameter
                                Root Schema : eventRequest
Type: 
object- properties
- 
            
            Type:objectpropertiesProperties passed with the source name.
- sourceName
- 
            
            
Type:stringName of the source to be triggered.
Nested Schema : properties
Nested Schema : entry
Type: 
array- 
        
        Type:objectentry-items[0]
Nested Schema : entry-items[0]
Type: 
object- key
- 
            
            
Type:string
- value
- 
            
            
Type:string
Example application/json
{
    "sourceName":"src1",
    "properties":{
        "entry":[
            {
                "key":"name1",
                "value":"value1"
            },
            {
                "key":"name2",
                "value":"value2"
            }
        ]
    }
}Response
Supported Media Types
                                - application/json
200 Response 
                                Body
                                    Root Schema : event
Type: 
object- eventSessionId
- 
            
            
Type:stringThe ID of the event created.
Example application/json
{
    "eventSessionId":"799AE14A-9E37-42B9-9789-8F005039953E"
}500 Response 
                                
                                    Something went wrong
                                
                                
                                
                                
                                Body
                                    Root Schema : Error information.
Type: 
objectTitle: 
Error information.- errorCode
- 
            
            
Type:stringThe error code that Oracle Managed File Transfer returns.
- errorKey
- 
            
            
Type:stringThe error key that Oracle Managed File Transfer returns.
- errorMessage
- 
            
            
Type:stringA message describing the error that Oracle Managed File Transfer returns.
Example application/json
{
    "errorCode":"MFT-5423",
    "errorKey":"MFT_WS_EVENT_SERVICE_SOURCE_DONT_EXITS_OR_NOT_DEPLOYED",
    "errorMessage":"Error in processing EventService request. The source Source1 either does not exist or not deployed"
}Examples
Example of Request Body
The following example shows the contents of the request body in JSON format:
{
  "sourceName": "src1",
  "properties": {
	"entry": [
	  {
		"key": "name1",
		"value": "value1"
	  },
	  {
		"key": "name2",
		"value": "value2"
	  }
			 ]
	}
} 
 Example of Response Body: 200 Response
The following example shows the contents of the response body for a successful request in JSON format:
{
	"eventSessionId":"799AE14A-9E37-42B9-9789-8F005039953E"
}   
 Example of Response Body: 500 Response
The following example shows the contents of the response body for an unsuccessful request in JSON format:
  {
	"errorCode":"MFT-5423"
	"errorKey":"MFT_WS_EVENT_SERVICE_SOURCE_DONT_EXITS_OR_NOT_DEPLOYED"
	"errorMessage":"Error in processing EventService request. The source {source} either doesn't exist or not deployed"             
  }