PATCH /users/:id/profile

PATCH /users/{id}/profile

Patch user profile

Path parameters

  • id integer(int64) Required

    ID of the resource to fetch

Body Required

  • full_name string
  • tagline string

    Maximum length is 70.

  • about_me string
  • instagram_handle string
  • twitter_handle string
  • tiktok_handle string
  • website string

Responses

  • 200

    successful operation

    Hide response attribute Show response attribute object
    • data object
      Hide data attributes Show data attributes object
      • id integer
      • user_id integer
      • full_name string
      • tagline string
      • about_me string
      • instagram_handle string
      • twitter_handle string
      • tiktok_handle string
      • instagram_url string
      • twitter_url string
      • tiktok_url string
      • profile_url string
      • website string
      • referrer_id integer
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 404

    User Not Found

  • 500

    Server Error

PATCH /users/{id}/profile
curl \
 -X PATCH https://api.cosmily.com/api/v1/users/{id}/profile \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"full_name":"Jane Doe","tagline":"Skincare lover from NYC.","about_me":"Native New Yorker Jane Doe is a NYC \u0026 MIAMI based esthetician, known for her microcurrent facials.  Her clients include some of the industry's top editors and models, and she's been featured in Vogue, Elle, Harper’s Bazaar, and countless other publications. ","instagram_handle":"john_doe122","twitter_handle":"john_doe122","tiktok_handle":"john_doe122","website":"https://janedoe.com/"}'
Request example
{
  "full_name": "Jane Doe",
  "tagline": "Skincare lover from NYC.",
  "about_me": "Native New Yorker Jane Doe is a NYC & MIAMI based esthetician, known for her microcurrent facials.  Her clients include some of the industry's top editors and models, and she's been featured in Vogue, Elle, Harper’s Bazaar, and countless other publications. ",
  "instagram_handle": "john_doe122",
  "twitter_handle": "john_doe122",
  "tiktok_handle": "john_doe122",
  "website": "https://janedoe.com/"
}
Request examples
{
  "full_name": "Jane Doe",
  "tagline": "Skincare lover from NYC.",
  "about_me": "Native New Yorker Jane Doe is a NYC & MIAMI based esthetician, known for her microcurrent facials.  Her clients include some of the industry's top editors and models, and she's been featured in Vogue, Elle, Harper’s Bazaar, and countless other publications. ",
  "instagram_handle": "john_doe122",
  "twitter_handle": "john_doe122",
  "tiktok_handle": "john_doe122",
  "website": "https://janedoe.com/"
}
Response examples (200)
{
  "data": {
    "id": 122,
    "user_id": 122,
    "full_name": "Jane Doe",
    "tagline": "Skincare lover from NYC.",
    "about_me": "Native New Yorker Janehn Doe is a NYC & MIAMI based esthetician, known for her microcurrent facials.  Her clients include some of the industry's top editors and models, and she's been featured in Vogue, Elle, Harper’s Bazaar, and countless other publications. ",
    "instagram_handle": "jane_doe122",
    "twitter_handle": "jane_doe122",
    "tiktok_handle": "jane_doe122",
    "instagram_url": "https://instagram.com/jane_doe122",
    "twitter_url": "https://twitter.com/jane_doe122",
    "tiktok_url": "https://instagram.com/jane_doe122",
    "profile_url": "https://cosmily.com/u/jane_doe",
    "website": "https://janedoe.com/",
    "referrer_id": 42
  }
}
Response examples (200)
{
  "data": {
    "id": 122,
    "user_id": 122,
    "full_name": "Jane Doe",
    "tagline": "Skincare lover from NYC.",
    "about_me": "Native New Yorker Janehn Doe is a NYC & MIAMI based esthetician, known for her microcurrent facials.  Her clients include some of the industry's top editors and models, and she's been featured in Vogue, Elle, Harper’s Bazaar, and countless other publications. ",
    "instagram_handle": "jane_doe122",
    "twitter_handle": "jane_doe122",
    "tiktok_handle": "jane_doe122",
    "instagram_url": "https://instagram.com/jane_doe122",
    "twitter_url": "https://twitter.com/jane_doe122",
    "tiktok_url": "https://instagram.com/jane_doe122",
    "profile_url": "https://cosmily.com/u/jane_doe",
    "website": "https://janedoe.com/",
    "referrer_id": 42
  }
}