Update company
curl --request PATCH \
--url https://productlane.com/api/v2/companies/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"logo_url": "<string>",
"domains": [
"<string>"
],
"size": 1,
"revenue": 1,
"external_ids": [
"<string>"
],
"status_id": "<string>",
"tier_id": "<string>",
"owner_id": "<string>"
}
'import requests
url = "https://productlane.com/api/v2/companies/{id}"
payload = {
"name": "<string>",
"logo_url": "<string>",
"domains": ["<string>"],
"size": 1,
"revenue": 1,
"external_ids": ["<string>"],
"status_id": "<string>",
"tier_id": "<string>",
"owner_id": "<string>"
}
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: '<string>',
logo_url: '<string>',
domains: ['<string>'],
size: 1,
revenue: 1,
external_ids: ['<string>'],
status_id: '<string>',
tier_id: '<string>',
owner_id: '<string>'
})
};
fetch('https://productlane.com/api/v2/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://productlane.com/api/v2/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' => '<string>',
'logo_url' => '<string>',
'domains' => [
'<string>'
],
'size' => 1,
'revenue' => 1,
'external_ids' => [
'<string>'
],
'status_id' => '<string>',
'tier_id' => '<string>',
'owner_id' => '<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://productlane.com/api/v2/companies/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"domains\": [\n \"<string>\"\n ],\n \"size\": 1,\n \"revenue\": 1,\n \"external_ids\": [\n \"<string>\"\n ],\n \"status_id\": \"<string>\",\n \"tier_id\": \"<string>\",\n \"owner_id\": \"<string>\"\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://productlane.com/api/v2/companies/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"domains\": [\n \"<string>\"\n ],\n \"size\": 1,\n \"revenue\": 1,\n \"external_ids\": [\n \"<string>\"\n ],\n \"status_id\": \"<string>\",\n \"tier_id\": \"<string>\",\n \"owner_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://productlane.com/api/v2/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\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"domains\": [\n \"<string>\"\n ],\n \"size\": 1,\n \"revenue\": 1,\n \"external_ids\": [\n \"<string>\"\n ],\n \"status_id\": \"<string>\",\n \"tier_id\": \"<string>\",\n \"owner_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"logo_url": "<string>",
"domains": [
"<string>"
],
"size": 123,
"revenue": 123,
"status_id": "<string>",
"status_name": "<string>",
"tier_id": "<string>",
"tier_name": "<string>",
"owner": {
"id": "<string>",
"name": "<string>",
"avatar_url": "<string>"
},
"external_ids": [
"<string>"
],
"created_at": "<string>",
"updated_at": "<string>"
}{
"message": "<string>",
"code": "<string>",
"issues": [
{
"message": "<string>"
}
]
}Companies
Update company
Update a company by id. Authentication required.
PATCH
/
companies
/
{id}
Update company
curl --request PATCH \
--url https://productlane.com/api/v2/companies/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"logo_url": "<string>",
"domains": [
"<string>"
],
"size": 1,
"revenue": 1,
"external_ids": [
"<string>"
],
"status_id": "<string>",
"tier_id": "<string>",
"owner_id": "<string>"
}
'import requests
url = "https://productlane.com/api/v2/companies/{id}"
payload = {
"name": "<string>",
"logo_url": "<string>",
"domains": ["<string>"],
"size": 1,
"revenue": 1,
"external_ids": ["<string>"],
"status_id": "<string>",
"tier_id": "<string>",
"owner_id": "<string>"
}
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: '<string>',
logo_url: '<string>',
domains: ['<string>'],
size: 1,
revenue: 1,
external_ids: ['<string>'],
status_id: '<string>',
tier_id: '<string>',
owner_id: '<string>'
})
};
fetch('https://productlane.com/api/v2/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://productlane.com/api/v2/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' => '<string>',
'logo_url' => '<string>',
'domains' => [
'<string>'
],
'size' => 1,
'revenue' => 1,
'external_ids' => [
'<string>'
],
'status_id' => '<string>',
'tier_id' => '<string>',
'owner_id' => '<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://productlane.com/api/v2/companies/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"domains\": [\n \"<string>\"\n ],\n \"size\": 1,\n \"revenue\": 1,\n \"external_ids\": [\n \"<string>\"\n ],\n \"status_id\": \"<string>\",\n \"tier_id\": \"<string>\",\n \"owner_id\": \"<string>\"\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://productlane.com/api/v2/companies/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"domains\": [\n \"<string>\"\n ],\n \"size\": 1,\n \"revenue\": 1,\n \"external_ids\": [\n \"<string>\"\n ],\n \"status_id\": \"<string>\",\n \"tier_id\": \"<string>\",\n \"owner_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://productlane.com/api/v2/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\": \"<string>\",\n \"logo_url\": \"<string>\",\n \"domains\": [\n \"<string>\"\n ],\n \"size\": 1,\n \"revenue\": 1,\n \"external_ids\": [\n \"<string>\"\n ],\n \"status_id\": \"<string>\",\n \"tier_id\": \"<string>\",\n \"owner_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"logo_url": "<string>",
"domains": [
"<string>"
],
"size": 123,
"revenue": 123,
"status_id": "<string>",
"status_name": "<string>",
"tier_id": "<string>",
"tier_name": "<string>",
"owner": {
"id": "<string>",
"name": "<string>",
"avatar_url": "<string>"
},
"external_ids": [
"<string>"
],
"created_at": "<string>",
"updated_at": "<string>"
}{
"message": "<string>",
"code": "<string>",
"issues": [
{
"message": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Required string length:
1 - 255Replaces the full domain set.
Required string length:
1 - 63Pattern:
[0-9a-z-]+\.(?:(?:co|or|gv|ac|com)\.)?[a-z]{2,7}$Required range:
x >= 0Required range:
x >= 0Replaces the full external-id set.
Linear customer-status id. Pass null to clear. Omit to leave unchanged.
Linear customer-tier id. Pass null to clear. Omit to leave unchanged.
Linear user id of the owner. Pass null to clear. Omit to leave unchanged.
Response
Successful response
Show child attributes
Show child attributes
Caller-owned cross-system identifiers (CRM ids, etc.). Replaced wholesale on create/update.
⌘I