TicketUserServices

<back to all web services

CreateMainOwner

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
POST/CRUD/MainOwner/Create
namespace TicketUserServices.ServiceModel

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type CreateMainOwner() = 
        member val IdPath:String = null with get,set
        member val Name:String = null with get,set
        member val Description:String = null with get,set
        member val GenrePath:String = null with get,set
        member val LocationPath:String = null with get,set

    [<AllowNullLiteral>]
    type CreateMainOwnerResponse() = 
        member val Id:Int32 = new Int32() with get,set
        member val ResponseStatus:ResponseStatus = null with get,set

F# CreateMainOwner 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 /CRUD/MainOwner/Create HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	idPath: String,
	name: String,
	description: String,
	genrePath: String,
	locationPath: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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