Org Web Adapter

hungryroot/jira/be_6865_create_patch_endpoint_for_customer_info_v2.org

ID
91ad48e7-48f2-4477-b8d7-bab6b5b31e63

BE-6865 Create patch endpoint for customer_info V2

- source :: https://hungryroot.atlassian.net/browse/BE-6865

- tags :: Hungryroot API Project

- epic :: EP-411 Eng Parking Lot

- sprint :: HR BE Sprint 102

- status :: Status - Needs QA

Tasks

DONE Have Cursor mock up a PATCH endpoint

workcursorhungryrootprojectep411be6865sprint102
ID
d7d58826-2101-0309-f8a1-fdbddfd2350e

Description

As web transition to Astro for the funnel, we lost the ability

to store utm information because it was previously captured in

UTMMiddleware, and later stored in customer_info when the customer is

created.

Create a PATCH api/v2/customers/:id/customer_info endpoint for updating utm

information.

This should only be updated when they are null, can’t update once they’ve been

updated.

#+begin_src python

utm_source = CharField(required=False)

utm_medium = CharField(required=False)

utm_term = CharField(required=False)

utm_content = CharField(required=False)

utm_campaign = CharFIeld(required=False)

#+end_src