User profile profile <int:item id> partial update

PATCH /user-profile/profile/<int:item-id>/{id}/

Path parameters

  • id integer Required

    A unique integer value identifying this profile.

Body

  • user integer
  • bio string

    Maximum length is 500.

  • location string

    Maximum length is 100.

  • birth_date string(date) | null

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • id integer Required
    • user integer Required
    • bio string

      Maximum length is 500.

    • location string

      Maximum length is 100.

    • birth_date string(date) | null
PATCH /user-profile/profile/<int:item-id>/{id}/
curl \
 --request PATCH 'http://api.example.com/user-profile/profile/<int:item-id>/{id}/' \
 --header "Content-Type: application/json" \
 --data '{"user":42,"bio":"string","location":"string","birth_date":"2025-05-04"}'
curl \
 --request PATCH 'http://api.example.com/user-profile/profile/<int:item-id>/{id}/' \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'user=42&bio=string&location=string&birth_date=2025-05-04'
curl \
 --request PATCH 'http://api.example.com/user-profile/profile/<int:item-id>/{id}/' \
 --header "Content-Type: multipart/form-data" \
 --form "user=42" \
 --form "bio=string" \
 --form "location=string" \
 --form "birth_date=2025-05-04"
Request examples
{
  "user": 42,
  "bio": "string",
  "location": "string",
  "birth_date": "2025-05-04"
}
Response examples (200)
{
  "id": 42,
  "user": 42,
  "bio": "string",
  "location": "string",
  "birth_date": "2025-05-04"
}