digitaluapi

<back to all web services

AvatarsAdd

Requires Authentication
Requires any of the roles:Client, Admin, Partner
The following routes are available for this service:
POST/avatars
"use strict";
export class AvatarsAddResponse {
    /** @param {{TenantsId?:number,Name?:string,Gender?:string,AgeGroup?:string,Style?:string,ImageUrl?:string,EthnicGroup?:string,ResponseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    TenantsId;
    /** @type {string} */
    Name;
    /** @type {string} */
    Gender;
    /** @type {string} */
    AgeGroup;
    /** @type {string} */
    Style;
    /** @type {string} */
    ImageUrl;
    /** @type {string} */
    EthnicGroup;
    /** @type {ResponseStatus} */
    ResponseStatus;
}
export class AvatarsAdd {
    /** @param {{TenantsId?:number,Name?:string,Gender?:string,AgeGroup?:string,Style?:string,ImageUrl?:string,EthnicGroup?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    TenantsId;
    /** @type {string} */
    Name;
    /** @type {string} */
    Gender;
    /** @type {string} */
    AgeGroup;
    /** @type {string} */
    Style;
    /** @type {string} */
    ImageUrl;
    /** @type {string} */
    EthnicGroup;
}

JavaScript AvatarsAdd DTOs

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

HTTP + OTHER

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

POST /avatars HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"TenantsId":0,"Name":"String","Gender":"String","AgeGroup":"String","Style":"String","ImageUrl":"String","EthnicGroup":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"TenantsId":0,"Name":"String","Gender":"String","AgeGroup":"String","Style":"String","ImageUrl":"String","EthnicGroup":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}