• Custom Data/
    Custom Data (Flows) API/
    Entry Relationships/
    Delete Entry Relationships

    Delete Entry Relationships

    Removing a relationship between an entry and resources deletes the relationships specified in the payload.

    DELETE Delete Entry Relationships

    https://api.moltin.com/v2/flows/:flowSlug/entries/:entryId/relationships/:fieldSlug
    

    Remove all relationships between an entry and resources.

    Parameters

    Path parameters

    NameRequiredTypeDescription
    fieldSlugRequiredstringThe slug of the entry this field belongs to.
    entryIdRequiredstringThe ID of the entry this field belongs to.
    flowSlugRequiredstringThe slug of the Flow the entry belongs to.

    Headers

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

    Request Examples

    Curl

    curl -X DELETE https://api.moltin.com/v2/flows/:flowSlug/entries/:entryId/relationships/:fieldSlug \
         -H "Authorization: Bearer XXXX" \
         -H "Content-Type: application/json"
    

    JavaScript SDK

    const flowSlug = "flow-slug";
    const entryId = "25617d3e-14a6-434c-bfab-3fda87517aaf";
    const fieldSlug = "field-slug";
    
    
    // Where `EPCC` is an authenticated client
    await EPCC.Flows.DeleteEntryRelationship(flowSlug, entryId, fieldSlug);
    

    Response Example

    204 No Content

    Was this helpful?

    Previous
    Update Entry Relationships