Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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!
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.
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
}
I have posted a step-by-step guide to doing this in the Product Innovation page here.