Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

TAC API

Hi, I have an issue creating and updating task on TAC using the API. I'm able to create and setup almost all fields, but
I haven't been able to setup "runAsUser" and "log4j Level", this is how my Json looks like:
Create:
{ "actionName": "createTask",
"projectName": "Ingestion",
"jobName": "ADMasterRun",
"authPass": "xxxx", "authUser": "xxxx",
"jobName": "ADMasterRun",
"taskName": "ADMasterRun",
"runAsUser": "rrossel",
"log4jLevel": "Info"}

Also tried updating the task:
{ "actionName": "updateTask",
"taskId" : 178,
"authPass": "xxxx", "authUser": "xxxx",
"jobName": "ADMasterRun",
"projectName": "Ingestion",
"runAsUser": "rrossel", 
   "log4jLevel": "Info" }

I'm using Talend 6.1.1, accessing the API trough http request and after the request, the fields " Run job as OS user (Unix)" is empty and
"Log4j Level" appears as "Off".  
The Json message received after the request seems to be good:
{u'executionTime': {u'seconds': 2, u'millis': 2063}, u'returnCode': 0}
Did I use the right variables names, or it is something that I'm missing?
Thanks for your help.-
Labels (4)
1 Reply
Anonymous
Not applicable
Author

 Command: createTask
----------------------------------------------------------
Description : Add a new execution task in TAC and return the task ID.
- projectName and jobName: the project and job must exist.
- onUnknownStateJob: could be
- contextName: "Default" is the default value.
- pauseOnError :if set to true, pause all the triggers on the task when the task fail.
- targetConductor: could be . "JOBCONDUCTOR" is the default value.
Requires authentication : true
Since : 5.0
Sample :
{
"actionName": "createTask",
"active": true,
"applyContextToChildren": false,
"authPass": "admin",
"authUser": "admin@company.com",
"branch": "trunk",
"contextName": "Default",
"description": "task1 for extracting data from DB1",
"execStatisticsEnabled": false,
"executionServerName": "serv1",
"jobName": "job1",
"jobVersion": "1.0",
"onUnknownStateJob": "WAIT",
"pauseOnError": false,
"projectName": "tproject1",
"regenerateJobOnChange": false,
"taskName": "task1",
"timeout": 3600
}

Hi  
Refer to the API documentation,  the  runAsUser and log4jLevel parameters are not available for createTask command yet. 
Regards
Shong