Skip to main content
PATCH
/
scanner
/
api
/
v1
/
proposals
/
{proposal_id}
Review an enrichment proposal
curl --request PATCH \
  --url https://www.closient.com/scanner/api/v1/proposals/{proposal_id} \
  --header 'Content-Type: application/json' \
  --cookie sessionid= \
  --data '
{
  "status": "<string>"
}
'
{
  "id": 123,
  "field_name": "<string>",
  "current_value": "<string>",
  "proposed_value": "<string>",
  "confidence": "<string>",
  "reasoning": "<string>",
  "source": "<string>",
  "status": "<string>",
  "created": "2023-11-07T05:31:56Z",
  "reviewed_at": "2023-11-07T05:31:56Z"
}

Authorizations

sessionid
string
cookie
required

Path Parameters

proposal_id
integer
required

Unique identifier of the enrichment proposal.

Body

application/json

Request body for accepting or rejecting an enrichment proposal.

status
string
required

New status: ACCEPTED or REJECTED.

Pattern: ^(ACCEPTED|REJECTED)$

Response

OK

AI-generated enrichment proposal for a product field.

id
integer
required

Unique proposal identifier.

field_name
string
required

Product field targeted by this proposal.

current_value
string
required

Current value of the field.

proposed_value
string
required

AI-suggested replacement value.

confidence
string
required

Confidence score from 0.0 to 1.0.

Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
reasoning
string
required

Explanation of why this change was proposed.

source
string
required

Data source used to generate this proposal.

status
string
required

Review status: PENDING, ACCEPTED, or REJECTED.

created
string<date-time>
required

Timestamp when the proposal was generated.

reviewed_at
string<date-time> | null

Timestamp when the proposal was reviewed.