Update profile consents

Request

Method: POST
Route: api/auth/profile/consents
Example: api/auth/profile/consents
Input Value
marketing_consent true
third_party_consent false
newsletter_consent
Request Headers
host: localhost:49527
user-agent: Symfony
accept: application/json
accept-language: en-us,en;q=0.5
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjQ5NTI3IiwiaWF0IjoxNjUyNzc1OTUxLCJuYmYiOjE2NTI3NzU5NTEsImp0aSI6ImdGcDRtUnkwNDduSUVQcG4iLCJzdWIiOiIyMCIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.qZBtOPQQ_qezPHnLFJ6ZF02QeGZRX13IplIkP23s4Mc
content-length: 80
content-type: application/json

Response

200 JSON
Response Headers
cache-control: no-cache, private
date: Tue, 17 May 2022 08:25:51 GMT
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 59
{
    "data": {
        "message": "Profile updated."
    }
}

Request

Method: GET
Route: api/auth/profile
Example: api/auth/profile
Request Headers
host: localhost:49527
user-agent: Symfony
accept: application/json
accept-language: en-us,en;q=0.5
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjQ5NTI3IiwiaWF0IjoxNjUyNzc1OTUxLCJuYmYiOjE2NTI3NzU5NTEsImp0aSI6ImdGcDRtUnkwNDduSUVQcG4iLCJzdWIiOiIyMCIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.qZBtOPQQ_qezPHnLFJ6ZF02QeGZRX13IplIkP23s4Mc
content-length: 2
content-type: application/json

Response

200 JSON
Response Headers
cache-control: no-cache, private
date: Tue, 17 May 2022 08:25:51 GMT
content-type: application/json
x-ratelimit-limit: 60
x-ratelimit-remaining: 58
{
    "data": {
        "id": 20,
        "first_name": null,
        "last_name": null,
        "phone": "+17544921788",
        "phone_verified_at": "2022-05-17T08:25:51.000000Z",
        "email": "[email protected]",
        "email_verified_at": "2022-05-17T08:25:51.000000Z",
        "birth_place": null,
        "birth_date": null,
        "address": null,
        "city": null,
        "tax_code": null,
        "stripe_customer": null,
        "marketing_consent": 1,
        "marketing_consent_updated_at": "2022-05-17T08:25:51.000000Z",
        "third_party_consent": 0,
        "third_party_consent_updated_at": "2022-05-17T08:25:51.000000Z",
        "newsletter_consent": null,
        "newsletter_consent_updated_at": null,
        "created_at": "2022-05-17T08:25:51.000000Z",
        "updated_at": "2022-05-17T08:25:51.000000Z"
    }
}

Time: 0.2

insert into `users` (`updated_at`, `created_at`) values (?, ?)
Bindings
0: 2022-05-17 08:25:51
1: 2022-05-17 08:25:51

Time: 0.2

insert into `login_tokens` (`user_id`, `token`, `medium_type`, `medium_handle`, `expires_at`, `section`, `consumed_at`, `callback_url`, `updated_at`, `created_at`) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings
0: 20
1: 3gXIRi4Y9q
2: email
3: [email protected]
4: 2022-05-17 08:40:51
5: LOwAWLFAyafqkGNv
6:
7: https://www.lowe.com/provident-qui-doloremque-sit-et
8: 2022-05-17 08:25:51
9: 2022-05-17 08:25:51

Time: 0.25

select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `id` = ? limit 1
Bindings
0: 20

Time: 0.28

select * from `users` where (`phone_verified_at` is null or `email_verified_at` is null) and `id` = ? limit 1
Bindings
0: 20

Time: 0.24

update `users` set `email_verified_at` = ?, `email` = ?, `users`.`updated_at` = ? where `id` = ?
Bindings
0: 2022-05-17 08:25:51
1: [email protected]
2: 2022-05-17 08:25:51
3: 20

Time: 0.22

update `login_tokens` set `consumed_at` = ?, `login_tokens`.`updated_at` = ? where `id` = ?
Bindings
0: 2022-05-17 08:25:51
1: 2022-05-17 08:25:51
2: 33

Time: 0.22

insert into `login_tokens` (`user_id`, `token`, `medium_type`, `medium_handle`, `expires_at`, `section`, `consumed_at`, `callback_url`, `updated_at`, `created_at`) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings
0: 20
1: PrlQOyd8lO
2: phone
3: +17544921788
4: 2022-05-17 08:40:51
5: uiogVAUEzc69m5lO
6:
7: http://www.roob.com/soluta-quidem-explicabo-facere-ut-et.html
8: 2022-05-17 08:25:51
9: 2022-05-17 08:25:51

Time: 0.33

select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `id` = ? limit 1
Bindings
0: 20

Time: 0.25

update `login_tokens` set `consumed_at` = ?, `login_tokens`.`updated_at` = ? where `id` = ?
Bindings
0: 2022-05-17 08:25:51
1: 2022-05-17 08:25:51
2: 34

Time: 0.23

update `users` set `phone` = ?, `phone_verified_at` = ?, `users`.`updated_at` = ? where `id` = ?
Bindings
0: +17544921788
1: 2022-05-17 08:25:51
2: 2022-05-17 08:25:51
3: 20

Time: 0.31

select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `id` = ? limit 1
Bindings
0: 20

Time: 0.27

update `users` set `marketing_consent` = ?, `marketing_consent_updated_at` = ?, `third_party_consent` = ?, `third_party_consent_updated_at` = ?, `users`.`updated_at` = ? where `id` = ?
Bindings
0: 1
1: 2022-05-17 08:25:51
2:
3: 2022-05-17 08:25:51
4: 2022-05-17 08:25:51
5: 20

Request

Method: POST
Route: api/auth/profile/consents
Example: api/auth/profile/consents
Input Value
marketing_consent true
third_party_consent false
newsletter_consent
Request Headers
host: localhost:49527
user-agent: Symfony
accept: application/json
accept-language: en-us,en;q=0.5
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjQ5NTI3IiwiaWF0IjoxNjUyNzc1OTUxLCJuYmYiOjE2NTI3NzU5NTEsImp0aSI6ImdGcDRtUnkwNDduSUVQcG4iLCJzdWIiOiIyMCIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.qZBtOPQQ_qezPHnLFJ6ZF02QeGZRX13IplIkP23s4Mc
content-length: 80
content-type: application/json

Time: 0.37

select * from `users` where (`phone_verified_at` is not null or `email_verified_at` is not null) and `id` = ? limit 1
Bindings
0: 20

Request

Method: GET
Route: api/auth/profile
Example: api/auth/profile
Request Headers
host: localhost:49527
user-agent: Symfony
accept: application/json
accept-language: en-us,en;q=0.5
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjQ5NTI3IiwiaWF0IjoxNjUyNzc1OTUxLCJuYmYiOjE2NTI3NzU5NTEsImp0aSI6ImdGcDRtUnkwNDduSUVQcG4iLCJzdWIiOiIyMCIsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.qZBtOPQQ_qezPHnLFJ6ZF02QeGZRX13IplIkP23s4Mc
content-length: 2
content-type: application/json