Update a company
curl --request PATCH \
--url https://www.useroulette.com/api/v1/companies/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Corp (Updated)",
"company_status_id": "status-uuid-here",
"metadata": {
"user_preferences": [
{
"type": "select",
"field": "Industry",
"value": "AI/ML",
"options": [
"SaaS",
"Fintech",
"AI/ML",
"Developer Tools"
],
"show_in_table": true
}
]
}
}
'import requests
url = "https://www.useroulette.com/api/v1/companies/{id}"
payload = {
"name": "Acme Corp (Updated)",
"company_status_id": "status-uuid-here",
"metadata": { "user_preferences": [
{
"type": "select",
"field": "Industry",
"value": "AI/ML",
"options": ["SaaS", "Fintech", "AI/ML", "Developer Tools"],
"show_in_table": True
}
] }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Acme Corp (Updated)',
company_status_id: 'status-uuid-here',
metadata: {
user_preferences: [
{
type: 'select',
field: 'Industry',
value: 'AI/ML',
options: ['SaaS', 'Fintech', 'AI/ML', 'Developer Tools'],
show_in_table: true
}
]
}
})
};
fetch('https://www.useroulette.com/api/v1/companies/{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://www.useroulette.com/api/v1/companies/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Acme Corp (Updated)',
'company_status_id' => 'status-uuid-here',
'metadata' => [
'user_preferences' => [
[
'type' => 'select',
'field' => 'Industry',
'value' => 'AI/ML',
'options' => [
'SaaS',
'Fintech',
'AI/ML',
'Developer Tools'
],
'show_in_table' => true
]
]
]
]),
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.useroulette.com/api/v1/companies/{id}"
payload := strings.NewReader("{\n \"name\": \"Acme Corp (Updated)\",\n \"company_status_id\": \"status-uuid-here\",\n \"metadata\": {\n \"user_preferences\": [\n {\n \"type\": \"select\",\n \"field\": \"Industry\",\n \"value\": \"AI/ML\",\n \"options\": [\n \"SaaS\",\n \"Fintech\",\n \"AI/ML\",\n \"Developer Tools\"\n ],\n \"show_in_table\": true\n }\n ]\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://www.useroulette.com/api/v1/companies/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme Corp (Updated)\",\n \"company_status_id\": \"status-uuid-here\",\n \"metadata\": {\n \"user_preferences\": [\n {\n \"type\": \"select\",\n \"field\": \"Industry\",\n \"value\": \"AI/ML\",\n \"options\": [\n \"SaaS\",\n \"Fintech\",\n \"AI/ML\",\n \"Developer Tools\"\n ],\n \"show_in_table\": true\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.useroulette.com/api/v1/companies/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme Corp (Updated)\",\n \"company_status_id\": \"status-uuid-here\",\n \"metadata\": {\n \"user_preferences\": [\n {\n \"type\": \"select\",\n \"field\": \"Industry\",\n \"value\": \"AI/ML\",\n \"options\": [\n \"SaaS\",\n \"Fintech\",\n \"AI/ML\",\n \"Developer Tools\"\n ],\n \"show_in_table\": true\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"company": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"account_id": "11111111-2222-3333-4444-555555555555",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T12:45:00Z",
"name": "Acme Technologies",
"deck_link": "https://docsend.com/view/example123",
"deck_storage_path": "companies/7c9e6679/deck.pdf",
"visibility": "team",
"source": "form",
"source_content": "0: {\"key\":\"question_wbB2ze\",\"type\":\"INPUT_EMAIL\",\"label\":\"Email\",\"value\":\"founder@company.com\"}",
"notes": "Met at TechCrunch Disrupt. Strong technical team.",
"company_status_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"company_status": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status_text": "Initial Review",
"color": "#3B82F6",
"rank": 123
},
"metadata": {
"founders": [
{
"name": "Jane Smith",
"email": "jane@example.com",
"phone": "+1-555-123-4567",
"title": "CEO/Co-Founder",
"background": "Former engineer at Google, 10 years in enterprise software",
"linkedin_profile": "https://www.linkedin.com/in/example/"
}
],
"ai_analysis": "B2B SaaS platform providing enterprise workflow automation with AI-powered document processing.",
"analyzed_at": "2024-01-15T12:45:00Z",
"user_preferences": [
{
"type": "select",
"field": "Industry",
"value": "AI/ML",
"options": [
"SaaS",
"Fintech",
"AI/ML",
"Developer Tools"
],
"show_in_table": true
}
]
},
"metadata_search_text": "<string>",
"assignees": [],
"created_by": "user-uuid-1234",
"updated_by": "user-uuid-1234"
},
"pdf_download_url": "<string>"
}
}{
"success": false,
"error": "Invalid request body",
"data": null
}{
"success": false,
"error": "Invalid or expired API key",
"data": null
}{
"success": false,
"error": "Resource not found",
"data": null
}{
"success": false,
"error": "Internal server error",
"data": null
}Companies
Update a company
Update company information. Only include fields you want to change.
PATCH
/
companies
/
{id}
Update a company
curl --request PATCH \
--url https://www.useroulette.com/api/v1/companies/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Corp (Updated)",
"company_status_id": "status-uuid-here",
"metadata": {
"user_preferences": [
{
"type": "select",
"field": "Industry",
"value": "AI/ML",
"options": [
"SaaS",
"Fintech",
"AI/ML",
"Developer Tools"
],
"show_in_table": true
}
]
}
}
'import requests
url = "https://www.useroulette.com/api/v1/companies/{id}"
payload = {
"name": "Acme Corp (Updated)",
"company_status_id": "status-uuid-here",
"metadata": { "user_preferences": [
{
"type": "select",
"field": "Industry",
"value": "AI/ML",
"options": ["SaaS", "Fintech", "AI/ML", "Developer Tools"],
"show_in_table": True
}
] }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Acme Corp (Updated)',
company_status_id: 'status-uuid-here',
metadata: {
user_preferences: [
{
type: 'select',
field: 'Industry',
value: 'AI/ML',
options: ['SaaS', 'Fintech', 'AI/ML', 'Developer Tools'],
show_in_table: true
}
]
}
})
};
fetch('https://www.useroulette.com/api/v1/companies/{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://www.useroulette.com/api/v1/companies/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Acme Corp (Updated)',
'company_status_id' => 'status-uuid-here',
'metadata' => [
'user_preferences' => [
[
'type' => 'select',
'field' => 'Industry',
'value' => 'AI/ML',
'options' => [
'SaaS',
'Fintech',
'AI/ML',
'Developer Tools'
],
'show_in_table' => true
]
]
]
]),
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.useroulette.com/api/v1/companies/{id}"
payload := strings.NewReader("{\n \"name\": \"Acme Corp (Updated)\",\n \"company_status_id\": \"status-uuid-here\",\n \"metadata\": {\n \"user_preferences\": [\n {\n \"type\": \"select\",\n \"field\": \"Industry\",\n \"value\": \"AI/ML\",\n \"options\": [\n \"SaaS\",\n \"Fintech\",\n \"AI/ML\",\n \"Developer Tools\"\n ],\n \"show_in_table\": true\n }\n ]\n }\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://www.useroulette.com/api/v1/companies/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme Corp (Updated)\",\n \"company_status_id\": \"status-uuid-here\",\n \"metadata\": {\n \"user_preferences\": [\n {\n \"type\": \"select\",\n \"field\": \"Industry\",\n \"value\": \"AI/ML\",\n \"options\": [\n \"SaaS\",\n \"Fintech\",\n \"AI/ML\",\n \"Developer Tools\"\n ],\n \"show_in_table\": true\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.useroulette.com/api/v1/companies/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Acme Corp (Updated)\",\n \"company_status_id\": \"status-uuid-here\",\n \"metadata\": {\n \"user_preferences\": [\n {\n \"type\": \"select\",\n \"field\": \"Industry\",\n \"value\": \"AI/ML\",\n \"options\": [\n \"SaaS\",\n \"Fintech\",\n \"AI/ML\",\n \"Developer Tools\"\n ],\n \"show_in_table\": true\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"company": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"account_id": "11111111-2222-3333-4444-555555555555",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T12:45:00Z",
"name": "Acme Technologies",
"deck_link": "https://docsend.com/view/example123",
"deck_storage_path": "companies/7c9e6679/deck.pdf",
"visibility": "team",
"source": "form",
"source_content": "0: {\"key\":\"question_wbB2ze\",\"type\":\"INPUT_EMAIL\",\"label\":\"Email\",\"value\":\"founder@company.com\"}",
"notes": "Met at TechCrunch Disrupt. Strong technical team.",
"company_status_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"company_status": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status_text": "Initial Review",
"color": "#3B82F6",
"rank": 123
},
"metadata": {
"founders": [
{
"name": "Jane Smith",
"email": "jane@example.com",
"phone": "+1-555-123-4567",
"title": "CEO/Co-Founder",
"background": "Former engineer at Google, 10 years in enterprise software",
"linkedin_profile": "https://www.linkedin.com/in/example/"
}
],
"ai_analysis": "B2B SaaS platform providing enterprise workflow automation with AI-powered document processing.",
"analyzed_at": "2024-01-15T12:45:00Z",
"user_preferences": [
{
"type": "select",
"field": "Industry",
"value": "AI/ML",
"options": [
"SaaS",
"Fintech",
"AI/ML",
"Developer Tools"
],
"show_in_table": true
}
]
},
"metadata_search_text": "<string>",
"assignees": [],
"created_by": "user-uuid-1234",
"updated_by": "user-uuid-1234"
},
"pdf_download_url": "<string>"
}
}{
"success": false,
"error": "Invalid request body",
"data": null
}{
"success": false,
"error": "Invalid or expired API key",
"data": null
}{
"success": false,
"error": "Resource not found",
"data": null
}{
"success": false,
"error": "Internal server error",
"data": null
}Authorizations
API key authentication. Generate keys from your account settings.
Include in header: Authorization: Bearer YOUR_API_KEY
Path Parameters
The unique identifier of the company
Body
application/json
All fields are optional for partial updates
Maximum string length:
255Available options:
private, shared, team Available options:
manual, email, form, referral, website, event, other Custom metadata for the company. Contains AI-extracted data, founder info, and user-configurable custom fields.
Show child attributes
Show child attributes
⌘I

