IRPCObjectTypesAdmin.AddObjectTypeItem

View as Markdown

Administration API / specialized admin session

Adds an item to a value list as an administrator.

ServiceObject type administration MFiles.IRPCObjectTypesAdmin
gRPC method/MFiles.IRPCObjectTypesAdmin/AddObjectTypeItem
HTTP (mf-http-grpc)POST /grpc/v1/add-object-type-item
RequestAddObjectTypeItemRequest
ResponseAddObjectTypeItemResponse
Book and levelAdministration API, specialized
Kindadmin
SessionRequired: the session ID from LogIn in the mfiles-session-id-bin metadata.
Idempotentno
Returns metadata structure versionno
Streamingnone (unary)

Remarks

Request: AddObjectTypeItemRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
vlitemValueListItemThe item to add. item_info.obj_id.type names the value list; the item ID and GUID are ignored and assigned by the server.
vlitem.item_infoItemInfoThe item's identity and name: obj_id.type is the value list ID, obj_id.item_id.internal_id the item ID (unique within the list only), plus name, guid, external_id and flags. options.is_deleted marks a deleted item.
vlitem.item_info.obj_idObjIDThe object id or value list item id. Includes the object type or value list id.
vlitem.item_info.namestringThe name of the item.
vlitem.item_info.external_id_statusExtIDStatusThe status of this item's external ID.Values: EXT_IDSTATUS_UNKNOWN (0), EXT_IDSTATUS_EXTERNAL (1), EXT_IDSTATUS_INTERNAL (2), EXT_IDSTATUS_DISCARDED (3), EXT_IDSTATUS_NOT_AVAILABLE (4), EXT_IDSTATUS_EXTERNAL_REDUCED (5).
vlitem.item_info.external_idstringThe external ID (display ID) of this item. unset means that the external ID is the same as the internal ID.
vlitem.item_info.guidstringGUID for the item.
vlitem.item_info.optionsITEMFLAGSBit flags that provide additional information on the item (e.g. is the object deleted).
vlitem.item_info.external_repository_icon_idstringThe ID of the item's icon.
vlitem.has_parentboolTrue if the item has a parent item in the same (hierarchical) list.
vlitem.has_ownerboolTrue if the item belongs to an item of the owner list (ValueList.owner_object_type).
vlitem.parent_idint32With has_parent, the item ID of the parent item; otherwise ignored.
vlitem.owner_idint32With has_owner, the item ID of the owner item in the owner list.
vlitem.owner_namestringThe name of the owner item.
vlitem.automatic_permissionsAutomaticPermissionsIf set, specifies the automatic permissions for an object for which the user selects this item.
vlitem.automatic_permissions.permissionsNamedACLThe automatic permissions for an object for which the user selects this item.
vlitem.automatic_permissions.is_defaultboolTrue if these automatic permissions are not private i.e. they are not directly specified for (owned by) this item but they come from somewhere else, e.g. from the default/common automatic permissions of the object type.
vlitem.automatic_permissions.use_object_permissionsboolIf true the object/item's own permissions are used as its automatic permissions.
vlitem.iconBytesIf set, contains the icon of this item in .ICO format.
vlitem.icon.valuebytesArray of bytes.

Response: AddObjectTypeItemResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
resultValueListItemThe item as stored, with its new ID, GUID and default automatic permissions.
result.item_infoItemInfoThe item's identity and name: obj_id.type is the value list ID, obj_id.item_id.internal_id the item ID (unique within the list only), plus name, guid, external_id and flags. options.is_deleted marks a deleted item.
result.item_info.obj_idObjIDThe object id or value list item id. Includes the object type or value list id.
result.item_info.namestringThe name of the item.
result.item_info.external_id_statusExtIDStatusThe status of this item's external ID.Values: EXT_IDSTATUS_UNKNOWN (0), EXT_IDSTATUS_EXTERNAL (1), EXT_IDSTATUS_INTERNAL (2), EXT_IDSTATUS_DISCARDED (3), EXT_IDSTATUS_NOT_AVAILABLE (4), EXT_IDSTATUS_EXTERNAL_REDUCED (5).
result.item_info.external_idstringThe external ID (display ID) of this item. unset means that the external ID is the same as the internal ID.
result.item_info.guidstringGUID for the item.
result.item_info.optionsITEMFLAGSBit flags that provide additional information on the item (e.g. is the object deleted).
result.item_info.external_repository_icon_idstringThe ID of the item's icon.
result.has_parentboolTrue if the item has a parent item in the same (hierarchical) list.
result.has_ownerboolTrue if the item belongs to an item of the owner list (ValueList.owner_object_type).
result.parent_idint32With has_parent, the item ID of the parent item; otherwise ignored.
result.owner_idint32With has_owner, the item ID of the owner item in the owner list.
result.owner_namestringThe name of the owner item.
result.automatic_permissionsAutomaticPermissionsIf set, specifies the automatic permissions for an object for which the user selects this item.
result.automatic_permissions.permissionsNamedACLThe automatic permissions for an object for which the user selects this item.
result.automatic_permissions.is_defaultboolTrue if these automatic permissions are not private i.e. they are not directly specified for (owned by) this item but they come from somewhere else, e.g. from the default/common automatic permissions of the object type.
result.automatic_permissions.use_object_permissionsboolIf true the object/item's own permissions are used as its automatic permissions.
result.iconBytesIf set, contains the icon of this item in .ICO format.
result.icon.valuebytesArray of bytes.