# Strapi

> Manage Strapi v5 collection documents, single types and media files.

App · 11 actions. Web page: https://docs.lodol.com/docs/integrations/strapi

## Actions

### Create document

Create document.

**Inputs**

- Content type (`content_type`, text, required): API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
- Fields (`fields`, object, required): Content fields defined in your Strapi site. Supply names and values using its content-type schema.
- Locale (`locale`, text): Locale for this request.
- Status (`status`, text): Status for this request. One of: `draft`, `published`.

**Outputs**: Value.

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Delete document

Delete document.

**Inputs**

- Content type (`content_type`, text, required): API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
- Document ID (`document_id`, text, required): Document id for this request.
- Locale (`locale`, text): Locale for this request.

**Outputs**: Value.

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Delete file

Delete file.

**Inputs**

- Id (`id`, text, required): Id for this request.

**Outputs**: Value.

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Delete single type

Delete single type.

**Inputs**

- Content type (`content_type`, text, required): API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
- Locale (`locale`, text): Locale for this request.

**Outputs**: Value.

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get document

Get document.

**Inputs**

- Content type (`content_type`, text, required): API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
- Document ID (`document_id`, text, required): Document id for this request.
- Locale (`locale`, text): Locale for this request.
- Status (`status`, text): Status for this request. One of: `draft`, `published`.

**Outputs**: Value.

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get file

Get file.

**Inputs**

- Id (`id`, text, required): Id for this request.

**Outputs**: Value.

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Get single type

Get single type.

**Inputs**

- Content type (`content_type`, text, required): API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
- Locale (`locale`, text): Locale for this request.
- Status (`status`, text): Status for this request. One of: `draft`, `published`.

**Outputs**: Value.

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### List documents

List documents.

**Inputs**

- Content type (`content_type`, text, required): API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
- Locale (`locale`, text): Locale for this request.
- Status (`status`, text): Status for this request. One of: `draft`, `published`.
- Page (`page`, number): Page for this request. At least 1.
- Page size (`page_size`, number): Page size for this request. From 1 to 100.
- Sort (`sort`, text): Sort for this request.
- Populate (`populate`, text): Populate for this request.

**Outputs**: Value.

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page.

**Example output**

```json
{
  "data": {
    "data": []
  },
  "has_more": false,
  "next_cursor": null
}
```

### List files

List files.

**Inputs**: None.

**Outputs**: Value.

- `data` (list): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page.

**Example output**

```json
{
  "data": [],
  "has_more": false,
  "next_cursor": null
}
```

### Update document

Update document.

**Inputs**

- Content type (`content_type`, text, required): API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
- Document ID (`document_id`, text, required): Document id for this request.
- Fields (`fields`, object, required): Content fields defined in your Strapi site. Supply names and values using its content-type schema.
- Locale (`locale`, text): Locale for this request.
- Status (`status`, text): Status for this request. One of: `draft`, `published`.

**Outputs**: Value.

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```

### Update single type

Update single type.

**Inputs**

- Content type (`content_type`, text, required): API ID shown for this content type in Strapi: plural for a collection and singular for a single type.
- Fields (`fields`, object, required): Content fields defined in your Strapi site. Supply names and values using its content-type schema.
- Locale (`locale`, text): Locale for this request.
- Status (`status`, text): Status for this request. One of: `draft`, `published`.

**Outputs**: Value.

- `data` (object): Data.
- `has_more` (true/false): Whether another page is available.
- `next_cursor` (text): Cursor for the next page.

**Example output**

```json
{
  "data": {},
  "has_more": false,
  "next_cursor": null
}
```
