Add a new configuration
POST
/configurations
const url = 'http://localhost:8000/api/v1/configurations';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"key":"default-wallet","value":"{\"theme\": \"dark\", \"color\": \"#333333\"}","type":"string","client_id":"245cb3df-df3a-428b-a908-e5f74b8d58a3:245cb3df-df3a-428b-a908-e5f74b8d58a4"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8000/api/v1/configurations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "key": "default-wallet", "value": "{\"theme\": \"dark\", \"color\": \"#333333\"}", "type": "string", "client_id": "245cb3df-df3a-428b-a908-e5f74b8d58a3:245cb3df-df3a-428b-a908-e5f74b8d58a4" }'Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ” Media type application/json
object
key
required
string
Example
theme value
required
object
Example
{"theme": "dark", "color": "#333333"} type
required
string
Example
string client_id
Unique identifier for your local client
string format: string
Example
245cb3df-df3a-428b-a908-e5f74b8d58a3:245cb3df-df3a-428b-a908-e5f74b8d58a4Responses
Section titled “ Responses ”Configuration added successfully
Validation error