put https://partner.gupshup.io/partner/app//onboarding/contact
Use this endpoint for Contact details.
Parameters
Key | Description | Constraints |
---|---|---|
appId | AppId of the app for which business contact details need to be updated. | Should be a valid appId for the account. |
contactEmail | Email id to contact business. | Should be a valid email id. |
contactName | Contact name for business | Should be a valid name for business |
contactNumber | Phone number to contact business | Should be a valid phone number. |
Sample Request
curl --location --request PUT '{{partner_portal_base_url}}/partner/app/:appId/onboarding/contact' \
--header 'token: {{PARTNER_TOKEN}}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'contactEmail=<contact_email_id>' \
--data-urlencode 'contactName=<contact_name>' \
--data-urlencode 'contactNumber=<contact_phone_number>'
Sample Response
{
"status" : "success",
"message" : "contact details updated successfully"
}
Status Codes
Status Code | Response | Comment |
---|---|---|
Success | ||
200 | { "status" : "success", "message" : "contact details updated successfully" } | Successfully updated the contact details for the business. |
Error | ||
400 | { "status" : "error", "message" : "Invalid app id provided" } | Provided appId is incorrect. |
400 | { "status" : "error", "message" : "Please provide valid details" } | Provided contactEmail or contactName or contactNumber is not valid. |
401 | { "status": "error", "message": "Authentication Failed" } | Either appId or partner_token is incorrect. |
429 | { "status": "error", "message": "Too Many Requests" } | When the request rate limit exceeds. |