cURL
curl --request POST \ --url https://api.notifique.dev/v1/segments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "definition": { "version": 1, "match": "all", "rules": [ {} ] } } '
{ "success": true, "data": { "id": "<string>", "name": "<string>", "definition": { "version": 1, "match": "all", "rules": [ {} ] }, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } }
Authorization: Bearer sk_live_xxxxx
128
version=1, match=all|any, rules: tag | property | receiveMarketing
Show child attributes
Criado.
Was this page helpful?