# Create

Create Team

Method: POST

# Endpoint:

https://api.serveravatar.com/teams

# Parameter:

Form Index Required Type Description
name Yes String Team name.

# Request Example:

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

# Response:

# Team Create:

  • 200 (Ok)
{
	"team": {
      "id": 1103,
      "user_id": 1101,
      "name": "Management",
      "created_at": "2020-02-22 11:08:12",
      "updated_at": "2020-02-22 11:08:12",
      "deleted_at": null
    },
  "message": "Team successfully created."
}

# Server Error

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