update API for creating profile