Back to Collection Items
void ChilkatSample(void)
{
json.UpdateString(L"FullName",L"Account_Channel_chn_AccountChangeEvent"); json.UpdateString(L"Metadata.eventChannel",L"Account_Channel__chn"); json.UpdateString(L"Metadata.selectedEntity",L"AccountChangeEvent"); http.put_AuthToken(L"<access_token>"); success = http.HttpJson(L"POST",L"https://domain.com/services/data/v{{version}}/tooling/sobjects/PlatformEventChannelMember",json,L"application/json",resp);
}
Curl Command
curl -X POST
-H "Authorization: Bearer <access_token>"
-d '{
"FullName": "Account_Channel_chn_AccountChangeEvent",
"Metadata": {
"eventChannel": "Account_Channel__chn",
"selectedEntity": "AccountChangeEvent"
}
}'
https://domain.com/services/data/v{{version}}/tooling/sobjects/PlatformEventChannelMember
Postman Collection Item JSON
{
"name": "Create channel member",
"request": {
"method": "POST",
"header": [
],
"body": {
"mode": "raw",
"raw": "{\n \"FullName\": \"Account_Channel_chn_AccountChangeEvent\",\n \"Metadata\": {\n \"eventChannel\": \"Account_Channel__chn\",\n \"selectedEntity\": \"AccountChangeEvent\"\n }\n}\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{_endpoint}}/services/data/v{{version}}/tooling/sobjects/PlatformEventChannelMember",
"host": [
"{{_endpoint}}"
],
"path": [
"services",
"data",
"v{{version}}",
"tooling",
"sobjects",
"PlatformEventChannelMember"
]
}
},
"response": [
]
}