mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-11-01 15:52:24 -05:00
new action - Customer Update
This commit is contained in:
parent
2cc989ae68
commit
1b79d21dbd
4 changed files with 142 additions and 2 deletions
|
|
@ -103,7 +103,7 @@ export class S4DSMain implements INodeType {
|
|||
password: credentials.password,
|
||||
};
|
||||
} else if (apiDefinition.requestBody && apiDefinition.requestBody.schema) {
|
||||
// Usar DTO para request body
|
||||
// Usar DTO para request body (POST, PATCH, PUT, etc.)
|
||||
let requestBodyData = this.getNodeParameter('requestBody', i, {});
|
||||
if (typeof requestBodyData === 'string') {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -76,6 +76,23 @@
|
|||
"customer": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
"updateCustomer": {
|
||||
"method": "PATCH",
|
||||
"endpoint": "/customer",
|
||||
"description": "Update an existing customer",
|
||||
"parameters": [],
|
||||
"requiresAuth": true,
|
||||
"requestBody": {
|
||||
"schema": "SetNewCustomerDTO",
|
||||
"required": true
|
||||
},
|
||||
"response": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"result": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue