/** * Cockpit Node - Version 1 * Discriminator: resource=collection, operation=update */ interface Credentials { cockpitApi: CredentialReference; } /** Update a collection entry */ export type CockpitV1CollectionUpdateParams = { resource: 'collection'; operation: 'update'; /** * Name of the collection to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ collection?: string | Expression; /** * Entry ID */ id?: string | Expression | PlaceholderValue; /** * Whether new entry fields should be set via the value-key pair UI or JSON * @default false */ jsonDataFields?: boolean | Expression; /** * Entry data to send as JSON * @displayOptions.show { jsonDataFields: [true] } */ dataFieldsJson?: IDataObject | string | Expression; /** * Entry data to send * @displayOptions.show { jsonDataFields: [false] } * @default {} */ dataFieldsUi?: { /** Field */ field?: Array<{ /** Name of the field */ name?: string | Expression | PlaceholderValue; /** Value of the field */ value?: string | Expression | PlaceholderValue; }>; }; }; export type CockpitV1CollectionUpdateNode = { type: 'n8n-nodes-base.cockpit'; version: 1; credentials?: Credentials; config: NodeConfig; };