cURL
curl --request POST \ --url https://live.copilot.fabric.inc/data-customer/v1/trait \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-site-context: <x-site-context>' \ --data '{ "traitId": "1001", "name": "VIP" }'
{ "_id": "61604a30fdfacd0009816e44", "isDeleted": false, "traitId": "1001", "name": "VIP", "createdAt": "2021-08-30T23:20:42.822Z", "updatedAt": "2021-08-30T23:20:42.822Z" }
Was this page helpful?