{"uid":"cap_uxqTA7WBjcgu94P_gkfCN","slug":"www-miniup-io-121e33cf","name":"MiniUp File Create or Replace","description":"Create or replace a file in an app owned by the paying wallet.","url":"https://www.miniup.io/api/x402/apps/:siteId/files","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object"},"queryParams":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["siteId"],"properties":{"paths":{"type":"array","items":{"type":"string"},"maxItems":100},"siteId":{"type":"string","maxLength":128,"minLength":1}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__E8DXfHke9MO0Wl9i-jCV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates or replaces a file in a MiniUp app owned by the paying wallet, enabling app asset management via x402 micropayment.","exampleAgentPrompt":"Add a new file called 'config.json' to my MiniUp app with site ID abc123, replacing any existing version, with the content '{\"theme\": \"dark\"}'.","exampleUseCases":null,"resultDescription":"Returns confirmation that the file was created or replaced in the specified MiniUp app, including metadata about the stored file such as its path and status within the app.","failureModes":["Invalid or non-existent siteId returns 404 not found","Wallet not authorized as app owner returns 403 forbidden","Malformed file content or missing required fields returns 400 bad request","Insufficient USDC balance for the $0.003 micropayment returns payment failure","File path conflicts with reserved system paths may return 409 conflict"],"whenToPreferThis":"Use this endpoint when you need to programmatically create or overwrite a specific file within an existing MiniUp app, particularly when the app is already set up and you need to update individual file assets. Prefer this over presigned upload URLs when dealing with smaller files that can be sent inline rather than requiring a separate multipart upload flow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:33:58.210Z","isFirstParty":false}