UI에서 적용된 인텔리전스 대상 을 관리하는 것 외에도 NerdGraph API를 사용할 수 있습니다.
팁
NerdGraph를 시작하는 데 도움이 필요 하면 NerdGraph 소개를 참조하세요.
목적지 나열 및 필터링
destinations
쿼리를 사용하면 계정당 모든 목적지에 대해 페이지를 매길 수 있습니다.또한 일부 필터링 기능을 허용합니다.
목적지 만들기
대상을 생성하려면 대상 유형마다 다른 입력을 제공해야 합니다.양방향 통합을 허용하는 통합에 선택적 two_way_integration
속성을 사용할 수 있습니다.
목적지 업데이트
대상을 업데이트할 때 대상의 모든 속성을 제공할 필요는 없습니다.예를 들어, 이름만 업데이트하려는 경우에만 이름을 제공하면 됩니다.
mutation { aiNotificationsUpdateDestination( accountId: YOUR_ACCOUNT_ID destinationId: YOUR_destination_ID destination: { name: "Updated destination Name" } ) { destination { id name } }}
대상 테스트
NerdGraph API를 통해 대상을 테스트할 수 있습니다.대상을 생성하기 전이나 후에 수행할 수 있습니다.
mutation { aiNotificationsTestDestination( accountId: YOUR_ACCOUNT_ID destination: { type: EMAIL name: "Destination Name" properties: [{ key: "email", value: YOUR_EMAIL }] } ) { error { details } details result }}
mutation { aiNotificationsTestDestinationById( accountId: YOUR_ACCOUNT_ID destinationId: YOUR_DESTINATION_ID ) { error { details } details result }}
목적지 삭제
NerdGraph API를 통해 목적지를 삭제할 수 있습니다.
mutation { aiNotificationsDeleteDestination( accountId: YOUR_ACCOUNT_ID destinationId: YOUR_DESTINATION_ID ) { ids error { details } }}
중요
Entity type channel is in use
이라는 실패 메시지를 받은 경우 계속하기 전에 대상에서 사용하는 채널을 식별하고 삭제해야 합니다. 이를 수행하려면 먼저 대상과 연관된 모든 채널을 찾은 다음 각 채널을 개별적으로 삭제하십시오.
{ actor { account(id: YOUR_ACCOUNT_ID) { aiNotifications { channels(filters: { destinationId: YOUR_DESTINATION_ID }) { entities { id name } } } } }}
mutation { aiNotificationsDeleteChannel( accountId: YOUR_ACCOUNT_ID channelId: YOUR_CHANNEL_ID ) { ids error { details } }}