Update application general settings
POST
/api/v2/client/applications/{application_id}/general
const url = 'https://app.affisemmp.com/api/v2/client/applications/1/general';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"timezone":"Europe/Moscow","currency_iso":"USD","probabilistic":false,"is_default":true,"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://app.affisemmp.com/api/v2/client/applications/1/general \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "timezone": "Europe/Moscow", "currency_iso": "USD", "probabilistic": false, "is_default": true, "icon": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..." }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” application_id
required
integer
The ID of the application.
Example
1Request Body required
Section titled “Request Body required ” Media type application/json
object
timezone
required
The timezone for the application.
string
Example
Europe/Moscow currency_iso
required
The currency ISO code.
string
Example
USD probabilistic
required
Whether probabilistic attribution is enabled.
boolean
Example
false is_default
Marks the application as the default one. Only true is accepted.
boolean
Example
true icon
The application icon as a base64 data uri, up to 5 mb. Accepted types: image/png, image/jpeg, image/gif. Leave it out to keep the current icon.
string
Example
data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...Responses
Section titled “ Responses ” Media type application/json
object
message
string
Example
{ "message": "Application general successfully updated"}