Updating Application Name, Platform or Partition

When you want to change the name, platform or partition of an application, you send an HTTP PUT to the Application resource with the new details. The old information will be removed and the new information entered in its place. Note that if you do not have a production Tropo account, you will not be able to change the partition to production.

Request

    URL:

    https://api.tropo.com/v1/applications/123456

    Method:

    PUT

    Headers:

    accept:application/json
    
    content-type:application/json
    accept:text/xml
    
    content-type:text/xml
    application/x-www-form-urlencoded

    Request Body:

    {
    "name":"new app updated",
    "platform":"webapi",
    "partition":"production"
    }
    <application>
        <name>new app updated</name>
        <platform>webapi</platform>
        <partition>production</partition>
    </application>
    name=new+app&platform=webapi&partition=production

Response

    Response Body:

    {"href":"https://api.tropo.com/v1/applications/123456"}
    <reference href="https://api.tropo.com/v1/applications/123456/"/>
    {"href":"https://api.tropo.com/v1/applications/123456"}

Next example shows how to delete an application.