IRPCObjectOperations.SetPropertiesWithMetadataAttributedTo

View as Markdown

Vault API / core write session or assertion returns metadata structure version

Sets property values with metadata and records the change as made by a built-in agent user.

ServiceObjects, versions, properties and files MFiles.IRPCObjectOperations
gRPC method/MFiles.IRPCObjectOperations/SetPropertiesWithMetadataAttributedTo
HTTP (mf-http-grpc)POST /grpc/v1/set-properties-with-metadata-attributed-to
RequestSetPropertiesWithMetadataAttributedToRequest
ResponseSetPropertiesWithMetadataAttributedToResponse
Book and levelVault API, core
Kindwrite
SessionRequired: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
Idempotentno
Returns metadata structure versionyes (in the mfiles-metadata-version-bin trailer)
Streamingnone (unary)

Remarks

Used by M-Files automatic metadata features. attributed_to_user_id names the built-in agent user; 0 records no attribution.

Request: SetPropertiesWithMetadataAttributedToRequest

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

FieldTypeDescription
object_versionObjVerThe object version for which the properties belong to.
object_version.obj_idObjIDThe object.
object_version.obj_id.typeint32The object type ID, for example 0 for documents. In a lookup value, the value list ID (for a lookup to objects, the object type ID).
object_version.obj_id.item_idItemIDThe ID of the object within its type, in item_id.internal_id.
object_version.versionObjVerVersionThe version. Usually OBJ_VER_VERSION_TYPE_SPECIFIC with internal_version.
object_version.version.typeObjVerVersionTypeWhat internal_version means. OBJ_VER_VERSION_TYPE_SPECIFIC for a version number.Values: OBJ_VER_VERSION_TYPE_UNINITIALIZED (0), OBJ_VER_VERSION_TYPE_LATEST (1), OBJ_VER_VERSION_TYPE_ANY (2), OBJ_VER_VERSION_TYPE_ALL (3), OBJ_VER_VERSION_TYPE_SPECIFIC (4), OBJ_VER_VERSION_TYPE_VALUE_LIST_ITEM (6), OBJ_VER_VERSION_TYPE_OBJECT_LEVEL_REFERENCE (7).
object_version.version.internal_versionint32The version number, starting from 1, when type is OBJ_VER_VERSION_TYPE_SPECIFIC. The server returns -1 with OBJ_VER_VERSION_TYPE_LATEST.
object_version.version.external_repository_versionstringUsed only for objects in external repositories. Leave empty.
object_version.version.external_repository_sort_keyint64Used only for objects in external repositories. Leave 0.
allow_modifying_checked_in_objectboolWhether to allow modifying a checked-in object (automatic checkout and checkin).
allow_missing_required_propertiesboolWhether to allow missing required properties on the set.
property_values[]repeated PropertyValueWithMetadataThe property values with metadata to set.
property_values[].property_defint32Property definition ID.
property_values[].valueTypedValueWithMetadataThe value of the property.
property_values[].value.typeDatatypeData type. Note. Name of the property can't be isNull because name collision with Objective-C reserved name.
property_values[].value.is_null_valueboolIs the value unset.
property_values[].value.dataTypedValueUnionWithMetadataThe value data as a union, if set.
property_values[].value.value_metadataTypedValueMetadataThe metadata about the typed value. If the value is a Lookup or MSLookup, this data will be in that struct.
attributed_to_user_idint32Built-in agent user ID to attribute the change to, or 0 for no attribution.

Response: SetPropertiesWithMetadataAttributedToResponse

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page. Fields marked (recursive) refer to a type already on their path.

FieldTypeDescription
object_versionObjectVersionExWPWithMetadataThe object version and properties (with metadata) after the operation.
object_version.object_versionObjectVersionExObject info.
object_version.object_version.version_infoObjectVersionObject Version information.
object_version.object_version.object_infoObjectLevelInfoObject-level information.
object_version.properties[]repeated PropertyValueWithMetadataProperty values, or an empty array.
object_version.properties[].property_defint32Property definition ID.
object_version.properties[].valueTypedValueWithMetadataThe value of the property.
object_version.aclAccessControlListIf set, ACL.
object_version.acl.checked_out_to_userint32Specifies the ID of the user who has extended rights because of the checkout operation performed by her. 0 if such user does not exist.
object_version.acl.is_fully_authoritativeboolSpecifies whether this access control list is set to ignore the secondary permissions that come from the latest checked in version.
object_version.acl.custom_componentAccessControlListComponentAccesses the custom component of this ACL.
object_version.acl.restrictive_components[]repeated AccessControlListComponentMapEntryAccesses the restrictive automatic components of this ACL.
object_version.acl.secondary_access_control_listAccessControlList (recursive)Secondary ACL used for latest version ACL. Not used for access check if null.
object_version.acl.additive_components[]repeated AccessControlListComponentMapEntryAccesses the additive automatic components of this ACL.
object_version.current_user_permissionsObjectPermissionsForClientIf set, permissions of the object version.
object_version.current_user_permissions.can_user_seeboolThe object is visible for the current user (provided for symmetry).
object_version.current_user_permissions.can_user_editboolThe current user can edit the object.
object_version.current_user_permissions.can_user_deleteboolThe current user can delete the object.
object_version.current_user_permissions.can_user_change_permissionsboolThe current user can change the object permissions.