# api: suggestions

**URL:** <https://community.fly.io/t/api-suggestions/732>\
**Category:** General\
**Created:** [February 10, 2021, 9:45am UTC](https://community.fly.io/t/api-suggestions/732 "2021-02-10T09:45:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jens](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/jens/32/193_2.png) [@Jens](https://community.fly.io/u/Jens)\
**Post date:** [February 10, 2021, 9:45am UTC](https://community.fly.io/t/api-suggestions/732/1 "2021-02-10T09:45:14Z")

</div>

app.config.definition.services[0].internal\_port is of type int  
app.config.definition.services[0]ports[0].port is of type string

How about using int all the way?

To create an app, I have to supply a name, ok.  
Then I get back an id of type ID and a name of type String, both are the same.  
Now that I want to update/configure apps, I have to use the appId again, which is of type ID.

To get the deployment status, it’s app(name: String!) again.  
There’s also internal id, but this is always 0.

Maybe you could decide on one single way of doing things to make the API a bit easier to use?  
ports always int OR String but not both  
app access always by ID OR name but not a mixture

Thanks! =)

---

<div class="post-metadata">

**Author:** ![michael](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/michael/32/16_2.png) [@michael](https://community.fly.io/u/michael)\
**Post date:** [February 10, 2021, 8:50pm UTC](https://community.fly.io/t/api-suggestions/732/2 "2021-02-10T20:50:13Z")

</div>

You’re suggestions are on spot on. Our API, config, even flyctl started as prototypes that evolved into production. Each time we learned something new and changed our minds is another inconsistency. 🙂

At some point I’d like to go back and clean those up along with adding docs for the API/config. The API is getting a lot more use lately, so maybe over the next few months we’ll make some time.
