Update a WhatsApp Business Profile
curl --request PUT \
--url https://api.social-api.ai/v1/platforms/whatsapp/phone-numbers/{phone_number_id}/business-profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"about": "Reach us 9-5 weekdays.",
"address": "1 Hacker Way, Menlo Park, CA",
"description": "Acme Corp customer support.",
"email": "[email protected]",
"profile_picture_handle": "4::aW1hZ2UvanBlZw==",
"vertical": "RETAIL",
"websites": [
"https://acme.com"
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
about: 'Reach us 9-5 weekdays.',
address: '1 Hacker Way, Menlo Park, CA',
description: 'Acme Corp customer support.',
email: '[email protected]',
profile_picture_handle: '4::aW1hZ2UvanBlZw==',
vertical: 'RETAIL',
websites: ['https://acme.com']
})
};
fetch('https://api.social-api.ai/v1/platforms/whatsapp/phone-numbers/{phone_number_id}/business-profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/whatsapp/phone-numbers/{phone_number_id}/business-profile"
payload = {
"about": "Reach us 9-5 weekdays.",
"address": "1 Hacker Way, Menlo Park, CA",
"description": "Acme Corp customer support.",
"email": "[email protected]",
"profile_picture_handle": "4::aW1hZ2UvanBlZw==",
"vertical": "RETAIL",
"websites": ["https://acme.com"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}WhatsApp
Update a WhatsApp Business Profile
Updates one or more fields of the public business profile (about, address, description, email, websites, vertical, profile_picture_handle). Only provided fields are changed. The profile picture itself is changed by passing a profile_picture_handle obtained from the Resumable Upload API; profile_picture_url is read-only.
PUT
/
platforms
/
whatsapp
/
phone-numbers
/
{phone_number_id}
/
business-profile
Update a WhatsApp Business Profile
curl --request PUT \
--url https://api.social-api.ai/v1/platforms/whatsapp/phone-numbers/{phone_number_id}/business-profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"about": "Reach us 9-5 weekdays.",
"address": "1 Hacker Way, Menlo Park, CA",
"description": "Acme Corp customer support.",
"email": "[email protected]",
"profile_picture_handle": "4::aW1hZ2UvanBlZw==",
"vertical": "RETAIL",
"websites": [
"https://acme.com"
]
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
about: 'Reach us 9-5 weekdays.',
address: '1 Hacker Way, Menlo Park, CA',
description: 'Acme Corp customer support.',
email: '[email protected]',
profile_picture_handle: '4::aW1hZ2UvanBlZw==',
vertical: 'RETAIL',
websites: ['https://acme.com']
})
};
fetch('https://api.social-api.ai/v1/platforms/whatsapp/phone-numbers/{phone_number_id}/business-profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/whatsapp/phone-numbers/{phone_number_id}/business-profile"
payload = {
"about": "Reach us 9-5 weekdays.",
"address": "1 Hacker Way, Menlo Park, CA",
"description": "Acme Corp customer support.",
"email": "[email protected]",
"profile_picture_handle": "4::aW1hZ2UvanBlZw==",
"vertical": "RETAIL",
"websites": ["https://acme.com"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}Authorizations
Path Parameters
Body
application/json
Profile fields to update
Email is the contact email.
Example:
Response
Profile updated