Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Ritz05
Contributor
Contributor

API call to update Artifact version on Talend Cloud

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

Labels (2)
5 Replies
Anonymous
Not applicable

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

Ritz05
Contributor
Contributor
Author

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

Anonymous
Not applicable

Hi Rita

These are the configurations on tRest I used to update a task description.

 

0695b00000nPe60AAC.pngYou can get these task information by executing this API

/executables/tasks/{taskId}

// get task by id

 

 

Regards

Shong

Ritz05
Contributor
Contributor
Author

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>"}

 

 0695b00000rSE4tAAG.pngThanks,

Ritz

Ritz05
Contributor
Contributor
Author

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>"}

 

 0695b00000rSE4tAAG.pngThanks,

Ritz