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


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