PUT
/
v1
/
apps
/
{appId}
curl --location --request PUT 'https://api.getmetal.io/v1/apps/6535126922af1b89d6d22ffa' \
--header 'Content-Type: application/json' \
--header 'x-metal-api-key: <api-key>' \
--header 'x-metal-client-id: <client-id>' \
--data-raw '{
    "name": "Updated Metal App",
    "indexes": ["index1"]
}'
{
    "data": {
        "id": "6535126922af1b89d6d22ffa",
        "name": "Updated Metal App",
        "indexes": ["index1"]
    }
}

Auth Headers

x-metal-api-key
string
required

An API key for your org.

x-metal-client-id
string
required

A Client ID for your org.

Path Parameters

appId
string
required

The unique identifier of the app you want to update.

Body

name
string

The updated name for the App.

indexes
array

An updated array of an index connected to the app.

Response

data
App Object

Feel free to adjust as per the exact requirements and specifics of the API endpoint.