POST | /integrations/{integrationId}/sync |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class SyncIntegrationResult implements IConvertible
{
String? log;
SyncIntegrationResult({this.log});
SyncIntegrationResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
log = json['log'];
return this;
}
Map<String, dynamic> toJson() => {
'log': log
};
getTypeName() => "SyncIntegrationResult";
TypeContext? context = _ctx;
}
class SyncIntegration implements IConvertible
{
String? integrationId;
SyncIntegration({this.integrationId});
SyncIntegration.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
integrationId = json['integrationId'];
return this;
}
Map<String, dynamic> toJson() => {
'integrationId': integrationId
};
getTypeName() => "SyncIntegration";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: <String, TypeInfo> {
'SyncIntegrationResult': TypeInfo(TypeOf.Class, create:() => SyncIntegrationResult()),
'SyncIntegration': TypeInfo(TypeOf.Class, create:() => SyncIntegration()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /integrations/{integrationId}/sync HTTP/1.1
Host: team.evovoice.io
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"integrationId":"String"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"log":"String"}