Update user
Updates current marketplace user, inferred from token.
POST
/v1/marketplace/userAuthorization
Marketplace-Authentication
Authorization<token>
The Noona Marketplace API uses an Authorization header with JWT Bearer tokens to authenticate marketplace users.
In: header
Query Parameters
select?array<string>
expand?array<string>
Request Body
application/json
name?string
favorite_companies?array<string>
push_token?
kennitala?string
Icelandic SSN
email?string
marketing_consent?boolean
Whether the user has given consent to receive marketing communications
Example
falselicense_plate?string
locale?
device_info?
See https://github.com/react-native-device-info/react-native-device-info for more info.
Response Body
application/json
application/json
application/json
curl -X POST "https://api.noona.is/v1/marketplace/user" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "7awdXwZoedakjad37a",
"name": "string",
"phone_number": "string",
"phone_country_code": "44 (for UK)",
"phone_number_verified": true,
"favorite_companies": [
"string"
],
"push_token": {
"platform": 0,
"token": "string"
},
"kennitala": "string",
"email": "string",
"email_verified": true,
"marketing_consent": false,
"license_plate": "string",
"token": "string",
"locale": {
"ui_language": "string"
},
"device_info": {
"battery_level": 0.72,
"brand": "Apple",
"build_number": 1626691095,
"carrier": "Vodafone",
"device_id": "iPhone13,1",
"device_name": "John's iPhone",
"manufacturer": "Apple",
"model": "iPhone 12 mini",
"system_version": "15.0.1",
"is_emulator": true,
"readable_version": "1.4.1.1626691095",
"android_api_level": 0,
"code_push_app_version": "1.4.1_v74"
},
"created_at": 1631558908,
"updated_at": 1631558908
}{
"type": "generic_error",
"message": "Time slot is not available."
}{
"type": "generic_error",
"message": "Time slot is not available."
}