Portal Link Schema
Champs
Portal Link Schema
Schema for links a service provider offers its customers in the customer portal, optionally targeted at organisations or customer roles
title
Link label shown to the customer
url
Target: https://<host>…, mailto:… or tel:… (anything else is rejected)
description
Optional one-line explanation
category
Free-text group; categories are ordered by the smallest sortOrder inside
iconType
Show the site favicon or a built-in icon
faviconiconiconName
Built-in icon (iconType "icon")
globedownloadkeycloudshieldphonelifebookmailfilenullfaviconDataUrl
Favicon as base64 image data URL (iconType "favicon")
sortOrder
Ascending display order
featured
Highlighted at the top of the portal page
active
false = draft, invisible to customers
visibleFrom
Visible from (ISO); null = immediately
visibleUntil
Visible until (ISO); null = unlimited
audienceMode
all customers, selected organisations, or selected customer roles
allpartiesrolesaudiencePartyIds
Organisation party ids (audienceMode "parties")
audienceRoleIds
Customer role ids, role_definitions with isCustomerRole (audienceMode "roles")
clicks30d
Read-only: clicks of the last 30 days
clicksByDay
Server-managed click counter per tenant-local day; never client-written
Aucun champ ne correspond au filtre.
Endpoints standard
Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :
GET /api/v1/portal_links— Liste, paginée et filtrableGET /api/v1/portal_links/<id>— Une entitéPOST /api/v1/portal_links— CréerPATCH /api/v1/portal_links/<id>— Mise à jour partielleDELETE /api/v1/portal_links/<id>— Suppression logiqueGET /api/v1/portal_links/<id>/timeline— Audit et activités