> For the complete documentation index, see [llms.txt](https://developer.ultimo.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.ultimo.net/api-key-templates/article/create-articles.md). Agents can also search and read this documentation through its [MCP server](https://developer.ultimo.net/~gitbook/mcp).

# Create articles

Workflow: REST\_Article\_Import

This workflow allows third parties to create and update articles in Ultimo.

The following parameters are used in the request.

| Parameter                 | Description                                                                                                           |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| Id                        | Id of the article. This parameter is optional.                                                                        |
| ExternalId                | The external identification number. This parameter is optional.                                                       |
| ArticleGroupId            | Id of entity ArticleGroup.                                                                                            |
| ChargeRaiseExternalId     | Id of entity ChargeRaiseExternal.                                                                                     |
| ChargeRaiseInternalId     | Id of entity ChargeRaiseInternal.                                                                                     |
| DataProvider              | Data provider for the article and price mutation.                                                                     |
| Description               | Description of the article.                                                                                           |
| ManufacturerId            | Id of entity Vendor. This parameter is optional.                                                                      |
| MaximumStock              | Maximum stock of the article. This parameter is optional.                                                             |
| Purchase                  | Purchase (True/False) of the article. This indicates whether the article can be purchased. The default value is True. |
| PurchaseLevel             | Purchase level of the article. This parameter is optional.                                                            |
| PurchasePrice             | Purchase price of the article. This parameter is optional.                                                            |
| PurchaseText              | Text for order specifications. This parameter is optional.                                                            |
| RaiseId                   | Id of entity Raise. This parameter is optional.                                                                       |
| RegisterStock             | Register stock (True/False) of the article. The default value is True.                                                |
| ServingOutUnitDescription | Unit description of the article. This parameter is optional.                                                          |
| ShowInWebShop             | Show in webshop (True/False). This indicates whether the article is available in the webshop.                         |
| SiteId                    | Id of entity Site. This parameter is optional.                                                                        |
| Text                      | Text for article specifications. This parameter is optional.                                                          |
| VatId                     | Id of entity VAT. This parameter is optional.                                                                         |

## Functional details

The article workflow can be used to create and update articles. The properties Id and ExternalId are both optional. If both are left empty, the article is created using the autokey functionality.

When updating, the workflow searches on Id first and then on ExternalId. If the article is not found, a new one is created.

Price mutations are created when the provided purchase price differs from the current one.

## Technical details

### Basic URL (POST):

`https://customer.ultimo.com/api/V1/Action/REST_Article_Import`

Header data:

| Parameter            | Description                                                    |
| -------------------- | -------------------------------------------------------------- |
| ApiKey               | Request an API key from your application manager or consultant |
| ApplicationElementId | Fixed value “363b35dc-309a-4947-919b-b5e1bd2b5c47”             |

### Body (example):

```json
{
   "ExternalId":"0403",
   "ArticleGroupId":"014",
   "ChargeRaiseExternalId":null,
   "ChargeRaiseInternalId":null,
   "DataProvider":null,
   "Description":"Toner copier",
   "Id":"",
   "ManufacturerId":null,
   "MaximumStock":20.00,
   "Purchase":true,
   "PurchaseLevel":10.00,
   "PurchasePrice":104.86000,
   "PurchaseText":null,
   "RaiseId":null,
   "RegisterStock":true,
   "ServingOutUnitDescription":"Box",
   "ShowInWebShop":true,
   "SiteId":"01",
   "Text":null,
   "VatId":"1"
}
```

### Normal response:

{% hint style="success" %}
Status: 200 OK
{% endhint %}

```json
{
    "properties": {}
}
```

### Response when the action is not allowed:

{% hint style="danger" %}
Status: 400 Bad Request
{% endhint %}

```json
{
   "message":"The article could not be created or updated.\nCause: ExternalId is not provided.",
   "type":3,
   "code":"9900"
}
```

### Response when the API key is invalid:

{% hint style="danger" %}
Status: 401 Unauthorized
{% endhint %}

```json
{
    "message": "Missing API key",
    "code": "MissingApikey"
}
```


---

# 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://developer.ultimo.net/api-key-templates/article/create-articles.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.
