Update a configuration
Path parameters
idstringRequired
The id of the configuration.
Header parameters
Brand-URLstringRequiredExample:
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Auth-KeystringRequiredExample:
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
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
401
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
application/json
429
The user has exceeded the rate limit.
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?