|
instance.create
|
| |
|
description
Create a instance of an object.
Parameter element are used to set each object data field.
Type and format of parameter can be specified (see parameter documentation).
privilege-required
anyone
tx-support
true
|
| |
|
INSTRUCTION
|
|
name
|
type
|
default-value
|
required
|
description
|
| object-name |
string |
none |
true |
Name of the object from wich the instance is created. |
| locale |
string |
none |
false |
Locale (language_country) of the content. |
|
| |
|
PARAMETER
|
|
name
|
type
|
default-value
|
required
|
description
|
| *modify-user-id |
integer |
none |
false |
Modify user id of the instance (used only by a root account for specific operations). |
| policy-read |
string |
none |
false |
Privilege required to display the content
(owner cannot be applied). |
| *modify-date |
date |
none |
false |
Modication date of the instance (used only by a root account for specific operations). |
| *create-date |
date |
none |
false |
Creation date of the instance (used only by a root account for specific operations). |
| *create-user-id |
integer |
none |
false |
Creator user id of the instance (used only by a root account for specific operations). |
|
| |
|
ERROR
|
|
|
id
|
msg
|
| 1 |
Failed to set field |
| 2 |
Incorrect policy |
| 10 |
Field mandatory |
| 11 |
Wrong field type |
| 12 |
Value out of min/max bound |
|
| |
|
RESULT
|
|
|
name
|
description
|
| id |
Id of the new instance. |
|
| |
|
EXAMPLE
|
|
|
example 1
|
<nvd:command name="instance.create" object-name="myobject" locale="en_US">
<nvd:parameter name="myfield1">blabla</nvd:parameter>
<nvd:parameter name="myfield2">dummy</nvd:parameter>
<nvd:result name="id" variable="instance-id" />
</nvd:command>
|
|