User profile profile <int:item id> create

POST /user-profile/profile/<int:item-id>/

Body Required

  • user integer Required
  • bio string

    Maximum length is 500.

  • location string

    Maximum length is 100.

  • birth_date string(date) | null

Responses

  • 201 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
POST /user-profile/profile/<int:item-id>/
curl \
 --request POST 'http://api.example.com/user-profile/profile/<int:item-id>/' \
 --header "Content-Type: application/json" \
 --data '{"user":42,"bio":"string","location":"string","birth_date":"2025-05-04"}'
curl \
 --request POST 'http://api.example.com/user-profile/profile/<int:item-id>/' \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'user=42&bio=string&location=string&birth_date=2025-05-04'
curl \
 --request POST 'http://api.example.com/user-profile/profile/<int:item-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 (201)
{
  "id": 42,
  "user": 42,
  "bio": "string",
  "location": "string",
  "birth_date": "2025-05-04"
}