Skip to main content
PATCH
/
action
/
{id}
Update a mini app
curl --request PATCH \
  --url http://localhost:4000/v1/action/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id_user": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "description": "My updated awesome swap mini-app",
  "wallet_address": "0x123abc456def789012345678901234567890abcd",
  "metadata": {
    "name": "My Updated Mini App",
    "version": "1.1.0",
    "settings": {
      "slippage": 1,
      "gas_limit": 350000
    }
  },
  "contract_address": "0x456def789abc012345678901234567890123cdef",
  "type": "Swap",
  "protocol": "traderjoe",
  "tx_hash": "0xabc123def456789abc123def456789abc123def456789abc123def456789abcd",
  "blockchain_network": 43114,
  "blockchain_network_destination": 1,
  "is_active": true,
  "twitter_handle": "johndoe",
  "id_x": "123456789"
}
'
{
  "id": "<string>",
  "id_user": {},
  "integrator_id": {},
  "description": "<string>",
  "wallet_address": "<string>",
  "metadata": {},
  "contract_address": {},
  "type": {},
  "tx_hash": {},
  "blockchain_network": 123,
  "blockchain_network_destination": {},
  "created_at": {},
  "updated_at": {},
  "is_active": {},
  "protocol": {},
  "source": {}
}

Authorizations

Authorization
string
header
required

Use this format: ApiKey <your_api_key>

Path Parameters

id
string
required

Mini app UUID

Body

application/json

Mini app update payload (partial)

id_user
string

UUID of the user

Example:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"

description
string

Description of the mini app

Example:

"My updated awesome swap mini-app"

wallet_address
string

Wallet address

Example:

"0x123abc456def789012345678901234567890abcd"

metadata
object

JSON metadata object

Example:
{
"name": "My Updated Mini App",
"version": "1.1.0",
"settings": { "slippage": 1, "gas_limit": 350000 }
}
contract_address
string

Contract address

Example:

"0x456def789abc012345678901234567890123cdef"

type
enum<string>

Type of the mini app

Available options:
Swap,
Stake,
Transfer Native,
Tips,
Native Cross-Chain,
onboarding
Example:

"Swap"

protocol
string

Protocol used for the mini app

Example:

"traderjoe"

tx_hash
string

Transaction hash

Example:

"0xabc123def456789abc123def456789abc123def456789abc123def456789abcd"

blockchain_network
number

Blockchain network ID (43114 for Avalanche mainnet)

Example:

43114

blockchain_network_destination
number

Destination blockchain network ID (for cross-chain operations)

Example:

1

is_active
boolean

Is the mini app active?

Example:

true

twitter_handle
string

Twitter handle

Example:

"johndoe"

id_x
string

Twitter ID

Example:

"123456789"

Response

Mini app updated successfully

id
string
required
id_user
object
required
integrator_id
object
required
description
string
required
wallet_address
string
required
metadata
object
required
contract_address
object
required
type
object
required
tx_hash
object
required
blockchain_network
number
required
blockchain_network_destination
object
required
created_at
object
required
updated_at
object
required
is_active
object
required
protocol
object
required
source
object
required