Execute Function Tasks
API Doc
Overview
Header parameters
x-api-keystringRequired
API key for authentication.
Body
namespacestringRequired
The namespace of the task.
taskNamestringRequired
The name of the task to be executed.
labelstringOptional
Label of the task.
versioninteger · uint32Optional
Version number of the task.
asyncbooleanRequired
If true, the endpoint will retrieve the executionId; otherwise, it will try to return the execution result only if it completes within 60 seconds.
inputstringRequired
Input data required for task execution.
totalSolutionsinteger · uint32Required
Total number of solutions required for the task.
requiredSolutionsinteger · uint32Required
Number of solutions required to complete the task.
taskRequesterTimestampinteger · uint32Required
Task Requester Timestamp. This value is used to calculate the random bits in the node selection Phase.
gasLimitstringOptional
Execution step limit.
Responses
200
Successful operation
application/json
Responseone of
or
400
Bad request, invalid input.
application/json
401
Not authorized.
application/json
402
Payment required.
application/json
500
Internal server error.
application/json
post
/task/function/execute-by-nameAuthorization
API KEY
Last updated
Was this helpful?