Authorizations
Headers
Optional header to respect review settings for mutation endpoints.
Path Parameters
id
Body
application/json
curl --request PUT \
--url https://statsigapi.net/console/v1/dynamic_configs/{id}/archive \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"forceArchive": true,
"archiveReason": "The gate is no longer needed"
}'
{
"message": "<string>",
"data": {
"id": "<string>",
"name": "my_config",
"idType": "userID",
"description": "helpful summary of what this dynamic config does",
"lastModifierID": "<string>",
"lastModifiedTime": 123,
"lastModifierEmail": "<string>",
"lastModifierName": "<string>",
"creatorID": "<string>",
"createdTime": 123,
"creatorName": "<string>",
"creatorEmail": "<string>",
"tags": [
"a tag"
],
"targetApps": "<string>",
"holdoutIDs": [
"<string>"
],
"team": "<string>",
"teamID": "<string>",
"version": 123,
"isEnabled": true,
"rules": [
{
"name": "<string>",
"passPercentage": 50,
"conditions": [
{
"targetValue": [
"<string>"
],
"operator": "<string>",
"field": "<string>",
"customID": "<string>",
"type": "app_version"
}
],
"environments": [
"<string>"
],
"id": "<string>",
"baseID": "<string>",
"returnValue": {},
"completedAutomatedRollouts": [
{
"time": 123,
"passPercent": 123
}
],
"pendingAutomatedRollouts": [
{
"time": 123,
"passPercent": 123
}
],
"returnValueJson5": "<string>",
"variants": [
{
"id": "<string>",
"name": "<string>",
"passPercentage": 50,
"returnValue": {},
"returnValueJson5": "<string>"
}
]
}
],
"defaultValue": {},
"defaultValueJson5": "<string>",
"owner": {
"ownerID": "user123",
"ownerType": "USER",
"ownerName": "John Doe",
"ownerEmail": "owner123@test.com"
},
"schema": "<string>",
"schemaJson5": "<string>",
"releasePipelineID": "<string>",
"isTemplate": true,
"status": "Enabled"
}
}
curl --request PUT \
--url https://statsigapi.net/console/v1/dynamic_configs/{id}/archive \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '{
"forceArchive": true,
"archiveReason": "The gate is no longer needed"
}'
{
"message": "<string>",
"data": {
"id": "<string>",
"name": "my_config",
"idType": "userID",
"description": "helpful summary of what this dynamic config does",
"lastModifierID": "<string>",
"lastModifiedTime": 123,
"lastModifierEmail": "<string>",
"lastModifierName": "<string>",
"creatorID": "<string>",
"createdTime": 123,
"creatorName": "<string>",
"creatorEmail": "<string>",
"tags": [
"a tag"
],
"targetApps": "<string>",
"holdoutIDs": [
"<string>"
],
"team": "<string>",
"teamID": "<string>",
"version": 123,
"isEnabled": true,
"rules": [
{
"name": "<string>",
"passPercentage": 50,
"conditions": [
{
"targetValue": [
"<string>"
],
"operator": "<string>",
"field": "<string>",
"customID": "<string>",
"type": "app_version"
}
],
"environments": [
"<string>"
],
"id": "<string>",
"baseID": "<string>",
"returnValue": {},
"completedAutomatedRollouts": [
{
"time": 123,
"passPercent": 123
}
],
"pendingAutomatedRollouts": [
{
"time": 123,
"passPercent": 123
}
],
"returnValueJson5": "<string>",
"variants": [
{
"id": "<string>",
"name": "<string>",
"passPercentage": 50,
"returnValue": {},
"returnValueJson5": "<string>"
}
]
}
],
"defaultValue": {},
"defaultValueJson5": "<string>",
"owner": {
"ownerID": "user123",
"ownerType": "USER",
"ownerName": "John Doe",
"ownerEmail": "owner123@test.com"
},
"schema": "<string>",
"schemaJson5": "<string>",
"releasePipelineID": "<string>",
"isTemplate": true,
"status": "Enabled"
}
}
Optional header to respect review settings for mutation endpoints.
id
Was this page helpful?