Create or update an opportunity by external ID
curl --request PUT \
--url https://app.eloout.com/api/v1/opportunities/external/{source}/{externalId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"pipelineId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({pipelineId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://app.eloout.com/api/v1/opportunities/external/{source}/{externalId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.eloout.com/api/v1/opportunities/external/{source}/{externalId}"
payload = { "pipelineId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"data": {
"id": "4f5a6b7c-8d9e-4f0a-9b2c-3d4e5f6a7b8c",
"result": "created",
"stageId": "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"stageChange": null,
"protectedFields": []
}
}{
"ok": true,
"data": {
"id": "4f5a6b7c-8d9e-4f0a-9b2c-3d4e5f6a7b8c",
"result": "created",
"stageId": "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"stageChange": null,
"protectedFields": []
}
}{
"ok": false,
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid or revoked API key"
}
}{
"ok": false,
"error": {
"code": "FORBIDDEN",
"message": "This API key lacks the opportunities:write scope",
"details": {
"requiredScope": "opportunities:write"
}
}
}{
"ok": false,
"error": {
"code": "NOT_FOUND",
"message": "Opportunity not found"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"ok": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "The request is not valid",
"details": {
"fieldErrors": {
"limit": [
"At most 100"
]
}
}
}
}{
"ok": false,
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests for this API key or its organization"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Create or update an opportunity by external ID
Requires the opportunities:write permission.
PUT
/
opportunities
/
external
/
{source}
/
{externalId}
Create or update an opportunity by external ID
curl --request PUT \
--url https://app.eloout.com/api/v1/opportunities/external/{source}/{externalId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"pipelineId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({pipelineId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'})
};
fetch('https://app.eloout.com/api/v1/opportunities/external/{source}/{externalId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.eloout.com/api/v1/opportunities/external/{source}/{externalId}"
payload = { "pipelineId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"data": {
"id": "4f5a6b7c-8d9e-4f0a-9b2c-3d4e5f6a7b8c",
"result": "created",
"stageId": "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"stageChange": null,
"protectedFields": []
}
}{
"ok": true,
"data": {
"id": "4f5a6b7c-8d9e-4f0a-9b2c-3d4e5f6a7b8c",
"result": "created",
"stageId": "1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
"stageChange": null,
"protectedFields": []
}
}{
"ok": false,
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid or revoked API key"
}
}{
"ok": false,
"error": {
"code": "FORBIDDEN",
"message": "This API key lacks the opportunities:write scope",
"details": {
"requiredScope": "opportunities:write"
}
}
}{
"ok": false,
"error": {
"code": "NOT_FOUND",
"message": "Opportunity not found"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"ok": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "The request is not valid",
"details": {
"fieldErrors": {
"limit": [
"At most 100"
]
}
}
}
}{
"ok": false,
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests for this API key or its organization"
}
}{
"ok": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}Authorizations
Headers
1 to 255 printable ASCII characters without spaces, scoped to the API key. A retry of the same request (method, path, query and body) within 24 h gets the stored answer with Idempotent-Replayed: true and does not run again; the same key with another request is 422; while the first runs, 409. Answers of 500 and above are not stored: the key is released and a retry runs the write again. Ignored on a dry run.
Maximum string length:
255Path Parameters
Query Parameters
Body
application/json