put https://api.gupshup.io/wa/app//business/profile/photo
Request Parameters
| Key | Description | Constraints |
|---|---|---|
| Headers | ||
| apikey | Apikey of the account where the app is to be created | Should be a valid gupshup.io apikey |
| Path Params | ||
| appId | Valid app id | |
| Form Params | ||
| image | Profile photo image file | Max allowed size : 5242880 bytes |
Status Codes
| Status Code | Response | Comments |
|---|---|---|
| Success | ||
| 200 | { "message": "profile photo deleted successfully", "status": "success" } | |
| Error | ||
| 400 | { "message": "Please select a profile picture before uploading", "status": "error" } | When photo is not provided in request |
| 400 | { "error": { "message": "App Not Live" }, "status": "error" } | When app is not live |
| 400 | { "error": { "message": "Uploaded Photo Size Exceeded, Current Image Size is <image_size> but max allowed is <max_image_size_allowed>" }, "status": "error" } | When photo size exceeds max allowed size |
| 400 | { "status": "error", "error": { "message": "" } } | When Facebook returns an error while setting business profile details |
| 401 | { "status": "error", "message": "Authentication Failed" } | When API key is unauthorized |
| 429 | { "status": "error", "message": "Too Many Requests" } | When the rate limit is exceeded |
| 500 | { "status": "error", "message": "Internal server error. Please try again later." } | When internal server error while processing |
