Delete a Template
DELETE
Delete a Template
https://api.moltin.com/v2/flows/:id
Parameters
Path parameters
Name | Required | Type | Description |
---|---|---|---|
id | Required | string | Specifies the ID for the template you want to delete. |
Headers
Name | Required | Type | Description |
---|---|---|---|
Authorization | Required | string | The Bearer token required to get access to the API. |
Request Examples
Curl
curl -X DELETE https://api.moltin.com/v2/flows/:id \
-H "Authorization: Bearer XXXX"
JavaScript SDK
const MoltinGateway = require("@moltin/sdk").gateway;
const Moltin = MoltinGateway({
client_id: "X",
});
const flowId = "XXX";
Moltin.Flows.Delete(flowId).then((flow) => {
// Do something
});
Response Example
204 No Content