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

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

Success response body

{
  "id": 1,
  "ig_user_name": "USER NAME",
  "ig_profile_picture_url": "PROFILE PICTURE URL",
  "nickname": "NICKNAME",
  "teams_count": 1
}

Params

Param name Description
id
required

ID of Instagram Account

Validations:

  • Must be a Integer

instagram_account
required

Validations:

  • Must be a Hash

instagram_account[nickname]
optional

Validations:

  • Must be a String

instagram_account[team_ids]
required , nil allowed

Validations:

  • Must be an array of Integer