Query
curl --request POST \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/projects/{projectId}/pricing/query \
--header 'Content-Type: application/json' \
--data '
{
"slotId": "<string>",
"search": "<string>",
"groupBy": [],
"groupPath": [],
"cursor": "<string>",
"limit": 50
}
'import requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/projects/{projectId}/pricing/query"
payload = {
"slotId": "<string>",
"search": "<string>",
"groupBy": [],
"groupPath": [],
"cursor": "<string>",
"limit": 50
}
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({
slotId: '<string>',
search: '<string>',
groupBy: [],
groupPath: [],
cursor: '<string>',
limit: 50
})
};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/projects/{projectId}/pricing/query', 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}/projects/{projectId}/pricing/query",
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([
'slotId' => '<string>',
'search' => '<string>',
'groupBy' => [
],
'groupPath' => [
],
'cursor' => '<string>',
'limit' => 50
]),
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}/projects/{projectId}/pricing/query"
payload := strings.NewReader("{\n \"slotId\": \"<string>\",\n \"search\": \"<string>\",\n \"groupBy\": [],\n \"groupPath\": [],\n \"cursor\": \"<string>\",\n \"limit\": 50\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}/projects/{projectId}/pricing/query")
.header("Content-Type", "application/json")
.body("{\n \"slotId\": \"<string>\",\n \"search\": \"<string>\",\n \"groupBy\": [],\n \"groupPath\": [],\n \"cursor\": \"<string>\",\n \"limit\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/projects/{projectId}/pricing/query")
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 \"slotId\": \"<string>\",\n \"search\": \"<string>\",\n \"groupBy\": [],\n \"groupPath\": [],\n \"cursor\": \"<string>\",\n \"limit\": 50\n}"
response = http.request(request)
puts response.read_body{
"kind": "groups",
"path": [
{
"fieldKey": "<string>",
"valueKey": "<string>"
}
],
"fieldKey": "category",
"groups": [
{
"path": [
{
"fieldKey": "<string>",
"valueKey": "<string>"
}
],
"valueKey": "<string>",
"label": "<string>",
"itemCount": 123
}
],
"orderRevision": 123,
"matchedCount": 1,
"level": 123,
"nextCursor": "<string>",
"hasMore": true,
"summary": {
"issueCounts": {
"any": 123,
"overrun": 123,
"incomplete": 123,
"shortfall": 123,
"sourcing_gap": 123,
"required_stock_shortfall": 123,
"missing_cost": 123,
"over_cost_plan": 123,
"missing_client_price": 123,
"over_client_plan": 123,
"below_target": 123
},
"lineCount": 123,
"activeCount": 123,
"totals": {
"itemizedClient": "<string>",
"knownExtendedCost": "<string>",
"knownExtendedClientBeforeTax": "<string>"
},
"targetMarginVersion": 123,
"targetMarginVersionId": "<string>",
"budgetedCount": 123,
"budgetGapCount": 123,
"costedCount": 123,
"pricedCount": 123
}
}Project Pricing
Query
POST
/
v1
/
workspaces
/
{workspaceId}
/
projects
/
{projectId}
/
pricing
/
query
Query
curl --request POST \
--url https://app.specurate.com/api/v1/workspaces/{workspaceId}/projects/{projectId}/pricing/query \
--header 'Content-Type: application/json' \
--data '
{
"slotId": "<string>",
"search": "<string>",
"groupBy": [],
"groupPath": [],
"cursor": "<string>",
"limit": 50
}
'import requests
url = "https://app.specurate.com/api/v1/workspaces/{workspaceId}/projects/{projectId}/pricing/query"
payload = {
"slotId": "<string>",
"search": "<string>",
"groupBy": [],
"groupPath": [],
"cursor": "<string>",
"limit": 50
}
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({
slotId: '<string>',
search: '<string>',
groupBy: [],
groupPath: [],
cursor: '<string>',
limit: 50
})
};
fetch('https://app.specurate.com/api/v1/workspaces/{workspaceId}/projects/{projectId}/pricing/query', 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}/projects/{projectId}/pricing/query",
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([
'slotId' => '<string>',
'search' => '<string>',
'groupBy' => [
],
'groupPath' => [
],
'cursor' => '<string>',
'limit' => 50
]),
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}/projects/{projectId}/pricing/query"
payload := strings.NewReader("{\n \"slotId\": \"<string>\",\n \"search\": \"<string>\",\n \"groupBy\": [],\n \"groupPath\": [],\n \"cursor\": \"<string>\",\n \"limit\": 50\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}/projects/{projectId}/pricing/query")
.header("Content-Type", "application/json")
.body("{\n \"slotId\": \"<string>\",\n \"search\": \"<string>\",\n \"groupBy\": [],\n \"groupPath\": [],\n \"cursor\": \"<string>\",\n \"limit\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.specurate.com/api/v1/workspaces/{workspaceId}/projects/{projectId}/pricing/query")
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 \"slotId\": \"<string>\",\n \"search\": \"<string>\",\n \"groupBy\": [],\n \"groupPath\": [],\n \"cursor\": \"<string>\",\n \"limit\": 50\n}"
response = http.request(request)
puts response.read_body{
"kind": "groups",
"path": [
{
"fieldKey": "<string>",
"valueKey": "<string>"
}
],
"fieldKey": "category",
"groups": [
{
"path": [
{
"fieldKey": "<string>",
"valueKey": "<string>"
}
],
"valueKey": "<string>",
"label": "<string>",
"itemCount": 123
}
],
"orderRevision": 123,
"matchedCount": 1,
"level": 123,
"nextCursor": "<string>",
"hasMore": true,
"summary": {
"issueCounts": {
"any": 123,
"overrun": 123,
"incomplete": 123,
"shortfall": 123,
"sourcing_gap": 123,
"required_stock_shortfall": 123,
"missing_cost": 123,
"over_cost_plan": 123,
"missing_client_price": 123,
"over_client_plan": 123,
"below_target": 123
},
"lineCount": 123,
"activeCount": 123,
"totals": {
"itemizedClient": "<string>",
"knownExtendedCost": "<string>",
"knownExtendedClientBeforeTax": "<string>"
},
"targetMarginVersion": 123,
"targetMarginVersionId": "<string>",
"budgetedCount": 123,
"budgetGapCount": 123,
"costedCount": 123,
"pricedCount": 123
}
}Body
application/json
Response
200 - application/json
- Option 1
- Option 2
⌘I