curl --request PUT \
--url https://app.easyfreelance.no/api/v1/users/{id} \
--header 'API-key: <api-key>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"internal_id": 123,
"first_name": "<string>",
"last_name": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"dial_code": "<string>",
"phone": "<string>",
"note": "<string>",
"bank_account_number": "<string>",
"bank_iban_number": "<string>",
"bank_bic_number": "<string>"
}
'import requests
url = "https://app.easyfreelance.no/api/v1/users/{id}"
payload = {
"internal_id": 123,
"first_name": "<string>",
"last_name": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"dial_code": "<string>",
"phone": "<string>",
"note": "<string>",
"bank_account_number": "<string>",
"bank_iban_number": "<string>",
"bank_bic_number": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"API-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
Authorization: 'Bearer <token>',
'API-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
internal_id: 123,
first_name: '<string>',
last_name: '<string>',
address: '<string>',
postal_code: '<string>',
city: '<string>',
dial_code: '<string>',
phone: '<string>',
note: '<string>',
bank_account_number: '<string>',
bank_iban_number: '<string>',
bank_bic_number: '<string>'
})
};
fetch('https://app.easyfreelance.no/api/v1/users/{id}', 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://app.easyfreelance.no/api/v1/users/{id}",
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([
'internal_id' => 123,
'first_name' => '<string>',
'last_name' => '<string>',
'address' => '<string>',
'postal_code' => '<string>',
'city' => '<string>',
'dial_code' => '<string>',
'phone' => '<string>',
'note' => '<string>',
'bank_account_number' => '<string>',
'bank_iban_number' => '<string>',
'bank_bic_number' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"API-key: <api-key>",
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://app.easyfreelance.no/api/v1/users/{id}"
payload := strings.NewReader("{\n \"internal_id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"address\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"city\": \"<string>\",\n \"dial_code\": \"<string>\",\n \"phone\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_account_number\": \"<string>\",\n \"bank_iban_number\": \"<string>\",\n \"bank_bic_number\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("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://app.easyfreelance.no/api/v1/users/{id}")
.header("Authorization", "Bearer <token>")
.header("API-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"internal_id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"address\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"city\": \"<string>\",\n \"dial_code\": \"<string>\",\n \"phone\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_account_number\": \"<string>\",\n \"bank_iban_number\": \"<string>\",\n \"bank_bic_number\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.easyfreelance.no/api/v1/users/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["API-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"internal_id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"address\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"city\": \"<string>\",\n \"dial_code\": \"<string>\",\n \"phone\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_account_number\": \"<string>\",\n \"bank_iban_number\": \"<string>\",\n \"bank_bic_number\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"email": "<string>",
"internal_id": "<string>",
"name": "<string>",
"phone": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"main_work": "true",
"nationality": "<string>",
"note": "<string>",
"bank_account_number": "<string>",
"bank_iban_number": "<string>",
"bank_bic_number": "<string>",
"tax_percent": "<string>",
"tax_type": "<string>",
"tax_start": "<string>",
"tax_table": "<string>",
"tax_free_card": "<string>",
"onboarding": "<string>",
"created_at": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>"
}{
"message": "<string>",
"errors": {}
}Partial update (profile, note, bank, internal_id)
Partially update an existing employee linked to your partner. Include only the fields you want to change — the server applies updates from the request body and does not overwrite stored profile, bank, note, or internal_id values for properties you omit (subject to validation rules).
Intended use: first and foremost to add or change bank account details (Norwegian account number, or IBAN + BIC) when onboarding requires it. You may also send individual profile fields when a profile already exists, as a secondary convenience; for a full profile step, prefer PUT / PATCH /users/{id}/profile.
Validation rules depend on whether a profile already exists and which fields are sent. When no profile exists, more fields become required together (see server-side rules).
Bank (onboarding): use exactly one of:
- Domestic (Norwegian):
bank_account_numberonly; or - International:
bank_iban_numberandbank_bic_numbertogether. Do not mix styles in one request. Submitting bank fields updates the bank record and may clear the columns for the other variant when switching type. The server validates thisoneOfrule.
curl --request PUT \
--url https://app.easyfreelance.no/api/v1/users/{id} \
--header 'API-key: <api-key>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"internal_id": 123,
"first_name": "<string>",
"last_name": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"dial_code": "<string>",
"phone": "<string>",
"note": "<string>",
"bank_account_number": "<string>",
"bank_iban_number": "<string>",
"bank_bic_number": "<string>"
}
'import requests
url = "https://app.easyfreelance.no/api/v1/users/{id}"
payload = {
"internal_id": 123,
"first_name": "<string>",
"last_name": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"dial_code": "<string>",
"phone": "<string>",
"note": "<string>",
"bank_account_number": "<string>",
"bank_iban_number": "<string>",
"bank_bic_number": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"API-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
Authorization: 'Bearer <token>',
'API-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
internal_id: 123,
first_name: '<string>',
last_name: '<string>',
address: '<string>',
postal_code: '<string>',
city: '<string>',
dial_code: '<string>',
phone: '<string>',
note: '<string>',
bank_account_number: '<string>',
bank_iban_number: '<string>',
bank_bic_number: '<string>'
})
};
fetch('https://app.easyfreelance.no/api/v1/users/{id}', 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://app.easyfreelance.no/api/v1/users/{id}",
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([
'internal_id' => 123,
'first_name' => '<string>',
'last_name' => '<string>',
'address' => '<string>',
'postal_code' => '<string>',
'city' => '<string>',
'dial_code' => '<string>',
'phone' => '<string>',
'note' => '<string>',
'bank_account_number' => '<string>',
'bank_iban_number' => '<string>',
'bank_bic_number' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"API-key: <api-key>",
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://app.easyfreelance.no/api/v1/users/{id}"
payload := strings.NewReader("{\n \"internal_id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"address\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"city\": \"<string>\",\n \"dial_code\": \"<string>\",\n \"phone\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_account_number\": \"<string>\",\n \"bank_iban_number\": \"<string>\",\n \"bank_bic_number\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("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://app.easyfreelance.no/api/v1/users/{id}")
.header("Authorization", "Bearer <token>")
.header("API-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"internal_id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"address\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"city\": \"<string>\",\n \"dial_code\": \"<string>\",\n \"phone\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_account_number\": \"<string>\",\n \"bank_iban_number\": \"<string>\",\n \"bank_bic_number\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.easyfreelance.no/api/v1/users/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["API-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"internal_id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"address\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"city\": \"<string>\",\n \"dial_code\": \"<string>\",\n \"phone\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_account_number\": \"<string>\",\n \"bank_iban_number\": \"<string>\",\n \"bank_bic_number\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"email": "<string>",
"internal_id": "<string>",
"name": "<string>",
"phone": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"main_work": "true",
"nationality": "<string>",
"note": "<string>",
"bank_account_number": "<string>",
"bank_iban_number": "<string>",
"bank_bic_number": "<string>",
"tax_percent": "<string>",
"tax_type": "<string>",
"tax_start": "<string>",
"tax_table": "<string>",
"tax_free_card": "<string>",
"onboarding": "<string>",
"created_at": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>"
}{
"message": "<string>",
"errors": {}
}Authorizations
Sanctum personal access token (access_tokens / partner API settings).
UUID API key stored for the partner user.
Path Parameters
Body
25425425510255254true, false 4096Response
true, false