regis

<back to all web services

CRMUpdateFieldByRegentIdRequest

Requires Authentication
Required permission:UpdateCRM
The following routes are available for this service:
POST/DynamicsCRM/UpdateFieldByRegentId
import 'package:servicestack/servicestack.dart';

class Updates implements IConvertible
{
    int? regent_id;
    String? field_value;

    Updates({this.regent_id,this.field_value});
    Updates.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        regent_id = json['regent_id'];
        field_value = json['field_value'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'regent_id': regent_id,
        'field_value': field_value
    };

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

class CRMUpdateFieldByRegentIdRequest implements IConvertible
{
    String? field_name;
    List<Updates>? updates;

    CRMUpdateFieldByRegentIdRequest({this.field_name,this.updates});
    CRMUpdateFieldByRegentIdRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        field_name = json['field_name'];
        updates = JsonConverters.fromJson(json['updates'],'List<Updates>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'field_name': field_name,
        'updates': JsonConverters.toJson(updates,'List<Updates>',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
    'Updates': TypeInfo(TypeOf.Class, create:() => Updates()),
    'CRMUpdateFieldByRegentIdRequest': TypeInfo(TypeOf.Class, create:() => CRMUpdateFieldByRegentIdRequest()),
    'List<Updates>': TypeInfo(TypeOf.Class, create:() => <Updates>[]),
});

Dart CRMUpdateFieldByRegentIdRequest DTOs

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

HTTP + JSV

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

POST /DynamicsCRM/UpdateFieldByRegentId HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	field_name: String,
	updates: 
	[
		{
			regent_id: 0,
			field_value: String
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	errorCode: String,
	message: String,
	stackTrace: String,
	errors: 
	[
		{
			errorCode: String,
			fieldName: String,
			message: String,
			meta: 
			{
				String: String
			}
		}
	],
	meta: 
	{
		String: String
	}
}