TicketUserServices

<back to all web services

EventsSearchIdsRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
POST/Event/SearchIds/
import 'package:servicestack/servicestack.dart';

class EventIdsResult implements IConvertible
{
    List<int>? ids;
    int? statusCode;
    String? message;

    EventIdsResult({this.ids,this.statusCode,this.message});
    EventIdsResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ids = JsonConverters.fromJson(json['ids'],'List<int>',context!);
        statusCode = json['statusCode'];
        message = json['message'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ids': JsonConverters.toJson(ids,'List<int>',context!),
        'statusCode': statusCode,
        'message': message
    };

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

class EventsSearchIdsRequest implements IConvertible
{
    String? name;
    String? externalID;
    String? externalIdType;

    EventsSearchIdsRequest({this.name,this.externalID,this.externalIdType});
    EventsSearchIdsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        name = json['name'];
        externalID = json['externalID'];
        externalIdType = json['externalIdType'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'name': name,
        'externalID': externalID,
        'externalIdType': externalIdType
    };

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

TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
    'EventIdsResult': TypeInfo(TypeOf.Class, create:() => EventIdsResult()),
    'EventsSearchIdsRequest': TypeInfo(TypeOf.Class, create:() => EventsSearchIdsRequest()),
});

Dart EventsSearchIdsRequest 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 /Event/SearchIds/ HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	name: String,
	externalID: String,
	externalIdType: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ids: 
	[
		0
	],
	statusCode: 0,
	message: String
}