curl -X POST https://win.oneshotagent.com/v1/tools/build \
-H "Content-Type: application/json" \
-H "X-Agent-ID: 0xYourWalletAddress" \
-d '{
"build_id": "550e8400-e29b-41d4-a716-446655440000",
"product": {
"name": "TaskFlow 2.0",
"description": "Now with AI automation! AI-powered task management for remote teams.",
"pricing": "Free tier, Pro $15/mo, Team $35/mo"
}
}'
import { OneShot } from "@oneshot-agent/sdk";
const agent = new OneShot({ privateKey: process.env.AGENT_PRIVATE_KEY });
// Using the dedicated updateBuild method
const result = await agent.updateBuild({
build_id: "550e8400-e29b-41d4-a716-446655440000",
product: {
name: "TaskFlow 2.0",
description: "Now with AI automation! AI-powered task management for remote teams.",
pricing: "Free tier, Pro $15/mo, Team $35/mo"
}
});
console.log("Updated URL:", result.url);
{
"error": "payment_required",
"payment_request": {
"chain_id": 8453,
"token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5.00",
"recipient": "0x..."
},
"context": {
"tool": "build",
"quote_id": "quote_xyz789",
"is_update": true,
"type": "saas",
"product_name": "TaskFlow 2.0",
"pricing": {
"base_price": "10.00",
"update_discount": "-5.00",
"total": "5.00"
},
"expires_at": "2024-01-15T12:00:00Z"
}
}
{
"request_id": "660e8400-e29b-41d4-a716-446655440001",
"status": "completed",
"result": {
"status": "deployed",
"url": "https://taskflow.oneshotagent.com",
"design_score": 8.7
}
}
Build
Update Build
Update an existing website with new content or configuration
POST
/
v1
/
tools
/
build
curl -X POST https://win.oneshotagent.com/v1/tools/build \
-H "Content-Type: application/json" \
-H "X-Agent-ID: 0xYourWalletAddress" \
-d '{
"build_id": "550e8400-e29b-41d4-a716-446655440000",
"product": {
"name": "TaskFlow 2.0",
"description": "Now with AI automation! AI-powered task management for remote teams.",
"pricing": "Free tier, Pro $15/mo, Team $35/mo"
}
}'
import { OneShot } from "@oneshot-agent/sdk";
const agent = new OneShot({ privateKey: process.env.AGENT_PRIVATE_KEY });
// Using the dedicated updateBuild method
const result = await agent.updateBuild({
build_id: "550e8400-e29b-41d4-a716-446655440000",
product: {
name: "TaskFlow 2.0",
description: "Now with AI automation! AI-powered task management for remote teams.",
pricing: "Free tier, Pro $15/mo, Team $35/mo"
}
});
console.log("Updated URL:", result.url);
{
"error": "payment_required",
"payment_request": {
"chain_id": 8453,
"token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5.00",
"recipient": "0x..."
},
"context": {
"tool": "build",
"quote_id": "quote_xyz789",
"is_update": true,
"type": "saas",
"product_name": "TaskFlow 2.0",
"pricing": {
"base_price": "10.00",
"update_discount": "-5.00",
"total": "5.00"
},
"expires_at": "2024-01-15T12:00:00Z"
}
}
{
"request_id": "660e8400-e29b-41d4-a716-446655440001",
"status": "completed",
"result": {
"status": "deployed",
"url": "https://taskflow.oneshotagent.com",
"design_score": 8.7
}
}
Overview
The Update Build API allows you to modify an existing website. It reuses the same hosting infrastructure, providing faster deployments and discounted pricing while maintaining your existing URL and SEO.Authentication
Requires x402 payment. First call returns a quote (402), second call with payment executes.Request Body
string
required
The
request_id from the original build’s completed result. This identifies which website to update.object
required
string
Website type (optional, keeps existing if not specified)
string[]
Updated sections to include
object
Lead capture configuration
object
Updated brand settings
object
Updated image URLs
string
Custom domain
Quote Response (402)
Returns pricing with update discount applied:boolean
true for update requestsstring
Discount amount applied
Execution Response (202)
Same as create, but updates existing deployment.curl -X POST https://win.oneshotagent.com/v1/tools/build \
-H "Content-Type: application/json" \
-H "X-Agent-ID: 0xYourWalletAddress" \
-d '{
"build_id": "550e8400-e29b-41d4-a716-446655440000",
"product": {
"name": "TaskFlow 2.0",
"description": "Now with AI automation! AI-powered task management for remote teams.",
"pricing": "Free tier, Pro $15/mo, Team $35/mo"
}
}'
import { OneShot } from "@oneshot-agent/sdk";
const agent = new OneShot({ privateKey: process.env.AGENT_PRIVATE_KEY });
// Using the dedicated updateBuild method
const result = await agent.updateBuild({
build_id: "550e8400-e29b-41d4-a716-446655440000",
product: {
name: "TaskFlow 2.0",
description: "Now with AI automation! AI-powered task management for remote teams.",
pricing: "Free tier, Pro $15/mo, Team $35/mo"
}
});
console.log("Updated URL:", result.url);
{
"error": "payment_required",
"payment_request": {
"chain_id": 8453,
"token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5.00",
"recipient": "0x..."
},
"context": {
"tool": "build",
"quote_id": "quote_xyz789",
"is_update": true,
"type": "saas",
"product_name": "TaskFlow 2.0",
"pricing": {
"base_price": "10.00",
"update_discount": "-5.00",
"total": "5.00"
},
"expires_at": "2024-01-15T12:00:00Z"
}
}
{
"request_id": "660e8400-e29b-41d4-a716-446655440001",
"status": "completed",
"result": {
"status": "deployed",
"url": "https://taskflow.oneshotagent.com",
"design_score": 8.7
}
}
Benefits of Updates
- Faster deployments: Reuses existing infrastructure
- Discounted pricing: Significant savings vs new builds
- Same URL: Maintains existing domain and SEO
- Version history: Previous versions accessible in GitHub
Store the
request_id from your initial build to use for future updates.