/updateTrigger
POST
/updateTriggerRequest
Body Params application/json
payloadSignature
string
required
Signature of the payload.
>= 1 characters
payload
object
required
ownerAddr
string
required
The owner address of the position; must be a checksum address.
>= 1 characters
chainId
enum<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
optional
If populated, update the action to details specified here; otherwise, action details remain unchanged.
condition
optional
If populated, update the condition to details specified here; otherwise, condition details remain unchanged.
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 : JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: a year ago