v4

latestOpenAPI 3.0.02026-08-04109113304.5 KB
Attributes

List Attributes

List Attributes under a Project

get/attributes

Query parameters

per_pageinteger

Optional pagination argument that specifies the maximum number of objects to return per request

pageinteger

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_idinteger required

The ID of the Project you would like to list all Attributes for

Response

Return all Attributes in the specified Project

archivedboolean

Whether or not the Attribute has been archived

condition_type'custom_attribute' | 'custom_dimension'

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.

descriptionstring

A short description of the Attribute

idinteger

The unique identifier for the Attribute

keystring required

Unique string identifier for this Attribute within the project

last_modifiedstring date-time

The last time the Attribute was modified

namestring

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

project_idinteger required

The ID of the project the Attribute belongs to

Example response

[
  {
    "key": "subscriber_status",
    "name": "Subscriber Status",
    "project_id": 17738411154
  }
]