Create a standalone client role
curl --request POST \
--url https://www.ruddr.io/api/workspace/client-roles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"clientId": "<string>",
"name": "<string>",
"currency": "<string>",
"isBillable": true,
"rate": 123,
"disciplineId": "<string>",
"practiceId": "<string>",
"businessUnitId": "<string>",
"locationId": "<string>"
}
'import requests
url = "https://www.ruddr.io/api/workspace/client-roles"
payload = {
"clientId": "<string>",
"name": "<string>",
"currency": "<string>",
"isBillable": True,
"rate": 123,
"disciplineId": "<string>",
"practiceId": "<string>",
"businessUnitId": "<string>",
"locationId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
clientId: '<string>',
name: '<string>',
currency: '<string>',
isBillable: true,
rate: 123,
disciplineId: '<string>',
practiceId: '<string>',
businessUnitId: '<string>',
locationId: '<string>'
})
};
fetch('https://www.ruddr.io/api/workspace/client-roles', 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://www.ruddr.io/api/workspace/client-roles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'clientId' => '<string>',
'name' => '<string>',
'currency' => '<string>',
'isBillable' => true,
'rate' => 123,
'disciplineId' => '<string>',
'practiceId' => '<string>',
'businessUnitId' => '<string>',
'locationId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://www.ruddr.io/api/workspace/client-roles"
payload := strings.NewReader("{\n \"clientId\": \"<string>\",\n \"name\": \"<string>\",\n \"currency\": \"<string>\",\n \"isBillable\": true,\n \"rate\": 123,\n \"disciplineId\": \"<string>\",\n \"practiceId\": \"<string>\",\n \"businessUnitId\": \"<string>\",\n \"locationId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://www.ruddr.io/api/workspace/client-roles")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"clientId\": \"<string>\",\n \"name\": \"<string>\",\n \"currency\": \"<string>\",\n \"isBillable\": true,\n \"rate\": 123,\n \"disciplineId\": \"<string>\",\n \"practiceId\": \"<string>\",\n \"businessUnitId\": \"<string>\",\n \"locationId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.ruddr.io/api/workspace/client-roles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"clientId\": \"<string>\",\n \"name\": \"<string>\",\n \"currency\": \"<string>\",\n \"isBillable\": true,\n \"rate\": 123,\n \"disciplineId\": \"<string>\",\n \"practiceId\": \"<string>\",\n \"businessUnitId\": \"<string>\",\n \"locationId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "a3c7e1b5-4d29-4f86-b0a8-6e2d9c1f73b4",
"name": "Lead Designer",
"isBillable": true,
"rate": 200,
"currency": "USD",
"createdAt": "2025-12-10T09:15:33.841Z",
"client": {
"id": "d4e1b7a3-8c52-4f90-b6d3-1a9e0c7f45b8",
"name": "Acme Corporation"
},
"discipline": {
"id": "5b8e2a1c-3d47-4f09-a6e3-8c0d2f1b47a9",
"name": "Product Design"
},
"practice": {
"id": "c9a3d5b7-1e48-4f63-b7d0-a2e1c8f92d56",
"name": "UX Research"
},
"businessUnit": {
"id": "81a99b4a-7ed0-48d5-b92a-0ceeed480b73",
"name": "Professional Services"
},
"location": {
"id": "e2b4c6a8-7f19-4d30-a5e1-9c3b0d8f62a7",
"name": "San Francisco"
},
"workspaceRole": null
}Client Roles
Create a standalone client role
Create a standalone client role with custom billing terms. To create a client role linked to a workspace role, use POST /client-roles/link instead.
POST
/
client-roles
Create a standalone client role
curl --request POST \
--url https://www.ruddr.io/api/workspace/client-roles \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"clientId": "<string>",
"name": "<string>",
"currency": "<string>",
"isBillable": true,
"rate": 123,
"disciplineId": "<string>",
"practiceId": "<string>",
"businessUnitId": "<string>",
"locationId": "<string>"
}
'import requests
url = "https://www.ruddr.io/api/workspace/client-roles"
payload = {
"clientId": "<string>",
"name": "<string>",
"currency": "<string>",
"isBillable": True,
"rate": 123,
"disciplineId": "<string>",
"practiceId": "<string>",
"businessUnitId": "<string>",
"locationId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
clientId: '<string>',
name: '<string>',
currency: '<string>',
isBillable: true,
rate: 123,
disciplineId: '<string>',
practiceId: '<string>',
businessUnitId: '<string>',
locationId: '<string>'
})
};
fetch('https://www.ruddr.io/api/workspace/client-roles', 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://www.ruddr.io/api/workspace/client-roles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'clientId' => '<string>',
'name' => '<string>',
'currency' => '<string>',
'isBillable' => true,
'rate' => 123,
'disciplineId' => '<string>',
'practiceId' => '<string>',
'businessUnitId' => '<string>',
'locationId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://www.ruddr.io/api/workspace/client-roles"
payload := strings.NewReader("{\n \"clientId\": \"<string>\",\n \"name\": \"<string>\",\n \"currency\": \"<string>\",\n \"isBillable\": true,\n \"rate\": 123,\n \"disciplineId\": \"<string>\",\n \"practiceId\": \"<string>\",\n \"businessUnitId\": \"<string>\",\n \"locationId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://www.ruddr.io/api/workspace/client-roles")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"clientId\": \"<string>\",\n \"name\": \"<string>\",\n \"currency\": \"<string>\",\n \"isBillable\": true,\n \"rate\": 123,\n \"disciplineId\": \"<string>\",\n \"practiceId\": \"<string>\",\n \"businessUnitId\": \"<string>\",\n \"locationId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.ruddr.io/api/workspace/client-roles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"clientId\": \"<string>\",\n \"name\": \"<string>\",\n \"currency\": \"<string>\",\n \"isBillable\": true,\n \"rate\": 123,\n \"disciplineId\": \"<string>\",\n \"practiceId\": \"<string>\",\n \"businessUnitId\": \"<string>\",\n \"locationId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "a3c7e1b5-4d29-4f86-b0a8-6e2d9c1f73b4",
"name": "Lead Designer",
"isBillable": true,
"rate": 200,
"currency": "USD",
"createdAt": "2025-12-10T09:15:33.841Z",
"client": {
"id": "d4e1b7a3-8c52-4f90-b6d3-1a9e0c7f45b8",
"name": "Acme Corporation"
},
"discipline": {
"id": "5b8e2a1c-3d47-4f09-a6e3-8c0d2f1b47a9",
"name": "Product Design"
},
"practice": {
"id": "c9a3d5b7-1e48-4f63-b7d0-a2e1c8f92d56",
"name": "UX Research"
},
"businessUnit": {
"id": "81a99b4a-7ed0-48d5-b92a-0ceeed480b73",
"name": "Professional Services"
},
"location": {
"id": "e2b4c6a8-7f19-4d30-a5e1-9c3b0d8f62a7",
"name": "San Francisco"
},
"workspaceRole": null
}A role defining billing terms for work performed for a specific client. Client roles can be created independently or linked to a workspace role, which overrides the role’s name, billing, and classification fields.
Authorizations
Body
application/json
Response
200