Skip to main content

Replace app configuration

Admin-only. Upload JSON file; id in payload must match URL.

Request​

Method: PUT
Path: /api/apps/{id}

Authentication: Not required

Parameters​

NameTypeInRequiredDescription
idstringpathYes

Responses​

200 - Replaced​

400 - Missing file, ID mismatch, or invalid schema​

403 - Requires admin role​

Examples​

cURL​

curl -X PUT \
-H "Content-Type: application/json" \
http://localhost:3000/api/apps/{id} \
-d '{"example": "data"}'

JavaScript​

const response = await fetch('http://localhost:3000/api/apps/{id}', {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
// Request data
}),
});

const data = await response.json();
console.log(data);

This documentation is automatically generated from the OpenAPI specification.