ocurrence
starts_at
attribute which attempts to normalize the kinds of occurrence.{
"event": {
"locales": [
"en"
],
"products": [
"website"
],
"status": "draft",
"visible_since": "2022-11-09T16:25:58.099512Z",
"visible_until": "2022-11-15T16:25:58.099512Z",
"visible_in_list": true,
"sorting_priority": 0,
"location": {
"en": "Text"
},
"occurrence_description": {
"en": "Text"
},
"occurrence_type": "time_range",
"occurrence": {
"starts_at": "2022-11-09T16:25:58.099512Z",
"ends_at": "2022-11-09T16:25:58.099512Z"
},
"title": {
"en": "Text"
},
"slug": {
"en": "Text"
},
"body": {
"en": "Text"
},
"teaser": {
"en": "Text"
},
"headline": {
"en": "Text"
},
"url": "path/to/:id",
"us_legacy_data": {},
"tag_ids": [
1
],
"category_ids": [
0
]
}
}
curl --location --request PUT 'https://api.mpc.dev.placewise.com/v1/content/management/events/1?dry_run=' \
--header 'X-User-Agent;' \
--header 'X-Product-Name;' \
--header 'X-Loyalty-Club-Slug;' \
--header 'X-Customer;' \
--header 'Authorization;' \
--header 'X-Client-Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"event": {
"locales": [
"en"
],
"products": [
"website"
],
"status": "draft",
"visible_since": "2022-11-09T16:25:58.099512Z",
"visible_until": "2022-11-15T16:25:58.099512Z",
"visible_in_list": true,
"sorting_priority": 0,
"location": {
"en": "Text"
},
"occurrence_description": {
"en": "Text"
},
"occurrence_type": "time_range",
"occurrence": {
"starts_at": "2022-11-09T16:25:58.099512Z",
"ends_at": "2022-11-09T16:25:58.099512Z"
},
"title": {
"en": "Text"
},
"slug": {
"en": "Text"
},
"body": {
"en": "Text"
},
"teaser": {
"en": "Text"
},
"headline": {
"en": "Text"
},
"url": "path/to/:id",
"us_legacy_data": {},
"tag_ids": [
1
],
"category_ids": [
0
]
}
}'
ocurrence
starts_at
attribute which attempts to normalize the kinds of occurrence.status
, visible_since
and visible_until
dates{
"event": {
"id": 1,
"customer_id": 447,
"locales": [
"en"
],
"products": [
"website"
],
"status": "draft",
"visible_since": "2022-11-09T16:25:58.099512Z",
"visible_until": "2022-11-15T16:25:58.099512Z",
"visible_in_list": true,
"sorting_priority": 0,
"location": {
"en": "Text"
},
"occurrence_description": {
"en": "Text"
},
"occurrence_type": "time_range",
"occurrence": {
"starts_at": "2022-11-09T16:25:58.099512Z",
"ends_at": "2022-11-09T16:25:58.099512Z"
},
"group_id": 1,
"store_id": 1001931,
"title": {
"en": "Text"
},
"slug": {
"en": "Text"
},
"body": {
"en": "Text"
},
"teaser": {
"en": "Text"
},
"headline": {
"en": "Text"
},
"image": {
"url": "https://example.com/image.png",
"identifier": "1",
"mime_type": "image/jpeg",
"created_at": "2022-11-09T15:46:00.252860Z",
"updated_at": "2022-11-09T15:46:00.252860Z",
"image_details": {
"width": 1,
"height": 1
}
},
"url": "path/to/:id",
"publication_status": "published",
"us_legacy_data": {},
"tag_ids": [
1
],
"created_at": "2022-11-05T16:25:58.099512Z",
"updated_at": "2022-11-15T16:25:58.099512Z",
"archived_at": "2022-11-15T16:25:58.099512Z",
"category_ids": [
0
]
}
}