Skip to content

Unable to create a workflow template using http request #11821

Closed Answered by agilgur5
ashokdonepudi asked this question in Q&A
Discussion options

You must be logged in to vote

You're getting a 400 error per the screenshot. invalid character 'a' refers to the first character in your YAML file (the 'a' in apiVersion).

I tried content-type as both JSON and YAML .

I'm not sure if YAML Content-Type is supported. You can use JSON, but you must convert the file to a JSON file. The first character in JSON is an opening brace {.

You also have your Body set to binary in Postman, but I think you want raw.

Note: If I am using the same template data via argo cli I could able to create it successfully.

If you turn on debug logging, the CLI will print out the request it's making to the API.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by agilgur5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/api Argo Server API type/support User support issue - likely not a bug
2 participants