Richemont.Booster2.PublicApi

<back to all web services

UpdateUser

Requires Authentication
The following routes are available for this service:
PUT/users/{userId}Update a user
import 'package:servicestack/servicestack.dart';

class UpdateUserResponse implements IConvertible
{
    UpdateUserResponse();
    UpdateUserResponse.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "UpdateUserResponse";
    TypeContext? context = _ctx;
}

class UpdateUser implements IConvertible
{
    /**
    * User's UserID
    */
    // @ApiMember(Description="User's UserID", IsRequired=true)
    String? userId;

    /**
    * User First Name
    */
    // @ApiMember(Description="User First Name", IsRequired=true)
    String? firstName;

    /**
    * User Last Name
    */
    // @ApiMember(Description="User Last Name", IsRequired=true)
    String? lastName;

    /**
    * User Password
    */
    // @ApiMember(Description="User Password", IsRequired=true)
    String? password;

    /**
    * User Culture
    */
    // @ApiMember(Description="User Culture", IsRequired=true)
    String? culture;

    UpdateUser({this.userId,this.firstName,this.lastName,this.password,this.culture});
    UpdateUser.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        userId = json['userId'];
        firstName = json['firstName'];
        lastName = json['lastName'];
        password = json['password'];
        culture = json['culture'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'userId': userId,
        'firstName': firstName,
        'lastName': lastName,
        'password': password,
        'culture': culture
    };

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

TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: <String, TypeInfo> {
    'UpdateUserResponse': TypeInfo(TypeOf.Class, create:() => UpdateUserResponse()),
    'UpdateUser': TypeInfo(TypeOf.Class, create:() => UpdateUser()),
});

Dart UpdateUser 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.

PUT /users/{userId} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"userId":"String","firstName":"String","lastName":"String","password":"String","culture":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{}