Create a gateway data destination in Signals Gateway and return the information of the created information.
POST https://{signals_gateway_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation createDataDestinationMutation(
$tenantId: ID!
$input: CreateDataDestinationInput!
) {
tenantMutations(tenantId: $tenantId) {
dataDestinationMutations {
createDataDestination(input: $input) {
id
name
type
active
}
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_________________________________________________________________________________________________________
input: CreateDataDestinationInput {
name: String!
type: DataDestinationType!
pipelineId: ID!
}
| Field | Description |
|---|---|
| Required |
Required |
| Field | Description |
|---|---|
| Required |
| Required |
| Required |
DataDestination
| Field | Description |
|---|---|
| The created data destination object contains the ID, name, type, status, etc. |
| Code | Description |
|---|---|
401 | Not authorized to view event metrics |
500 | Internal server error |
Query
mutation createDataDestinationMutation(
$tenantId: ID!
$input: CreateDataDestinationInput!
) {
tenantMutations(tenantId: $tenantId) {
dataDestinationMutations {
createDataDestination(input: $input) {
id
name
type
active
}
}
}
}
{
"tenantId": "zilSRUW7",
"input": {
"name": "Customized destination 1P46DH",
"type": "CUSTOM_HTTP_API",
"pipelineId": "sg_v1_pl_91c615ad-eea2-4151-93f7-daf89cd16154"
}
}
{
"data": {
"tenantMutations": {
"dataDestinationMutations": {
"createDataDestination": {
"id": "sg_v1_dd_2a9fa3fb-b590-4eda-9a56-34e82ab15a4a",
"name": "Customized destination 1P46DH",
"type": "CUSTOM_HTTP_API",
"active": true
}
}
}
}
}
The query to get all the data destinations with the fields corresponding to a unique account.
POST https://{signals_gateway_domain}/capig/graphql/
_________________________________________________________________________________________________________________
query dataDestinationTableQuery(
$tenantId: ID!
) {
tenantQueries(tenantId: $tenantId) {
dataDestinationsQuery {
id
name
active
type
associatedPipelines {
id
name
type
}
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
| Field | Description |
|---|---|
| Required Unique identifier for the account |
DataDestination list
| Field | Description |
|---|---|
| A list of data destination objects contains the ID, name, type, status, etc |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
Query
query DataDestinationTableView_Query(
$tenantId: ID!
) {
tenantQueries(tenantId: $tenantId) {
dataDestinationsQuery {
id
name
active
type
associatedPipelines {
id
name
type
}
}
}
}
{
"tenantId": "IaoreXfj"
}
{
"data": {
"tenantQueries": {
"dataDestinationsQuery": [
{
"id": "sg_v1_dd_012d8f4c-46e3-4613-b274-c353a6409428",
"name": "Meta Dataset (762280558934145)",
"active": true,
"type": "META_CONVERSIONS_API",
"associatedPipelines": []
},
{
"id": "sg_v1_dd_03495a8d-da72-4073-83f9-4f8618a06518",
"name": "Meta Dataset (2341238446217308)",
"active": true,
"type": "META_CONVERSIONS_API",
"associatedPipelines": []
},
{
"id": "sg_v1_dd_097fb747-e888-47da-88f9-cadbdf8b0889",
"name": "Meta Dataset (1691262618335941)",
"active": true,
"type": "META_CONVERSIONS_API",
"associatedPipelines": [
{
"id": "sg_v1_pl_768909ba-209b-440f-b37a-84fd300ca3a6",
"name": "Conversions API Gateway(1691262618335941)",
"type": "META_CAPI_PIPELINE"
}
]
},
{
"id": "sg_v1_dd_0c1c1665-a963-4ee3-b3c2-5629b39d3e53",
"name": "1P2_C3",
"active": true,
"type": "CUSTOM_HTTP_API",
"associatedPipelines": [
{
"id": "sg_v1_pl_48e22997-24c6-4f69-9da7-ae82657f1fdd",
"name": "1P2",
"type": "GATEWAY_PIPELINE"
}
]
}
]
}
}
}
The mutation to update the fields for a gateway data destination in the Signals Gateway.
POST https://{signals_gateway_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation updateDataDestinationMutation(
$tenantId: ID!
$input: DataDestinationInput!
) {
tenantMutations(tenantId: $tenantId) {
dataDestinationMutations {
updateDataDestination(input: $input) {
id
name
active
}
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_________________________________________________________________________________________________________
input: CreateDataDestinationInput {
id: ID!
name: String!
type: DataDestinationType!
pipelineId: ID!
}
| Field | Description |
|---|---|
| Required Unique identifier for the account. |
| Required Input of the gateway data destination update fields. |
| Field | Description |
|---|---|
| Required |
| The updated name of the gateway data destination |
| Data destination type |
| The updated status of the gateway data destination indicates if it is active or not |
DataDestination
| Field | Description |
|---|---|
| The updated data destination object contains the ID, name, type, status, etc. |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
Query
mutation updateDataDestinationMutation(
$tenantId: ID!
$input: DataDestinationInput!
) {
tenantMutations(tenantId: $tenantId) {
dataDestinationMutations {
updateDataDestination(input: $input) {
id
name
active
}
}
}
}
{
"tenantId": "IaoreXfj",
"input": {
"id": "sg_v1_dd_2a9fa3fb-b590-4eda-9a56-34e82ab15a4a",
"name": "Customized destination 1P46DH",
"destinationType": "CUSTOM_HTTP_API",
"active": false
}
}
{
"data": {
"tenantMutations": {
"dataDestinationMutations": {
"updateDataDestination": {
"id": "sg_v1_dd_2a9fa3fb-b590-4eda-9a56-34e82ab15a4a",
"name": "Customized destination 1P46DH",
"active": false
}
}
}
}
}
The mutation to delete an existing data destination in the Signals Gateway.
POST https://{signals_gateway_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation deleteDataDestinationMutation(
$tenantId: ID!
$id: ID!
) {
tenantMutations(tenantId: $tenantId) {
dataDestinationMutations {
deleteDataDestination(id: $id)
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_________________________________________________________________________________________________________
id: ID!
| Field | Description |
|---|---|
| Required Unique identifier for the account |
| Required Unique identifier for the data destination |
| Unique identifier for the deleted data destination |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
Query
mutation deleteDataDestinationMutation(
$tenantId: ID!
$id: ID!
) {
tenantMutations(tenantId: $tenantId) {
dataDestinationMutations {
deleteDataDestination(id: $id)
}
}
}
{
"tenantId": "IaoreXfj",
"id": "sg_v1_dd_2a9fa3fb-b590-4eda-9a56-34e82ab15a4a"
}
{
"data": {
"tenantMutations": {
"dataDestinationMutations": {
"deleteDataDestination": "sg_v1_dd_2a9fa3fb-b590-4eda-9a56-34e82ab15a4a"
}
}
}
}
The mutation to update the config for a Meta Conversions API type data destination in the Signals Gateway.
POST https://{signals_gateway_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation updateDataDestinationCapiConfigMutation(
$tenantId: ID!
$input: UpdateDataDestinationCapiConfigInput!
) {
tenantMutations(tenantId: $tenantId) {
dataDestinationMutations {
updateDataDestinationCapiConfig(input: $input)
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_________________________________________________________________________________________________________
input: UpdateDataDestinationCapiConfigInput {
id: ID!
metaDatasetId: String!
accessToken: String!
apiVersion: String!
businessId: String!
updateOB: Boolean
}
| Field | Description |
|---|---|
| Required Unique identifier for the account |
Required Input of the Conversions API data destination update fields | |
| Required Unique identifier for the data destination |
| Required The Meta Pixel ID that needs to be integrated |
| Required Access token from MBE setup or manually generated from Events Manager |
| Latest API Version for Graph API |
| Required The business ID of the account |
| If the connection to meta dataset need to update or not. |
DataDestination
| Field | Description |
|---|---|
| Returns if the request is successful or not |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
Query
mutation updateDataDestinationCapiConfigMutation(
$tenantId: ID!
$input: UpdateDataDestinationCapiConfigInput!
) {
tenantMutations(tenantId: $tenantId) {
dataDestinationMutations {
updateDataDestinationCapiConfig(input: $input)
}
}
}
{
"tenantId": "IaoreXfj",
"input": {
"id": "sg_v1_dd_2a9fa3fb-b590-4eda-9a56-34e82ab15a4a",
"metaDatasetId": "1007539807836438",
"accessToken": "sdasdasdsa",
"apiVaersion": "20.0.1"
"businessId": "1007539807836438",
"updateOB": true
}
}
{
"data": {
"tenantMutations": {
"dataDestinationMutations": {
"updateDataDestinationCapiConfig": true
}
}
}
}
The mutation to update the config for a HTTP custom connection type data destination in the Signals Gateway.
POST https://{signals_gateway_domain}/capig/graphql/
_________________________________________________________________________________________________________________
mutation updateDataDestinationHttpConfigMutation(
$tenantId: ID!
$input: UpdateDataDestinationHttpConfigInput!
) {
tenantMutations(tenantId: $tenantId) {
dataDestinationMutations {
updateDataDestinationHttpConfig(input: $input)
}
}
}
_________________________________________________________________________________________________________
tenantId: ID!
_________________________________________________________________________________________________________
input: UpdateDataDestinationHttpConfigInput {
id: ID!
endpoint: String!
httpMethod: HttpMethodType!
authType: AuthType!
payloadSchema: String!
apiKeyAuth: ApiKeyAuth
basicAuth: BasicAuth
clientCredentialsAuth: ClientCredentialsAuth
jsonWebTokenAuth: JsonWebTokenAuth
}
| Field | Description |
|---|---|
| Required Unique identifier for the account |
Input of the Conversions API data destination update fields |
| Field | Description |
|---|---|
| Required Unique identifier for the data destination. |
| Required URL endpoint for the HTTP custom connection. |
| Required Type of the HTTP method. |
| Auth type |
| Required Schema of the payload |
| Structure of the API key auth |
| Structure of the basic auth |
| Structure of the client auth |
| Web token |
DataDestination
| Field | Description |
|---|---|
| Returns if the request is successful or not. |
| Code | Description |
|---|---|
401 | Not authorized to view the data routing |
500 | Internal server error |
Query
mutation useUpdateDataDestinationHttpConfigMutation(
$tenantId: ID!
$input: UpdateDataDestinationHttpConfigInput!
) {
tenantMutations(tenantId: $tenantId) {
dataDestinationMutations {
updateDataDestinationHttpConfig(input: $input)
}
}
}
{
"tenantId": "IaoreXfj",
"input": {
"id": "sg_v1_dd_553fbb56-5348-4553-8215-0ced4a835ff3",
"endpoint": "http://1213123.com",
"httpMethod": "POST",
"authType": "NONE",
"apiKeyAuth": {
"name": "",
"value": "",
"addTo": "HEADER"
},
"basicAuth": {
"credentials": ""
},
"clientCredentialsAuth": {
"clientId": "",
"clientSecret": "",
"authEndpoint": "",
"httpMethod": "GET"
},
"payloadSchema": "{\n \"data\": [\n {% for event in events %}\n {\n \"action_source\": {{action_source}},\n \"event_name\": {{event_name}},\n \"event_time\": {{event_time}},\n \"event_id\": {{event_id}},\n \"user_data\": {\n \"madid\": {{mobile_advertiser_id}},\n \"client_ip_address\": {{client_ip_address}}\n },\n \"custom_data\": {\n \"currency\": {{currency}},\n \"value\": {{value}},\n \"num_items\": {{num_items}}\n },\n \"app_data\": {\n \"advertiser_tracking_enabled\": {{advertiser_tracking_enabled}},\n \"application_tracking_enabled\": {{application_tracking_enabled}}\n }\n }\n {% endfor %}\n ]\n}"
}
}
{
"data": {
"tenantMutations": {
"dataDestinationMutations": {
"updateDataDestinationHttpConfig": true
}
}
}
}