ForSURE.settingspage.profile_management.profile_management_endpoints
Base URL for all requests
async def get_profiles_list()
Get the available profiles. If none are defined yet, it will create one named 'New Profile'.
Returns
Successful response
[ { "id": 14, "name": "Profile Name", "liveData": false }, { "id": 27, "name": "Shopify", "liveData": true }, ]
async def add_profile()
Adds a new profile.
Parameters
- profile:
{ "name": "Profile Name", "liveData": false }
Returns
Successful response
{ "id": 14, "name": "Profile Name", "liveData": false }
async def delete_profiles()
Deletes a profile.
Parameters
- profile_id: int containing the profile ID
Returns
Successful response
{"success": true}
async def edit_profile()
Edits an existing profile.
Parameters
- profile:
{ "id": 14 "name": "New Profile Name", "liveData": false }
Returns
Successful response
{ "id": 14, "name": "New Profile Name", "liveData": false }