PATCH /{environment}/me

This route allows the manager to update the ambassador information of the connected user. you can use different url prefixes according to the application you are using.

  • /manager/me
  • /widget/me

Path parameters

  • environment string Required

    Values are manager or widget.

application/json

Body

  • password string(nullable)
  • key_data string(nullable)
  • customer_id string
  • broker_id string(nullable)
  • shopify_customer_id string(nullable)
  • facebook_id string
  • google_id string(nullable)
  • apple_id string(nullable)
  • supervisor_identity string(nullable)
  • ambassador_id_referrer string(nullable)
  • id_ws string(nullable)
  • id_ws_referrer string(nullable)
  • image string(nullable)
  • gender string
  • firstname string
  • lastname string
  • username string(nullable)
  • description string
  • motivation_letter string(nullable)
  • email string
  • email_tmp string(nullable)
  • dob string(nullable)
  • lang string
  • phone_1 string
  • phone_2 string
  • notification_newsletter boolean
  • notification_pl_created boolean
  • notification_pl_expired boolean
  • notification_pl_order boolean
  • notification_pl_blog boolean
  • notification_post_comment boolean
  • notification_community boolean
  • notification_reward boolean
  • notification_browser_waiting_list boolean
  • email_notification_enabled boolean
  • browser_notification_enabled boolean
  • notification_tag boolean
  • notification_chat boolean
  • email_notification_delay string
  • last_notification_date string
  • notification_email_chat boolean
  • notification_email_favorite_comment boolean
  • notification_email_post_comment boolean
  • notification_email_reward boolean
  • notification_email_tag boolean
  • notification_post_community boolean
  • notification_email_post_community boolean
  • optin_cgu boolean
  • optin_cgu_photos boolean
  • availability string(nullable)
  • unavailable boolean
  • last_action_date string(nullable)
  • is_absent boolean
  • absent_msg string(nullable)
  • fb_account string(nullable)
  • twitter_account string(nullable)
  • instagram_account string(nullable)
  • linkedIn_account string(nullable)
  • youtube_account string(nullable)
  • tiktok_account string(nullable)
  • register_src string(nullable)
  • register_landing_url string(nullable)
  • nb_public_popliste string(nullable)
  • nb_private_popliste string(nullable)

Responses

  • 200 application/json

    Returns the ambassador

  • 403

    Forbidden - You don't have permission to access this route

  • 404

    Not found - The ambassador does not exist

PATCH /{environment}/me
curl \
 --request PATCH 'https://domain.tld/api/v2/{environment}/me' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"password":"string","key_data":"string","customer_id":"string","broker_id":"string","shopify_customer_id":"string","facebook_id":"string","google_id":"string","apple_id":"string","supervisor_identity":"string","ambassador_id_referrer":"string","id_ws":"string","id_ws_referrer":"string","image":"string","gender":"string","firstname":"string","lastname":"string","username":"string","description":"string","motivation_letter":"string","email":"string","email_tmp":"string","dob":"string","lang":"string","phone_1":"string","phone_2":"string","notification_newsletter":true,"notification_pl_created":true,"notification_pl_expired":true,"notification_pl_order":true,"notification_pl_blog":true,"notification_post_comment":true,"notification_community":true,"notification_reward":true,"notification_browser_waiting_list":true,"email_notification_enabled":true,"browser_notification_enabled":true,"notification_tag":true,"notification_chat":true,"email_notification_delay":"string","last_notification_date":"string","notification_email_chat":true,"notification_email_favorite_comment":true,"notification_email_post_comment":true,"notification_email_reward":true,"notification_email_tag":true,"notification_post_community":true,"notification_email_post_community":true,"optin_cgu":true,"optin_cgu_photos":true,"availability":"string","unavailable":true,"last_action_date":"string","is_absent":true,"absent_msg":"string","fb_account":"string","twitter_account":"string","instagram_account":"string","linkedIn_account":"string","youtube_account":"string","tiktok_account":"string","register_src":"string","register_landing_url":"string","nb_public_popliste":"string","nb_private_popliste":"string"}'
Request examples
{
  "password": "string",
  "key_data": "string",
  "customer_id": "string",
  "broker_id": "string",
  "shopify_customer_id": "string",
  "facebook_id": "string",
  "google_id": "string",
  "apple_id": "string",
  "supervisor_identity": "string",
  "ambassador_id_referrer": "string",
  "id_ws": "string",
  "id_ws_referrer": "string",
  "image": "string",
  "gender": "string",
  "firstname": "string",
  "lastname": "string",
  "username": "string",
  "description": "string",
  "motivation_letter": "string",
  "email": "string",
  "email_tmp": "string",
  "dob": "string",
  "lang": "string",
  "phone_1": "string",
  "phone_2": "string",
  "notification_newsletter": true,
  "notification_pl_created": true,
  "notification_pl_expired": true,
  "notification_pl_order": true,
  "notification_pl_blog": true,
  "notification_post_comment": true,
  "notification_community": true,
  "notification_reward": true,
  "notification_browser_waiting_list": true,
  "email_notification_enabled": true,
  "browser_notification_enabled": true,
  "notification_tag": true,
  "notification_chat": true,
  "email_notification_delay": "string",
  "last_notification_date": "string",
  "notification_email_chat": true,
  "notification_email_favorite_comment": true,
  "notification_email_post_comment": true,
  "notification_email_reward": true,
  "notification_email_tag": true,
  "notification_post_community": true,
  "notification_email_post_community": true,
  "optin_cgu": true,
  "optin_cgu_photos": true,
  "availability": "string",
  "unavailable": true,
  "last_action_date": "string",
  "is_absent": true,
  "absent_msg": "string",
  "fb_account": "string",
  "twitter_account": "string",
  "instagram_account": "string",
  "linkedIn_account": "string",
  "youtube_account": "string",
  "tiktok_account": "string",
  "register_src": "string",
  "register_landing_url": "string",
  "nb_public_popliste": "string",
  "nb_private_popliste": "string"
}