Skip to main content

Update profile name

Method#

/profile-name#

PUT https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/profile-name


Concept#

This method is responsible for changing your profile name on WhatsApp.


Attributes#

Required#

AttributesTypeDescription
valuestringProfile name

Optional#

AttributesTypeDescription

Request Body#

Body#

{
"value": "Profile name"
}

Response#

200#

AttributesTypeDescription
valuebooleantrue if successful, false in case of failure

Example

{
"value": true
}

405#

In this case, ensure that you are correctly sending the method specification, i.e., check if you sent the POST or PUT as specified at the beginning of this topic.

415#

If you receive a 415 error, make sure to add the "Content-Type" to the headers of the request for the object you are sending, mostly "application/json."