# Bubble

> Read and change Bubble app records, create records in bulk, and run exposed backend workflows.

App · 9 actions. Web page: https://docs.lodol.com/docs/integrations/bubble

## Actions

### Create record

Create record in the connected Bubble application.

**Inputs**

- Data type (`data_type`, text, required): The API name of the data type, as shown in Settings > API.
- Fields (`fields`, object, required): Record fields, using the names configured in Bubble.

**Outputs**: Result.

- `data` (object): Data.
- `has_more` (true/false): Has more.
- `next_cursor` (text): Next cursor.

**Example output**

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

### Create records in bulk

Create records in bulk in the connected Bubble application.

**Inputs**

- Data type (`data_type`, text, required): The API name of the data type, as shown in Settings > API.
- Records (`records`, list, required): Records to create. Each item is one object of Bubble fields.

**Outputs**: Result.

- `data` (list): Data.
- `has_more` (true/false): Has more.
- `next_cursor` (text): Next cursor.

**Example output**

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

### Delete record

Delete record in the connected Bubble application.

**Inputs**

- Data type (`data_type`, text, required): The API name of the data type, as shown in Settings > API.
- Record ID (`record_id`, text, required): The unique ID returned by Bubble.

**Outputs**: Result.

- `data` (null): Data.
- `has_more` (true/false): Has more.
- `next_cursor` (text): Next cursor.

**Example output**

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

### Get app API schema

Discover the data types and workflows exposed by your Bubble app. Enable the app API documentation in Settings > API first.

**Inputs**: None.

**Outputs**: Result.

- `data` (object): Data.
- `has_more` (true/false): Has more.
- `next_cursor` (text): Next cursor.

**Example output**

```json
{
  "data": {
    "schema": {},
    "types": [
      "lodol_qa"
    ],
    "workflows": []
  },
  "has_more": false,
  "next_cursor": null
}
```

### Get record

Get record in the connected Bubble application.

**Inputs**

- Data type (`data_type`, text, required): The API name of the data type, as shown in Settings > API.
- Record ID (`record_id`, text, required): The unique ID returned by Bubble.

**Outputs**: Result.

- `data` (object): Data.
- `has_more` (true/false): Has more.
- `next_cursor` (text): Next cursor.

**Example output**

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

### List records

List records in the connected Bubble application.

**Inputs**

- Data type (`data_type`, text, required): The API name of the data type, as shown in Settings > API.
- Cursor (`cursor`, number): Cursor. At least 0.
- Limit (`limit`, number): Limit. From 1 to 100.
- Constraints (`constraints`, list): Filter objects using Bubble constraints: key, constraint_type and value.
- Sort field (`sort_field`, text): Sort field.
- Descending (`descending`, true/false): Descending.

**Outputs**: Result.

- `data` (object): Data.
- `has_more` (true/false): Has more.
- `next_cursor` (text): Next cursor.

**Example output**

```json
{
  "data": {
    "response": {
      "count": 0,
      "cursor": 0,
      "remaining": 0,
      "results": []
    }
  },
  "has_more": false,
  "next_cursor": null
}
```

### Replace record

Replace record in the connected Bubble application.

**Inputs**

- Data type (`data_type`, text, required): The API name of the data type, as shown in Settings > API.
- Record ID (`record_id`, text, required): The unique ID returned by Bubble.
- Fields (`fields`, object, required): Complete record fields. Fields omitted from this replacement are cleared.

**Outputs**: Result.

- `data` (null): Data.
- `has_more` (true/false): Has more.
- `next_cursor` (text): Next cursor.

**Example output**

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

### Run API workflow

Run API workflow in the connected Bubble application.

**Inputs**

- Workflow name (`workflow_name`, text, required): The name configured for the exposed Bubble API workflow.
- Inputs (`inputs`, object): Named workflow inputs configured in Bubble.

**Outputs**: Result.

- `data` (object): Data.
- `has_more` (true/false): Has more.
- `next_cursor` (text): Next cursor.

**Example output**

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

### Update record

Update record in the connected Bubble application.

**Inputs**

- Data type (`data_type`, text, required): The API name of the data type, as shown in Settings > API.
- Record ID (`record_id`, text, required): The unique ID returned by Bubble.
- Fields (`fields`, object, required): Only the fields to change.

**Outputs**: Result.

- `data` (null): Data.
- `has_more` (true/false): Has more.
- `next_cursor` (text): Next cursor.

**Example output**

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