Put()

Add or Update

Description

Adds or updates a service setting

Package Details

Interface

IServiceSettingManager

Syntax

await serviceSettingManager.Put(ServiceSetting serviceSetting);

Returns

Task<ServiceSetting>

API

POST
/api/v1/service-settings

Parameters

Parameter

Description

Parameter Type

Parameter

Description

Parameter Type

ServiceSetting

Service Setting

request body

Sample request body

{ "Key": "your key", "ServiceId": 0, "Value": "your value" }

Returns

200 OK - Service Setting

Example

var serviceSetting = new ServiceSetting { ServiceId = 11, Key = "Key", Value = "A value" }; var serviceSetting = await _serviceSettingManager.Put(serviceSetting);