> For the complete documentation index, see [llms.txt](https://docs.frends.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frends.com/tasks/tasks/truugo/schematron.md). Agents can also search and read this documentation through its [MCP server](https://docs.frends.com/~gitbook/mcp).

# Schematron

Task for calling Truugo Schematron API endpoints and returns its response. Truugo API Swagger for reference: https\://api.truugo.com/reference/

Task version: 1.0.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Source code: <https://github.com/netum-integrations/Netum.Truugo/tree/main/Netum.Truugo.Schematron>

## Task Parameters

{% tabs %}
{% tab title="Input" %}

| Name                          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Endpoint : `EndpointPath`     | <p>Path for the API call</p><p>Possible values:</p><ul><li><code>ListItems</code>: List items endpoint lists available Schematron items for a specific group key.</li><li><code>ListItemVersions</code>: List item versions endpoint lists all available versions of a specific item key.</li><li><code>Validate</code>: Validate endpoint performs Schematron validation on the provided file instance.</li></ul><p><br>Default: <code>-</code><br>Example: <code>ListItems</code></p> |
| GroupKey : `String`           | <p>Group key needed for Schematron List-Items</p><p><br>Default: <code>-</code><br>Example: <code>groupKey</code></p>                                                                                                                                                                                                                                                                                                                                                                   |
| ItemKey : `String`            | <p>Item key needed for Schematron List-Item-Versions</p><p><br>Default: <code>-</code><br>Example: <code>itemKey</code></p>                                                                                                                                                                                                                                                                                                                                                             |
| FileKey : `String`            | <p>File key needed for Schematron Validate</p><p><br>Default: <code>-</code><br>Example: <code>fileKey</code></p>                                                                                                                                                                                                                                                                                                                                                                       |
| FileImportType : `FileImport` | <p>File import type selection: file path or content</p><p>Possible values:</p><ul><li><code>FilePath</code>: Import file via file path</li><li><code>FileContent</code>: Import file via content</li></ul><p><br>Default: <code>-</code><br>Example: <code>FilePath</code></p>                                                                                                                                                                                                          |
| FilePath : `String`           | <p>Full path to the file, only needed if file import type is set to file path.</p><p><br>Default: <code>-</code><br>Example: <code>C:\files\file.xml</code></p>                                                                                                                                                                                                                                                                                                                         |
| FileName : `String`           | <p>Name of the file, necessary when file content is used as input. Can also override the file name when used with file path.</p><p><br>Default: <code>-</code><br>Example: <code>file.xml</code></p>                                                                                                                                                                                                                                                                                    |
| Content : `String`            | <p>XML content to be validated.</p><p><br>Default: <code>-</code><br>Example: <code>...</code></p>                                                                                                                                                                                                                                                                                                                                                                                      |
| {% endtab %}                  |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

{% tab title="Connection" %}

| Name                  | Description                                                                                            |
| --------------------- | ------------------------------------------------------------------------------------------------------ |
| Username : `String`   | <p>API Credentials username</p><p><br>Default: <code>-</code><br>Example: <code>APIuser</code></p>     |
| 🗝Password : `String` | <p>API Credentials password</p><p><br>Default: <code>-</code><br>Example: <code>APIPassword</code></p> |
| {% endtab %}          |                                                                                                        |

{% tab title="Options" %}

| Name                             | Description                                                                                                                    |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| ThrowErrorOnFailure : `Boolean`  | <p>Whether to throw an error on failure.</p><p><br>Default: <code>True</code><br>Example: <code>true</code></p>                |
| ErrorMessageOnFailure : `String` | <p>Overrides the error message on failure.</p><p><br>Default: <code>-</code><br>Example: <code>Custom error message</code></p> |
| {% endtab %}                     |                                                                                                                                |
| {% endtabs %}                    |                                                                                                                                |

## Task Result

| Name                               | Description                                                                                                                    |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Success : `Boolean`                | <p>Indicates if the task completed successfully.<br>Example: <code>true</code></p>                                             |
| Data : `Object`                    | <p>Full response<br>Example: <code>responseObject { ... }</code></p>                                                           |
| StatusCode : `Int32`               | <p>HTTP status code returned by the API.<br>Example: <code>200</code></p>                                                      |
| Endpoint : `String`                | <p>Endpoint used in the API call<br>Example: <code><https://api.truugo.com/schematron/validate></code></p>                     |
| Error : `Error`                    | <p>Error that occurred during task execution.<br>Example: <code>object { string Message, Exception AdditionalInfo }</code></p> |
| Error.Message : `String`           | <p>Summary of the error.<br>Example: <code>Missing mandatory instance file</code></p>                                          |
| Error.AdditionalInfo : `Exception` | <p>Additional information about the error.<br>Example: <code>object { Exception AdditionalInfo }</code></p>                    |

## Task Changelog

Changelog for Task Netum.Truugo.Schematron.

### \[1.0.0] - 2026-06-23

#### Added

* Initial implementation


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.frends.com/tasks/tasks/truugo/schematron.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
