Composable Frontend 2.0 Learn more 

  • Commerce Cloud/
    Custom Data/
    Custom Data (Flows) API/
    Fields/
    Delete a Field

    Delete a Field

    DELETE Delete a Field

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

    Parameters

    Path parameters

    NameRequiredTypeDescription
    idRequiredstringThe ID for the field you are requesting to be deleted.

    Headers

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

    Request Examples

    Curl

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

    JavaScript SDK

    const fieldId = "25617d3e-14a6-434c-bfab-3fda87517aaf";
    
    
    // Where `EPCC` is an authenticated client
    await EPCC.Fields.Delete(fieldId);
    

    Response Example

    204 No Content

    Previous
    Update a Field