Skip to main content

Update current user

PATCH 

https://api.staging.powerapi.com/api/v1/users/me

Update current user details

Request

Body

required

    data

    object

    type stringrequired

    Possible values: [users]

    attributes

    object

    allergies string
    avatar binary
    bio string
    birthday date
    city string
    country_code string
    cover binary
    cv binary
    email string
    experience string
    facebook_url string
    favourite_drink string
    favourite_food string
    gender string

    Valid values: male, female, other

    instagram_url string
    linkedin_url string
    monthly_bars_budget int32
    monthly_delivery_takeaway_budget int32
    monthly_restaurants_budget int32
    name string
    phone string
    phone_country_code string
    phone_country_prefix string
    post_code string
    public_email string
    recovery_email string
    region_code string
    short_description string
    specializations_list string

    Slugs of specializations delimited by comma

    street string
    street_number string
    twitter_url string
    website_url string
    language string

    Possible values: [en, de, fr, es, it]

Responses

Update current user details

Schema

    any

curl -L -X PATCH 'https://api.staging.powerapi.com/api/v1/users/me' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"data": {
"type": "users",
"attributes": {
"allergies": "string",
"avatar": "string",
"bio": "string",
"birthday": "2024-07-29",
"city": "string",
"country_code": "string",
"cover": "string",
"cv": "string",
"email": "string",
"experience": "string",
"facebook_url": "string",
"favourite_drink": "string",
"favourite_food": "string",
"gender": "string",
"instagram_url": "string",
"linkedin_url": "string",
"monthly_bars_budget": 0,
"monthly_delivery_takeaway_budget": 0,
"monthly_restaurants_budget": 0,
"name": "string",
"phone": "string",
"phone_country_code": "string",
"phone_country_prefix": "string",
"post_code": "string",
"public_email": "string",
"recovery_email": "string",
"region_code": "string",
"short_description": "string",
"specializations_list": "string",
"street": "string",
"street_number": "string",
"twitter_url": "string",
"website_url": "string",
"language": "en"
}
}
}'
Request Collapse all
Base URL
https://api.staging.powerapi.com
Auth
Body required
{
  "data": {
    "type": "users",
    "attributes": {
      "allergies": "string",
      "avatar": "string",
      "bio": "string",
      "birthday": "2024-07-29",
      "city": "string",
      "country_code": "string",
      "cover": "string",
      "cv": "string",
      "email": "string",
      "experience": "string",
      "facebook_url": "string",
      "favourite_drink": "string",
      "favourite_food": "string",
      "gender": "string",
      "instagram_url": "string",
      "linkedin_url": "string",
      "monthly_bars_budget": 0,
      "monthly_delivery_takeaway_budget": 0,
      "monthly_restaurants_budget": 0,
      "name": "string",
      "phone": "string",
      "phone_country_code": "string",
      "phone_country_prefix": "string",
      "post_code": "string",
      "public_email": "string",
      "recovery_email": "string",
      "region_code": "string",
      "short_description": "string",
      "specializations_list": "string",
      "street": "string",
      "street_number": "string",
      "twitter_url": "string",
      "website_url": "string",
      "language": "en"
    }
  }
}
ResponseClear

Click the Send API Request button above and see the response here!