regis

<back to all web services

PersonPictureUploadRequest

Requires Authentication
Required permission:PicturePermission
The following routes are available for this service:
POST/person/{uuid}/picture/upload
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class PersonPictureUploadRequest implements IConvertible
{
    String? image_base64;
    String? uuid;
    String? contentType;

    PersonPictureUploadRequest({this.image_base64,this.uuid,this.contentType});
    PersonPictureUploadRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        image_base64 = json['image_base64'];
        uuid = json['uuid'];
        contentType = json['contentType'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'image_base64': image_base64,
        'uuid': uuid,
        'contentType': contentType
    };

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

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

Dart PersonPictureUploadRequest 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 /person/{uuid}/picture/upload HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	image_base64: String,
	uuid: String,
	contentType: 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
	}
}