{
"data": {
"id": "FID001",
"type": "User",
"attributes": {
"name": "string",
"emailAddress": "string",
"externalId": "string",
"profilePicture": {
"__type": "File",
"name": "string",
"url": "string"
},
"preferences": {},
"attr": {},
"timeZone": "string",
"notificationConfig": {},
"marketingEmailsConsent": "string"
},
"relationships": {
"subPortal": {
"data": {
"id": "FID001",
"type": "SubPortal"
}
},
"userAttributes": {
"data": [
{
"id": "FID001",
"type": "UserAttribute"
}
]
},
"userGroups": {
"data": [
{
"id": "FID001",
"type": "UserGroup"
}
]
}
}
}
}
curl --location --request PATCH 'https://api.synap.ac/v3/users/' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"id": "FID001",
"type": "User",
"attributes": {
"name": "string",
"emailAddress": "string",
"externalId": "string",
"profilePicture": {
"__type": "File",
"name": "string",
"url": "string"
},
"preferences": {},
"attr": {},
"timeZone": "string",
"notificationConfig": {},
"marketingEmailsConsent": "string"
},
"relationships": {
"subPortal": {
"data": {
"id": "FID001",
"type": "SubPortal"
}
},
"userAttributes": {
"data": [
{
"id": "FID001",
"type": "UserAttribute"
}
]
},
"userGroups": {
"data": [
{
"id": "FID001",
"type": "UserGroup"
}
]
}
}
}
}'
{
"data": {
"id": "FID001",
"type": "User",
"attributes": {
"createdAt": "string",
"name": "string",
"emailAddress": "string",
"externalId": "string",
"profilePicture": {
"__type": "File",
"name": "string",
"url": "string"
},
"preferences": {},
"attr": {},
"timeZone": "string",
"notificationConfig": {},
"marketingEmailsConsent": "string",
"lastSeen": "string",
"emailVerified": true,
"authData": {},
"firstName": "string",
"lastName": "string",
"userGroupsMetadata": {
"property1": {
"dateJoined": "2019-08-24T14:15:22Z"
},
"property2": {
"dateJoined": "2019-08-24T14:15:22Z"
}
}
},
"relationships": {
"subPortal": {
"data": {
"id": "FID001",
"type": "SubPortal"
}
},
"userAttributes": {
"data": [
{
"id": "FID001",
"type": "UserAttribute"
}
]
},
"userGroups": {
"data": [
{
"id": "FID001",
"type": "UserGroup"
}
]
}
}
},
"included": [
{
"id": "FID001",
"type": "_User",
"attributes": {},
"relationships": {
"property1": {
"data": {
"id": "FID001",
"type": "_User"
},
"links": {
"self": "string",
"related": "string"
},
"meta": {}
},
"property2": {
"data": {
"id": "FID001",
"type": "_User"
},
"links": {
"self": "string",
"related": "string"
},
"meta": {}
}
}
}
]
}