Update Setting

Update a setting

Supply the unique id of the setting to update and an object describing which fields update

Request
path Parameters
id
required
string

ID of the Setting to update

Request Body schema: application/json

The values to update with

Any of:

The values to update with

defaultValue
any

the value that will be taken if no value was passed

value
any

the value of the setting

valueType
string or null

the value type of the setting

Enum: "boolean" "number" "select" "multi-select" "string" "object" "array"
object or null

the scope in which the setting is defined.

metadata
object or null
expiredAt
string or null <date-time>

the date the feature flag expired

property name*
additional property
any
Responses
200

Ok

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

500

Internal Server Error

patch/settings/{id}
Request samples
application/json
{
  • "defaultValue": null,
  • "value": null,
  • "valueType": "boolean",
  • "scope": {
    },
  • "metadata": {
    },
  • "expiredAt": "2019-08-24T14:15:22Z"
}
Response samples
application/json
{
  • "id": "string",
  • "defaultValue": null,
  • "name": "string",
  • "value": null,
  • "valueType": "boolean",
  • "scope": {
    },
  • "metadata": {
    },
  • "settingType": "feature_flag",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "createdBy": "string",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "updatedBy": "string",
  • "expiredAt": "2019-08-24T14:15:22Z",
  • "expired": true
}