restoreFromTrashBin( )


Restores a deleted draft post from the trash bin by the provided ID.

Uses the draftPostId to restore a deleted draft post from the trash bin.

Method Declaration
Copy
Method Parameters
draftPostIdstringRequired

Draft post ID.

Returns
Return Type:Promise<RestoreFromTrashBinResponse>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?