For the complete documentation index, see llms.txt. This page is also available as Markdown.

Grading Data Management

Tracr provides an API endpoint to

  • list the grading data record

  • select a grading data to be active.

  • deactavate grading data

List the grading data record

All available grading data records are returned in the response body.

Call GET /diamonds/ac0mkpewmjmd9g2xtbqozsdr/graded-measurements (reference)


{
    "results": [
        {
            "id": "qfbd9poady0vk4evq6edeanj",
            "carats": 0.4,
            "clarity": "VS1",
            "colour": "D",
            "fluorescence_intensity": "N",
            "graded_date": "2024-08-06T12:50:03.408407+00:00",
            "grader_inscription_numbers": [
                "GIA 2358460633"
            ],
            "grader_report_number": "2358460633",
            "grading_certificate_filename": "GradingCertificate(69).pdf",
            "grading_certificate_hash": "14ee89d84af3cf49e0e9fc1783dd7e0063adb85a32ce361c6635f259999543ba",
            "grading_lab": "GIA",
            "is_active": false,
            "is_selectable": true,
            "polish_quality": "EX",
            "shape": "Heart",
            "source": "user",
            "symmetry": "EX"
        },
        {
            "id": "xwq4n42d33yv943v66nolk00",
            "carats": 1.24,
            "clarity": "VS2",
            "colour": "H",
            "cut_grade": "EX",
            "graded_date": "2024-05-31T10:54:28.033000+00:00",
            "grader_certificate_number": "null",
            "grader_clarity_characteristics": "Crystal",
            "grader_inscription_numbers": [
                "GIA 2141438180"
            ],
            "grader_report_comments": "Perfect",
            "grader_report_number": "2141438180",
            "grading_certificate_filename": "demo_polished_1.pdf",
            "grading_certificate_hash": "0ffa6a2313fff5db0048d47432a89615185873f08feeab5985451adac3a49930",
            "grading_lab": "GIA",
            "is_active": true,
            "is_selectable": true,
            "measurement_text": "5.10 - 5.12 x 3.18 mm ",
            "polish_quality": "EX",
            "shape": "Round",
            "source": "gis",
            "symmetry": "VG",
            "validation_level": "validation"
        }
    ]
}

is_active : If it's ture, this means this grading data will be shown on all interfaces , and only the active grading data record will be transferred.

is_selectable : This is to indicate which grading data is available for selection

source :This is to indicate the source of grading data

  • user : The grading data is uploaded by user

  • gis : The grading data is provided by the grading lab.

Select a grading data to be active

To select a grading data which will be shown on all interfaces, and this grading data will be tranferred to downstream if transfer is happening.

There's only one active grading data is allowed. Once the other grading data be selected, the current active grading data record will be deactived .(is_active will be set to flase .)

Call PATCH diamonds/ac0mkpewmjmd9g2xtbqozsdr/qfbd9poady0vk4evq6edeanj/select(reference)

Deselect a grading data

To remove the grading data from any interfaces.

Call PATCH diamonds/ac0mkpewmjmd9g2xtbqozsdr/qfbd9poady0vk4evq6edeanj/deselect(reference)

Last updated