Create a sustainability page
Create a public https://sustainability.lune.co/<slug> page to communicate your climate impact efforts.
Parameters
The sustainability page status which determines whether it is visible to the public.
- enabled
- disabled
The sustainability page slug. The slug is used to identify the page publicly and should be unique.
The sustainability page title stat format.
- by_volume
- by_price
One of
The sustainability page custom description. Only displayed when description
is set to by_custom_description
.
The sustainability page sections that will be displayed in the page. Only a single instance of each section type is allowed and the order is irrelevant.
Returns
Returns: SustainabilityPage object
The sustainability page status which determines whether it is visible to the public.
- enabled
- disabled
The sustainability page slug. The slug is used to identify the page publicly and should be unique.
The sustainability page title stat format.
- by_volume
- by_price
One of
The sustainability page custom description. Only displayed when description
is set to by_custom_description
.
The sustainability page sections that will be displayed in the page. Only a single instance of each section type is allowed and the order is irrelevant.
curl 'https://api.lune.co/v1/sustainability-pages' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-X POST \
-d '{
"status": "enabled",
"slug": "acme",
"title": "by_volume",
"sections": [
"bundles_breakdown",
"certificates"
]
}'
{
"status": "enabled",
"slug": "acme",
"title": "by_volume",
"description": {
"Description": "by_equivalent"
},
"custom_description": "This is a custom description",
"sections": [
"bundles_breakdown",
"certificates"
]
}