en_header_cid = str(uuid.uuid4())
en_body_cid = str(uuid.uuid4())
requests.put(
f"{BASE_URL}/message-contents/{default_mc_id}",
headers=headers_json,
json={
"id": default_mc_id,
"structure": [
{
"kind": "section",
"sectionType": "header",
"children": [{
"id": en_header_cid,
"kind": "variant",
"variantType": "Offering",
"componentId": CT_OFFERING,
"labelId": 101,
"children": [{"text": "Find your calm"}],
}],
},
{
"kind": "section",
"sectionType": "body",
"children": [{
"id": en_body_cid,
"kind": "variant",
"variantType": "ValueProposition",
"componentId": CT_VALUE_PROPOSITION,
"labelId": 103,
"children": [{"text": "5 minutes a day reduces stress hormones 30%."}],
}],
},
],
"deeplink": None,
"deeplink_dataset_field_id": None,
},
).raise_for_status()
# Add remaining English alternates
requests.post(f"{BASE_URL}/variants/create/bulk", headers=headers_json, json=[
{"component_id": en_header_cid, "content": "Breathe and begin", "label_id": 102},
{"component_id": en_header_cid, "content": "A moment of stillness awaits", "label_id": 101},
{"component_id": en_body_cid, "content": "Fall asleep faster and wake up restored.", "label_id": 103},
]).raise_for_status()