Bounded modeled API 66.0 core: 18 operations, four standard objects, selected published fields and an explicit SOQL grammar. Public reference-derived contract, not an org-generated schema. No custom fields, describe metadata, lead conversion, products, OAuth issuance, automation, sharing rules or arbitrary Salesforce org compatibility.
Operations
POST /services/data/v66.0/sobjects/Account
createAccount
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "createAccount",
"tags": [
"Account"
],
"summary": "createAccount",
"security": [
{
"bearer": []
}
],
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountCreate"
}
}
}
},
"responses": {
"201": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateResult"
}
}
}
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
GET /services/data/v66.0/sobjects/Account/{recordId}
retrieveAccount
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "retrieveAccount",
"tags": [
"Account"
],
"summary": "retrieveAccount",
"security": [
{
"bearer": []
}
],
"parameters": [
{
"name": "recordId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9]{15}([A-Za-z0-9]{3})?$"
}
},
{
"name": "fields",
"in": "query",
"schema": {
"type": "string"
},
"description": "Comma-separated fields from the modeled Account schema."
},
{
"name": "If-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-None-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-Modified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
},
{
"name": "If-Unmodified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Account"
}
}
}
},
"304": {
"description": "Not modified"
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
PATCH /services/data/v66.0/sobjects/Account/{recordId}
updateAccount
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "updateAccount",
"tags": [
"Account"
],
"summary": "updateAccount",
"security": [
{
"bearer": []
}
],
"parameters": [
{
"name": "recordId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9]{15}([A-Za-z0-9]{3})?$"
}
},
{
"name": "If-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-None-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-Modified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
},
{
"name": "If-Unmodified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AccountUpdate"
}
}
}
},
"responses": {
"204": {
"description": "No content"
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
DELETE /services/data/v66.0/sobjects/Account/{recordId}
deleteAccount
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "deleteAccount",
"tags": [
"Account"
],
"summary": "deleteAccount",
"security": [
{
"bearer": []
}
],
"parameters": [
{
"name": "recordId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9]{15}([A-Za-z0-9]{3})?$"
}
},
{
"name": "If-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-None-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-Modified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
},
{
"name": "If-Unmodified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
}
],
"responses": {
"204": {
"description": "No content"
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
POST /services/data/v66.0/sobjects/Contact
createContact
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "createContact",
"tags": [
"Contact"
],
"summary": "createContact",
"security": [
{
"bearer": []
}
],
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ContactCreate"
}
}
}
},
"responses": {
"201": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateResult"
}
}
}
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
GET /services/data/v66.0/sobjects/Contact/{recordId}
retrieveContact
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "retrieveContact",
"tags": [
"Contact"
],
"summary": "retrieveContact",
"security": [
{
"bearer": []
}
],
"parameters": [
{
"name": "recordId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9]{15}([A-Za-z0-9]{3})?$"
}
},
{
"name": "fields",
"in": "query",
"schema": {
"type": "string"
},
"description": "Comma-separated fields from the modeled Contact schema."
},
{
"name": "If-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-None-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-Modified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
},
{
"name": "If-Unmodified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Contact"
}
}
}
},
"304": {
"description": "Not modified"
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
PATCH /services/data/v66.0/sobjects/Contact/{recordId}
updateContact
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "updateContact",
"tags": [
"Contact"
],
"summary": "updateContact",
"security": [
{
"bearer": []
}
],
"parameters": [
{
"name": "recordId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9]{15}([A-Za-z0-9]{3})?$"
}
},
{
"name": "If-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-None-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-Modified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
},
{
"name": "If-Unmodified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ContactUpdate"
}
}
}
},
"responses": {
"204": {
"description": "No content"
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
DELETE /services/data/v66.0/sobjects/Contact/{recordId}
deleteContact
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "deleteContact",
"tags": [
"Contact"
],
"summary": "deleteContact",
"security": [
{
"bearer": []
}
],
"parameters": [
{
"name": "recordId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9]{15}([A-Za-z0-9]{3})?$"
}
},
{
"name": "If-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-None-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-Modified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
},
{
"name": "If-Unmodified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
}
],
"responses": {
"204": {
"description": "No content"
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
POST /services/data/v66.0/sobjects/Lead
createLead
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "createLead",
"tags": [
"Lead"
],
"summary": "createLead",
"security": [
{
"bearer": []
}
],
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LeadCreate"
}
}
}
},
"responses": {
"201": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateResult"
}
}
}
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
GET /services/data/v66.0/sobjects/Lead/{recordId}
retrieveLead
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "retrieveLead",
"tags": [
"Lead"
],
"summary": "retrieveLead",
"security": [
{
"bearer": []
}
],
"parameters": [
{
"name": "recordId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9]{15}([A-Za-z0-9]{3})?$"
}
},
{
"name": "fields",
"in": "query",
"schema": {
"type": "string"
},
"description": "Comma-separated fields from the modeled Lead schema."
},
{
"name": "If-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-None-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-Modified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
},
{
"name": "If-Unmodified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Lead"
}
}
}
},
"304": {
"description": "Not modified"
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
PATCH /services/data/v66.0/sobjects/Lead/{recordId}
updateLead
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "updateLead",
"tags": [
"Lead"
],
"summary": "updateLead",
"security": [
{
"bearer": []
}
],
"parameters": [
{
"name": "recordId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9]{15}([A-Za-z0-9]{3})?$"
}
},
{
"name": "If-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-None-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-Modified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
},
{
"name": "If-Unmodified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LeadUpdate"
}
}
}
},
"responses": {
"204": {
"description": "No content"
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
DELETE /services/data/v66.0/sobjects/Lead/{recordId}
deleteLead
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "deleteLead",
"tags": [
"Lead"
],
"summary": "deleteLead",
"security": [
{
"bearer": []
}
],
"parameters": [
{
"name": "recordId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9]{15}([A-Za-z0-9]{3})?$"
}
},
{
"name": "If-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-None-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-Modified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
},
{
"name": "If-Unmodified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
}
],
"responses": {
"204": {
"description": "No content"
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
POST /services/data/v66.0/sobjects/Opportunity
createOpportunity
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "createOpportunity",
"tags": [
"Opportunity"
],
"summary": "createOpportunity",
"security": [
{
"bearer": []
}
],
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OpportunityCreate"
}
}
}
},
"responses": {
"201": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateResult"
}
}
}
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
GET /services/data/v66.0/sobjects/Opportunity/{recordId}
retrieveOpportunity
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "retrieveOpportunity",
"tags": [
"Opportunity"
],
"summary": "retrieveOpportunity",
"security": [
{
"bearer": []
}
],
"parameters": [
{
"name": "recordId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9]{15}([A-Za-z0-9]{3})?$"
}
},
{
"name": "fields",
"in": "query",
"schema": {
"type": "string"
},
"description": "Comma-separated fields from the modeled Opportunity schema."
},
{
"name": "If-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-None-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-Modified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
},
{
"name": "If-Unmodified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Opportunity"
}
}
}
},
"304": {
"description": "Not modified"
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
PATCH /services/data/v66.0/sobjects/Opportunity/{recordId}
updateOpportunity
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "updateOpportunity",
"tags": [
"Opportunity"
],
"summary": "updateOpportunity",
"security": [
{
"bearer": []
}
],
"parameters": [
{
"name": "recordId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9]{15}([A-Za-z0-9]{3})?$"
}
},
{
"name": "If-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-None-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-Modified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
},
{
"name": "If-Unmodified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/OpportunityUpdate"
}
}
}
},
"responses": {
"204": {
"description": "No content"
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
DELETE /services/data/v66.0/sobjects/Opportunity/{recordId}
deleteOpportunity
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "deleteOpportunity",
"tags": [
"Opportunity"
],
"summary": "deleteOpportunity",
"security": [
{
"bearer": []
}
],
"parameters": [
{
"name": "recordId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[A-Za-z0-9]{15}([A-Za-z0-9]{3})?$"
}
},
{
"name": "If-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-None-Match",
"in": "header",
"schema": {
"type": "string"
},
"description": "ETag precondition for Account records."
},
{
"name": "If-Modified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
},
{
"name": "If-Unmodified-Since",
"in": "header",
"schema": {
"type": "string"
},
"description": "HTTP-date precondition."
}
],
"responses": {
"204": {
"description": "No content"
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
GET /services/data/v66.0/query
query
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "query",
"tags": [
"Query"
],
"summary": "query",
"security": [
{
"bearer": []
}
],
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "SELECT fields FROM Account|Contact|Lead|Opportunity [WHERE field op literal [AND ...]] [ORDER BY field [ASC|DESC]] [LIMIT n] [OFFSET n]. Supported comparisons: =, !=, <, <=, >, >=, LIKE. Id and AccountId support = and != with 15/18-character IDs or null. Quoted strings decode documented SOQL escapes; wildcard escapes are LIKE-only. Dates must be unquoted real calendar days from 1700-01-01 through 4000-12-31 on date fields only. Non-null date-time comparisons are unsupported. Description is selectable/writable but not filterable/sortable; IsDeleted is not sortable. At most 10 AND conditions, 256 characters per LIKE pattern, 100000 query characters, OFFSET <= 2000. Local LIKE evaluation budget: 20 million character-pattern steps. No relationships, aggregates, subqueries, functions, OR, custom fields or arbitrary SOQL extensions."
},
{
"name": "Sforce-Query-Options",
"in": "header",
"schema": {
"type": "string",
"pattern": "^batchSize=(?:[2-9][0-9]{2}|1[0-9]{3}|2000)$"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/QueryResult"
}
}
}
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
GET /services/data/v66.0/query/{queryLocator}
queryMore
Authentication
[
{
"bearer": []
}
]
Request, responses and operation details
{
"operationId": "queryMore",
"tags": [
"Query"
],
"summary": "queryMore",
"security": [
{
"bearer": []
}
],
"parameters": [
{
"name": "queryLocator",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/QueryResult"
}
}
}
},
"400": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"403": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"404": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"412": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"415": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"500": {
"description": "Salesforce error array",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}