not able to call the update machines API

I was playing around with the Fly Machines Rest APIs, and all of them are working fine except for update machines.

Here’s a sample update request I am posting

curl --location --request POST 'https://api.machines.dev/v1/apps/<app_name>/machines/<id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "config": {
    "image": "flyio/fastify-functions",
    "env": {
      "APP_ENV": "test2"
    },
    "services": [
      {
        "ports": [
          {
            "port": 443,
            "handlers": [
              "tls",
              "http"
            ]
          },
          {
            "port": 80,
            "handlers": [
              "http"
            ]
          }
        ],
        "protocol": "tcp",
        "internal_port": 8080
      }
    ]
  }
}'

I keep getting the response

{
    "error": "You are not allowed to create machines"
}

I am able to create machines just fine using the create endpoint. In the update JSON payload all I am changing is, removing the name and region params, and updating an env var value.

Help please.

Hi!

That’s likely a specific account restriction - do you have a credit card on file? You can email the support@ address and include your login email/username if you’d like us to look more into it!

Yup, I have a credit card on file. Dropping an email. Thanks