Nodes - Model Delete

This document describes model delete and provides instance configuration and parameters information.

Name

Description

ModelDelete

A Model specific flow-node. Invokes the Delete API on a specified model and returns the response.

Instance configuration

Property

Description

Required

Type

model

The name of the model of which to invoke the Delete API.

yes

string

Instance parameters

These are all specified by the chosen model.

Example

 Expand source
 "model.delete": {
 "type": "ModelDelete",
 "config": {
   "model": "appc.arrowdb/acl"
 },
 "parameters": [
   {
     "name": "id",
     "value": "$.params.id"
   }
 ],
 "response": {
   "context": {
     "$": "model"
   },
   "routes": [
     {
       "conditions": [
         {
           "key": "$._deleted",
           "eq": true
         }
       ],
       "next": "response.success"
     },
     {
       "next": "response.error.notfound"
     }
   ]
 }
}
  

Related Links