Config
The config resource.
Basehttps://rest.carbon.ms/config
GET
/configList configs
Retrieve a paginated list of configs. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
GEThttps://rest.carbon.ms/config
curl --request GET \
--url 'https://rest.carbon.ms/config?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"id": true,
"apiUrl": "string",
"anonKey": "string"
}
]GET
/configRetrieve a config
Fetch a single config by filtering on `id`.
Query parameters
idstringMatch on the config's `id`, e.g. `eq.{id}`.
GEThttps://rest.carbon.ms/config
curl --request GET \
--url 'https://rest.carbon.ms/config?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"id": true,
"apiUrl": "string",
"anonKey": "string"
}POST
/configCreate a config
Create a new config.
Body parameters
apiUrlstringrequiredanonKeystringrequiredPOSThttps://rest.carbon.ms/config
curl --request POST \
--url https://rest.carbon.ms/config \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"apiUrl":"string","anonKey":"string"}'Response
{
"id": true,
"apiUrl": "string",
"anonKey": "string"
}PATCH
/configUpdate a config
Update an existing config, matched on `id`.
Body parameters
apiUrlstringrequiredanonKeystringrequiredPATCHhttps://rest.carbon.ms/config
curl --request PATCH \
--url 'https://rest.carbon.ms/config?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"apiUrl":"string"}'Response
{
"id": true,
"apiUrl": "string",
"anonKey": "string"
}DELETE
/configDelete a config
Delete a config, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the config to delete, e.g. `eq.{id}`.
DELETEhttps://rest.carbon.ms/config
curl --request DELETE \
--url 'https://rest.carbon.ms/config?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content