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

This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.

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 · enumOptionalPossible 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: 108

{
  "groupCode": "text",
  "code": "text",
  "name": "text",
  "value": "text",
  "description": "text",
  "status": "0 - 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?