Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Team,
I am trying to test to update the Task's artifact version which are on Talend cloud. Using below details to test this on Postman tool
URL :
<host>/orchestration/executables/tasks/<taskId>
Body :
{
"name"
:"<task_name>"
,
"description"
:""
,
"workspaceId"
:"<workspace_id>"
,
"artifact"
: {
"id"
:"<artifact_id>"
,
"version"
:"artifact_version_to_be_updated"
}
}
authorization: Personal cloud token
I am able to connect to Talend cloud API through Postman .But getting below error message while performing this.
Response :{
"status"
:400
,
"message"
:"step: <artifact_name> - no connection configured"
,
"requestId"
:"<request_id>"
}
Please Help on this.
Thanks,
Rita
Hi
This is an example body JSON string I used on a tRest component to update a task, please compare and check the body string, make sure you pass the right artifact id and version.
"{
\"workspaceId\":\"5f6f6f551484f20001b5d7cc\",
\"name\":\"Get06_NewCases\",
\"description\": \"Task detail description\",
\"artifact\": {
\"id\": \"5f9a797daeaea17c0b0a88e3\",
\"version\": \"0.1.3.20210902030554\"
}
}"
Regards
Shong
Hi Shong,
I also tried to provide body in this format which you suggested using Rest component. But still getting same error.
Can you let me know what parameter, Authorization details you mentioned while using this component in studio.
Thanks,
Rita
Hi Rita
These are the configurations on tRest I used to update a task description.
You can get these task information by executing this API
/executables/tasks/{taskId}
// get task by id
Regards
Shong
Hi Shong,
In this API call can you confirmed the service account token which you used has the Operations- Manage(Id: TMC_OPERATOR) Permission?
I am still getting below error although I am passing correct values in all parameter in the body as you suggested.
Response :{
"status":400,
"message":"step: <artifact_name> - no connection configured",
"requestId":"<request_id>"}
Thanks,
Ritz
Hi Shong,
In this API call can you confirmed the service account token which you used has the Operations- Manage(Id: TMC_OPERATOR) Permission?
I am still getting below error although I am passing correct values in all parameter in the body as you suggested.
Response :{
"status":400,
"message":"step: <artifact_name> - no connection configured",
"requestId":"<request_id>"}
Thanks,
Ritz