# Hudu

> Read Hudu companies, assets, layouts and expirations and manage knowledge base articles.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/hudu

## Actions

### Create an article

Create an article.

**Inputs**

- Name (`name`, text, required): Name.
- Content (`content`, text, required): Content.
- Company (`company_id`, number): Company ID.

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "article": {
      "content": "example",
      "id": 1,
      "name": "example"
    }
  }
}
```

### Delete an article

Delete an article.

**Inputs**

- Article (`article_id`, text, required): Article ID.

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {}
}
```

### Get a article

Get a article.

**Inputs**

- Article (`article_id`, text, required): Article ID.

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "article": {
      "company_id": 1,
      "content": "example",
      "enable_sharing": true,
      "folder_id": 1,
      "id": 1,
      "name": "example"
    }
  }
}
```

### Get a asset layout

Get a asset layout.

**Inputs**

- Asset layout (`asset_layout_id`, text, required): Asset layout ID.

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "asset_layout": {
      "created_at": "example",
      "id": 1,
      "name": "example",
      "updated_at": "example"
    }
  }
}
```

### Get a company

Get a company.

**Inputs**

- Company (`company_id`, text, required): Company ID.

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "company": {
      "created_at": "example",
      "id": 1,
      "name": "example",
      "updated_at": "example"
    }
  }
}
```

### Get a folder

Get a folder.

**Inputs**

- Folder ID (`folder_id`, text, required): Folder ID.

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "folder": {
      "created_at": "example",
      "id": 1,
      "name": "example",
      "updated_at": "example"
    }
  }
}
```

### Get a procedure

Get a procedure.

**Inputs**

- Procedure ID (`procedure_id`, text, required): Procedure ID.

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "procedure": {
      "created_at": "example",
      "id": 1,
      "name": "example",
      "updated_at": "example"
    }
  }
}
```

### Get a website

Get a website.

**Inputs**

- Website ID (`website_id`, text, required): Website ID.

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "website": {
      "created_at": "example",
      "id": 1,
      "name": "example",
      "updated_at": "example"
    }
  }
}
```

### Get an asset

Read an asset and its fields from the selected company.

**Inputs**

- Company (`company_id`, number, required): Company that owns the asset.
- Asset (`asset_id`, number, required): Asset in the selected company.

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "asset": {
      "asset_layout_id": 1,
      "company_id": 1,
      "fields": [
        {}
      ],
      "id": 1,
      "name": "example"
    }
  }
}
```

### Get Hudu API information

Get Hudu API information.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {}
}
```

### List articles

List articles.

**Inputs**

- Name (`name`, text): Filter by article name
- Company (`company_id`, number): Filter by company_id
- Page (`page`, number): Get current page of results
- Page size (`page_size`, number): Number of results to return
- Search (`search`, text): Filter by search query

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "articles": [
      {
        "created_at": "example",
        "id": 1,
        "name": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List asset layouts

List asset layouts.

**Inputs**

- Name (`name`, text): Filter by the name of the Asset Layout
- Page (`page`, number): Get the current page of results

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "asset_layouts": [
      {
        "created_at": "example",
        "id": 1,
        "name": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List assets

List assets.

**Inputs**

- Company (`company_id`, number): Filter assets by the parent company's ID
- Name (`name`, text): Filter assets by their name
- Asset layout (`asset_layout_id`, number): Filter assets by their associated asset layout's ID
- Page (`page`, number): Specify the page number of results to return
- Archived (`archived`, true/false): Set to true to display only archived assets
- Page size (`page_size`, number): Limit the number of assets returned per page
- Search (`search`, text): Filter assets using a search query

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "assets": [
      {
        "company_id": 1,
        "created_at": "example",
        "id": 1,
        "name": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List companies

List companies.

**Inputs**

- Page (`page`, number): Retrieve the specified page of results
- Page size (`page_size`, number): Specify the number of results to return per page
- Name (`name`, text): Filter companies by name
- Search (`search`, text): Filter companies by a search query

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "companies": [
      {
        "created_at": "example",
        "id": 1,
        "name": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List expirations

List expirations.

**Inputs**

- Page (`page`, number): The current page of results to retrieve
- Company (`company_id`, number): Filter expirations by company ID
- Archived (`archived`, true/false): Filter by archived status (true for archived, false for active). Defaults to false (active only).
- Page size (`page_size`, number): The number of results to return per page

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "expirations": [
      {
        "created_at": "example",
        "id": 1,
        "name": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List folders

List folders.

**Inputs**

- Name (`name`, text): Filter folders by name
- Company (`company_id`, number): Filter folders by company ID
- Page (`page`, number): The current page of results to retrieve
- Page size (`page_size`, number): The number of results to return per page

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "folders": [
      {
        "created_at": "example",
        "id": 1,
        "name": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List lists

List lists.

**Inputs**

- Name (`name`, text): Filter by exact list name

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "lists": [
      {
        "created_at": "example",
        "id": 1,
        "name": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List procedures

List procedures.

**Inputs**

- Name (`name`, text): Filter by the name of the process or run (case-insensitive exact match).
- Company (`company_id`, number): Filter by the associated company ID.
- Archived (`archived`, text): Filter by archived status: 'true' or '1' to show only archived processes/runs, 'false' or '0' to show only non-archived (default). If not specified, only non-archived items are returned.
- Page (`page`, number): The current page of results.
- Page size (`page_size`, number): The number of results to return per page (default: 25, max: 1000).

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "procedures": [
      {
        "created_at": "example",
        "id": 1,
        "name": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List websites

List websites.

**Inputs**

- Page (`page`, number): Get current page of results
- Name (`name`, text): Filter websites by name
- Page size (`page_size`, number): Number of results to return per page
- Search (`search`, text): Filter by search query

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "websites": [
      {
        "created_at": "example",
        "id": 1,
        "name": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### Update an article

Update an article.

**Inputs**

- Article (`article_id`, text, required): Article ID.
- Name (`name`, text): Name.
- Content (`content`, text): Content.

**Outputs**

- `data` (object): The response from Hudu.

**Example output**

```json
{
  "data": {
    "article": {
      "content": "example",
      "id": 1,
      "name": "example"
    }
  }
}
```
