Hello;
We are trying to use the API TdmJobService, to publish some sinthetic Data in a Oracle Database, using the /TDMJobService/api/ca/v1/jobs End Point.
But, we are having some troubles here, because we need to pass a value to a variable we use in that generator.
We didn´t find a way to pass it... It always returning the Default Value...
Here are some examples, of the content we tried to pass... (Variable name is NumPro, numeric)
1.
{
"name":"Teste_Generator",
"description":"Publish via Web Services",
"projectId":2695,
"type":"PUBLISHJOB",
"origin":"generation",
"scheduledTime":"2018-06-22T12:12:00Z",
"email":"TTT@XX.com.br",
"parameters":{
"NumPro":"2",
"generatorId":2876,
"jobType":"PUBLISH",
"title":"Publish via Web Services",
"publishTo":"TGT",
"target":"GREL",
"dataTargetProfile":"ORADES5A_TARGET",
"repeatCount":1,
"email":"TTT@XX.com.br"
}
}
2.
{
"name":"Teste_Generator",
"description":"Publish via Web Services",
"projectId":2695,
"type":"PUBLISHJOB",
"origin":"generation",
"scheduledTime":"2018-06-22T12:12:00Z",
"email":"TTT@XX.com.br",
"parameters":{
"generatorId":2876,
"jobType":"PUBLISH",
"title":"Publish via Web Services",
"publishTo":"TGT",
"target":"GREL",
"dataTargetProfile":"ORADES5A_TARGET",
"repeatCount":1,
"email":"TTT@XX.com.br"
},
"jobParams": [
{
"paramKey": "NumPro",
"paramValue": "2"
}
]
}
3.
{
"name":"Teste_Generator",
"description":"Publish via Web Services",
"projectId":2695,
"type":"PUBLISHJOB",
"origin":"generation",
"scheduledTime":"2018-06-22T12:12:00Z",
"email":"TTT@XX.com.br",
"parameters":{
"generatorId":2876,
"jobType":"PUBLISH",
"title":"Publish via Web Services",
"publishTo":"TGT",
"target":"GREL",
"dataTargetProfile":"ORADES5A_TARGET",
"repeatCount":1,
"email":"TTT@XX.com.br"
},
"variableDefaults": [
{
"name": "NumPro",
"value": "2"
}
]
}