Config API
4 operations. Back to the API overview. Examples use synthetic data.
Returns the current configuration, or with ?at=RFC3339 the whole configuration as it was at that moment
GET /admin/v1/config
Returns the current configuration, or with ?at=RFC3339 the whole configuration as it was at that moment.
Needs the permission: config:history.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
at | query | string | optional | - |
Response 200
{
"at": {},
"entities": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/config"Put config
PUT /admin/v1/config/{kind}/{id}
A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
kind | path | string | required | - |
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
deleted | boolean | optional | - |
document | any | optional | - |
reason | string | optional | - |
version | integer | optional | - |
{
"deleted": true,
"document": {},
"reason": "Example text",
"version": 1
}Response 200
{}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request PUT \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"deleted":true,"document":{},"reason":"Example text","version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/config/example-kind/example-id"Config history
GET /admin/v1/config/{kind}/{id}/history
Needs the permission: config:history.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
kind | path | string | required | - |
id | path | string | required | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
id | any | optional | - |
kind | any | optional | - |
versions | any | optional | - |
{
"id": {},
"kind": {},
"versions": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/config/example-kind/example-id/history"Restores an entity's document from an earlier version, as a new version (history is never rewritten)
POST /admin/v1/config/{kind}/{id}/rollback
Restores an entity's document from an earlier version, as a new version (history is never rewritten). A further permission depends on the resource (for configuration, the write permission of its kind: config:write, or senders:write for senders).
Needs the permission: config:rollback.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
kind | path | string | required | - |
id | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
reason | string | optional | - |
to_version | integer | optional | - |
version | integer | optional | - |
{
"reason": "Example text",
"to_version": 1,
"version": 1
}Response 200
{}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"reason":"Example text","to_version":1,"version":1}' \
"https://YOUR-CONSOLE-HOST/admin/v1/config/example-kind/example-id/rollback"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.