Nodes - Model Create

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

Name

Description

ModelCreate

A Model specific flow-node. Invokes the Create 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 Create API.

yes

string

Instance parameters

These are all specified by the chosen model.

Example

 Expand source
 "model.create": {
 "type": "ModelCreate",
 "config": {
   "model": "appc.arrowdb/acl"
 },
 "parameters": [
   {
     "name": "name",
     "value": "$.params[\"appc.arrowdb/acl\"].name"
   },
   {
     "name": "readers",
     "value": "$.params[\"appc.arrowdb/acl\"].readers"
   },
   {
     "name": "writers",
     "value": "$.params[\"appc.arrowdb/acl\"].writers"
   },
   {
     "name": "public_read",
     "value": "$.params[\"appc.arrowdb/acl\"].public_read"
   },
   {
     "name": "public_write",
     "value": "$.params[\"appc.arrowdb/acl\"].public_write"
   },
   {
     "name": "user",
     "value": "$.params[\"appc.arrowdb/acl\"].user"
   },
   {
     "name": "created_at",
     "value": "$.params[\"appc.arrowdb/acl\"].created_at"
   },
   {
     "name": "updated_at",
     "value": "$.params[\"appc.arrowdb/acl\"].updated_at"
   },
   {
     "name": "pretty_json",
     "value": "$.params[\"appc.arrowdb/acl\"].pretty_json"
   },
   {
     "name": "custom_fields",
     "value": "$.params[\"appc.arrowdb/acl\"].custom_fields"
   },
   {
     "name": "user_id",
     "value": "$.params[\"appc.arrowdb/acl\"].user_id"
   }
 ],
 "response": {
   "context": {
     "$": "model"
   },
   "routes": [
     {
       "next": "response.success"
     }
   ]
 }
}
  

Related Links