Server

<back to all web services

PostNutzer

Nutzer
Requires Authentication
The following routes are available for this service:
POST/api/v1/nutzer
"use strict";
export class PostNutzerResponse {
    /** @param {{responseStatus?:ResponseStatus,checksumMD5?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResponseStatus} */
    responseStatus;
    /** @type {string} */
    checksumMD5;
}
/** @typedef {'Leerstand'|'Gewerblich'|'Privat'|'AllgemeineNutzung'} */
export var NutzerType;
(function (NutzerType) {
    NutzerType["Leerstand"] = "Leerstand"
    NutzerType["Gewerblich"] = "Gewerblich"
    NutzerType["Privat"] = "Privat"
    NutzerType["AllgemeineNutzung"] = "AllgemeineNutzung"
})(NutzerType || (NutzerType = {}));
export class Nutzer {
    /** @param {{guid?:string,name1?:string,name2?:string,name3?:string,name4?:string,nutzerType?:NutzerType,nutzeinheitNumberExternal?:string,nutzerInNutzeinheitSequence?:number,rangeFrom?:string,rangeTo?:string,isDeleted?:boolean,isCreatedByApp?:boolean,IstUvi?:string,EigentuemerBewohnt?:string,Email?:string,Mobil?:string,title?:string,salutation?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    guid;
    /** @type {string} */
    name1;
    /** @type {string} */
    name2;
    /** @type {string} */
    name3;
    /** @type {string} */
    name4;
    /** @type {NutzerType} */
    nutzerType;
    /** @type {string} */
    nutzeinheitNumberExternal;
    /** @type {number} */
    nutzerInNutzeinheitSequence;
    /** @type {string} */
    rangeFrom;
    /** @type {?string} */
    rangeTo;
    /** @type {boolean} */
    isDeleted;
    /** @type {boolean} */
    isCreatedByApp;
    /** @type {string} */
    IstUvi;
    /** @type {string} */
    EigentuemerBewohnt;
    /** @type {string} */
    Email;
    /** @type {string} */
    Mobil;
    /** @type {string} */
    title;
    /** @type {string} */
    salutation;
}
export class RelatedTo {
    /** @param {{guid?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    guid;
}
export class PostNutzer {
    /** @param {{nutzer?:Nutzer,relatedToNutzeinheit?:RelatedTo,bearerToken?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {Nutzer} */
    nutzer;
    /** @type {RelatedTo} */
    relatedToNutzeinheit;
    /** @type {string} */
    bearerToken;
}

JavaScript PostNutzer 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 /api/v1/nutzer HTTP/1.1 
Host: kromer-servdesk.eras-online.de 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	nutzer: 
	{
		guid: 00000000000000000000000000000000,
		name1: String,
		name2: String,
		name3: String,
		name4: String,
		nutzerType: Leerstand,
		nutzeinheitNumberExternal: String,
		nutzerInNutzeinheitSequence: 0,
		rangeFrom: 0001-01-01T00:00:00Z,
		rangeTo: 0001-01-01T00:00:00Z,
		isDeleted: False,
		isCreatedByApp: False,
		IstUvi: String,
		EigentuemerBewohnt: String,
		Email: String,
		Mobil: String,
		title: String,
		salutation: String
	},
	relatedToNutzeinheit: 
	{
		guid: 00000000000000000000000000000000
	},
	bearerToken: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

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