Try also including the other directives shown in the example, not just the published parameters. Example:
{
"publishedParameters": [
{
"name": "MAXY",
"value": "42"
},
{
"name": "THEMES",
"value": [
"airports",
"cenart"
]
}
],
"TMDirectives": {
"rtc": false,
"description": "",
"tag": ""
},
"NMDirectives": {
"directives": [],
"successTopics": [],
"failureTopics": []
}
}
thanks, that doesn't make any difference
Works for me (using Insomnia rather than Postman, but otherwise identical):
If you still get error messages, check the FME Server log files for hints.
I see the issue now, you seem to be missing a part of the endpoint URL. It should be
.../transformations/commands/transact/...
In the screenshot you're missing the "commands" part.
I see the issue now, you seem to be missing a part of the endpoint URL. It should be
.../transformations/commands/transact/...
In the screenshot you're missing the "commands" part.
Hi @david_r , can I ask where the "commands" portion of the url comes from? I don't see this anywhere in the FME Server Rest API V3 documentation. It shows this as:
/fmerest/v3/transformations/transact/
Hi @david_r , can I ask where the "commands" portion of the url comes from? I don't see this anywhere in the FME Server Rest API V3 documentation. It shows this as:
/fmerest/v3/transformations/transact/
You're right, thanks for catching this! My example was (unintentionally) using v2 of the API, which explains the different endpoints.
I redid my tests with the v3 endpoint and otherwise the exact same parameters, and it also works as expected:

i will close the issue, it is postman related, I wrote a python-script and how no issues at all :-( bit weird to be honest but that is how it is
i will close the issue, it is postman related, I wrote a python-script and how no issues at all :-( bit weird to be honest but that is how it is
Hi @trd2021 ,
I'm glad you were able to get it working with a Python Script. It is very curious that it is not working for you in Postman. I don't know if you want to try and troubleshoot this, but just in case you do I thought I'd note that one odd thing about the 400 Bad Request response that is returned is that it is HTML. Since your Content-Type header is set to application/json the response should be JSON, and usually, it would return a message with a clear error explaining the bad request e.g. if I edit the body to make it invalid the response is:
Is there anything in the HTML body that might explain where this message is coming from. If you can save and share the response I'd be happy to take a closer look as well.