clockify.json•8.07 kB
{
"nodeType": "n8n-nodes-base.clockify",
"displayName": "Clockify",
"description": "Consume Clockify REST API",
"version": 1,
"properties": [
{
"name": "name",
"displayName": "Client Name",
"type": "string",
"default": "",
"description": "Name of client being created",
"required": true,
"displayOptions": {
"show": {
"resource": [
"client"
],
"operation": [
"create"
]
}
}
},
{
"name": "clientId",
"displayName": "Client ID",
"type": "string",
"default": "",
"displayOptions": {
"show": {
"resource": [
"client"
],
"operation": [
"delete"
]
}
}
},
{
"name": "returnAll",
"displayName": "Return All",
"type": "boolean",
"default": false,
"description": "Whether to return all results or only up to a given limit",
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"client"
]
}
}
},
{
"name": "limit",
"displayName": "Limit",
"type": "number",
"default": 100,
"description": "Max number of results to return",
"typeOptions": {
"minValue": 1,
"maxValue": 500
},
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"client"
],
"returnAll": [
false
]
}
}
},
{
"name": "additionalFields",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "If provided, clients will be filtered by name",
"placeholder": "Add Field",
"options": [
{
"name": "archived",
"displayName": "Archived",
"type": "boolean",
"default": false
},
{
"name": "name",
"displayName": "Name",
"type": "string",
"default": "",
"description": "If provided, clients will be filtered by name"
}
],
"displayOptions": {
"show": {
"resource": [
"client"
],
"operation": [
"getAll"
]
}
}
},
{
"name": "updateFields",
"displayName": "Update Fields",
"type": "collection",
"default": {},
"description": "Address of client being created/updated",
"placeholder": "Add Field",
"options": [
{
"name": "address",
"displayName": "Address",
"type": "string",
"default": "",
"description": "Address of client being created/updated"
},
{
"name": "archived",
"displayName": "Archived",
"type": "boolean",
"default": false
}
],
"displayOptions": {
"show": {
"operation": [
"update"
],
"resource": [
"client"
]
}
}
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "create",
"description": "Create a client",
"options": [
{
"name": "Create",
"value": "create",
"description": "Create a client"
},
{
"name": "Delete",
"value": "delete",
"description": "Delete a client"
},
{
"name": "Get",
"value": "get",
"description": "Get a client"
},
{
"name": "Get Many",
"value": "getAll",
"description": "Get many clients"
},
{
"name": "Update",
"value": "update",
"description": "Update a client"
}
],
"displayOptions": {
"show": {
"resource": [
"client"
]
}
}
},
{
"name": "projectId",
"displayName": "Project ID",
"type": "string",
"default": "",
"required": true,
"displayOptions": {
"show": {
"resource": [
"project"
],
"operation": [
"delete"
]
}
}
},
{
"name": "tagId",
"displayName": "Tag ID",
"type": "string",
"default": "",
"required": true,
"displayOptions": {
"show": {
"resource": [
"tag"
],
"operation": [
"delete"
]
}
}
},
{
"name": "taskId",
"displayName": "Task ID",
"type": "string",
"default": "",
"description": "ID of task to delete",
"required": true,
"displayOptions": {
"show": {
"resource": [
"task"
],
"operation": [
"delete"
]
}
}
},
{
"name": "filters",
"displayName": "Filters",
"type": "collection",
"default": {},
"description": "Text to match in the task name",
"placeholder": "Add Filter",
"options": [
{
"name": "is-active",
"displayName": "Is Active",
"type": "boolean",
"default": false
},
{
"name": "name",
"displayName": "Name",
"type": "string",
"default": "",
"description": "Text to match in the task name"
}
],
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"task"
]
}
}
},
{
"name": "start",
"displayName": "Start",
"type": "dateTime",
"default": "",
"required": true,
"displayOptions": {
"show": {
"resource": [
"timeEntry"
],
"operation": [
"create"
]
}
}
},
{
"name": "timeEntryId",
"displayName": "Time Entry ID",
"type": "string",
"default": "",
"required": true,
"displayOptions": {
"show": {
"resource": [
"timeEntry"
],
"operation": [
"delete"
]
}
}
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "project",
"options": [
{
"name": "Client",
"value": "client"
},
{
"name": "Project",
"value": "project"
},
{
"name": "Tag",
"value": "tag"
},
{
"name": "Task",
"value": "task"
},
{
"name": "Time Entry",
"value": "timeEntry"
},
{
"name": "User",
"value": "user"
},
{
"name": "Workspace",
"value": "workspace"
}
]
},
{
"name": "workspaceId",
"displayName": "Workspace Name or ID",
"type": "options",
"default": [],
"description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
"required": true,
"displayOptions": {
"hide": {
"resource": [
"workspace"
]
}
}
}
],
"credentialsConfig": [
{
"name": "clockifyApi",
"required": true
},
{
"name": "resource",
"required": false
}
],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}