CreateUserProfilePicture

 

UserService / CreateUserProfilePicture

 

Description: Create user profile picture

URL: http://{your-server-url}/api/v1/core/users/{userid}/picture

Method: POST

Token Required: True


Request Headers:
token: {token}
currentaccountid: {accountid - optional and default value is user's own account}
Request Query Parameters:
Parameter Type Nullable Description
filename string False File Name cannot be null or empty and must with extension e.g. filename=file.jpg

Example: http://{your-server-url}/api/v1/core/users/{userid}/picture?filename=string


Response:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.User.UserResponse

Parameter Type
Response.Result boolean

The following is an example response Xml body:
<UserResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.v1.User" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <DebugMessage xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">String</DebugMessage>
  <Errors xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">
    <Error>
      <Code>String</Code>
      <Message>String</Message>
      <StackTrace>String</StackTrace>
    </Error>
  </Errors>
  <Status xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">Success</Status>
  <Result>true</Result>
</UserResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"Result":true
}