Segments
Créer un segment
Créez une niche avec la configuration de votre vitrine.
POST
/segmentssegments:writeDemande
namestring · bodyNom du segment.obligatoireslugstring · bodyLimace publique.facultatifdescriptionstring · bodyDescription.facultatifstore_namestring · bodyNom de la vitrine.facultatifstore_taglinestring · bodyPhrase depuis la fenêtre.facultatifstore_colorstring · bodyCouleur principale.facultatifauto_expandboolean · bodyPermet l'expansion automatique.facultatifdistributionstring · bodyStratégie de distribution.facultatifwaitlistboolean · bodyActive la file d'attente.facultatifExemple
curl
curl -X POST 'https://achadu.com/api/v1/segments' \
+ -H 'Authorization: Bearer ach_live_...' \
+ -H 'Accept: application/json' \
+ -H 'Content-Type: application/json' \
+ --data '{
"name": "My integration",
"slug": "string",
"description": "string",
"store_name": "string"
}'Réponse
201Ressource créée4xxErreur avec le code, le message et request_id