Skip to content

Update current user email notification consent

PATCH
/api/auth/me/email-consent
curl --request PATCH \
--url https://api.getvespy.com/api/auth/me/email-consent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "emailConsent": true }'
Media typeapplication/json
object
emailConsent
required
boolean
Examplegenerated
{
"emailConsent": true
}

Default Response

Media typeapplication/json
object
user
required
object
email
required
string format: email
emailConsentAt
required
string format: date-time
nullable
fullName
required
string
id
required
string format: uuid
isSuperadmin
required
boolean
organizationId
required
string format: uuid
phone
required
string
nullable
role
required
string
Allowed values: admin manager staff tenant owner vendor
smsConsentAt
required
string format: date-time
nullable
vendorId
required
string format: uuid
nullable
Example
{
"user": {
"role": "admin"
}
}

Default Response

Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{
"code": "example",
"errors": [
{
"code": "example",
"message": "example",
"path": "example"
}
],
"message": "example"
}

Default Response

Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{
"code": "example",
"errors": [
{
"code": "example",
"message": "example",
"path": "example"
}
],
"message": "example"
}

Default Response

Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{
"code": "example",
"errors": [
{
"code": "example",
"message": "example",
"path": "example"
}
],
"message": "example"
}