Create User Address
On this page
GraphQL endpoint: /user
Creates a new address for the user. The address can be tagged with types (e.g., HOME, WORK) and visibility settings to control who can see this information.
Query
mutation (
$street: String!
$city: String!
$zipCode: String!
$state: String
$country: String!
$types: [UserAddressType!]
$visibility: [UserVisibilityType!]
) {
createUserAddress (
street: $street
city: $city
zipCode: $zipCode
state: $state
country: $country
types: $types
visibility: $visibility
) {
id
city
country
state
street
zipCode
types
visibility
}
}
Variables
{
"city": "test city",
"country": "United States",
"state": "Alabama",
"street": "test street 1",
"types": [
"HOME"
],
"visibility": [
"FAMILY"
],
"zipCode": "12345"
}
Response
{
"data": {
"createUserAddress": {
"city": "test city",
"country": "United States",
"id": "00000000-0000-4000-8000-000000000001",
"state": "Alabama",
"street": "test street 1",
"types": [
"HOME"
],
"visibility": [
"FAMILY"
],
"zipCode": "12345"
}
}
}