BokaMera.API.Host

<back to all web services

ResetWidgetConfiguration

Requires Authentication
The following routes are available for this service:
PUT/widget/configuration/{Id}/resetReset the homepage default widget configuration to factory defaultsResets the auto-provisioned homepage default configuration's Configuration JSON and SchemaVersion back to the factory-default values. Only valid for the homepage default configuration — returns 400 for any other configuration.
ResetWidgetConfiguration Parameters:
NameParameterData TypeRequiredDescription
CompanyIdbodyGuid?NoThe company id, if empty will use the company id for the user you are logged in with.
IdpathstringYesThe widget configuration id (6-character NanoID).
WidgetConfigurationResponse Parameters:
NameParameterData TypeRequiredDescription
IdformstringYes
CompanyIdformGuidNo
NameformstringYes
SlugformstringNo
DescriptionformstringNo
ConfigurationformstringYes
SchemaVersionformintNo
IsHomepageDefaultformboolNo
CreatedDateformDateTimeNo
UpdatedDateformDateTimeOffset?No
ResponseStatusformResponseStatusYes

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /widget/configuration/{Id}/reset HTTP/1.1 
Host: api.bookmore.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"CompanyId":"00000000-0000-0000-0000-000000000000","Id":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Id":"String","Name":"String","Slug":"String","Description":"String","Configuration":"String","SchemaVersion":0,"IsHomepageDefault":false,"UpdatedDate":"0001-01-01T00:00:00.0000000+00:00","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}