Add attribute relationship to a user
Associates an attribute with a specific user.
POST
/api/v1/{app_id}/users/{user_id}/attributes/{attribute_id}Path parameters
app_idstringrequiredApplication ID
user_idstringrequiredUser ID
attribute_idstringrequiredAttribute ID
Responses
200
The updated user object
additionsobject | nulladdressAddressResponseShow propertiesHide properties
citystringcountrystringcountry_codestringstreetstringzip_codestringaddress_restrictionsOrganisationAddressRestrictionResponse[]Show propertiesHide properties
Array of
OrganisationAddressRestrictionResponseaddressIDstringformattedAddressstringorganisationIDstringorganisationNamestringorganisationNumberstringapp_idstringattributesAttributeResponse[] | nullShow propertiesHide properties
Array of
AttributeResponsedescriptionstringidstringkeystringnamestringtemplate_keystringtranslationsAttributeTranslationsResponseShow propertiesHide properties
descriptionobjectnameobjectvaluesobjectcommentstringcommunication_preferencesCommunicationPreferencesResponseShow propertiesHide properties
allow_emailbooleanallow_postalbooleanallow_smsbooleancreated_atstringcustomer_groupsCustomerGroupRefResponse[] | nullShow propertiesHide properties
Array of
CustomerGroupRefResponseidstringnamestringslugstringemailstringemail_verifiedbooleanfilesFileResponse[] | nullShow propertiesHide properties
Array of
FileResponseapp_idstringcontent_typestringcreated_atstringcustom_fieldsobjectfilenamestringidstringupdated_atstringurlstringfirst_namestringidstringis_super_adminbooleanlanguagestringlast_login_atstringlast_namestringmarketstringmarket_currencystringmarket_idstring | nullorganisationsOrganisationWithUserRelationResponse[] | nullShow propertiesHide properties
Array of
OrganisationWithUserRelationResponseapp_idstringattributesAttributeResponse[] | nullShow propertiesHide properties
Array of
AttributeResponsedescriptionstringidstringkeystringnamestringtemplate_keystringtranslationsAttributeTranslationsResponsevaluesobjectbilling_addressCompanyAddressResponse[] | nullShow propertiesHide properties
Array of
CompanyAddressResponsecitystringco_addressstringcompany_idstringcompany_namestringcountrystringcreated_atstringhouse_numberstringidstringis_defaultbooleannamestringphonestringpostal_codestringshipping_typestringstate_provincestringstreet_addressstringupdated_atstringcommentstringcontact_namestringcreated_atstringcredit_checkbooleancustom_fieldsobjectcustom_role_idstring | nullcustomer_groupsCustomerGroupRefResponse[] | nullShow propertiesHide properties
Array of
CustomerGroupRefResponseidstringnamestringslugstringemailstringexternal_refstringfilesFileResponse[] | nullShow propertiesHide properties
Array of
FileResponseapp_idstringcontent_typestringcreated_atstringcustom_fieldsobjectfilenamestringidstringupdated_atstringurlstringidstringinvoice_emailstringlevelstring | nullnamestringorganisation_numberstring | nullparent_idstring | nullphonestringrolestring | nullrole_namestring | nullshipping_addressCompanyAddressResponse[] | nullShow propertiesHide properties
Array of
CompanyAddressResponsecitystringco_addressstringcompany_idstringcompany_namestringcountrystringcreated_atstringhouse_numberstringidstringis_defaultbooleannamestringphonestringpostal_codestringshipping_typestringstate_provincestringstreet_addressstringupdated_atstringstatusstringstore_groupsStoreGroupResponse[] | nullShow propertiesHide properties
Array of
StoreGroupResponsecountry_of_salestring | nullcreated_atstringdescriptionstring | nullidstringnamestringslugstringstore_typestringupdated_atstring | nulltagsTagResponse[] | nullShow propertiesHide properties
Array of
TagResponseapp_idstringidstringkeystringnamestringtax_id_vat_numberstringupdated_atstringphone_numberstringsocial_security_numberstringstatusstringstore_groupstringstore_group_idstring | nulltagsTagResponse[]Show propertiesHide properties
Array of
TagResponseapp_idstringidstringkeystringnamestringthird_party_sign_upbooleanupdated_atstring400
Invalid request parameters
codeStatusAllowed:
201403401500404400409detailsstring[] | nullextra_fieldsobjectmessagestring404
User or Attribute not found
codeStatusAllowed:
201403401500404400409detailsstring[] | nullextra_fieldsobjectmessagestring500
Internal server error
codeStatusAllowed:
201403401500404400409detailsstring[] | nullextra_fieldsobjectmessagestring