🚀 Apps
Update an App
This endpoint updates an existing app based on the provided App ID.
PUT
/
v1
/
apps
/
{appId}
Header
Path
Body
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
requiredAn API key for your org.
x-metal-client-id
string
requiredA Client ID for your org.
Path Parameters
appId
string
requiredThe 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.
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"]
}
}