User profile profile create
application/json
Body
Required
-
user
integer Required -
bio
string Maximum length is
500
. -
location
string Maximum length is
100
. -
birth_date
string(date) | null
Body
Required
-
user
integer Required -
bio
string Maximum length is
500
. -
location
string Maximum length is
100
. -
birth_date
string(date) | null
Body
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/
cURL (application/json)
curl \
--request POST 'http://api.example.com/user-profile/profile/' \
--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/' \
--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/' \
--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"
}