Put

Update your user profile data

Parameters:

Name

Optional / Required

Data type

Description

Default

gender

required

String

Your gender (male or female)

firstname

required

String

Your firstname (min. length 2 characters, max. length 100 characters)

lastname

required

String

Your lastname (min. length 2 characters, max. length 100 characters)

birth_date

optional

Date

Your birth_date (YYYY-MM-DD)

address

optional

String

Your address (max. length 255 characters)

zip_code

optional

String

Your zip code (max. length 10 characters)

city

optional

String

Your city (max. length 50 characters)

country

optional

String

Your country (DE, GB, FR, ...)

description

optional

String

Your address (max. length 255 characters)

website

optional

String

Your website (max. length 255 characters, valid URL)

blog

optional

String

Your blog (max. length 255 characters, valid URL)

avatar

optional

String

A valid image URL

language

optional

String

Your language (de, en, fr, ...)

Example:

curl -X PUT -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "gender=male" -d "firstname=firstnameAPI" -d "lastname=User" -d "birth_date=1986-01-01" -d "address=Moosackerstr. 17" -d "zip_code=9444" -d "city=Diepoldsau" -d "country=CH" -d "description=I am the default API user." -d "website=https://www.yumpu.com" -d "blog=https://blog.yumpu.com" -d "language=de" "https://api.yumpu.com/2.0/user.json"

Whatever language you are using, the result will be the same.

{
  "user": {
    "id": "102864144",
    "create_date": "2013-03-08 17:13:43",
    "activate_date": "2013-04-25 14:20:04",
    "username": "Api.User",
    "email": "yumpu.api@gmail.com",
    "gender": "male",
    "firstname": "firstnameAPI",
    "lastname": "User",
    "birth_date": "1986-01-01",
    "address": "Moosackerstr. 17",
    "zip_code": "9444",
    "city": "Diepoldsau",
    "country": "CH",
    "description": "I am the default API user.",
    "website": "https://www.yumpu.com",
    "blog": "https://blog.yumpu.com",
    "language": "de"
  },
  "state": "success"
}

Last updated