/updateTrigger
/updateTrigger
Request
Body Params application/json
payloadSignature
string
required
Signature of the payload.
>= 1 characters
payload
object {6}
required
ownerAddr
string
required
The owner address of the position; must be a checksum address.
>= 1 characters
chainId
number
required
The chain id of the network. Must be one of the chains supported by Aperture.
Allowed values:
1421615421613
Example:
1
taskId
number
required
The task id of the trigger in Aperture's automation service.
>= 0
action
oneOf {4}
oneOf, must be valid against exactly one of the subschemas
condition
oneOf {4}
oneOf, must be valid against exactly one of the subschemas
expiration
integer
required
Unix timestamp in seconds when this trigger expires.
> 0
Example
{
"payloadSignature": "string",
"payload": {
"ownerAddr": "string",
"chainId": 1,
"taskId": 0,
"action": {
"type": "Close",
"slippage": 0,
"maxGasProportion": 1
},
"condition": {
"type": "Time",
"timeAfterEpochSec": 1
},
"expiration": 1
}
}
Request samples
Responses
The trigger has been successfully updated.(200)
Bad Request(400)
Internal Server Error(500)
The trigger has been successfully updated.
HTTP Code: 200
Content Type : JSON
Data Schema
object {0}
Example
{}
Modified at 10 months ago