Publish API
The Publish API informs the Fusion application to perform certain operations.
The API will return a promise to which we can add a then-catch block. The then block would return the operation's status and any data returned after the process is completed, and the catch block will give the error details if the operation isn't executed successfully.
Syntax
publish: (payload: IOperationPublishPayload) => Promise<IOperationResponsePayload>;
Parameters
| Parameter Name | Required? | Description |
|---|---|---|
| payload | Yes | Request details for the subscription with corresponding event name. |