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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
johnnywong120
Contributor II
Contributor II

Used Talend API Tester to execute plan with POST method but failed with 415 error code

 

Tried to use Talend API Tester. I followed the instruction on this page below. But it failed with error code 415. I have no idea what should I do. Any suggestion and help will be appreciated. Thanks!

https://community.talend.com/s/article/Using-the-Talend-Cloud-Management-Console-Public-API-O2Ndn?la...

o

  

https://api.us.cloud.talend.com/tmc/v2.6/executables/plans

o

  

Use POST method in Query Parameters

o

  

with executionPlanId,

o

  

executionId = "{pull from other GET method to pull the list of plan with the executionId}"

o

  

and Authorization = "bearer {personal token id}",

o

  

Accept = "application/json",

o

  

Content-Type = "application/x-www.form-urlencoded"

Response

ERROR:

·

        

415

Unsupported Media Type The 415 (Unsupported Media Type) status code indicates that the origin server is refusing to service the request because the payload is in a format not supported by this method on the target resource.  The format problem might be due to the request's indicated Content-Type or Content-Encoding, or as a result of inspecting the data directly.

0695b00000htgamAAA.png

https://community.talend.com/s/article/Using-the-Talend-Cloud-Management-Console-Public-API-O2Ndn?la...

Labels (3)
2 Replies
Anonymous
Not applicable

Hello @Tak Wong​ ,

If you open the TMC api console by the URL https://api.us.cloud.talend.com/tmc/swagger/swagger-ui.html

To execute a plan , it need to invoke the api /executions/plan with POST method

it's required to setup Content-Type=application/json and the body like

{

 "executable": "b91cf8b2-5dd1-4b18-915b-4c447cee5267",

 "executionPlanId": "0798b8d1-0e12-472f-be02-a0f04e792daa",

 "stepId": "09043c9f-02d0-41f6-b3cb-0ea53ffde377",

 "rerunOnlyFailedTasks": true

}

0695b00000hti1uAAA.png 

EdwardOst
Employee
Employee

I have posted a step-by-step guide to doing this in the Product Innovation page here.