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
| Action | What it does |
|---|---|
| Archive or restore variable | Archive a variable no longer used in code, or make an archived one active again. |
| Create feature | Create a feature (feature flag), optionally turned on in some environments. |
| Create variable | Create a variable, optionally as part of a feature. |
| Create variation | Add a variation to a feature, with the value it serves for each variable. |
| Delete feature | Delete a feature, and optionally its variables. |
| Delete variable | Delete a variable. |
| Get audience | Get an audience's name and the filters that define it. |
| Get environment | Get an environment's name, key and type. |
| Get feature | Get a feature with its variations, variables and targeting in each environment. |
| Get feature audit log | List the changes made to a feature, newest first, with who made them. |
| Get feature evaluations | Count how many times a feature's variables were evaluated, by hour, day or month. |
| Get feature targeting | Get whether a feature is on in each environment, with its targeting rules. |
| Get project | Get a project's name, key and description. |
| Get variable | Get a variable's key, type, status and feature. |
| List audiences | List a project's reusable audiences (groups of users to target). |
| List environments | List a project's environments, such as development, staging and production. |
| List features | List a project's features (feature flags), optionally only of one type or status. |
| List metrics | List a project's metrics, the events experiments are measured by. |
| List projects | List the projects the API credentials can see. |
| List variables | List a project's variables, optionally only one feature's, one type or one status. |
| List variations | List a feature's variations and the variable values each serves. |
| Turn feature on or off | Turn a feature's targeting on or off in one environment. |
| Update feature | Rename a feature or change its description, type or tags. |
| Update feature status | Mark a feature active, complete (one variation served to everyone) or archived. |
| Update variable | Rename 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
- Project
projecttextRequired - The project.
- Variable
variabletextRequired - The variable.
- Status
statustextRequired - 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
- Project
projecttextRequired - The project.
- Key
keytextRequired - The feature's key, used in code and unique in the project. Lower-case letters, numbers and the characters _ - and . only.
- Name
nametextRequired - The display name, up to 100 characters.
- Description
descriptiontext - A description, up to 1000 characters.
- Type
typetext - The kind of feature.One of:
release,experiment,permission,ops. - Tags
tagslist - Tags to organize it on the dashboard.
- Turn on in
turn_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
- Project
projecttextRequired - The project.
- Key
keytextRequired - The variable's key, used in code and unique in the project. Lower-case letters, numbers and the characters _ - and . only.
- Type
typetextRequired - The kind of value it holds.One of:
String(Text),Boolean(True or false),Number,JSON. - Name
nametext - The display name, up to 100 characters.
- Description
descriptiontext - A description, up to 1000 characters.
- Feature
featuretext - The feature it belongs to. Leave empty for none.
- Tags
tagslist - 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
- Project
projecttextRequired - The project.
- Feature
featuretextRequired - The feature.
- Key
keytextRequired - The variation's key, unique in the feature. Lower-case letters, numbers and the characters _ - and . only.
- Name
nametextRequired - The variation's display name, up to 100 characters.
- Variable values
variablesobject - 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
- Project
projecttextRequired - The project.
- Feature
featuretextRequired - The feature.
- Delete variables
delete_variablestrue/false - Also delete the feature's variables.
Outputs
dataobject- The response from DevCycle.
Example output
{
"data": {}
}Delete variable
Delete a variable.
Inputs
- Project
projecttextRequired - The project.
- Variable
variabletextRequired - 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
- Project
projecttextRequired - The project.
- Audience
audiencetextRequired - 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
- Project
projecttextRequired - The project.
- Environment
environmenttextRequired - 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
- Project
projecttextRequired - The project.
- Feature
featuretextRequired - 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
- Project
projecttextRequired - The project.
- Feature
featuretextRequired - The feature.
- Environment
environmenttext - Only changes to this environment's targeting.
- From
start_datedate and time - Only changes made at or after this time.
- To
end_datedate and time - Only changes made at or before this time.
- Records per page
per_pagenumber - How many changes to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Page
pagenumber - 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
- Project
projecttextRequired - The project.
- Feature
featuretextRequired - The feature.
- From
startdate and time - The start of the period. Leave empty for DevCycle's default.
- To
enddate and time - The end of the period. Leave empty for now.
- Environment
environmenttext - Only this environment's evaluations.
- Group by
periodtext - How to group the counts. Leave empty for DevCycle's default.One of:
hour,day,month. - SDK type
sdk_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
- Project
projecttextRequired - The project.
- Feature
featuretextRequired - The feature.
- Environment
environmenttext - 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
- Project
projecttextRequired - 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
- Project
projecttextRequired - The project.
- Variable
variabletextRequired - 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
- Project
projecttextRequired - The project.
- Search
searchtext - Only records whose name or key contains this, at least 3 characters.
- Sort by
sort_bytext - What to sort by. Leave empty for date created.One of:
createdAt(Date created),updatedAt(Date updated),name,key. - Sort order
sort_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 page
per_pagenumber - How many records to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Page
pagenumber - 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
- Project
projecttextRequired - The project.
- Search
searchtext - Only records whose name or key contains this, at least 3 characters.
- Sort by
sort_bytext - What to sort by. Leave empty for date created.One of:
createdAt(Date created),updatedAt(Date updated),name,key. - Sort order
sort_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 page
per_pagenumber - How many records to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Page
pagenumber - 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
- Project
projecttextRequired - The project.
- Type
typetext - Only features of this type.One of:
release,experiment,permission,ops. - Status
statustext - Only features with this status.One of:
active,complete(Complete (serve one variation to everyone)),archived. - Search
searchtext - Only records whose name or key contains this, at least 3 characters.
- Sort by
sort_bytext - What to sort by. Leave empty for date created.One of:
createdAt(Date created),updatedAt(Date updated),name,key. - Sort order
sort_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 page
per_pagenumber - How many records to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Page
pagenumber - 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
- Project
projecttextRequired - The project.
- Search
searchtext - Only records whose name or key contains this, at least 3 characters.
- Sort by
sort_bytext - What to sort by. Leave empty for date created.One of:
createdAt(Date created),updatedAt(Date updated),name,key. - Sort order
sort_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 page
per_pagenumber - How many records to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Page
pagenumber - 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
- Search
searchtext - Only records whose name or key contains this, at least 3 characters.
- Sort by
sort_bytext - What to sort by. Leave empty for date created.One of:
createdAt(Date created),updatedAt(Date updated),name,key. - Sort order
sort_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 page
per_pagenumber - How many records to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Page
pagenumber - 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
- Project
projecttextRequired - The project.
- Feature
featuretext - Only this feature's variables.
- Type
typetext - Only variables of this type.One of:
String(Text),Boolean(True or false),Number,JSON. - Status
statustext - Only active or only archived variables.One of:
active,archived. - Search
searchtext - Only records whose name or key contains this, at least 3 characters.
- Sort by
sort_bytext - What to sort by. Leave empty for date created.One of:
createdAt(Date created),updatedAt(Date updated),name,key. - Sort order
sort_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 page
per_pagenumber - How many records to return, up to 1000. Leave empty for 100.From 1 to 1000.
- Page
pagenumber - 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
- Project
projecttextRequired - The project.
- Feature
featuretextRequired - 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
- Project
projecttextRequired - The project.
- Feature
featuretextRequired - The feature.
- Environment
environmenttextRequired - The environment to change.
- Targeting
statustextRequired - 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
- Project
projecttextRequired - The project.
- Feature
featuretextRequired - The feature.
- Name
nametext - The display name, up to 100 characters.
- Description
descriptiontext - A description, up to 1000 characters.
- Type
typetext - The kind of feature.One of:
release,experiment,permission,ops. - Tags
tagslist - 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
- Project
projecttextRequired - The project.
- Feature
featuretextRequired - The feature.
- Status
statustextRequired - The feature's new status.One of:
active,complete(Complete (serve one variation to everyone)),archived. - Variation to serve
static_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
- Project
projecttextRequired - The project.
- Variable
variabletextRequired - The variable.
- Name
nametext - The display name, up to 100 characters.
- Description
descriptiontext - A description, up to 1000 characters.
- Tags
tagslist - 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"
}
}