API Reference
Accounts

Update an account.

1min
code examples curl location globoff request patch 'https //api fictive com/rest/api/accounts/{accountreference}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'patch', headers myheaders, redirect 'follow' }; fetch("https //api fictive com/rest/api/accounts/{accountreference}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api fictive com/rest/api/accounts/{accountreference}") https = net http new(url host, url port) https use ssl = true request = net http patch new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api fictive com/rest/api/accounts/{accountreference}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("patch", url, headers=headers, data=payload) print(response text) responses { "accountid" 15, "accountreference" "accref", "status" "active", "verified" true, "email" "email", "clientuserid" "clientuserid", "salutation" "salutation", "firstname" "firstname", "lastname" "lastname", "phonenumber" "phonenumber", "mobilenumber" "mobilenumber", "dateofbirth" "2021 09 21t05 33 13 1196695", "gender" "notknown", "addresses" \[ { "addresstype" "home", "housename" "housename", "housenumber" "housenumber", "street" "street", "towncity" "towncity", "district" "district", "state" "state", "county" "county", "postcode" "postcode", "country" "country" } ], "customparameters" { "parametername" "parametervalue" }, "sessiontoken" "a44c2dc229d34986aaec7305b0280a9e", "marketingallowed" true }// β€’ email address format invalid \<br />β€’ invalid status provided \<br />β€’ clientuserid provided exceeds maximum length \<br />β€’ firstname provided exceeds maximum length \<br />β€’ surname provided exceeds maximum length \<br />β€’ phone number provided exceeds maximum length \<br />β€’ phone number does not support non numeric characters \<br />β€’ mobile number provided exceeds maximum length \<br />β€’ mobile number does not support non numeric characters \<br />β€’ dateofbirth must be a date in the past \<br />β€’ {parametername} provided exceeds maximum length // β€’ unable to manage clientuserid with the provided authentication // β€’ the email is already in use // β€’ {parametername} not configured // β€’ internal server error
πŸ€”
Have a question?
Our super-smart AI,knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.

ο»Ώ