Company profile
Patch apiv2organizations company profile
PATCH
/
api
/
v2
/
organizations
/
{orgId}
/
company-profile
cURL
curl --request PATCH \
--url https://api.example.com/api/v2/organizations/{orgId}/company-profile \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"primaryCategory": "<string>",
"additionalCategories": [
"<string>"
],
"description": "<string>",
"oneLineDescription": "<string>",
"foundedYear": 1801,
"logoAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone": "<string>",
"morePhoneNumbers": [
{
"label": "<string>",
"number": "<string>"
}
],
"whatsapp": "<string>",
"email": "jsmith@example.com",
"website": "<string>",
"bookingUrl": "<string>",
"socialProfiles": [
"<string>"
],
"street": "<string>",
"houseNumber": "<string>",
"postalCode": "<string>",
"city": "<string>",
"country": "<string>",
"serviceArea": [
"<string>"
],
"radiusKm": 250,
"postalCodeAreas": [
"<string>"
],
"services": [
{
"name": "<string>",
"description": "<string>",
"priceRange": "<string>"
}
],
"processAndDuration": "<string>",
"attributes": [
"<string>"
],
"certifications": [
"<string>"
],
"awards": [
"<string>"
],
"targetGroups": [
"<string>"
],
"usps": [
"<string>"
],
"keyFigures": [
{
"value": "<string>",
"label": "<string>"
}
],
"objections": [
{
"objection": "<string>",
"answer": "<string>"
}
],
"guarantees": "<string>",
"whatWeDontDo": "<string>",
"toneAndAddress": "<string>",
"wordsWeUse": [
"<string>"
],
"wordsWeAvoid": [
{
"word": "<string>",
"replacement": "<string>"
}
],
"taboos": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/v2/organizations/{orgId}/company-profile"
payload = {
"name": "<string>",
"primaryCategory": "<string>",
"additionalCategories": ["<string>"],
"description": "<string>",
"oneLineDescription": "<string>",
"foundedYear": 1801,
"logoAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone": "<string>",
"morePhoneNumbers": [
{
"label": "<string>",
"number": "<string>"
}
],
"whatsapp": "<string>",
"email": "jsmith@example.com",
"website": "<string>",
"bookingUrl": "<string>",
"socialProfiles": ["<string>"],
"street": "<string>",
"houseNumber": "<string>",
"postalCode": "<string>",
"city": "<string>",
"country": "<string>",
"serviceArea": ["<string>"],
"radiusKm": 250,
"postalCodeAreas": ["<string>"],
"services": [
{
"name": "<string>",
"description": "<string>",
"priceRange": "<string>"
}
],
"processAndDuration": "<string>",
"attributes": ["<string>"],
"certifications": ["<string>"],
"awards": ["<string>"],
"targetGroups": ["<string>"],
"usps": ["<string>"],
"keyFigures": [
{
"value": "<string>",
"label": "<string>"
}
],
"objections": [
{
"objection": "<string>",
"answer": "<string>"
}
],
"guarantees": "<string>",
"whatWeDontDo": "<string>",
"toneAndAddress": "<string>",
"wordsWeUse": ["<string>"],
"wordsWeAvoid": [
{
"word": "<string>",
"replacement": "<string>"
}
],
"taboos": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
primaryCategory: '<string>',
additionalCategories: ['<string>'],
description: '<string>',
oneLineDescription: '<string>',
foundedYear: 1801,
logoAssetId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
phone: '<string>',
morePhoneNumbers: [{label: '<string>', number: '<string>'}],
whatsapp: '<string>',
email: 'jsmith@example.com',
website: '<string>',
bookingUrl: '<string>',
socialProfiles: ['<string>'],
street: '<string>',
houseNumber: '<string>',
postalCode: '<string>',
city: '<string>',
country: '<string>',
serviceArea: ['<string>'],
radiusKm: 250,
postalCodeAreas: ['<string>'],
services: [{name: '<string>', description: '<string>', priceRange: '<string>'}],
processAndDuration: '<string>',
attributes: ['<string>'],
certifications: ['<string>'],
awards: ['<string>'],
targetGroups: ['<string>'],
usps: ['<string>'],
keyFigures: [{value: '<string>', label: '<string>'}],
objections: [{objection: '<string>', answer: '<string>'}],
guarantees: '<string>',
whatWeDontDo: '<string>',
toneAndAddress: '<string>',
wordsWeUse: ['<string>'],
wordsWeAvoid: [{word: '<string>', replacement: '<string>'}],
taboos: ['<string>']
})
};
fetch('https://api.example.com/api/v2/organizations/{orgId}/company-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://api.example.com/api/v2/organizations/{orgId}/company-profile",
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>',
'primaryCategory' => '<string>',
'additionalCategories' => [
'<string>'
],
'description' => '<string>',
'oneLineDescription' => '<string>',
'foundedYear' => 1801,
'logoAssetId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'phone' => '<string>',
'morePhoneNumbers' => [
[
'label' => '<string>',
'number' => '<string>'
]
],
'whatsapp' => '<string>',
'email' => 'jsmith@example.com',
'website' => '<string>',
'bookingUrl' => '<string>',
'socialProfiles' => [
'<string>'
],
'street' => '<string>',
'houseNumber' => '<string>',
'postalCode' => '<string>',
'city' => '<string>',
'country' => '<string>',
'serviceArea' => [
'<string>'
],
'radiusKm' => 250,
'postalCodeAreas' => [
'<string>'
],
'services' => [
[
'name' => '<string>',
'description' => '<string>',
'priceRange' => '<string>'
]
],
'processAndDuration' => '<string>',
'attributes' => [
'<string>'
],
'certifications' => [
'<string>'
],
'awards' => [
'<string>'
],
'targetGroups' => [
'<string>'
],
'usps' => [
'<string>'
],
'keyFigures' => [
[
'value' => '<string>',
'label' => '<string>'
]
],
'objections' => [
[
'objection' => '<string>',
'answer' => '<string>'
]
],
'guarantees' => '<string>',
'whatWeDontDo' => '<string>',
'toneAndAddress' => '<string>',
'wordsWeUse' => [
'<string>'
],
'wordsWeAvoid' => [
[
'word' => '<string>',
'replacement' => '<string>'
]
],
'taboos' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"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://api.example.com/api/v2/organizations/{orgId}/company-profile"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"primaryCategory\": \"<string>\",\n \"additionalCategories\": [\n \"<string>\"\n ],\n \"description\": \"<string>\",\n \"oneLineDescription\": \"<string>\",\n \"foundedYear\": 1801,\n \"logoAssetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"phone\": \"<string>\",\n \"morePhoneNumbers\": [\n {\n \"label\": \"<string>\",\n \"number\": \"<string>\"\n }\n ],\n \"whatsapp\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"website\": \"<string>\",\n \"bookingUrl\": \"<string>\",\n \"socialProfiles\": [\n \"<string>\"\n ],\n \"street\": \"<string>\",\n \"houseNumber\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"serviceArea\": [\n \"<string>\"\n ],\n \"radiusKm\": 250,\n \"postalCodeAreas\": [\n \"<string>\"\n ],\n \"services\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"priceRange\": \"<string>\"\n }\n ],\n \"processAndDuration\": \"<string>\",\n \"attributes\": [\n \"<string>\"\n ],\n \"certifications\": [\n \"<string>\"\n ],\n \"awards\": [\n \"<string>\"\n ],\n \"targetGroups\": [\n \"<string>\"\n ],\n \"usps\": [\n \"<string>\"\n ],\n \"keyFigures\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"objections\": [\n {\n \"objection\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"guarantees\": \"<string>\",\n \"whatWeDontDo\": \"<string>\",\n \"toneAndAddress\": \"<string>\",\n \"wordsWeUse\": [\n \"<string>\"\n ],\n \"wordsWeAvoid\": [\n {\n \"word\": \"<string>\",\n \"replacement\": \"<string>\"\n }\n ],\n \"taboos\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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://api.example.com/api/v2/organizations/{orgId}/company-profile")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"primaryCategory\": \"<string>\",\n \"additionalCategories\": [\n \"<string>\"\n ],\n \"description\": \"<string>\",\n \"oneLineDescription\": \"<string>\",\n \"foundedYear\": 1801,\n \"logoAssetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"phone\": \"<string>\",\n \"morePhoneNumbers\": [\n {\n \"label\": \"<string>\",\n \"number\": \"<string>\"\n }\n ],\n \"whatsapp\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"website\": \"<string>\",\n \"bookingUrl\": \"<string>\",\n \"socialProfiles\": [\n \"<string>\"\n ],\n \"street\": \"<string>\",\n \"houseNumber\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"serviceArea\": [\n \"<string>\"\n ],\n \"radiusKm\": 250,\n \"postalCodeAreas\": [\n \"<string>\"\n ],\n \"services\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"priceRange\": \"<string>\"\n }\n ],\n \"processAndDuration\": \"<string>\",\n \"attributes\": [\n \"<string>\"\n ],\n \"certifications\": [\n \"<string>\"\n ],\n \"awards\": [\n \"<string>\"\n ],\n \"targetGroups\": [\n \"<string>\"\n ],\n \"usps\": [\n \"<string>\"\n ],\n \"keyFigures\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"objections\": [\n {\n \"objection\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"guarantees\": \"<string>\",\n \"whatWeDontDo\": \"<string>\",\n \"toneAndAddress\": \"<string>\",\n \"wordsWeUse\": [\n \"<string>\"\n ],\n \"wordsWeAvoid\": [\n {\n \"word\": \"<string>\",\n \"replacement\": \"<string>\"\n }\n ],\n \"taboos\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/organizations/{orgId}/company-profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"primaryCategory\": \"<string>\",\n \"additionalCategories\": [\n \"<string>\"\n ],\n \"description\": \"<string>\",\n \"oneLineDescription\": \"<string>\",\n \"foundedYear\": 1801,\n \"logoAssetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"phone\": \"<string>\",\n \"morePhoneNumbers\": [\n {\n \"label\": \"<string>\",\n \"number\": \"<string>\"\n }\n ],\n \"whatsapp\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"website\": \"<string>\",\n \"bookingUrl\": \"<string>\",\n \"socialProfiles\": [\n \"<string>\"\n ],\n \"street\": \"<string>\",\n \"houseNumber\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"serviceArea\": [\n \"<string>\"\n ],\n \"radiusKm\": 250,\n \"postalCodeAreas\": [\n \"<string>\"\n ],\n \"services\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"priceRange\": \"<string>\"\n }\n ],\n \"processAndDuration\": \"<string>\",\n \"attributes\": [\n \"<string>\"\n ],\n \"certifications\": [\n \"<string>\"\n ],\n \"awards\": [\n \"<string>\"\n ],\n \"targetGroups\": [\n \"<string>\"\n ],\n \"usps\": [\n \"<string>\"\n ],\n \"keyFigures\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"objections\": [\n {\n \"objection\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"guarantees\": \"<string>\",\n \"whatWeDontDo\": \"<string>\",\n \"toneAndAddress\": \"<string>\",\n \"wordsWeUse\": [\n \"<string>\"\n ],\n \"wordsWeAvoid\": [\n {\n \"word\": \"<string>\",\n \"replacement\": \"<string>\"\n }\n ],\n \"taboos\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"basis": {
"name": "<string>",
"primaryCategory": "<string>",
"additionalCategories": [
"<string>"
],
"description": "<string>",
"oneLineDescription": "<string>",
"foundedYear": 123,
"logoAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"contact": {
"phone": "<string>",
"morePhoneNumbers": [
{
"label": "<string>",
"number": "<string>"
}
],
"whatsapp": "<string>",
"email": "<string>",
"website": "<string>",
"bookingUrl": "<string>",
"socialProfiles": [
"<string>"
]
},
"location": {
"address": {
"street": "<string>",
"houseNumber": "<string>",
"postalCode": "<string>",
"city": "<string>",
"country": "<string>"
},
"serviceArea": [
"<string>"
],
"radiusKm": 123,
"postalCodeAreas": [
"<string>"
]
},
"services": {
"services": [
{
"name": "<string>",
"description": "<string>",
"priceRange": "<string>"
}
],
"processAndDuration": "<string>"
},
"attributes": {
"attributes": [
"<string>"
],
"certifications": [
"<string>"
],
"awards": [
"<string>"
]
},
"whyUs": {
"targetGroups": [
"<string>"
],
"usps": [
"<string>"
],
"keyFigures": [
{
"value": "<string>",
"label": "<string>"
}
],
"objections": [
{
"objection": "<string>",
"answer": "<string>"
}
],
"guarantees": "<string>",
"whatWeDontDo": "<string>",
"primaryGoal": "call"
},
"voice": {
"toneAndAddress": "<string>",
"wordsWeUse": [
"<string>"
],
"wordsWeAvoid": [
{
"word": "<string>",
"replacement": "<string>"
}
],
"taboos": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Body
application/json
Response
The whole company profile after saving the fields in the request
⌘I
cURL
curl --request PATCH \
--url https://api.example.com/api/v2/organizations/{orgId}/company-profile \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"primaryCategory": "<string>",
"additionalCategories": [
"<string>"
],
"description": "<string>",
"oneLineDescription": "<string>",
"foundedYear": 1801,
"logoAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone": "<string>",
"morePhoneNumbers": [
{
"label": "<string>",
"number": "<string>"
}
],
"whatsapp": "<string>",
"email": "jsmith@example.com",
"website": "<string>",
"bookingUrl": "<string>",
"socialProfiles": [
"<string>"
],
"street": "<string>",
"houseNumber": "<string>",
"postalCode": "<string>",
"city": "<string>",
"country": "<string>",
"serviceArea": [
"<string>"
],
"radiusKm": 250,
"postalCodeAreas": [
"<string>"
],
"services": [
{
"name": "<string>",
"description": "<string>",
"priceRange": "<string>"
}
],
"processAndDuration": "<string>",
"attributes": [
"<string>"
],
"certifications": [
"<string>"
],
"awards": [
"<string>"
],
"targetGroups": [
"<string>"
],
"usps": [
"<string>"
],
"keyFigures": [
{
"value": "<string>",
"label": "<string>"
}
],
"objections": [
{
"objection": "<string>",
"answer": "<string>"
}
],
"guarantees": "<string>",
"whatWeDontDo": "<string>",
"toneAndAddress": "<string>",
"wordsWeUse": [
"<string>"
],
"wordsWeAvoid": [
{
"word": "<string>",
"replacement": "<string>"
}
],
"taboos": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/v2/organizations/{orgId}/company-profile"
payload = {
"name": "<string>",
"primaryCategory": "<string>",
"additionalCategories": ["<string>"],
"description": "<string>",
"oneLineDescription": "<string>",
"foundedYear": 1801,
"logoAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"phone": "<string>",
"morePhoneNumbers": [
{
"label": "<string>",
"number": "<string>"
}
],
"whatsapp": "<string>",
"email": "jsmith@example.com",
"website": "<string>",
"bookingUrl": "<string>",
"socialProfiles": ["<string>"],
"street": "<string>",
"houseNumber": "<string>",
"postalCode": "<string>",
"city": "<string>",
"country": "<string>",
"serviceArea": ["<string>"],
"radiusKm": 250,
"postalCodeAreas": ["<string>"],
"services": [
{
"name": "<string>",
"description": "<string>",
"priceRange": "<string>"
}
],
"processAndDuration": "<string>",
"attributes": ["<string>"],
"certifications": ["<string>"],
"awards": ["<string>"],
"targetGroups": ["<string>"],
"usps": ["<string>"],
"keyFigures": [
{
"value": "<string>",
"label": "<string>"
}
],
"objections": [
{
"objection": "<string>",
"answer": "<string>"
}
],
"guarantees": "<string>",
"whatWeDontDo": "<string>",
"toneAndAddress": "<string>",
"wordsWeUse": ["<string>"],
"wordsWeAvoid": [
{
"word": "<string>",
"replacement": "<string>"
}
],
"taboos": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
primaryCategory: '<string>',
additionalCategories: ['<string>'],
description: '<string>',
oneLineDescription: '<string>',
foundedYear: 1801,
logoAssetId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
phone: '<string>',
morePhoneNumbers: [{label: '<string>', number: '<string>'}],
whatsapp: '<string>',
email: 'jsmith@example.com',
website: '<string>',
bookingUrl: '<string>',
socialProfiles: ['<string>'],
street: '<string>',
houseNumber: '<string>',
postalCode: '<string>',
city: '<string>',
country: '<string>',
serviceArea: ['<string>'],
radiusKm: 250,
postalCodeAreas: ['<string>'],
services: [{name: '<string>', description: '<string>', priceRange: '<string>'}],
processAndDuration: '<string>',
attributes: ['<string>'],
certifications: ['<string>'],
awards: ['<string>'],
targetGroups: ['<string>'],
usps: ['<string>'],
keyFigures: [{value: '<string>', label: '<string>'}],
objections: [{objection: '<string>', answer: '<string>'}],
guarantees: '<string>',
whatWeDontDo: '<string>',
toneAndAddress: '<string>',
wordsWeUse: ['<string>'],
wordsWeAvoid: [{word: '<string>', replacement: '<string>'}],
taboos: ['<string>']
})
};
fetch('https://api.example.com/api/v2/organizations/{orgId}/company-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://api.example.com/api/v2/organizations/{orgId}/company-profile",
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>',
'primaryCategory' => '<string>',
'additionalCategories' => [
'<string>'
],
'description' => '<string>',
'oneLineDescription' => '<string>',
'foundedYear' => 1801,
'logoAssetId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'phone' => '<string>',
'morePhoneNumbers' => [
[
'label' => '<string>',
'number' => '<string>'
]
],
'whatsapp' => '<string>',
'email' => 'jsmith@example.com',
'website' => '<string>',
'bookingUrl' => '<string>',
'socialProfiles' => [
'<string>'
],
'street' => '<string>',
'houseNumber' => '<string>',
'postalCode' => '<string>',
'city' => '<string>',
'country' => '<string>',
'serviceArea' => [
'<string>'
],
'radiusKm' => 250,
'postalCodeAreas' => [
'<string>'
],
'services' => [
[
'name' => '<string>',
'description' => '<string>',
'priceRange' => '<string>'
]
],
'processAndDuration' => '<string>',
'attributes' => [
'<string>'
],
'certifications' => [
'<string>'
],
'awards' => [
'<string>'
],
'targetGroups' => [
'<string>'
],
'usps' => [
'<string>'
],
'keyFigures' => [
[
'value' => '<string>',
'label' => '<string>'
]
],
'objections' => [
[
'objection' => '<string>',
'answer' => '<string>'
]
],
'guarantees' => '<string>',
'whatWeDontDo' => '<string>',
'toneAndAddress' => '<string>',
'wordsWeUse' => [
'<string>'
],
'wordsWeAvoid' => [
[
'word' => '<string>',
'replacement' => '<string>'
]
],
'taboos' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"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://api.example.com/api/v2/organizations/{orgId}/company-profile"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"primaryCategory\": \"<string>\",\n \"additionalCategories\": [\n \"<string>\"\n ],\n \"description\": \"<string>\",\n \"oneLineDescription\": \"<string>\",\n \"foundedYear\": 1801,\n \"logoAssetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"phone\": \"<string>\",\n \"morePhoneNumbers\": [\n {\n \"label\": \"<string>\",\n \"number\": \"<string>\"\n }\n ],\n \"whatsapp\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"website\": \"<string>\",\n \"bookingUrl\": \"<string>\",\n \"socialProfiles\": [\n \"<string>\"\n ],\n \"street\": \"<string>\",\n \"houseNumber\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"serviceArea\": [\n \"<string>\"\n ],\n \"radiusKm\": 250,\n \"postalCodeAreas\": [\n \"<string>\"\n ],\n \"services\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"priceRange\": \"<string>\"\n }\n ],\n \"processAndDuration\": \"<string>\",\n \"attributes\": [\n \"<string>\"\n ],\n \"certifications\": [\n \"<string>\"\n ],\n \"awards\": [\n \"<string>\"\n ],\n \"targetGroups\": [\n \"<string>\"\n ],\n \"usps\": [\n \"<string>\"\n ],\n \"keyFigures\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"objections\": [\n {\n \"objection\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"guarantees\": \"<string>\",\n \"whatWeDontDo\": \"<string>\",\n \"toneAndAddress\": \"<string>\",\n \"wordsWeUse\": [\n \"<string>\"\n ],\n \"wordsWeAvoid\": [\n {\n \"word\": \"<string>\",\n \"replacement\": \"<string>\"\n }\n ],\n \"taboos\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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://api.example.com/api/v2/organizations/{orgId}/company-profile")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"primaryCategory\": \"<string>\",\n \"additionalCategories\": [\n \"<string>\"\n ],\n \"description\": \"<string>\",\n \"oneLineDescription\": \"<string>\",\n \"foundedYear\": 1801,\n \"logoAssetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"phone\": \"<string>\",\n \"morePhoneNumbers\": [\n {\n \"label\": \"<string>\",\n \"number\": \"<string>\"\n }\n ],\n \"whatsapp\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"website\": \"<string>\",\n \"bookingUrl\": \"<string>\",\n \"socialProfiles\": [\n \"<string>\"\n ],\n \"street\": \"<string>\",\n \"houseNumber\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"serviceArea\": [\n \"<string>\"\n ],\n \"radiusKm\": 250,\n \"postalCodeAreas\": [\n \"<string>\"\n ],\n \"services\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"priceRange\": \"<string>\"\n }\n ],\n \"processAndDuration\": \"<string>\",\n \"attributes\": [\n \"<string>\"\n ],\n \"certifications\": [\n \"<string>\"\n ],\n \"awards\": [\n \"<string>\"\n ],\n \"targetGroups\": [\n \"<string>\"\n ],\n \"usps\": [\n \"<string>\"\n ],\n \"keyFigures\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"objections\": [\n {\n \"objection\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"guarantees\": \"<string>\",\n \"whatWeDontDo\": \"<string>\",\n \"toneAndAddress\": \"<string>\",\n \"wordsWeUse\": [\n \"<string>\"\n ],\n \"wordsWeAvoid\": [\n {\n \"word\": \"<string>\",\n \"replacement\": \"<string>\"\n }\n ],\n \"taboos\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v2/organizations/{orgId}/company-profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"primaryCategory\": \"<string>\",\n \"additionalCategories\": [\n \"<string>\"\n ],\n \"description\": \"<string>\",\n \"oneLineDescription\": \"<string>\",\n \"foundedYear\": 1801,\n \"logoAssetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"phone\": \"<string>\",\n \"morePhoneNumbers\": [\n {\n \"label\": \"<string>\",\n \"number\": \"<string>\"\n }\n ],\n \"whatsapp\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"website\": \"<string>\",\n \"bookingUrl\": \"<string>\",\n \"socialProfiles\": [\n \"<string>\"\n ],\n \"street\": \"<string>\",\n \"houseNumber\": \"<string>\",\n \"postalCode\": \"<string>\",\n \"city\": \"<string>\",\n \"country\": \"<string>\",\n \"serviceArea\": [\n \"<string>\"\n ],\n \"radiusKm\": 250,\n \"postalCodeAreas\": [\n \"<string>\"\n ],\n \"services\": [\n {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"priceRange\": \"<string>\"\n }\n ],\n \"processAndDuration\": \"<string>\",\n \"attributes\": [\n \"<string>\"\n ],\n \"certifications\": [\n \"<string>\"\n ],\n \"awards\": [\n \"<string>\"\n ],\n \"targetGroups\": [\n \"<string>\"\n ],\n \"usps\": [\n \"<string>\"\n ],\n \"keyFigures\": [\n {\n \"value\": \"<string>\",\n \"label\": \"<string>\"\n }\n ],\n \"objections\": [\n {\n \"objection\": \"<string>\",\n \"answer\": \"<string>\"\n }\n ],\n \"guarantees\": \"<string>\",\n \"whatWeDontDo\": \"<string>\",\n \"toneAndAddress\": \"<string>\",\n \"wordsWeUse\": [\n \"<string>\"\n ],\n \"wordsWeAvoid\": [\n {\n \"word\": \"<string>\",\n \"replacement\": \"<string>\"\n }\n ],\n \"taboos\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"basis": {
"name": "<string>",
"primaryCategory": "<string>",
"additionalCategories": [
"<string>"
],
"description": "<string>",
"oneLineDescription": "<string>",
"foundedYear": 123,
"logoAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"contact": {
"phone": "<string>",
"morePhoneNumbers": [
{
"label": "<string>",
"number": "<string>"
}
],
"whatsapp": "<string>",
"email": "<string>",
"website": "<string>",
"bookingUrl": "<string>",
"socialProfiles": [
"<string>"
]
},
"location": {
"address": {
"street": "<string>",
"houseNumber": "<string>",
"postalCode": "<string>",
"city": "<string>",
"country": "<string>"
},
"serviceArea": [
"<string>"
],
"radiusKm": 123,
"postalCodeAreas": [
"<string>"
]
},
"services": {
"services": [
{
"name": "<string>",
"description": "<string>",
"priceRange": "<string>"
}
],
"processAndDuration": "<string>"
},
"attributes": {
"attributes": [
"<string>"
],
"certifications": [
"<string>"
],
"awards": [
"<string>"
]
},
"whyUs": {
"targetGroups": [
"<string>"
],
"usps": [
"<string>"
],
"keyFigures": [
{
"value": "<string>",
"label": "<string>"
}
],
"objections": [
{
"objection": "<string>",
"answer": "<string>"
}
],
"guarantees": "<string>",
"whatWeDontDo": "<string>",
"primaryGoal": "call"
},
"voice": {
"toneAndAddress": "<string>",
"wordsWeUse": [
"<string>"
],
"wordsWeAvoid": [
{
"word": "<string>",
"replacement": "<string>"
}
],
"taboos": [
"<string>"
]
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}