How it is set
The template is built like any other page: tokens are plain text in it, replaced at render time.
Declare a record type and its fields
POST /api/agent/v1/modeles/creer/
{
"nom": "Plan", "slug": "plan",
"gabarit_de_page": 87, "est_un_produit": true,
"champs": [
{"code": "tagline", "libelle": "Tagline", "type": "text"},
{"code": "details", "libelle": "Details", "type": "rich_text"}
]
}
List the products of one type, with the automatic link
PUT /api/agent/v1/blocs/606/contenu/
{
"type": "DYN_RESOURCE_GRID",
"dyn_resource_grid": {
"source": "PRODUCT",
"type_de_produit": "subscription",
"colonnes_ordinateur": 3,
"colonnes_telephone": 1,
"libelle_bouton": "Learn more"
}
}