Request headers

Only registered user can perform this action
  Authentication - string - required
    Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"

Request body example

{
  "twitter_account": {
    "nickname": "NICKNAME",
    "team_ids": [1, 2, ...]
  }
}

Success response body

{
  "id": 1,
  "screen_name": "SCREEN NAME",
  "logo_url": "LOGO URL",
  "nickname": "NICKNAME",
  "teams_count": 2
}

Params

Param name Description
id
required

ID of Twitter Account

Validations:

  • Must be a Integer

twitter_account
required

Validations:

  • Must be a Hash

twitter_account[nickname]
optional

Validations:

  • Must be a String

twitter_account[team_ids]
required , nil allowed

Validations:

  • Must be an array of Integer