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
Changes a site you already built. Send the original build’srequest_id as build_id. Updates deploy faster and cost less than a new build, and the URL and SEO stay the same.
Authentication
Requires x402 payment. The first call returns a quote (402); the second, with payment, runs the update.Request Body
string
required
The
request_id from the original build’s completed result. Identifies the site to update.object
required
string
Website type. Keeps the existing type if omitted.
string[]
Sections to include
object
Lead capture configuration
object
Updated brand settings
object
Updated image URLs
string
Custom domain
Quote Response (402)
Returns pricing with the update discount applied:boolean
true for update requestsstring
Discount amount applied
Execution Response (202)
Same as create, but updates the 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
Updates deploy faster and cost less than new builds. The domain and SEO stay the same.Save the
request_id from your initial build for future updates.