POST /attributes

Create an Attribue

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
id Integer No

The unique identifier for the Attribute

project_id Integer Yes

The ID of the project the Attribute belongs to

name String No

The name of the Attribute. For Full Stack projects, the name will be set to the value of the key.

archived Boolean No

Whether or not the Attribute has been archived

Default value: false

description String No

A short description of the Attribute

condition_type String No

Whether this Attribute is a custom dimension or custom attribute. If this is a custom dimension, it belongs to an Optimizely Classic experiment and is read-only.

Valid values:

  • "custom_dimension"
  • "custom_attribute"

Default value: "custom_attribute"

key String Yes

Unique string identifier for this Attribute within the project

last_modified String No

The last time the Attribute was modified

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.