drift.json•4.75 kB
{
"nodeType": "n8n-nodes-base.drift",
"displayName": "Drift",
"description": "Consume Drift API",
"version": 1,
"properties": [
{
"name": "email",
"displayName": "Email",
"type": "string",
"default": "",
"description": "The email of the contact",
"placeholder": "name@email.com",
"required": true,
"displayOptions": {
"show": {
"resource": [
"contact"
],
"operation": [
"create"
]
}
}
},
{
"name": "additionalFields",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "The name of the contact",
"placeholder": "Add Field",
"options": [
{
"name": "name",
"displayName": "Name",
"type": "string",
"default": "",
"description": "The name of the contact"
},
{
"name": "phone",
"displayName": "Phone",
"type": "string",
"default": "",
"description": "The phone number associated with the contact"
}
],
"displayOptions": {
"show": {
"resource": [
"contact"
],
"operation": [
"create"
]
}
}
},
{
"name": "contactId",
"displayName": "Contact ID",
"type": "string",
"default": "",
"description": "Unique identifier for the contact",
"required": true,
"displayOptions": {
"show": {
"resource": [
"contact"
],
"operation": [
"update"
]
}
}
},
{
"name": "updateFields",
"displayName": "Update Fields",
"type": "collection",
"default": {},
"description": "The email of the contact",
"placeholder": "Add Field",
"options": [
{
"name": "email",
"displayName": "Email",
"type": "string",
"default": "",
"description": "The email of the contact",
"placeholder": "name@email.com"
},
{
"name": "name",
"displayName": "Name",
"type": "string",
"default": "",
"description": "The name of the contact"
},
{
"name": "phone",
"displayName": "Phone",
"type": "string",
"default": "",
"description": "The phone number associated with the contact"
}
],
"displayOptions": {
"show": {
"resource": [
"contact"
],
"operation": [
"update"
]
}
}
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "create",
"description": "Create a contact",
"options": [
{
"name": "Create",
"value": "create",
"description": "Create a contact"
},
{
"name": "Custom Attributes",
"value": "getCustomAttributes",
"description": "Get custom attributes"
},
{
"name": "Delete",
"value": "delete",
"description": "Delete a contact"
},
{
"name": "Get",
"value": "get",
"description": "Get a contact"
},
{
"name": "Update",
"value": "update",
"description": "Update a contact"
}
],
"displayOptions": {
"show": {
"resource": [
"contact"
]
}
}
},
{
"name": "authentication",
"displayName": "Authentication",
"type": "options",
"default": "accessToken",
"options": [
{
"name": "Access Token",
"value": "accessToken"
},
{
"name": "OAuth2",
"value": "oAuth2"
}
]
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "contact",
"options": [
{
"name": "Contact",
"value": "contact"
}
]
}
],
"credentialsConfig": [
{
"name": "driftApi",
"required": true
},
{
"name": "authentication",
"required": false
},
{
"name": "resource",
"required": false
}
],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}