Unable to create a deployment via API

I am able to login via API and receive back a JWT.
I can also list devices and list users via API calls.

However, when I attempt to create a deployment (POST /api/management/v1/deployments) via API, I receive HTML back from the server with the message “404 Not Found” embedded in it.

I am using the same $MENDER_SERVER_URI for all of the calls.

I am running version 2.3 of the Mender management server.

I greatly appreciate any suggestions anyone may have.

Hi @jmeirow,

Could you please share more details on how you are constructing your calls?

Also the end-point to create a deployment is

POST /api/management/v1/deployments/deployments

Mirzak,

Thank you! That was it. My call to the API is now working as expected.

Apparently I was not reading the documentation correctly (base path of /api/management/v1/deployments + path of /deployments. )

Thanks again.

1 Like

please share detail about deployment api call
i have alot of confusion in it

curl -vvv -k URL/api/management/v1/deployments/artifacts -H “Authorization: Bearer ${JWT}” -H “Transfer-Encoding: chunked” -F artifact=@
i used this command to upload artifact its work prefectly but confusion on creating deployment

curl -k URL/api/management/v1/deployments/deployments -H “Authorization: Bearer ${JWT}” -H “Transfer-Encoding: chunked” -H “name=” -H “artifact_name=”

curl -k URL/api/management/v1/deployments/deployments -H “Authorization: Bearer ${JWT}” -H “Transfer-Encoding: chunked” -F “name= ” -F “artifact_name= ” plz check both