The Supplier Scorecard Scoring Criteria object
Attributes
Unique identifier for the object.
Default: 100
{
"id": "supplier-scorecard-scoring-criteria_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"criteria_name": "criteria_name_example",
"score": 0,
"weight": 0,
"max_score": 100,
"formula": "formula_example"
} /api/buying/supplier-scorecard-scoring-criteria?parent_id={id} List supplier scorecard scoring criterias by parent
Returns all supplier scorecard scoring criterias belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of supplier scorecard scoring criteria objects belonging to the parent.
curl https://api.overplane.dev/api/buying/supplier-scorecard-scoring-criteria?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "supplier-scorecard-scoring-criteria_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"criteria_name": "criteria_name_example",
"score": 0,
"weight": 0,
"max_score": 100,
"formula": "formula_example"
}
],
"has_more": false,
"total": 1
} /api/buying/supplier-scorecard-scoring-criteria Create a supplier scorecard scoring criteria
Creates a new supplier scorecard scoring criteria object.
Body parameters
Default: 100
Returns
Returns the newly created supplier scorecard scoring criteria object if the call succeeded.
curl https://api.overplane.dev/api/buying/supplier-scorecard-scoring-criteria \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"parent_id":null,"parent_type":"parent_type_example","criteria_name":"criteria_name_example","weight":0}' {
"id": "supplier-scorecard-scoring-criteria_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"criteria_name": "criteria_name_example",
"score": 0,
"weight": 0,
"max_score": 100,
"formula": "formula_example"
} /api/buying/supplier-scorecard-scoring-criteria/{id} Update a supplier scorecard scoring criteria
Updates the specified supplier scorecard scoring criteria by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the supplier scorecard scoring criteria to update.
Body parameters
Default: 100
Returns
Returns the updated supplier scorecard scoring criteria object.
curl https://api.overplane.dev/api/buying/supplier-scorecard-scoring-criteria/supplier-scorecard-scoring-criteria_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "supplier-scorecard-scoring-criteria_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"criteria_name": "criteria_name_example",
"score": 0,
"weight": 0,
"max_score": 100,
"formula": "formula_example"
} /api/buying/supplier-scorecard-scoring-criteria/{id} Delete a supplier scorecard scoring criteria
Permanently deletes a supplier scorecard scoring criteria. This cannot be undone.
Path parameters
The identifier of the supplier scorecard scoring criteria to delete.
Returns
Returns a confirmation that the supplier scorecard scoring criteria has been deleted.
curl https://api.overplane.dev/api/buying/supplier-scorecard-scoring-criteria/supplier-scorecard-scoring-criteria_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "supplier-scorecard-scoring-criteria_abc123",
"deleted": true
} /api/buying/supplier-scorecard-scoring-criteria/reorder Reorder supplier scorecard scoring criterias
Updates the sort order of supplier scorecard scoring criterias within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/buying/supplier-scorecard-scoring-criteria/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "supplier-scorecard-scoring-criteria_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"criteria_name": "criteria_name_example",
"score": 0,
"weight": 0,
"max_score": 100,
"formula": "formula_example"
}