Replace user profile (full set of required fields)
curl --request PUT \
--url https://app.easyfreelance.no/api/v1/users/{id}/profile \
--header 'API-key: <api-key>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"first_name": "<string>",
"last_name": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"dial_code": "<string>",
"phone": "<string>"
}
'import requests
url = "https://app.easyfreelance.no/api/v1/users/{id}/profile"
payload = {
"first_name": "<string>",
"last_name": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"dial_code": "<string>",
"phone": "<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({
first_name: '<string>',
last_name: '<string>',
address: '<string>',
postal_code: '<string>',
city: '<string>',
dial_code: '<string>',
phone: '<string>'
})
};
fetch('https://app.easyfreelance.no/api/v1/users/{id}/profile', 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}/profile",
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' => '<string>',
'last_name' => '<string>',
'address' => '<string>',
'postal_code' => '<string>',
'city' => '<string>',
'dial_code' => '<string>',
'phone' => '<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}/profile"
payload := strings.NewReader("{\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}")
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}/profile")
.header("Authorization", "Bearer <token>")
.header("API-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.easyfreelance.no/api/v1/users/{id}/profile")
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 \"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}"
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>",
"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": {}
}User
Replace user profile (full set of required fields)
Registers a full profile for the linked employee (name, address, phone, main work). This is the intended way to complete the profile onboarding step via the partner API; the onboarding payload on GET /users/{id} reflects progress.
PUT
/
users
/
{id}
/
profile
Replace user profile (full set of required fields)
curl --request PUT \
--url https://app.easyfreelance.no/api/v1/users/{id}/profile \
--header 'API-key: <api-key>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"first_name": "<string>",
"last_name": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"dial_code": "<string>",
"phone": "<string>"
}
'import requests
url = "https://app.easyfreelance.no/api/v1/users/{id}/profile"
payload = {
"first_name": "<string>",
"last_name": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"dial_code": "<string>",
"phone": "<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({
first_name: '<string>',
last_name: '<string>',
address: '<string>',
postal_code: '<string>',
city: '<string>',
dial_code: '<string>',
phone: '<string>'
})
};
fetch('https://app.easyfreelance.no/api/v1/users/{id}/profile', 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}/profile",
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' => '<string>',
'last_name' => '<string>',
'address' => '<string>',
'postal_code' => '<string>',
'city' => '<string>',
'dial_code' => '<string>',
'phone' => '<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}/profile"
payload := strings.NewReader("{\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}")
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}/profile")
.header("Authorization", "Bearer <token>")
.header("API-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.easyfreelance.no/api/v1/users/{id}/profile")
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 \"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}"
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>",
"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
application/json
Maximum string length:
254Maximum string length:
254Maximum string length:
255Maximum string length:
10Maximum string length:
255Maximum string length:
254Available options:
true, false Response
Available options:
true, false ⌘I