# Optimizely

> Manage Optimizely Web Experimentation projects, audiences and attributes; read experiments, campaigns and pages; watch changes.

App · 18 actions. Web page: https://docs.lodol.com/docs/integrations/optimizely

## Actions

### Create attribute

Create attribute.

**Inputs**

- Archived (`archived`, true/false): Whether or not the Attribute has been archived
- Description (`description`, text): A short description of the Attribute
- Key (`key`, text, required): Unique string identifier for this Attribute within the project
- Name (`name`, text): The name of the Attribute. For Full Stack projects, the name will be set to the value of the key.
- Project (`project_id`, number, required): The ID of the project the Attribute belongs to

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### Create audience

Create audience.

**Inputs**

- Archived (`archived`, true/false): Whether the Audience has been archived
- Conditions (`conditions`, list): A string defining the targeting rules for an Audience
- Description (`description`, text): A short description of the Audience
- For journey (`for_journey`, true/false): Whether the Audience has been part of journey or not
- Is classic (`is_classic`, true/false): Whether or not Audience is a classic Audience. If true, the Audience is only compatible with classic Experiments. Otherwise, the Audience may be used in Optimizely X Campaigns.
- Name (`name`, text): The name of the Audience
- Project (`project_id`, number, required): The ID of the Project the Audience was created in
- Segmentation (`segmentation`, true/false): True if the Audience is available for segmentation on the results page (Audiences can only be used for segmentation in Optimizely Classic). Set to False if you intend to use this Audience only in Optimizely X. Note that a maximum of 10 Audiences can have segmentation set to True in any given Optimizely Classic project.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### Create project

Create project.

**Inputs**

- Confidence threshold (`confidence_threshold`, number): The significance level at which you would like to declare winning and losing variations. A lower number minimizes the time needed to declare a winning or losing variation, but increases the risk that your results aren't true winners and losers. The precision for this number is up to 4 decimal places. From 0.5 to 1.
- Dcp service ID (`dcp_service_id`, number): The ID of a Dynamic Customer Profile Service associated with this Project
- Description (`description`, text): A short description of the Project
- Is flags enabled (`is_flags_enabled`, true/false): If is_flags_enabled is true, this project uses the new Flags-First user experience and will use the Flags API to make changes to entities.
- Name (`name`, text, required): The name of the Project
- Platform (`platform`, text): The platform of the Project. One of: `web`, `ios`, `android`, `custom`.
- Sdks (`sdks`, list): Sdks.
- Status (`status`, text): The current status of the Project. One of: `active`, `archived`.
- Third party platform (`third_party_platform`, text): The third party platform with which the project is intended to be used. When this is set, a project might have special restrictions. This can have a value of "salesforce" but defaults to null. In order to set this field, an account must have the third party platforms feature and be a fullstack project. One of: `salesforce`.
- Web snippet (`web_snippet`, object): Web snippet.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### Get attribute

Get attribute.

**Inputs**

- Attribute ID (`attribute_id`, number, required): The Attribute ID of the Attribute you want to get

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### Get audience

Get audience.

**Inputs**

- Audience ID (`audience_id`, number, required): The Audience ID of the Audience you want to get

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### Get campaign

Get campaign.

**Inputs**

- Campaign ID (`campaign_id`, number, required): The Campaign ID of the Campaign you want to get

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### Get experiment

Get experiment.

**Inputs**

- Experiment ID (`experiment_id`, number, required): The Experiment ID of the Experiment you want to get

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### Get page

Get page.

**Inputs**

- Page ID (`page_id`, number, required): The Page ID of the Page you want to get

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### Get project

Get project.

**Inputs**

- Project (`project_id`, number, required): The Project ID of the Project you want to get

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### List attributes

List attributes.

**Inputs**

- Per page (`per_page`, number): Optional pagination argument that specifies the maximum number of objects to return per request. At most 100.
- Page (`page`, number): Optional pagination argument that specifies the page to return. If you have 140 objects and you choose to return 100 objects per page you will be able to access the last 40 objects on page 2. The default value is 1.
- Project (`project_id`, number, required): The ID of the Project you would like to list all Attributes for

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### List audiences

List audiences.

**Inputs**

- Per page (`per_page`, number): Optional pagination argument that specifies the maximum number of objects to return per request. At most 100.
- Page (`page`, number): Optional pagination argument that specifies the page to return. If you have 140 objects and you choose to return 100 objects per page you will be able to access the last 40 objects on page 2. The default value is 1.
- Project (`project_id`, number, required): The Project ID of the Project you would like to list all Audiences for
- For journey (`for_journey`, true/false): Filter audiences by journey status
- Archived (`archived`, true/false): Filter audiences by archived status

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### List campaigns

List campaigns.

**Inputs**

- Per page (`per_page`, number): Optional pagination argument that specifies the maximum number of objects to return per request. At most 100.
- Page (`page`, number): Optional pagination argument that specifies the page to return. If you have 140 objects and you choose to return 100 objects per page you will be able to access the last 40 objects on page 2. The default value is 1.
- Project (`project_id`, number, required): The Project ID of the Project you would like to list all Campaigns for
- For journey (`for_journey`, true/false): Filter campaigns by journey status
- Archived (`archived`, true/false): Filter campaigns by archived status

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### List experiments

List experiments.

**Inputs**

- Per page (`per_page`, number): Optional pagination argument that specifies the maximum number of objects to return per request. At most 100.
- Page (`page`, number): Optional pagination argument that specifies the page to return. If you have 140 objects and you choose to return 100 objects per page you will be able to access the last 40 objects on page 2. The default value is 1.
- Project (`project_id`, number): The Project ID of the Project you would like to list all Experiments for. You have to either use this argument or the campaign_id argument
- Campaign (`campaign_id`, number): The Campaign ID of the Campaign you would like to list all Experiments for. You have to either use this argument or the project_id argument

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### List pages

List pages.

**Inputs**

- Per page (`per_page`, number): Optional pagination argument that specifies the maximum number of objects to return per request. At most 100.
- Page (`page`, number): Optional pagination argument that specifies the page to return. If you have 140 objects and you choose to return 100 objects per page you will be able to access the last 40 objects on page 2. The default value is 1.
- Project (`project_id`, number, required): The Project ID of the Project you would like to list all Pages for
- Include single use (`include_single_use`, true/false): Whether or not to include single-use Pages (those generated for Campaign URL targeting) alongside regular Pages. If this parameter is not provided it will default to false

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### List projects

List projects.

**Inputs**

- Per page (`per_page`, number): Optional pagination argument that specifies the maximum number of objects to return per request. At most 100.
- Page (`page`, number): Optional pagination argument that specifies the page to return. If you have 140 objects and you choose to return 100 objects per page you will be able to access the last 40 objects on page 2. The default value is 1.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### Update attribute

Update attribute.

**Inputs**

- Attribute ID (`attribute_id`, number, required): The ID of the Attribute you'd like to update
- Archived (`archived`, true/false): Whether or not the Attribute has been archived
- Description (`description`, text): A short description of the Attribute
- Key (`key`, text): Unique string identifier for this Attribute within the project
- Name (`name`, text): The name of the Attribute

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### Update audience

Update audience.

**Inputs**

- Audience ID (`audience_id`, number, required): The Audience ID of the Audience you want to change
- Archived (`archived`, true/false): True if the Audience has been archived
- Conditions (`conditions`, list): A string defining the targeting rules for an Audience
- Description (`description`, text): A short description of the Audience
- For journey (`for_journey`, true/false): Whether the Audience has been part of journey or not
- Name (`name`, text): The name of the Audience
- Segmentation (`segmentation`, true/false): True if the Audience is available for segmentation on the results page (Enterprise plans only)

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```

### Update project

Update project.

**Inputs**

- Project (`project_id`, number, required): The Project ID of the Project you want to change
- Confidence threshold (`confidence_threshold`, number): The significance level at which you would like to declare winning and losing variations. A lower number minimizes the time needed to declare a winning or losing variation, but increases the risk that your results aren't true winners and losers. The precision for this number is up to 4 decimal places. From 0.5 to 1.
- Dcp service ID (`dcp_service_id`, number): The ID of a Dynamic Customer Profile Service associated with this Project
- Description (`description`, text): A short description of the Project
- Name (`name`, text): The name of the Project
- Status (`status`, text): The current status of the Project. One of: `active`, `archived`.
- Web snippet (`web_snippet`, object): Web snippet.

**Outputs**

- `response` (object): The complete service response, including resource data and pagination fields.

**Example output**

```json
{
  "response": {}
}
```
