Update a configuration

Updates a configuration by the given id.

put
Path parameters
idstringRequired

The id of the configuration.

Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

Auth-Key is required to authenticate the request. If missing, the server will return 401 Unauthorized.

Example: YOUR_AUTH_KEY
Body

This class represents the configuration data transfer object which is used to create or update a configuration.

groupCodestring · min: 1Required

The group code of the configuration.

codestring · min: 1Required

The code of the configuration.

namestring · min: 1Required

The name of the configuration.

valuestring · min: 1Required

The value of the configuration.

descriptionstring | nullableOptional

The description of the configuration.

statusstring · enumOptional

This enum is used to define the common status of an object in JFW.

Supported values:

Possible values:
Responses
200

The request was successful.

application/json
put
PUT /api/v1/configurations/{id} HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 104

{
  "groupCode": "text",
  "code": "text",
  "name": "text",
  "value": "text",
  "description": "text",
  "status": "Inactive"
}
{
  "success": true,
  "statusCode": 201,
  "message": "The request was successful.",
  "data": {
    "id": "sApKpllz4sAplsmzha",
    "groupCode": "GROUP_CODE",
    "code": "CODE",
    "name": "Name",
    "value": "Value",
    "description": "Description",
    "status": "Active",
    "isSystem": false
  },
  "errors": []
}

Last updated

Was this helpful?