Portal

<back to all web services

EditUserByVeoliaAdmin

Requires Authentication
Required role:VeoliaAdmin
The following routes are available for this service:
PUT/user/{userid}/byveoliaadmin
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class EditUserByVeoliaAdmin implements IPut
    {
        public Integer UserId = null;
        public String PhoneNumber = null;
        public String DisplayName = null;
        public String PhoneNumberExtension = null;
        public String PhoneNumberCountryCode = null;
        public String MobilePhoneNumber = null;
        public String MobilePhoneNumberCountryCode = null;
        public String OrganizationUnit = null;
        public String Position = null;
        public ApplicationUserStatus Status = null;
        public Boolean IsSupplierAdmin = null;
        
        public Integer getUserId() { return UserId; }
        public EditUserByVeoliaAdmin setUserId(Integer value) { this.UserId = value; return this; }
        public String getPhoneNumber() { return PhoneNumber; }
        public EditUserByVeoliaAdmin setPhoneNumber(String value) { this.PhoneNumber = value; return this; }
        public String getDisplayName() { return DisplayName; }
        public EditUserByVeoliaAdmin setDisplayName(String value) { this.DisplayName = value; return this; }
        public String getPhoneNumberExtension() { return PhoneNumberExtension; }
        public EditUserByVeoliaAdmin setPhoneNumberExtension(String value) { this.PhoneNumberExtension = value; return this; }
        public String getPhoneNumberCountryCode() { return PhoneNumberCountryCode; }
        public EditUserByVeoliaAdmin setPhoneNumberCountryCode(String value) { this.PhoneNumberCountryCode = value; return this; }
        public String getMobilePhoneNumber() { return MobilePhoneNumber; }
        public EditUserByVeoliaAdmin setMobilePhoneNumber(String value) { this.MobilePhoneNumber = value; return this; }
        public String getMobilePhoneNumberCountryCode() { return MobilePhoneNumberCountryCode; }
        public EditUserByVeoliaAdmin setMobilePhoneNumberCountryCode(String value) { this.MobilePhoneNumberCountryCode = value; return this; }
        public String getOrganizationUnit() { return OrganizationUnit; }
        public EditUserByVeoliaAdmin setOrganizationUnit(String value) { this.OrganizationUnit = value; return this; }
        public String getPosition() { return Position; }
        public EditUserByVeoliaAdmin setPosition(String value) { this.Position = value; return this; }
        public ApplicationUserStatus getStatus() { return Status; }
        public EditUserByVeoliaAdmin setStatus(ApplicationUserStatus value) { this.Status = value; return this; }
        public Boolean getIsSupplierAdmin() { return IsSupplierAdmin; }
        public EditUserByVeoliaAdmin setIsSupplierAdmin(Boolean value) { this.IsSupplierAdmin = value; return this; }
    }

    public static enum ApplicationUserStatus
    {
        @SerializedName("0") Registered(0),
        @SerializedName("1") ConfirmedByUser(1),
        @SerializedName("2") SupplierUserRegistered(2),
        @SerializedName("3") AwaitingSupplierConfirmation(3),
        @SerializedName("4") AwaitingVeoliaConfirmation(4),
        @SerializedName("5") Active(5),
        @SerializedName("6") Rejected(6),
        @SerializedName("7") Deleted(7);

        private final int value;
        ApplicationUserStatus(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static class ModifyEntityResponse extends ResponseBase
    {
        public Integer Id = null;
        
        public Integer getId() { return Id; }
        public ModifyEntityResponse setId(Integer value) { this.Id = value; return this; }
    }

    public static class ResponseBase
    {
        public ResponseStatus ResponseStatus = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ResponseBase setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

Java EditUserByVeoliaAdmin 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 /user/{userid}/byveoliaadmin HTTP/1.1 
Host: szallitoiportal-be.veolia.hu 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"UserId":0,"PhoneNumber":"String","DisplayName":"String","PhoneNumberExtension":"String","PhoneNumberCountryCode":"String","MobilePhoneNumber":"String","MobilePhoneNumberCountryCode":"String","OrganizationUnit":"String","Position":"String","Status":0,"IsSupplierAdmin":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}}}