User Change Push Name

POST /user/pushname

Update the display name (push name) shown to others in WhatsApp

application/json

Body

  • push_name string Required

    The new display name to set

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
  • 500 application/json

    Internal Server Error

    Hide response attributes Show response attributes object
POST /user/pushname
curl \
 --request POST 'http://localhost:3000/user/pushname' \
 --user "username:password" \
 --header "Content-Type: application/json" \
 --data '{"push_name":"John Doe"}'
Request examples
{
  "push_name": "John Doe"
}
Response examples (200)
{
  "code": "SUCCESS",
  "message": "Success",
  "results": "string"
}
Response examples (400)
{
  "code": 400,
  "message": "field cannot be blank",
  "results": {}
}
Response examples (500)
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "you are not loggin",
  "results": {}
}