DevCycle

App · 25 actions

Create and update DevCycle feature flags and variables, turn features on or off in an environment, read audit logs and evaluation counts, and follow new and changed features.

Actions

ActionWhat it does
Archive or restore variableArchive a variable no longer used in code, or make an archived one active again.
Create featureCreate a feature (feature flag), optionally turned on in some environments.
Create variableCreate a variable, optionally as part of a feature.
Create variationAdd a variation to a feature, with the value it serves for each variable.
Delete featureDelete a feature, and optionally its variables.
Delete variableDelete a variable.
Get audienceGet an audience's name and the filters that define it.
Get environmentGet an environment's name, key and type.
Get featureGet a feature with its variations, variables and targeting in each environment.
Get feature audit logList the changes made to a feature, newest first, with who made them.
Get feature evaluationsCount how many times a feature's variables were evaluated, by hour, day or month.
Get feature targetingGet whether a feature is on in each environment, with its targeting rules.
Get projectGet a project's name, key and description.
Get variableGet a variable's key, type, status and feature.
List audiencesList a project's reusable audiences (groups of users to target).
List environmentsList a project's environments, such as development, staging and production.
List featuresList a project's features (feature flags), optionally only of one type or status.
List metricsList a project's metrics, the events experiments are measured by.
List projectsList the projects the API credentials can see.
List variablesList a project's variables, optionally only one feature's, one type or one status.
List variationsList a feature's variations and the variable values each serves.
Turn feature on or offTurn a feature's targeting on or off in one environment.
Update featureRename a feature or change its description, type or tags.
Update feature statusMark a feature active, complete (one variation served to everyone) or archived.
Update variableRename a variable or change its description or tags.

Archive or restore variable

Archive a variable no longer used in code, or make an archived one active again.

Inputs

ProjectprojecttextRequired
The project.
VariablevariabletextRequired
The variable.
StatusstatustextRequired
The variable's new status.One of: active, archived.

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {
    "_feature": "example",
    "_id": "example",
    "_project": "example",
    "createdAt": "example",
    "description": "example",
    "key": "example",
    "name": "example",
    "persistent": true,
    "source": "example",
    "status": "example",
    "tags": [
      "example"
    ],
    "type": "example",
    "updatedAt": "example"
  }
}

Create feature

Create a feature (feature flag), optionally turned on in some environments.

Inputs

ProjectprojecttextRequired
The project.
KeykeytextRequired
The feature's key, used in code and unique in the project. Lower-case letters, numbers and the characters _ - and . only.
NamenametextRequired
The display name, up to 100 characters.
Descriptiondescriptiontext
A description, up to 1000 characters.
Typetypetext
The kind of feature.One of: release, experiment, permission, ops.
Tagstagslist
Tags to organize it on the dashboard.
Turn on inturn_on_inlist
Environments to turn the feature's targeting on in. Leave empty to create it turned off everywhere.

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {
    "_id": "example",
    "_project": "example",
    "configurations": [
      {
        "_environment": "example",
        "_feature": "example",
        "hasStaticConfig": true,
        "startedAt": "example",
        "status": "example",
        "targets": [
          {}
        ],
        "updatedAt": "example"
      }
    ],
    "controlVariation": "example",
    "createdAt": "example",
    "description": "example",
    "key": "example",
    "name": "example",
    "source": "example",
    "staticVariation": "example",
    "status": "example",
    "tags": [
      "example"
    ],
    "type": "example",
    "updatedAt": "example",
    "variables": [
      {
        "_feature": "example",
        "_id": "example",
        "_project": "example",
        "createdAt": "example",
        "description": "example",
        "key": "example",
        "name": "example",
        "persistent": true,
        "source": "example",
        "status": "example",
        "tags": [
          "example"
        ],
        "type": "example",
        "updatedAt": "example"
      }
    ],
    "variations": [
      {
        "_id": "example",
        "key": "example",
        "name": "example",
        "variables": {}
      }
    ]
  }
}

Create variable

Create a variable, optionally as part of a feature.

Inputs

ProjectprojecttextRequired
The project.
KeykeytextRequired
The variable's key, used in code and unique in the project. Lower-case letters, numbers and the characters _ - and . only.
TypetypetextRequired
The kind of value it holds.One of: String (Text), Boolean (True or false), Number, JSON.
Namenametext
The display name, up to 100 characters.
Descriptiondescriptiontext
A description, up to 1000 characters.
Featurefeaturetext
The feature it belongs to. Leave empty for none.
Tagstagslist
Tags to organize it on the dashboard.

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {
    "_feature": "example",
    "_id": "example",
    "_project": "example",
    "createdAt": "example",
    "description": "example",
    "key": "example",
    "name": "example",
    "persistent": true,
    "source": "example",
    "status": "example",
    "tags": [
      "example"
    ],
    "type": "example",
    "updatedAt": "example"
  }
}

Create variation

Add a variation to a feature, with the value it serves for each variable.

Inputs

ProjectprojecttextRequired
The project.
FeaturefeaturetextRequired
The feature.
KeykeytextRequired
The variation's key, unique in the feature. Lower-case letters, numbers and the characters _ - and . only.
NamenametextRequired
The variation's display name, up to 100 characters.
Variable valuesvariablesobject
The value this variation serves for each variable, by variable key.

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {
    "_id": "example",
    "_project": "example",
    "configurations": [
      {
        "_environment": "example",
        "_feature": "example",
        "hasStaticConfig": true,
        "startedAt": "example",
        "status": "example",
        "targets": [
          {}
        ],
        "updatedAt": "example"
      }
    ],
    "controlVariation": "example",
    "createdAt": "example",
    "description": "example",
    "key": "example",
    "name": "example",
    "source": "example",
    "staticVariation": "example",
    "status": "example",
    "tags": [
      "example"
    ],
    "type": "example",
    "updatedAt": "example",
    "variables": [
      {
        "_feature": "example",
        "_id": "example",
        "_project": "example",
        "createdAt": "example",
        "description": "example",
        "key": "example",
        "name": "example",
        "persistent": true,
        "source": "example",
        "status": "example",
        "tags": [
          "example"
        ],
        "type": "example",
        "updatedAt": "example"
      }
    ],
    "variations": [
      {
        "_id": "example",
        "key": "example",
        "name": "example",
        "variables": {}
      }
    ]
  }
}

Delete feature

Delete a feature, and optionally its variables.

Inputs

ProjectprojecttextRequired
The project.
FeaturefeaturetextRequired
The feature.
Delete variablesdelete_variablestrue/false
Also delete the feature's variables.

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {}
}

Delete variable

Delete a variable.

Inputs

ProjectprojecttextRequired
The project.
VariablevariabletextRequired
The variable.

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {}
}

Get audience

Get an audience's name and the filters that define it.

Inputs

ProjectprojecttextRequired
The project.
AudienceaudiencetextRequired
The audience.

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {
    "_id": "example",
    "_project": "example",
    "createdAt": "example",
    "description": "example",
    "filters": {},
    "key": "example",
    "name": "example",
    "tags": [
      "example"
    ],
    "updatedAt": "example"
  }
}

Get environment

Get an environment's name, key and type.

Inputs

ProjectprojecttextRequired
The project.
EnvironmentenvironmenttextRequired
The environment.

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {
    "_id": "example",
    "_project": "example",
    "color": "example",
    "createdAt": "example",
    "description": "example",
    "key": "example",
    "name": "example",
    "type": "example",
    "updatedAt": "example"
  }
}

Get feature

Get a feature with its variations, variables and targeting in each environment.

Inputs

ProjectprojecttextRequired
The project.
FeaturefeaturetextRequired
The feature.

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {
    "_id": "example",
    "_project": "example",
    "configurations": [
      {
        "_environment": "example",
        "_feature": "example",
        "hasStaticConfig": true,
        "startedAt": "example",
        "status": "example",
        "targets": [
          {}
        ],
        "updatedAt": "example"
      }
    ],
    "controlVariation": "example",
    "createdAt": "example",
    "description": "example",
    "key": "example",
    "name": "example",
    "source": "example",
    "staticVariation": "example",
    "status": "example",
    "tags": [
      "example"
    ],
    "type": "example",
    "updatedAt": "example",
    "variables": [
      {
        "_feature": "example",
        "_id": "example",
        "_project": "example",
        "createdAt": "example",
        "description": "example",
        "key": "example",
        "name": "example",
        "persistent": true,
        "source": "example",
        "status": "example",
        "tags": [
          "example"
        ],
        "type": "example",
        "updatedAt": "example"
      }
    ],
    "variations": [
      {
        "_id": "example",
        "key": "example",
        "name": "example",
        "variables": {}
      }
    ]
  }
}

Get feature audit log

List the changes made to a feature, newest first, with who made them.

Inputs

ProjectprojecttextRequired
The project.
FeaturefeaturetextRequired
The feature.
Environmentenvironmenttext
Only changes to this environment's targeting.
Fromstart_datedate and time
Only changes made at or after this time.
Toend_datedate and time
Only changes made at or before this time.
Records per pageper_pagenumber
How many changes to return, up to 1000. Leave empty for 100.From 1 to 1000.
Pagepagenumber
Which page of changes to return. Leave empty for the first.At least 1.

Outputs

datalist
The response from DevCycle.
Example output
{
  "data": [
    {
      "a0_user": "example",
      "changes": [
        {}
      ],
      "date": "example"
    }
  ]
}

Get feature evaluations

Count how many times a feature's variables were evaluated, by hour, day or month.

Inputs

ProjectprojecttextRequired
The project.
FeaturefeaturetextRequired
The feature.
Fromstartdate and time
The start of the period. Leave empty for DevCycle's default.
Toenddate and time
The end of the period. Leave empty for now.
Environmentenvironmenttext
Only this environment's evaluations.
Group byperiodtext
How to group the counts. Leave empty for DevCycle's default.One of: hour, day, month.
SDK typesdk_typetext
Only evaluations from this kind of SDK.One of: client (Client-side SDKs), server (Server-side SDKs), mobile (Mobile SDKs), api.

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {
    "cached": true,
    "result": {
      "evaluations": [
        {}
      ]
    },
    "updatedAt": "example"
  }
}

Get feature targeting

Get whether a feature is on in each environment, with its targeting rules.

Inputs

ProjectprojecttextRequired
The project.
FeaturefeaturetextRequired
The feature.
Environmentenvironmenttext
Only this environment. Leave empty for every environment.

Outputs

datalist
The response from DevCycle.
Example output
{
  "data": [
    {
      "_environment": "example",
      "_feature": "example",
      "hasStaticConfig": true,
      "startedAt": "example",
      "status": "example",
      "targets": [
        {}
      ],
      "updatedAt": "example"
    }
  ]
}

Get project

Get a project's name, key and description.

Inputs

ProjectprojecttextRequired
The project.

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {
    "_id": "example",
    "_organization": "example",
    "color": "example",
    "createdAt": "example",
    "description": "example",
    "key": "example",
    "name": "example",
    "updatedAt": "example"
  }
}

Get variable

Get a variable's key, type, status and feature.

Inputs

ProjectprojecttextRequired
The project.
VariablevariabletextRequired
The variable.

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {
    "_feature": "example",
    "_id": "example",
    "_project": "example",
    "createdAt": "example",
    "description": "example",
    "key": "example",
    "name": "example",
    "persistent": true,
    "source": "example",
    "status": "example",
    "tags": [
      "example"
    ],
    "type": "example",
    "updatedAt": "example"
  }
}

List audiences

List a project's reusable audiences (groups of users to target).

Inputs

ProjectprojecttextRequired
The project.
Searchsearchtext
Only records whose name or key contains this, at least 3 characters.
Sort bysort_bytext
What to sort by. Leave empty for date created.One of: createdAt (Date created), updatedAt (Date updated), name, key.
Sort ordersort_ordertext
The sort direction. Leave empty for newest or Z first.One of: asc (Oldest or A first), desc (Newest or Z first).
Records per pageper_pagenumber
How many records to return, up to 1000. Leave empty for 100.From 1 to 1000.
Pagepagenumber
Which page of records to return. Leave empty for the first.At least 1.

Outputs

datalist
The response from DevCycle.
Example output
{
  "data": [
    {
      "_id": "example",
      "_project": "example",
      "createdAt": "example",
      "description": "example",
      "filters": {},
      "key": "example",
      "name": "example",
      "tags": [
        "example"
      ],
      "updatedAt": "example"
    }
  ]
}

List environments

List a project's environments, such as development, staging and production.

Inputs

ProjectprojecttextRequired
The project.
Searchsearchtext
Only records whose name or key contains this, at least 3 characters.
Sort bysort_bytext
What to sort by. Leave empty for date created.One of: createdAt (Date created), updatedAt (Date updated), name, key.
Sort ordersort_ordertext
The sort direction. Leave empty for newest or Z first.One of: asc (Oldest or A first), desc (Newest or Z first).
Records per pageper_pagenumber
How many records to return, up to 1000. Leave empty for 100.From 1 to 1000.
Pagepagenumber
Which page of records to return. Leave empty for the first.At least 1.

Outputs

datalist
The response from DevCycle.
Example output
{
  "data": [
    {
      "_id": "example",
      "_project": "example",
      "color": "example",
      "createdAt": "example",
      "description": "example",
      "key": "example",
      "name": "example",
      "type": "example",
      "updatedAt": "example"
    }
  ]
}

List features

List a project's features (feature flags), optionally only of one type or status.

Inputs

ProjectprojecttextRequired
The project.
Typetypetext
Only features of this type.One of: release, experiment, permission, ops.
Statusstatustext
Only features with this status.One of: active, complete (Complete (serve one variation to everyone)), archived.
Searchsearchtext
Only records whose name or key contains this, at least 3 characters.
Sort bysort_bytext
What to sort by. Leave empty for date created.One of: createdAt (Date created), updatedAt (Date updated), name, key.
Sort ordersort_ordertext
The sort direction. Leave empty for newest or Z first.One of: asc (Oldest or A first), desc (Newest or Z first).
Records per pageper_pagenumber
How many records to return, up to 1000. Leave empty for 100.From 1 to 1000.
Pagepagenumber
Which page of records to return. Leave empty for the first.At least 1.

Outputs

datalist
The response from DevCycle.
Example output
{
  "data": [
    {
      "_id": "example",
      "_project": "example",
      "configurations": [
        {
          "_environment": "example",
          "_feature": "example",
          "hasStaticConfig": true,
          "startedAt": "example",
          "status": "example",
          "targets": [
            {}
          ],
          "updatedAt": "example"
        }
      ],
      "controlVariation": "example",
      "createdAt": "example",
      "description": "example",
      "key": "example",
      "name": "example",
      "source": "example",
      "staticVariation": "example",
      "status": "example",
      "tags": [
        "example"
      ],
      "type": "example",
      "updatedAt": "example",
      "variables": [
        {
          "_feature": "example",
          "_id": "example",
          "_project": "example",
          "createdAt": "example",
          "description": "example",
          "key": "example",
          "name": "example",
          "persistent": true,
          "source": "example",
          "status": "example",
          "tags": [
            "example"
          ],
          "type": "example",
          "updatedAt": "example"
        }
      ],
      "variations": [
        {
          "_id": "example",
          "key": "example",
          "name": "example",
          "variables": {}
        }
      ]
    }
  ]
}

List metrics

List a project's metrics, the events experiments are measured by.

Inputs

ProjectprojecttextRequired
The project.
Searchsearchtext
Only records whose name or key contains this, at least 3 characters.
Sort bysort_bytext
What to sort by. Leave empty for date created.One of: createdAt (Date created), updatedAt (Date updated), name, key.
Sort ordersort_ordertext
The sort direction. Leave empty for newest or Z first.One of: asc (Oldest or A first), desc (Newest or Z first).
Records per pageper_pagenumber
How many records to return, up to 1000. Leave empty for 100.From 1 to 1000.
Pagepagenumber
Which page of records to return. Leave empty for the first.At least 1.

Outputs

datalist
The response from DevCycle.
Example output
{
  "data": [
    {
      "_id": "example",
      "_project": "example",
      "createdAt": "example",
      "description": "example",
      "dimension": "example",
      "event": "example",
      "key": "example",
      "name": "example",
      "optimize": "example",
      "updatedAt": "example"
    }
  ]
}

List projects

List the projects the API credentials can see.

Inputs

Searchsearchtext
Only records whose name or key contains this, at least 3 characters.
Sort bysort_bytext
What to sort by. Leave empty for date created.One of: createdAt (Date created), updatedAt (Date updated), name, key.
Sort ordersort_ordertext
The sort direction. Leave empty for newest or Z first.One of: asc (Oldest or A first), desc (Newest or Z first).
Records per pageper_pagenumber
How many records to return, up to 1000. Leave empty for 100.From 1 to 1000.
Pagepagenumber
Which page of records to return. Leave empty for the first.At least 1.

Outputs

datalist
The response from DevCycle.
Example output
{
  "data": [
    {
      "_id": "example",
      "_organization": "example",
      "color": "example",
      "createdAt": "example",
      "description": "example",
      "key": "example",
      "name": "example",
      "updatedAt": "example"
    }
  ]
}

List variables

List a project's variables, optionally only one feature's, one type or one status.

Inputs

ProjectprojecttextRequired
The project.
Featurefeaturetext
Only this feature's variables.
Typetypetext
Only variables of this type.One of: String (Text), Boolean (True or false), Number, JSON.
Statusstatustext
Only active or only archived variables.One of: active, archived.
Searchsearchtext
Only records whose name or key contains this, at least 3 characters.
Sort bysort_bytext
What to sort by. Leave empty for date created.One of: createdAt (Date created), updatedAt (Date updated), name, key.
Sort ordersort_ordertext
The sort direction. Leave empty for newest or Z first.One of: asc (Oldest or A first), desc (Newest or Z first).
Records per pageper_pagenumber
How many records to return, up to 1000. Leave empty for 100.From 1 to 1000.
Pagepagenumber
Which page of records to return. Leave empty for the first.At least 1.

Outputs

datalist
The response from DevCycle.
Example output
{
  "data": [
    {
      "_feature": "example",
      "_id": "example",
      "_project": "example",
      "createdAt": "example",
      "description": "example",
      "key": "example",
      "name": "example",
      "persistent": true,
      "source": "example",
      "status": "example",
      "tags": [
        "example"
      ],
      "type": "example",
      "updatedAt": "example"
    }
  ]
}

List variations

List a feature's variations and the variable values each serves.

Inputs

ProjectprojecttextRequired
The project.
FeaturefeaturetextRequired
The feature.

Outputs

datalist
The response from DevCycle.
Example output
{
  "data": [
    {
      "_id": "example",
      "key": "example",
      "name": "example",
      "variables": {}
    }
  ]
}

Turn feature on or off

Turn a feature's targeting on or off in one environment.

Inputs

ProjectprojecttextRequired
The project.
FeaturefeaturetextRequired
The feature.
EnvironmentenvironmenttextRequired
The environment to change.
TargetingstatustextRequired
On serves the feature's targeting rules; off serves everyone the default.One of: active, inactive (Off).

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {
    "_environment": "example",
    "_feature": "example",
    "hasStaticConfig": true,
    "startedAt": "example",
    "status": "example",
    "targets": [
      {}
    ],
    "updatedAt": "example"
  }
}

Update feature

Rename a feature or change its description, type or tags.

Inputs

ProjectprojecttextRequired
The project.
FeaturefeaturetextRequired
The feature.
Namenametext
The display name, up to 100 characters.
Descriptiondescriptiontext
A description, up to 1000 characters.
Typetypetext
The kind of feature.One of: release, experiment, permission, ops.
Tagstagslist
Tags to organize it on the dashboard.

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {
    "_id": "example",
    "_project": "example",
    "configurations": [
      {
        "_environment": "example",
        "_feature": "example",
        "hasStaticConfig": true,
        "startedAt": "example",
        "status": "example",
        "targets": [
          {}
        ],
        "updatedAt": "example"
      }
    ],
    "controlVariation": "example",
    "createdAt": "example",
    "description": "example",
    "key": "example",
    "name": "example",
    "source": "example",
    "staticVariation": "example",
    "status": "example",
    "tags": [
      "example"
    ],
    "type": "example",
    "updatedAt": "example",
    "variables": [
      {
        "_feature": "example",
        "_id": "example",
        "_project": "example",
        "createdAt": "example",
        "description": "example",
        "key": "example",
        "name": "example",
        "persistent": true,
        "source": "example",
        "status": "example",
        "tags": [
          "example"
        ],
        "type": "example",
        "updatedAt": "example"
      }
    ],
    "variations": [
      {
        "_id": "example",
        "key": "example",
        "name": "example",
        "variables": {}
      }
    ]
  }
}

Update feature status

Mark a feature active, complete (one variation served to everyone) or archived.

Inputs

ProjectprojecttextRequired
The project.
FeaturefeaturetextRequired
The feature.
StatusstatustextRequired
The feature's new status.One of: active, complete (Complete (serve one variation to everyone)), archived.
Variation to servestatic_variationtext
For complete: the key of the variation everyone gets.

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {
    "_id": "example",
    "_project": "example",
    "configurations": [
      {
        "_environment": "example",
        "_feature": "example",
        "hasStaticConfig": true,
        "startedAt": "example",
        "status": "example",
        "targets": [
          {}
        ],
        "updatedAt": "example"
      }
    ],
    "controlVariation": "example",
    "createdAt": "example",
    "description": "example",
    "key": "example",
    "name": "example",
    "source": "example",
    "staticVariation": "example",
    "status": "example",
    "tags": [
      "example"
    ],
    "type": "example",
    "updatedAt": "example",
    "variables": [
      {
        "_feature": "example",
        "_id": "example",
        "_project": "example",
        "createdAt": "example",
        "description": "example",
        "key": "example",
        "name": "example",
        "persistent": true,
        "source": "example",
        "status": "example",
        "tags": [
          "example"
        ],
        "type": "example",
        "updatedAt": "example"
      }
    ],
    "variations": [
      {
        "_id": "example",
        "key": "example",
        "name": "example",
        "variables": {}
      }
    ]
  }
}

Update variable

Rename a variable or change its description or tags.

Inputs

ProjectprojecttextRequired
The project.
VariablevariabletextRequired
The variable.
Namenametext
The display name, up to 100 characters.
Descriptiondescriptiontext
A description, up to 1000 characters.
Tagstagslist
Tags to organize it on the dashboard.

Outputs

dataobject
The response from DevCycle.
Example output
{
  "data": {
    "_feature": "example",
    "_id": "example",
    "_project": "example",
    "createdAt": "example",
    "description": "example",
    "key": "example",
    "name": "example",
    "persistent": true,
    "source": "example",
    "status": "example",
    "tags": [
      "example"
    ],
    "type": "example",
    "updatedAt": "example"
  }
}

On this page