action configcat_replace_setting_value_by_sdkkey { label: "Replace value" description: "This endpoint replaces the value of a Feature Flag or Setting \nin a specified Environment identified by the SDK key passed in the `X-CONFIGCAT-SDKKEY` header.\n\nOnly the `value`, `rolloutRules` and `percentageRules` attributes are modifiable by this endpoint.\n\n**Important:** As this endpoint is doing a complete replace, it's important to set every other attribute that you don't \nwant to change to its original state. Not listing one means that it will reset.\n\nFor example: We have the following resource.\n```\n{\n \"rolloutPercentageItems\": [\n {\n \"percentage\": 30,\n \"value\": true\n },\n {\n \"percentage\": 70,\n \"value\": false\n }\n ],\n \"rolloutRules\": [],\n \"value\": false\n}\n```\nIf we send a replace request body as below:\n```\n{\n \"value\": true\n}\n```\nThen besides that the default served value is set to `true`, all the Percentage Rules are deleted. \nSo we get a response like this:\n```\n{\n \"rolloutPercentageItems\": [],\n \"rolloutRules\": [],\n \"value\": true\n}\n```" provider: configcat method: PUT path: "/v1/settings/{settingKeyOrId}/value" encoding: json input: { type: "object" properties: { "X-CONFIGCAT-SDKKEY": { type: "string" } reason: { type: "string" } rolloutPercentageItems: { type: "array" description: "The percentage rule collection." items: { type: "object" required: ["percentage"] properties: { percentage: { type: "integer" format: "int64" description: "The percentage value for the rule." } value: { description: "The value to serve when the user falls in the percentage rule. It must respect the setting type." type: "object" } } additionalProperties: false } } rolloutRules: { type: "array" description: "The targeting rule collection." items: { type: "object" properties: { comparator: { type: "string" enum: ["isOneOf", "isNotOneOf", "contains", "doesNotContain", "semVerIsOneOf", "semVerIsNotOneOf", "semVerLess", "semVerLessOrEquals", "semVerGreater", "semVerGreaterOrEquals", "numberEquals", "numberDoesNotEqual", "numberLess", "numberLessOrEquals", "numberGreater", "numberGreaterOrEquals", "sensitiveIsOneOf", "sensitiveIsNotOneOf"] } comparisonAttribute: { type: "string" description: "The user attribute to compare." } comparisonValue: { type: "string" description: "The value to compare against." } segmentComparator: { type: "string" enum: ["isIn", "isNotIn"] } segmentId: { type: "string" format: "uuid" description: "The segment to compare against." } value: { description: "The value to serve when the comparison matches. It must respect the setting type." type: "object" } } additionalProperties: false } } settingKeyOrId: { type: "string" } value: { description: "The value to serve. It must respect the setting type." type: "object" } } required: ["settingKeyOrId"] additionalProperties: false } output: { type: "object" properties: { config: { type: "object" properties: { configId: { type: "string" format: "uuid" } description: { type: "string" } name: { type: "string" } order: { type: "integer" format: "int32" } product: { type: "object" properties: { description: { type: "string" } name: { type: "string" } order: { type: "integer" format: "int32" } organization: { type: "object" properties: { name: { type: "string" } organizationId: { type: "string" format: "uuid" } } additionalProperties: false } productId: { type: "string" format: "uuid" } reasonRequired: { type: "boolean" } } additionalProperties: false } } additionalProperties: false } environment: { type: "object" properties: { color: { type: "string" } description: { type: "string" } environmentId: { type: "string" format: "uuid" } name: { type: "string" } order: { type: "integer" format: "int32" } product: { type: "object" additionalProperties: true } reasonRequired: { type: "boolean" } } additionalProperties: false } integrationLinks: { type: "array" items: { type: "object" properties: { description: { type: "string" } integrationLinkType: { type: "string" enum: ["trello", "jira", "monday"] } key: { type: "string" } url: { type: "string" } } additionalProperties: false } } lastUpdaterUserEmail: { type: "string" } lastUpdaterUserFullName: { type: "string" } readOnly: { type: "boolean" } rolloutPercentageItems: { type: "array" description: "The percentage rule collection." items: { type: "object" required: ["percentage"] properties: { percentage: { type: "integer" format: "int64" description: "The percentage value for the rule." } value: { description: "The value to serve when the user falls in the percentage rule. It must respect the setting type." type: "object" } } additionalProperties: false } } rolloutRules: { type: "array" description: "The targeting rule collection." items: { type: "object" properties: { comparator: { type: "string" enum: ["isOneOf", "isNotOneOf", "contains", "doesNotContain", "semVerIsOneOf", "semVerIsNotOneOf", "semVerLess", "semVerLessOrEquals", "semVerGreater", "semVerGreaterOrEquals", "numberEquals", "numberDoesNotEqual", "numberLess", "numberLessOrEquals", "numberGreater", "numberGreaterOrEquals", "sensitiveIsOneOf", "sensitiveIsNotOneOf"] } comparisonAttribute: { type: "string" description: "The user attribute to compare." } comparisonValue: { type: "string" description: "The value to compare against." } segmentComparator: { type: "string" enum: ["isIn", "isNotIn"] } segmentId: { type: "string" format: "uuid" description: "The segment to compare against." } value: { description: "The value to serve when the comparison matches. It must respect the setting type." type: "object" } } additionalProperties: false } } setting: { type: "object" properties: { createdAt: { type: "string" format: "date-time" } creatorEmail: { type: "string" } creatorFullName: { type: "string" } hint: { type: "string" } isWatching: { type: "boolean" } key: { type: "string" } name: { type: "string" } order: { type: "integer" format: "int32" } settingId: { type: "integer" format: "int32" } settingType: { type: "string" enum: ["boolean", "string", "int", "double"] } } additionalProperties: false } settingTags: { type: "array" items: { type: "object" properties: { color: { type: "string" } name: { type: "string" } settingTagId: { type: "integer" format: "int64" } tagId: { type: "integer" format: "int64" } } additionalProperties: false } } updatedAt: { type: "string" format: "date-time" } value: { description: "The value to serve. It must respect the setting type." type: "object" } } additionalProperties: false } }