Create a deal scoring
curl --request POST \
--url https://platform.lymo.jp/v1/deals/{id}/scorings \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.lymo.jp/v1/deals/{id}/scorings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://platform.lymo.jp/v1/deals/{id}/scorings"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"data": {
"id": "<string>",
"status": "processing",
"deal_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"result": {
"probability": 123,
"factors": [
{
"factor_id": "<string>",
"score": 123,
"reason": "<string>"
}
]
},
"error": {
"code": "<string>",
"message": "<string>"
},
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "not_found",
"message": "Video not found"
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "not_found",
"message": "Video not found"
},
"meta": {
"request_id": "req_abc123"
}
}Create a deal scoring
Enqueues a scoring workflow for the deal’s most recent video with a transcript, which also updates the deal’s score. Returns the scoring resource with status “processing”. Poll GET /v1/deals//scorings/ for completion.
POST
/
v1
/
deals
/
{id}
/
scorings
Create a deal scoring
curl --request POST \
--url https://platform.lymo.jp/v1/deals/{id}/scorings \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.lymo.jp/v1/deals/{id}/scorings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://platform.lymo.jp/v1/deals/{id}/scorings"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"data": {
"id": "<string>",
"status": "processing",
"deal_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"result": {
"probability": 123,
"factors": [
{
"factor_id": "<string>",
"score": 123,
"reason": "<string>"
}
]
},
"error": {
"code": "<string>",
"message": "<string>"
},
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "not_found",
"message": "Video not found"
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "not_found",
"message": "Video not found"
},
"meta": {
"request_id": "req_abc123"
}
}このページは役に立ちましたか?
