跳转到内容

Deferred Action Status

此内容尚不支持你的语言。

Certain actions triggered by API takes a long time. Instead of waiting for the task to complete, Teapplix may return a “DeferredActionID”.

You can get a callback from Teapplix when the action completes, or you can call the “DeferredAction” api to query the status:

GET
https://api.teapplix.com/api2/DeferredAction Explorer

GET Request

Query parameters

PropertyTypeDescriptionConstraints
DeferredActionID string Deferred Action ID

GET Response - 200

Deferred Action Operation Result

PropertyTypeDescriptionConstraints
Status string Operation status RequiredOne of: Success, Failure
Messages string[] Messages related to the this request
DeferredAction Deferred Action Details List of deferred action details

Deferred Action Details

List of deferred action details

PropertyTypeDescriptionConstraints
ID integer ID Required
Name string Action Name Required
AddedTime string Timestamp when action was added
StartedTime string Timestamp when action execution was started
FinishedTime string Timestamp when action execution was finished
Status string Status of the action One of: new, queued, working, success, fail, stopped
Result boolean Result of the finished action
Comment boolean Comments to the action result or any other text data

GET Response - 400

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description

GET Response - 401

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description

GET Response - 404

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description

GET Response - 500

Message

PropertyTypeDescriptionConstraints
Success boolean Always false on this envelope. Message is the error envelope (4xx/5xx); Success is kept on the wire so legacy clients can branch on it without parsing the HTTP status. Required
Code integer Indicate error code. Codes list and description are located on help page https://www.teapplix.com/help/?page_id=7115
Message string Message typically associated with errors
Description string[] Detailed description
Test Request