> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pinkfish.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# mfiles

> M-Files Documents

**Server path:** `/mfiles` | **Type:** Application | **PCID required:** Yes

## Tools

| Tool                                                                    | Description                                        |
| ----------------------------------------------------------------------- | -------------------------------------------------- |
| [`mfiles_create_object`](#mfiles_create_object)                         | Create a new object                                |
| [`mfiles_get_checkout_status`](#mfiles_get_checkout_status)             | Get the checkout status of an object version       |
| [`mfiles_get_class`](#mfiles_get_class)                                 | Get a single object class                          |
| [`mfiles_get_object_comments`](#mfiles_get_object_comments)             | Get the comments of an object                      |
| [`mfiles_get_object_deleted_status`](#mfiles_get_object_deleted_status) | Get the deleted status of an object                |
| [`mfiles_get_object_history`](#mfiles_get_object_history)               | Get the version history of an object               |
| [`mfiles_get_object_info`](#mfiles_get_object_info)                     | Get the latest version info of an object           |
| [`mfiles_get_object_properties`](#mfiles_get_object_properties)         | Get the properties of an object version            |
| [`mfiles_get_object_version`](#mfiles_get_object_version)               | Get a specific version of an object                |
| [`mfiles_get_object_workflow_state`](#mfiles_get_object_workflow_state) | Get the workflow state of an object                |
| [`mfiles_get_property_definition`](#mfiles_get_property_definition)     | Get a single property definition                   |
| [`mfiles_get_recently_accessed`](#mfiles_get_recently_accessed)         | List objects recently accessed by the current user |
| [`mfiles_get_session_info`](#mfiles_get_session_info)                   | Get the current session info                       |
| [`mfiles_list_classes`](#mfiles_list_classes)                           | List the object classes of the vault               |
| [`mfiles_list_favorites`](#mfiles_list_favorites)                       | List the current user's favorite objects           |
| [`mfiles_list_object_files`](#mfiles_list_object_files)                 | List the files of an object version                |
| [`mfiles_list_object_types`](#mfiles_list_object_types)                 | List the object types of the vault                 |
| [`mfiles_list_property_definitions`](#mfiles_list_property_definitions) | List the property definitions of the vault         |
| [`mfiles_list_root_views`](#mfiles_list_root_views)                     | List the root views of the vault                   |
| [`mfiles_list_value_list_items`](#mfiles_list_value_list_items)         | List the items of a value list                     |
| [`mfiles_list_value_lists`](#mfiles_list_value_lists)                   | List the value lists of the vault                  |
| [`mfiles_list_view_items`](#mfiles_list_view_items)                     | List the items inside a view                       |
| [`mfiles_list_workflows`](#mfiles_list_workflows)                       | List the workflows of the vault                    |
| [`mfiles_search_objects`](#mfiles_search_objects)                       | Search objects in the vault                        |
| [`mfiles_set_checkout_status`](#mfiles_set_checkout_status)             | Check an object out or in                          |
| [`mfiles_set_object_deleted_status`](#mfiles_set_object_deleted_status) | Delete or undelete an object                       |
| [`mfiles_undo_checkout`](#mfiles_undo_checkout)                         | Undo a checkout (discard checked-out changes)      |
| [`mfiles_update_object_properties`](#mfiles_update_object_properties)   | Update a subset of object properties               |

***

## mfiles\_create\_object

Create a new object

**Parameters:**

| Parameter        | Type      | Required | Default | Description                                                                                                                                                                                                |
| ---------------- | --------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `type`           | integer   | Yes      | —       | Object type ID (e.g. 0 = Document). Use the list\_object\_types tool to discover type IDs.                                                                                                                 |
| `PropertyValues` | object\[] | Yes      | —       | The properties of the new object. Minimum: \[\{PropertyDef: 100, TypedValue: \{DataType: 9, Lookup: \{Item: \<classId>, Version: -1}}}, \{PropertyDef: 0, TypedValue: \{DataType: 1, Value: '\<title>'}}]. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "type": {
        "type": "integer",
        "description": "Object type ID (e.g. 0 = Document). Use the list_object_types tool to discover type IDs."
      },
      "PropertyValues": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "PropertyDef": {
              "type": "integer",
              "description": "Property definition ID (e.g. 0 = Name or Title, 100 = Class)."
            },
            "TypedValue": {
              "type": "object",
              "description": "A typed property value. Set DataType and exactly one of: Value (for text/number/date/boolean types), Lookup (DataType 9), or Lookups (DataType 10)."
            }
          },
          "required": [
            "PropertyDef",
            "TypedValue"
          ]
        },
        "description": "The properties of the new object. Minimum: [{PropertyDef: 100, TypedValue: {DataType: 9, Lookup: {Item: <classId>, Version: -1}}}, {PropertyDef: 0, TypedValue: {DataType: 1, Value: '<title>'}}]."
      }
    },
    "required": [
      "PCID",
      "type",
      "PropertyValues"
    ]
  }
  ```
</Expandable>

***

## mfiles\_get\_checkout\_status

Get the checkout status of an object version

**Parameters:**

| Parameter       | Type    | Required | Default | Description                                         |
| --------------- | ------- | -------- | ------- | --------------------------------------------------- |
| `type`          | integer | Yes      | —       | Object type ID (e.g. 0 = Document).                 |
| `objectId`      | integer | Yes      | —       | Object ID within the type.                          |
| `objectVersion` | string  | Yes      | —       | Version number, or 'latest' for the newest version. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "type": {
        "type": "integer",
        "description": "Object type ID (e.g. 0 = Document)."
      },
      "objectId": {
        "type": "integer",
        "description": "Object ID within the type."
      },
      "objectVersion": {
        "type": "string",
        "description": "Version number, or 'latest' for the newest version."
      }
    },
    "required": [
      "PCID",
      "type",
      "objectId",
      "objectVersion"
    ]
  }
  ```
</Expandable>

***

## mfiles\_get\_class

Get a single object class

**Parameters:**

| Parameter | Type    | Required | Default | Description |
| --------- | ------- | -------- | ------- | ----------- |
| `classId` | integer | Yes      | —       | Class ID.   |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "classId": {
        "type": "integer",
        "description": "Class ID."
      }
    },
    "required": [
      "PCID",
      "classId"
    ]
  }
  ```
</Expandable>

***

## mfiles\_get\_object\_comments

Get the comments of an object

**Parameters:**

| Parameter       | Type    | Required | Default | Description                                         |
| --------------- | ------- | -------- | ------- | --------------------------------------------------- |
| `type`          | integer | Yes      | —       | Object type ID (e.g. 0 = Document).                 |
| `objectId`      | integer | Yes      | —       | Object ID within the type.                          |
| `objectVersion` | string  | Yes      | —       | Version number, or 'latest' for the newest version. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "type": {
        "type": "integer",
        "description": "Object type ID (e.g. 0 = Document)."
      },
      "objectId": {
        "type": "integer",
        "description": "Object ID within the type."
      },
      "objectVersion": {
        "type": "string",
        "description": "Version number, or 'latest' for the newest version."
      }
    },
    "required": [
      "PCID",
      "type",
      "objectId",
      "objectVersion"
    ]
  }
  ```
</Expandable>

***

## mfiles\_get\_object\_deleted\_status

Get the deleted status of an object

**Parameters:**

| Parameter  | Type    | Required | Default | Description                         |
| ---------- | ------- | -------- | ------- | ----------------------------------- |
| `type`     | integer | Yes      | —       | Object type ID (e.g. 0 = Document). |
| `objectId` | integer | Yes      | —       | Object ID within the type.          |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "type": {
        "type": "integer",
        "description": "Object type ID (e.g. 0 = Document)."
      },
      "objectId": {
        "type": "integer",
        "description": "Object ID within the type."
      }
    },
    "required": [
      "PCID",
      "type",
      "objectId"
    ]
  }
  ```
</Expandable>

***

## mfiles\_get\_object\_history

Get the version history of an object

**Parameters:**

| Parameter  | Type    | Required | Default | Description                         |
| ---------- | ------- | -------- | ------- | ----------------------------------- |
| `type`     | integer | Yes      | —       | Object type ID (e.g. 0 = Document). |
| `objectId` | integer | Yes      | —       | Object ID within the type.          |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "type": {
        "type": "integer",
        "description": "Object type ID (e.g. 0 = Document)."
      },
      "objectId": {
        "type": "integer",
        "description": "Object ID within the type."
      }
    },
    "required": [
      "PCID",
      "type",
      "objectId"
    ]
  }
  ```
</Expandable>

***

## mfiles\_get\_object\_info

Get the latest version info of an object

**Parameters:**

| Parameter  | Type    | Required | Default | Description                         |
| ---------- | ------- | -------- | ------- | ----------------------------------- |
| `type`     | integer | Yes      | —       | Object type ID (e.g. 0 = Document). |
| `objectId` | integer | Yes      | —       | Object ID within the type.          |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "type": {
        "type": "integer",
        "description": "Object type ID (e.g. 0 = Document)."
      },
      "objectId": {
        "type": "integer",
        "description": "Object ID within the type."
      }
    },
    "required": [
      "PCID",
      "type",
      "objectId"
    ]
  }
  ```
</Expandable>

***

## mfiles\_get\_object\_properties

Get the properties of an object version

**Parameters:**

| Parameter       | Type    | Required | Default | Description                                                                       |
| --------------- | ------- | -------- | ------- | --------------------------------------------------------------------------------- |
| `type`          | integer | Yes      | —       | Object type ID (e.g. 0 = Document).                                               |
| `objectId`      | integer | Yes      | —       | Object ID within the type.                                                        |
| `objectVersion` | string  | Yes      | —       | Version number, or 'latest' for the newest version.                               |
| `forDisplay`    | boolean | No       | —       | Set true to filter out built-in properties that are not typically shown to users. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "type": {
        "type": "integer",
        "description": "Object type ID (e.g. 0 = Document)."
      },
      "objectId": {
        "type": "integer",
        "description": "Object ID within the type."
      },
      "objectVersion": {
        "type": "string",
        "description": "Version number, or 'latest' for the newest version."
      },
      "forDisplay": {
        "type": "boolean",
        "description": "Set true to filter out built-in properties that are not typically shown to users."
      }
    },
    "required": [
      "PCID",
      "type",
      "objectId",
      "objectVersion"
    ]
  }
  ```
</Expandable>

***

## mfiles\_get\_object\_version

Get a specific version of an object

**Parameters:**

| Parameter       | Type    | Required | Default | Description                                         |
| --------------- | ------- | -------- | ------- | --------------------------------------------------- |
| `type`          | integer | Yes      | —       | Object type ID (e.g. 0 = Document).                 |
| `objectId`      | integer | Yes      | —       | Object ID within the type.                          |
| `objectVersion` | string  | Yes      | —       | Version number, or 'latest' for the newest version. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "type": {
        "type": "integer",
        "description": "Object type ID (e.g. 0 = Document)."
      },
      "objectId": {
        "type": "integer",
        "description": "Object ID within the type."
      },
      "objectVersion": {
        "type": "string",
        "description": "Version number, or 'latest' for the newest version."
      }
    },
    "required": [
      "PCID",
      "type",
      "objectId",
      "objectVersion"
    ]
  }
  ```
</Expandable>

***

## mfiles\_get\_object\_workflow\_state

Get the workflow state of an object

**Parameters:**

| Parameter       | Type    | Required | Default | Description                                         |
| --------------- | ------- | -------- | ------- | --------------------------------------------------- |
| `type`          | integer | Yes      | —       | Object type ID (e.g. 0 = Document).                 |
| `objectId`      | integer | Yes      | —       | Object ID within the type.                          |
| `objectVersion` | string  | Yes      | —       | Version number, or 'latest' for the newest version. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "type": {
        "type": "integer",
        "description": "Object type ID (e.g. 0 = Document)."
      },
      "objectId": {
        "type": "integer",
        "description": "Object ID within the type."
      },
      "objectVersion": {
        "type": "string",
        "description": "Version number, or 'latest' for the newest version."
      }
    },
    "required": [
      "PCID",
      "type",
      "objectId",
      "objectVersion"
    ]
  }
  ```
</Expandable>

***

## mfiles\_get\_property\_definition

Get a single property definition

**Parameters:**

| Parameter       | Type    | Required | Default | Description             |
| --------------- | ------- | -------- | ------- | ----------------------- |
| `propertyDefId` | integer | Yes      | —       | Property definition ID. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "propertyDefId": {
        "type": "integer",
        "description": "Property definition ID."
      }
    },
    "required": [
      "PCID",
      "propertyDefId"
    ]
  }
  ```
</Expandable>

***

## mfiles\_get\_recently\_accessed

List objects recently accessed by the current user

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## mfiles\_get\_session\_info

Get the current session info

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## mfiles\_list\_classes

List the object classes of the vault

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## mfiles\_list\_favorites

List the current user's favorite objects

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## mfiles\_list\_object\_files

List the files of an object version

**Parameters:**

| Parameter       | Type    | Required | Default | Description                                         |
| --------------- | ------- | -------- | ------- | --------------------------------------------------- |
| `type`          | integer | Yes      | —       | Object type ID (e.g. 0 = Document).                 |
| `objectId`      | integer | Yes      | —       | Object ID within the type.                          |
| `objectVersion` | string  | Yes      | —       | Version number, or 'latest' for the newest version. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "type": {
        "type": "integer",
        "description": "Object type ID (e.g. 0 = Document)."
      },
      "objectId": {
        "type": "integer",
        "description": "Object ID within the type."
      },
      "objectVersion": {
        "type": "string",
        "description": "Version number, or 'latest' for the newest version."
      }
    },
    "required": [
      "PCID",
      "type",
      "objectId",
      "objectVersion"
    ]
  }
  ```
</Expandable>

***

## mfiles\_list\_object\_types

List the object types of the vault

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## mfiles\_list\_property\_definitions

List the property definitions of the vault

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## mfiles\_list\_root\_views

List the root views of the vault

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## mfiles\_list\_value\_list\_items

List the items of a value list

**Parameters:**

| Parameter     | Type    | Required | Default | Description                                                                  |
| ------------- | ------- | -------- | ------- | ---------------------------------------------------------------------------- |
| `valueListId` | integer | Yes      | —       | Value list ID.                                                               |
| `filter`      | string  | No       | —       | Optional name filter; returns only items whose name matches the filter text. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "valueListId": {
        "type": "integer",
        "description": "Value list ID."
      },
      "filter": {
        "type": "string",
        "description": "Optional name filter; returns only items whose name matches the filter text."
      }
    },
    "required": [
      "PCID",
      "valueListId"
    ]
  }
  ```
</Expandable>

***

## mfiles\_list\_value\_lists

List the value lists of the vault

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## mfiles\_list\_view\_items

List the items inside a view

**Parameters:**

| Parameter  | Type   | Required | Default | Description                                   |
| ---------- | ------ | -------- | ------- | --------------------------------------------- |
| `viewPath` | string | Yes      | —       | View path segment, e.g. 'v15' for view ID 15. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "viewPath": {
        "type": "string",
        "description": "View path segment, e.g. 'v15' for view ID 15."
      }
    },
    "required": [
      "PCID",
      "viewPath"
    ]
  }
  ```
</Expandable>

***

## mfiles\_list\_workflows

List the workflows of the vault

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## mfiles\_search\_objects

Search objects in the vault

**Parameters:**

| Parameter       | Type    | Required | Default | Description                                                                                                                    |
| --------------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `query`         | string  | No       | —       | Full-text quick search string. Matches object metadata and indexed file contents. Omit to list objects without a text filter.  |
| `objectTypeId`  | integer | No       | —       | Restrict results to a single object type by its ID (e.g. 0 = Document). Use the list\_object\_types tool to discover type IDs. |
| `deletedFilter` | string  | No       | —       | Deleted-items filter. Set to 'include' to also return deleted objects; omit to exclude them (default).                         |
| `limit`         | integer | No       | —       | Maximum number of results to return.                                                                                           |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "query": {
        "type": "string",
        "description": "Full-text quick search string. Matches object metadata and indexed file contents. Omit to list objects without a text filter."
      },
      "objectTypeId": {
        "type": "integer",
        "description": "Restrict results to a single object type by its ID (e.g. 0 = Document). Use the list_object_types tool to discover type IDs."
      },
      "deletedFilter": {
        "type": "string",
        "description": "Deleted-items filter. Set to 'include' to also return deleted objects; omit to exclude them (default).",
        "enum": [
          "include"
        ]
      },
      "limit": {
        "type": "integer",
        "description": "Maximum number of results to return."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## mfiles\_set\_checkout\_status

Check an object out or in

**Parameters:**

| Parameter       | Type    | Required | Default | Description                                                                                     |
| --------------- | ------- | -------- | ------- | ----------------------------------------------------------------------------------------------- |
| `type`          | integer | Yes      | —       | Object type ID (e.g. 0 = Document).                                                             |
| `objectId`      | integer | Yes      | —       | Object ID within the type.                                                                      |
| `objectVersion` | string  | Yes      | —       | Version number, or 'latest' for the newest version.                                             |
| `Value`         | integer | Yes      | —       | Checkout status: 0 = checked in (check in), 1 = checked out to me (check out), 2 = checked out. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "type": {
        "type": "integer",
        "description": "Object type ID (e.g. 0 = Document)."
      },
      "objectId": {
        "type": "integer",
        "description": "Object ID within the type."
      },
      "objectVersion": {
        "type": "string",
        "description": "Version number, or 'latest' for the newest version."
      },
      "Value": {
        "type": "integer",
        "description": "Checkout status: 0 = checked in (check in), 1 = checked out to me (check out), 2 = checked out.",
        "enum": [
          0,
          1,
          2
        ]
      }
    },
    "required": [
      "PCID",
      "type",
      "objectId",
      "objectVersion",
      "Value"
    ]
  }
  ```
</Expandable>

***

## mfiles\_set\_object\_deleted\_status

Delete or undelete an object

**Parameters:**

| Parameter  | Type    | Required | Default | Description                            |
| ---------- | ------- | -------- | ------- | -------------------------------------- |
| `type`     | integer | Yes      | —       | Object type ID (e.g. 0 = Document).    |
| `objectId` | integer | Yes      | —       | Object ID within the type.             |
| `Value`    | boolean | Yes      | —       | true = mark deleted, false = undelete. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "type": {
        "type": "integer",
        "description": "Object type ID (e.g. 0 = Document)."
      },
      "objectId": {
        "type": "integer",
        "description": "Object ID within the type."
      },
      "Value": {
        "type": "boolean",
        "description": "true = mark deleted, false = undelete."
      }
    },
    "required": [
      "PCID",
      "type",
      "objectId",
      "Value"
    ]
  }
  ```
</Expandable>

***

## mfiles\_undo\_checkout

Undo a checkout (discard checked-out changes)

**Parameters:**

| Parameter       | Type    | Required | Default | Description                                         |
| --------------- | ------- | -------- | ------- | --------------------------------------------------- |
| `type`          | integer | Yes      | —       | Object type ID (e.g. 0 = Document).                 |
| `objectId`      | integer | Yes      | —       | Object ID within the type.                          |
| `objectVersion` | string  | Yes      | —       | Version number, or 'latest' for the newest version. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "type": {
        "type": "integer",
        "description": "Object type ID (e.g. 0 = Document)."
      },
      "objectId": {
        "type": "integer",
        "description": "Object ID within the type."
      },
      "objectVersion": {
        "type": "string",
        "description": "Version number, or 'latest' for the newest version."
      }
    },
    "required": [
      "PCID",
      "type",
      "objectId",
      "objectVersion"
    ]
  }
  ```
</Expandable>

***

## mfiles\_update\_object\_properties

Update a subset of object properties

**Parameters:**

| Parameter       | Type      | Required | Default | Description                                         |
| --------------- | --------- | -------- | ------- | --------------------------------------------------- |
| `type`          | integer   | Yes      | —       | Object type ID (e.g. 0 = Document).                 |
| `objectId`      | integer   | Yes      | —       | Object ID within the type.                          |
| `objectVersion` | string    | Yes      | —       | Version number, or 'latest' for the newest version. |
| `body`          | object\[] | Yes      | —       | Array of property values to set on the object.      |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "type": {
        "type": "integer",
        "description": "Object type ID (e.g. 0 = Document)."
      },
      "objectId": {
        "type": "integer",
        "description": "Object ID within the type."
      },
      "objectVersion": {
        "type": "string",
        "description": "Version number, or 'latest' for the newest version."
      },
      "body": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "PropertyDef": {
              "type": "integer",
              "description": "Property definition ID (e.g. 0 = Name or Title, 100 = Class)."
            },
            "TypedValue": {
              "type": "object",
              "description": "A typed property value. Set DataType and exactly one of: Value (for text/number/date/boolean types), Lookup (DataType 9), or Lookups (DataType 10)."
            }
          },
          "required": [
            "PropertyDef",
            "TypedValue"
          ]
        },
        "description": "Array of property values to set on the object."
      }
    },
    "required": [
      "PCID",
      "type",
      "objectId",
      "objectVersion",
      "body"
    ]
  }
  ```
</Expandable>
