CreateJobForEngine
CreateJobForEngineResponse CreateJobForEngine(ctx, engineID, optional)
This API create a job for the engine
Required Parameters
| Name | Type | Description | Notes |
|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| engineID | string | EngineID of node-red container request | |
| optional | *CreateJobForEngineOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a CreateJobForEngineOpts struct
| Name | Type | Description | Notes |
|---|
| xCorrelationId | optional.String | Correlation Id that can be passed, traced in the server and will be returned in the response if present in the request | |
| contentType | optional.String | mimetype of the input file | |
| fileName | optional.Interface of os.Fileoptional.os.File | the input file contents |
| inputFileName | optional.String | the original filename of the input file | |
| parameterJSON | optional.String | JSON stringified of map of field names and values if specified in job template | |
| templateName | optional.String | the engine job template to process the input file | |
Return type
CreateJobForEngineResponse
Authorization
api_key
HTTP request headers
- Content-Type: multipart/form-data
- Accept: application/json