Composable Frontend 2.0 Learn more 

  • Products/
    Extending Products/
    Product Templates API/
    Delete a Template

    Delete a Template

    This endpoint is for Administrator use only. Do not use this endpoint on your customer-facing frontends.

    DELETE Delete a Template

    https://useast.api.elasticpath.com/v2/flows/:id
    

    Parameters

    Path parameters

    NameRequiredTypeDescription
    idRequiredstringSpecifies the ID for the template you want to delete.

    Headers

    NameRequiredTypeDescription
    AuthorizationRequiredstringThe Bearer token required to get access to the API.

    Request Examples

    Curl

    curl -X DELETE https://useast.api.elasticpath.com/v2/flows/:id \
        -H "Authorization: Bearer XXXX" \
        -H "Content-Type: application/json" \
    

    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

    
    
    
    Previous
    Update a Template