NOT FOR PUBLIC DISTRIBUTION: 2020-09-23
Upload a profile photo
post
/spms/v1/guest/photo
This is to upload a profile photo
Request
Supported Media Types
- application/json
Required to upload profile photo
Root Schema : profilePhoto
Type:
object
Profile Photo
Show Source
-
accountId(optional):
integer
Example:
1
-
format(optional):
string
Minimum Value:
2
Maximum Value:200
Example:.jpg
-
image(optional):
string
Minimum Value:
1
Maximum Value:2097152
Example:/9j/4AAQSkZJRgABAQEASABIAAD==
Response
Supported Media Types
- application/json
200 Response
Returns updated Profile Photo
Root Schema : profilePhoto
Type:
object
Profile Photo
Show Source
-
accountId(optional):
integer
Example:
1
-
format(optional):
string
Minimum Value:
2
Maximum Value:200
Example:.jpg
-
image(optional):
string
Minimum Value:
1
Maximum Value:2097152
Example:/9j/4AAQSkZJRgABAQEASABIAAD==
400 Response
Error when uploaded a corrupted image or image that exceeded 2MB limit
Root Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
-
detail(optional):
string
Example:
[ "Invalid, corrupted or no photo upload", "Uploaded image size exceeded 2 MB" ]
-
title(optional):
string
Example:
Bad Request
-
type(optional):
string
Example:
HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1
403 Response
This API is not allowed for the current user
Root Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
-
detail(optional):
string
Example:
There are validation errors for the object......
-
title(optional):
string
Example:
validation fails for row with key={123}
-
type(optional):
string
Example:
HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1
406 Response
The media supplied is not supported
Root Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
-
detail(optional):
string
Example:
There are validation errors for the object......
-
title(optional):
string
Example:
validation fails for row with key={123}
-
type(optional):
string
Example:
HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1
415 Response
The media supplied is not supported
Root Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
-
detail(optional):
string
Example:
There are validation errors for the object......
-
title(optional):
string
Example:
validation fails for row with key={123}
-
type(optional):
string
Example:
HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1
500 Response
Error occurred while processing this request
Root Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
-
detail(optional):
string
Example:
There are validation errors for the object......
-
title(optional):
string
Example:
validation fails for row with key={123}
-
type(optional):
string
Example:
HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1
502 Response
Bad Gateway
503 Response
Service not available