Agents
Change what an app instance builds and how it starts.
Call to point the instance at another branch, fix a build command, or replace the private-repository token. The pod reads this at start, so the change takes effect on the next POST /agents/{id}/rebuild.
patch/agents/{id}/app
Request
- Base URL: https://agentspodium.com/api
- URL: https://agentspodium.com/api/agents/{id}/app
- Auth: HTTP bearer
Path parameters
idstring required
Agent id (agt_…).
Request body
Example request
{
"repo": "https://github.com/owner/project",
"buildCommand": "npm ci && npm run build",
"outputDir": "dist",
"startCommand": "node server.js",
"rootDir": "app"
}Response
OK.
Example response
{
"agent": {
"id": "agt_…",
"app": {
"repo": "https://github.com/owner/project",
"buildCommand": "npm ci && npm run build",
"outputDir": "dist",
"startCommand": "node server.js",
"rootDir": "app"
}
},
"applied": "on the next rebuild"
}Changes
No recorded changes to this operation across all 1 revision of this API.