IRPCObjectOperations.SetObjectActive

View as Markdown

Vault API / core write session or assertion

Clears the draft (pending-upload) flag on an object, leaving it checked out. Used when the file upload has completed and the object should become a normal checked-out object without being checked in. Never checks the object in; a safe no-op on a non-draft.

ServiceObjects, versions, properties and files MFiles.IRPCObjectOperations
gRPC method/MFiles.IRPCObjectOperations/SetObjectActive
HTTP (mf-http-grpc)POST /grpc/v1/set-object-active
RequestSetObjectActiveRequest
ResponseSetObjectActiveResponse
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 versionno
Streamingnone (unary)

Remarks

Completes the draft flow of AddObjectWithFiles (draft: true): after the file content has been uploaded, this clears the draft flag. The object stays checked out; check it in with CheckIn.

Request: SetObjectActiveRequest

A request structure for the SetObjectActive RPC call. It contains all request data. Identifies the draft object whose draft (pending-upload) flag is cleared.

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

FieldTypeDescription
obj_verObjVerThe draft object version to make active.
obj_ver.obj_idObjIDThe object.
obj_ver.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).
obj_ver.obj_id.item_idItemIDThe ID of the object within its type, in item_id.internal_id.
obj_ver.versionObjVerVersionThe version. Usually OBJ_VER_VERSION_TYPE_SPECIFIC with internal_version.
obj_ver.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).
obj_ver.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.
obj_ver.version.external_repository_versionstringUsed only for objects in external repositories. Leave empty.
obj_ver.version.external_repository_sort_keyint64Used only for objects in external repositories. Leave 0.

Response: SetObjectActiveResponse

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
updated_objectObjectVersionExWPThe object after clearing the draft flag (still checked out), with its properties and ACL.
updated_object.object_versionObjectVersionExObject info.
updated_object.object_version.version_infoObjectVersionObject Version information.
updated_object.object_version.object_infoObjectLevelInfoObject-level information.
updated_object.properties[]repeated PropertyValueProperty values, or an empty array.
updated_object.properties[].property_defint32The property definition ID, for example 0 for "Name or title" or 100 for "Class".
updated_object.properties[].valueTypedValueThe value. Its type must match the data type of the property definition.
updated_object.aclAccessControlListIf set, ACL.
updated_object.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.
updated_object.acl.is_fully_authoritativeboolSpecifies whether this access control list is set to ignore the secondary permissions that come from the latest checked in version.
updated_object.acl.custom_componentAccessControlListComponentAccesses the custom component of this ACL.
updated_object.acl.restrictive_components[]repeated AccessControlListComponentMapEntryAccesses the restrictive automatic components of this ACL.
updated_object.acl.secondary_access_control_listAccessControlList (recursive)Secondary ACL used for latest version ACL. Not used for access check if null.
updated_object.acl.additive_components[]repeated AccessControlListComponentMapEntryAccesses the additive automatic components of this ACL.
updated_object.current_user_permissionsObjectPermissionsForClientIf set, permissions of the object version.
updated_object.current_user_permissions.can_user_seeboolThe object is visible for the current user (provided for symmetry).
updated_object.current_user_permissions.can_user_editboolThe current user can edit the object.
updated_object.current_user_permissions.can_user_deleteboolThe current user can delete the object.
updated_object.current_user_permissions.can_user_change_permissionsboolThe current user can change the object permissions.