Foundry API

<back to all web services

ChangeEmailAddressRequest

Requires Authentication
The following routes are available for this service:
PUT,PATCH/profile/{Id}/email
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ChangeEmailAddressRequest extends PutPatchOperationUnTenanted<UpdateProfileResponse>
    {
        public String id = null;
        public String emailAddress = null;
        
        public String getId() { return id; }
        public ChangeEmailAddressRequest setId(String value) { this.id = value; return this; }
        public String getEmailAddress() { return emailAddress; }
        public ChangeEmailAddressRequest setEmailAddress(String value) { this.emailAddress = value; return this; }
    }

    public static class PutPatchOperationUnTenanted<TResponse> implements IPatch, IPut
    {
        
    }

    public static class UpdateProfileResponse
    {
        public ResponseStatus responseStatus = null;
        public Profile profile = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public UpdateProfileResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
        public Profile getProfile() { return profile; }
        public UpdateProfileResponse setProfile(Profile value) { this.profile = value; return this; }
    }

    public static class Profile extends ProfileBasic
    {
        public String defaultOrganisationId = null;
        
        public String getDefaultOrganisationId() { return defaultOrganisationId; }
        public Profile setDefaultOrganisationId(String value) { this.defaultOrganisationId = value; return this; }
    }

    public static class ProfileBasic implements IIdentifiableResource
    {
        public PersonName name = null;
        public String displayName = null;
        public String emailAddress = null;
        public String phoneNumber = null;
        public String timezone = null;
        public String id = null;
        
        public PersonName getName() { return name; }
        public ProfileBasic setName(PersonName value) { this.name = value; return this; }
        public String getDisplayName() { return displayName; }
        public ProfileBasic setDisplayName(String value) { this.displayName = value; return this; }
        public String getEmailAddress() { return emailAddress; }
        public ProfileBasic setEmailAddress(String value) { this.emailAddress = value; return this; }
        public String getPhoneNumber() { return phoneNumber; }
        public ProfileBasic setPhoneNumber(String value) { this.phoneNumber = value; return this; }
        public String getTimezone() { return timezone; }
        public ProfileBasic setTimezone(String value) { this.timezone = value; return this; }
        public String getId() { return id; }
        public ProfileBasic setId(String value) { this.id = value; return this; }
    }

    public static class PersonName
    {
        public String firstName = null;
        public String lastName = null;
        
        public String getFirstName() { return firstName; }
        public PersonName setFirstName(String value) { this.firstName = value; return this; }
        public String getLastName() { return lastName; }
        public PersonName setLastName(String value) { this.lastName = value; return this; }
    }

}

Java ChangeEmailAddressRequest 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.

PUT /profile/{Id}/email HTTP/1.1 
Host: foundrystage-api-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: String,
	emailAddress: 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
		}
	},
	profile: 
	{
		defaultOrganisationId: String,
		name: 
		{
			firstName: String,
			lastName: String
		},
		displayName: String,
		emailAddress: String,
		phoneNumber: String,
		timezone: String,
		id: String
	}
}