Create Offices
curl --request POST \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/offices \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"address": "<string>",
"apartment": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"phone": "<string>",
"country": "<string>",
"countryCode": "<string>",
"subdivisionCode": "<string>",
"placeId": "<string>"
}
'import requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/offices"
payload = {
"name": "<string>",
"address": "<string>",
"apartment": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"phone": "<string>",
"country": "<string>",
"countryCode": "<string>",
"subdivisionCode": "<string>",
"placeId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
address: '<string>',
apartment: '<string>',
city: '<string>',
state: '<string>',
zipCode: '<string>',
phone: '<string>',
country: '<string>',
countryCode: '<string>',
subdivisionCode: '<string>',
placeId: '<string>'
})
};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/offices', 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.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/offices",
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([
'name' => '<string>',
'address' => '<string>',
'apartment' => '<string>',
'city' => '<string>',
'state' => '<string>',
'zipCode' => '<string>',
'phone' => '<string>',
'country' => '<string>',
'countryCode' => '<string>',
'subdivisionCode' => '<string>',
'placeId' => '<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://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/offices"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"apartment\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"phone\": \"<string>\",\n \"country\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"subdivisionCode\": \"<string>\",\n \"placeId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/offices")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"apartment\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"phone\": \"<string>\",\n \"country\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"subdivisionCode\": \"<string>\",\n \"placeId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/offices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"apartment\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"phone\": \"<string>\",\n \"country\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"subdivisionCode\": \"<string>\",\n \"placeId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"companyId": "<string>",
"name": "<string>",
"address": "<string>",
"apartment": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"phone": "<string>",
"country": "<string>",
"countryCode": "<string>",
"subdivisionCode": "<string>",
"placeId": "<string>",
"currency": "USD",
"isPrimary": true,
"createdAt": "<string>",
"updatedAt": "<string>"
}Offices
Create Offices
POST
/
v1
/
workspaces
/
{workspaceId}
/
contacts
/
companies
/
{companyId}
/
offices
Create Offices
curl --request POST \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/offices \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"address": "<string>",
"apartment": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"phone": "<string>",
"country": "<string>",
"countryCode": "<string>",
"subdivisionCode": "<string>",
"placeId": "<string>"
}
'import requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/offices"
payload = {
"name": "<string>",
"address": "<string>",
"apartment": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"phone": "<string>",
"country": "<string>",
"countryCode": "<string>",
"subdivisionCode": "<string>",
"placeId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
address: '<string>',
apartment: '<string>',
city: '<string>',
state: '<string>',
zipCode: '<string>',
phone: '<string>',
country: '<string>',
countryCode: '<string>',
subdivisionCode: '<string>',
placeId: '<string>'
})
};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/offices', 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.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/offices",
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([
'name' => '<string>',
'address' => '<string>',
'apartment' => '<string>',
'city' => '<string>',
'state' => '<string>',
'zipCode' => '<string>',
'phone' => '<string>',
'country' => '<string>',
'countryCode' => '<string>',
'subdivisionCode' => '<string>',
'placeId' => '<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://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/offices"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"apartment\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"phone\": \"<string>\",\n \"country\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"subdivisionCode\": \"<string>\",\n \"placeId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/offices")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"apartment\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"phone\": \"<string>\",\n \"country\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"subdivisionCode\": \"<string>\",\n \"placeId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/contacts/companies/{companyId}/offices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"address\": \"<string>\",\n \"apartment\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zipCode\": \"<string>\",\n \"phone\": \"<string>\",\n \"country\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"subdivisionCode\": \"<string>\",\n \"placeId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"companyId": "<string>",
"name": "<string>",
"address": "<string>",
"apartment": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"phone": "<string>",
"country": "<string>",
"countryCode": "<string>",
"subdivisionCode": "<string>",
"placeId": "<string>",
"currency": "USD",
"isPrimary": true,
"createdAt": "<string>",
"updatedAt": "<string>"
}Body
application/json
Available options:
USD, CAD, GBP, EUR, CNY, JPY, MXN, AFN, ALL, DZD, AOA, ARS, AMD, AWG, AUD, AZN, BSD, BHD, BDT, BYN, BZD, BMD, BTN, BOB, BAM, BWP, BRL, BND, BGN, MMK, BIF, KHR, CVE, KYD, XAF, XPF, CLP, COP, KMF, CDF, CRC, HRK, CUP, CZK, DKK, DJF, DOP, XCD, EGP, ERN, ETB, FKP, FJD, GMD, GEL, GHS, GIP, GTQ, GNF, GYD, HTG, HNL, HKD, HUF, ISK, INR, IDR, IRR, IQD, ILS, JMD, JOD, KZT, KES, KWD, KGS, LAK, LBP, LSL, LRD, LYD, MOP, MGA, MWK, MYR, MVR, MRU, MUR, MDL, MNT, MAD, MZN, NAD, NPR, ANG, TWD, NZD, NIO, NGN, MKD, NOK, OMR, PKR, PAB, PGK, PYG, PEN, PHP, PLN, QAR, RON, RUB, RWF, SHP, WST, SAR, RSD, SCR, SLE, SGD, SBD, SOS, ZAR, KRW, SSP, LKR, SDG, SRD, SZL, SEK, CHF, SYP, STN, TJS, TZS, THB, TOP, TTD, TND, TRY, TMT, UGX, UAH, AED, UYU, UZS, VUV, VES, VND, XOF, YER, ZMW Response
201 - application/json
Available options:
USD, CAD, GBP, EUR, CNY, JPY, MXN, AFN, ALL, DZD, AOA, ARS, AMD, AWG, AUD, AZN, BSD, BHD, BDT, BYN, BZD, BMD, BTN, BOB, BAM, BWP, BRL, BND, BGN, MMK, BIF, KHR, CVE, KYD, XAF, XPF, CLP, COP, KMF, CDF, CRC, HRK, CUP, CZK, DKK, DJF, DOP, XCD, EGP, ERN, ETB, FKP, FJD, GMD, GEL, GHS, GIP, GTQ, GNF, GYD, HTG, HNL, HKD, HUF, ISK, INR, IDR, IRR, IQD, ILS, JMD, JOD, KZT, KES, KWD, KGS, LAK, LBP, LSL, LRD, LYD, MOP, MGA, MWK, MYR, MVR, MRU, MUR, MDL, MNT, MAD, MZN, NAD, NPR, ANG, TWD, NZD, NIO, NGN, MKD, NOK, OMR, PKR, PAB, PGK, PYG, PEN, PHP, PLN, QAR, RON, RUB, RWF, SHP, WST, SAR, RSD, SCR, SLE, SGD, SBD, SOS, ZAR, KRW, SSP, LKR, SDG, SRD, SZL, SEK, CHF, SYP, STN, TJS, TZS, THB, TOP, TTD, TND, TRY, TMT, UGX, UAH, AED, UYU, UZS, VUV, VES, VND, XOF, YER, ZMW, null ⌘I