Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 604 Bytes

post-index.md

File metadata and controls

34 lines (28 loc) · 604 Bytes

POST /api/config

Updates config entries.

curl --request POST \
  --url 'URL/api/config \
  --header 'authorization: Bearer TOKEN' \
  --header 'content-type: application/json' \
  --data '{
    "entries": {
	   "foo.bar_baz": "New value"
    }
  }'

Security requirements

ROLE_SUPER_ADMIN role.

Request

Object containing configuration in key-value pairs. If key already exist and it's value is different than sent, than it will be replaced and correct historical entry will be created.

{
  "entries": {
    "foo.bar_baz": "New value"
  }
}

Result

Empty JSON object.