Update Data Seller
Updating data seller
Endpoint
Base URL
http://localhost:8080
Method and Endpoint
PATCH /api/sellers/current
Headers
Authorization: Bearer access_token
Responses
You will get responses like this:
200 (success)
Response Body
{
"message": "Update seller Successfully",
"result": {
"UpdateResult": {
"MatchedCount": 1,
"ModifiedCount": 1,
"UpsertedCount": 0,
"UpsertedID": null
}
}
}
400 (bad request)
Response Body
{
"error": "Invalid request body: first_name: u does not validate as minstringlength(2)"
}
401 (unauthorized)
Response Body
{
"error": "Invalid authorization header"
}
401 (unauthorized - expire token)
Response Body
{
"error": "token is expired: token is expired by 2m19s"
}
500 (server error)
Response Body
{
"error": "Internal server error"
}