# Update

Update Team

Method: PATCH

# Endpoint:

https://api.serveravatar.com/teams/{id}

# Parameter:

Form Index Required Type Description
name Yes String Team name.

# Request Example:

curl --request PATCH \
  --url "https://api.serveravatar.com/teams/1101" \
  --header 'content-type: application/json' \
  --header 'accept: application/json' \
  --header 'Authorization: <YOUR API TOKEN>' \
  --data '{
        "name": "Test Project"
  }'

# Response:

# Team Update:

  • 200 (Ok)
{
  "team": {
    "id": 1101,
    "user_id": 1101,
    "name": "Test Project",
    "created_at": "2020-02-15 10:42:54",
    "updated_at": "2020-02-15 10:42:54",
    "deleted_at": null,
  },
  "message": "Team successfully updated."
}

# Duplicate Name Found

  • 500 (Internal Server Error)
{
  "message": "Duplicate team name found!"
}

# Team Not Found:

  • 404 (Not found)
{
  "message": "Team not found."
}

# Server Error

  • 500 (Internal Server Error)
{
  "message": "Something went really wrong!"
}