Only registered user can perform this action
Authentication - string - required
Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"
{
"facebook_account": {
"fb_token": "FB_TOKEN",
"rb_uid": "FB_UID",
"location": workspaceSettingsPage
},
"ig_accounts": [
{
"id": "IG_ACCOUNT_UID",
"username": "Ov_dev_sl_2",
"fb_token": "ACCESS_TOKEN",
"profile_picture_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.30808-1/344871424_1571948339950824_3238105955092709413_n.png?stp=cp0_dst-png_p50x50&_nc_cat=111&ccb=1-7&_nc_sid=dbb9e7&_nc_ohc=nbK0WSHJcMkAX8hTPGc&_nc_ht=scontent-iad3-1.xx&edm=AGaHXAAEAAAA&oh=00_AfAYv8ssm2oogVS5zx2wxwFEwMQcYfDotdUQNct5apnzpg&oe=6457D34B"
},
...
]
}
{
"success": false,
"ig_accounts": [],
"message": [
"Instagram account IG_NAME not connected. To connect this social media account to your Workspace, you must first remove it from your Personal accounts"
]
}
| Code | Description |
|---|---|
| 422 | Could not save the entity. |
| Param name | Description |
|---|---|
|
facebook_account
required |
Validations:
|
|
facebook_account[fb_token]
required |
Validations:
|
|
facebook_account[fb_uid]
required |
Validations:
|
|
facebook_account[location]
optional |
Validations:
|
|
ig_accounts
optional |
Validations:
|
|
ig_accounts[fb_token]
required |
Validations:
|
|
ig_accounts[ig_user_id]
required |
Validations:
|
|
ig_accounts[ig_user_name]
required |
Validations:
|
|
ig_accounts[ig_profile_picture_url]
required |
Validations:
|
Only registered user can perform this action
Authentication - string - required
Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"
{
"instagram_account": {
"nickname": "NICKNAME",
"team_ids": [1, ...]
}
}
{
"id": 1,
"ig_user_name": "USER NAME",
"ig_profile_picture_url": "PROFILE PICTURE URL",
"nickname": "NICKNAME",
"teams_count": 1
}
| Param name | Description |
|---|---|
|
id
required |
ID of Instagram Account Validations:
|
|
instagram_account
required |
Validations:
|
|
instagram_account[nickname]
optional |
Validations:
|
|
instagram_account[team_ids]
required , nil allowed |
Validations:
|
Only registered user can perform this action
Authentication - string - required
Example of Authentication header : "Bearer TOKEN_FETCHED_FROM_SERVER_DURING_REGISTRATION"
{
"success": true,
"instagram_account_id": 1
}
| Param name | Description |
|---|---|
|
id
required |
ID of Instagram Account Validations:
|