<back to all web services

DECEnableContentAnalysisDto

The following routes are available for this service:
POST/RestApi/sitefinity/data-intelligence/enable-content-analysis
import 'package:servicestack/servicestack.dart';

class DECEnableContentAnalysisDto implements IConvertible
{
    int? Progress;
    String? DataCenterApiKey;
    List<String>? SiteNames;
    String? StatusMessage;

    DECEnableContentAnalysisDto({this.Progress,this.DataCenterApiKey,this.SiteNames,this.StatusMessage});
    DECEnableContentAnalysisDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Progress = json['Progress'];
        DataCenterApiKey = json['DataCenterApiKey'];
        SiteNames = JsonConverters.fromJson(json['SiteNames'],'List<String>',context!);
        StatusMessage = json['StatusMessage'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Progress': Progress,
        'DataCenterApiKey': DataCenterApiKey,
        'SiteNames': JsonConverters.toJson(SiteNames,'List<String>',context!),
        'StatusMessage': StatusMessage
    };

    getTypeName() => "DECEnableContentAnalysisDto";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
    'DECEnableContentAnalysisDto': TypeInfo(TypeOf.Class, create:() => DECEnableContentAnalysisDto()),
});

Dart DECEnableContentAnalysisDto DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /RestApi/sitefinity/data-intelligence/enable-content-analysis HTTP/1.1 
Host: www.asg.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Progress":0,"DataCenterApiKey":"String","SiteNames":["String"],"StatusMessage":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Progress":0,"DataCenterApiKey":"String","SiteNames":["String"],"StatusMessage":"String"}