curl --request PUT \
--url https://api.us.cr4ce.com/user/{user_slug} \
--header 'Accept: <accept>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"first_name": "Ada",
"last_name": "Lovelace",
"email": "ada.lovelace@example.com",
"roles": [
"AbCdEfGh"
],
"preferences": {
"broadcast_emails": true,
"notification_emails": true,
"notification_sms": false
},
"user_fields": {
"fJkIjGmB": "Test value"
}
}
'import requests
url = "https://api.us.cr4ce.com/user/{user_slug}"
payload = {
"first_name": "Ada",
"last_name": "Lovelace",
"email": "ada.lovelace@example.com",
"roles": ["AbCdEfGh"],
"preferences": {
"broadcast_emails": True,
"notification_emails": True,
"notification_sms": False
},
"user_fields": { "fJkIjGmB": "Test value" }
}
headers = {
"Accept": "<accept>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
Accept: '<accept>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
first_name: 'Ada',
last_name: 'Lovelace',
email: 'ada.lovelace@example.com',
roles: ['AbCdEfGh'],
preferences: {broadcast_emails: true, notification_emails: true, notification_sms: false},
user_fields: {fJkIjGmB: 'Test value'}
})
};
fetch('https://api.us.cr4ce.com/user/{user_slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.us.cr4ce.com/user/{user_slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'first_name' => 'Ada',
'last_name' => 'Lovelace',
'email' => 'ada.lovelace@example.com',
'roles' => [
'AbCdEfGh'
],
'preferences' => [
'broadcast_emails' => true,
'notification_emails' => true,
'notification_sms' => false
],
'user_fields' => [
'fJkIjGmB' => 'Test value'
]
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.us.cr4ce.com/user/{user_slug}"
payload := strings.NewReader("{\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\",\n \"email\": \"ada.lovelace@example.com\",\n \"roles\": [\n \"AbCdEfGh\"\n ],\n \"preferences\": {\n \"broadcast_emails\": true,\n \"notification_emails\": true,\n \"notification_sms\": false\n },\n \"user_fields\": {\n \"fJkIjGmB\": \"Test value\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Accept", "<accept>")
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.us.cr4ce.com/user/{user_slug}")
.header("Accept", "<accept>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\",\n \"email\": \"ada.lovelace@example.com\",\n \"roles\": [\n \"AbCdEfGh\"\n ],\n \"preferences\": {\n \"broadcast_emails\": true,\n \"notification_emails\": true,\n \"notification_sms\": false\n },\n \"user_fields\": {\n \"fJkIjGmB\": \"Test value\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.us.cr4ce.com/user/{user_slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Accept"] = '<accept>'
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\",\n \"email\": \"ada.lovelace@example.com\",\n \"roles\": [\n \"AbCdEfGh\"\n ],\n \"preferences\": {\n \"broadcast_emails\": true,\n \"notification_emails\": true,\n \"notification_sms\": false\n },\n \"user_fields\": {\n \"fJkIjGmB\": \"Test value\"\n }\n}"
response = http.request(request)
puts response.read_body{
"analytics_cookies": true,
"broadcast_emails": true,
"comments": "Jane Doe (2025-05-21T15:25:39+00:00): User comment",
"confirmation": "Confirmed",
"confirmed_at": "2018-04-17T00:00:00Z",
"created_at": "2024-06-24T06:34:30Z",
"created_by": "manual",
"email": "jane.doe@example.com",
"first_name": "Jane",
"language": {
"code": "en_GB",
"language": "English (United Kingdom)"
},
"last_name": "Doe",
"marketing_cookies": true,
"mobile": "",
"name": "Jane Doe",
"necessary_cookies": true,
"notification_emails": true,
"notification_sms": true,
"preferences": {
"broadcast_emails": true,
"notification_emails": true,
"notification_sms": true
},
"roles": [
{
"slug": "AbCdEfGh",
"link": "https://api.eu.cr4ce.com/role/AbCdEfGh",
"name": {
"en_GB": "Applicant"
}
},
{
"slug": "CdEfGhIj",
"link": "https://api.eu.cr4ce.com/role/CdEfGhIj",
"name": {
"en_GB": "Program manager"
}
}
],
"slug": "EfGhIjKl",
"social_sharing": true,
"updated": "2026-06-26T07:50:46Z",
"user_fields": [
{
"slug": "GhIjKlMn",
"link": "https://api.eu.cr4ce.com/field/GhIjKlMn",
"label": {
"en_GB": "<p>Title</p>"
},
"title": {
"en_GB": "Title"
},
"value": "Ms",
"translated": {
"en_GB": ""
}
},
{
"slug": "IjKlMnOp",
"link": "https://api.eu.cr4ce.com/field/IjKlMnOp",
"label": {
"en_GB": "<p>user file upload</p>"
},
"title": {
"en_GB": "user file upload"
},
"value": "https://api.eu.cr4ce.com/file/",
"token": "",
"translated": {
"en_GB": ""
}
}
]
}{
"message": "<string>",
"status_code": 400
}{
"message": "<string>",
"status_code": 401
}{
"message": "<string>",
"status_code": 403
}{
"message": "<string>",
"status_code": 422,
"errors": {}
}{
"message": "<string>",
"status_code": 429
}{
"status": "Maintenance in progress"
}Update user
Update the user identified by the specified slug.
curl --request PUT \
--url https://api.us.cr4ce.com/user/{user_slug} \
--header 'Accept: <accept>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"first_name": "Ada",
"last_name": "Lovelace",
"email": "ada.lovelace@example.com",
"roles": [
"AbCdEfGh"
],
"preferences": {
"broadcast_emails": true,
"notification_emails": true,
"notification_sms": false
},
"user_fields": {
"fJkIjGmB": "Test value"
}
}
'import requests
url = "https://api.us.cr4ce.com/user/{user_slug}"
payload = {
"first_name": "Ada",
"last_name": "Lovelace",
"email": "ada.lovelace@example.com",
"roles": ["AbCdEfGh"],
"preferences": {
"broadcast_emails": True,
"notification_emails": True,
"notification_sms": False
},
"user_fields": { "fJkIjGmB": "Test value" }
}
headers = {
"Accept": "<accept>",
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
Accept: '<accept>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
first_name: 'Ada',
last_name: 'Lovelace',
email: 'ada.lovelace@example.com',
roles: ['AbCdEfGh'],
preferences: {broadcast_emails: true, notification_emails: true, notification_sms: false},
user_fields: {fJkIjGmB: 'Test value'}
})
};
fetch('https://api.us.cr4ce.com/user/{user_slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.us.cr4ce.com/user/{user_slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'first_name' => 'Ada',
'last_name' => 'Lovelace',
'email' => 'ada.lovelace@example.com',
'roles' => [
'AbCdEfGh'
],
'preferences' => [
'broadcast_emails' => true,
'notification_emails' => true,
'notification_sms' => false
],
'user_fields' => [
'fJkIjGmB' => 'Test value'
]
]),
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.us.cr4ce.com/user/{user_slug}"
payload := strings.NewReader("{\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\",\n \"email\": \"ada.lovelace@example.com\",\n \"roles\": [\n \"AbCdEfGh\"\n ],\n \"preferences\": {\n \"broadcast_emails\": true,\n \"notification_emails\": true,\n \"notification_sms\": false\n },\n \"user_fields\": {\n \"fJkIjGmB\": \"Test value\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Accept", "<accept>")
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.us.cr4ce.com/user/{user_slug}")
.header("Accept", "<accept>")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\",\n \"email\": \"ada.lovelace@example.com\",\n \"roles\": [\n \"AbCdEfGh\"\n ],\n \"preferences\": {\n \"broadcast_emails\": true,\n \"notification_emails\": true,\n \"notification_sms\": false\n },\n \"user_fields\": {\n \"fJkIjGmB\": \"Test value\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.us.cr4ce.com/user/{user_slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Accept"] = '<accept>'
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\",\n \"email\": \"ada.lovelace@example.com\",\n \"roles\": [\n \"AbCdEfGh\"\n ],\n \"preferences\": {\n \"broadcast_emails\": true,\n \"notification_emails\": true,\n \"notification_sms\": false\n },\n \"user_fields\": {\n \"fJkIjGmB\": \"Test value\"\n }\n}"
response = http.request(request)
puts response.read_body{
"analytics_cookies": true,
"broadcast_emails": true,
"comments": "Jane Doe (2025-05-21T15:25:39+00:00): User comment",
"confirmation": "Confirmed",
"confirmed_at": "2018-04-17T00:00:00Z",
"created_at": "2024-06-24T06:34:30Z",
"created_by": "manual",
"email": "jane.doe@example.com",
"first_name": "Jane",
"language": {
"code": "en_GB",
"language": "English (United Kingdom)"
},
"last_name": "Doe",
"marketing_cookies": true,
"mobile": "",
"name": "Jane Doe",
"necessary_cookies": true,
"notification_emails": true,
"notification_sms": true,
"preferences": {
"broadcast_emails": true,
"notification_emails": true,
"notification_sms": true
},
"roles": [
{
"slug": "AbCdEfGh",
"link": "https://api.eu.cr4ce.com/role/AbCdEfGh",
"name": {
"en_GB": "Applicant"
}
},
{
"slug": "CdEfGhIj",
"link": "https://api.eu.cr4ce.com/role/CdEfGhIj",
"name": {
"en_GB": "Program manager"
}
}
],
"slug": "EfGhIjKl",
"social_sharing": true,
"updated": "2026-06-26T07:50:46Z",
"user_fields": [
{
"slug": "GhIjKlMn",
"link": "https://api.eu.cr4ce.com/field/GhIjKlMn",
"label": {
"en_GB": "<p>Title</p>"
},
"title": {
"en_GB": "Title"
},
"value": "Ms",
"translated": {
"en_GB": ""
}
},
{
"slug": "IjKlMnOp",
"link": "https://api.eu.cr4ce.com/field/IjKlMnOp",
"label": {
"en_GB": "<p>user file upload</p>"
},
"title": {
"en_GB": "user file upload"
},
"value": "https://api.eu.cr4ce.com/file/",
"token": "",
"translated": {
"en_GB": ""
}
}
]
}{
"message": "<string>",
"status_code": 400
}{
"message": "<string>",
"status_code": 401
}{
"message": "<string>",
"status_code": 403
}{
"message": "<string>",
"status_code": 422,
"errors": {}
}{
"message": "<string>",
"status_code": 429
}{
"status": "Maintenance in progress"
}Authorizations
Headers
Body
User update payload.
User's email address. Must be unique across all users; the request is rejected if another user already uses it. A user who belongs to more than one account cannot have their email address changed through this endpoint. If the user owns an account, only that same user can change the email address.
User's mobile number in E.164 international format, such as +14155552671. Must be unique across all users; the request is rejected if another user already uses it. A user who belongs to more than one account cannot have their mobile number changed through this endpoint. If the user owns an account, only that same user can change the mobile number.
Response
User updated.
Detailed user fields returned only for a single user.