Update an existing user configuration
PUT
/configurations/{key}
const url = 'http://localhost:8000/api/v1/configurations/default-wallet';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"value":"{\"theme\": \"light\", \"color\": \"#ffffff\"}","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 PUT \ --url http://localhost:8000/api/v1/configurations/default-wallet \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "value": "{\"theme\": \"light\", \"color\": \"#ffffff\"}", "type": "string", "client_id": "245cb3df-df3a-428b-a908-e5f74b8d58a3:245cb3df-df3a-428b-a908-e5f74b8d58a4" }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” key
required
string
Configuration key
Request Body required
Section titled “Request Body required ” Media type application/json
object
value
required
object
Example
{"theme": "light", "color": "#ffffff"} type
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 updated successfully
Configuration not found
Validation error