The Item Website Specification object
Attributes
Unique identifier for the object.
{
"id": "item-website-specification_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"label": "label_example",
"description": "description_example"
} /api/stock/item-website-specification?parent_id={id} List item website specifications by parent
Returns all item website specifications belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of item website specification objects belonging to the parent.
curl https://api.overplane.dev/api/stock/item-website-specification?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "item-website-specification_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"label": "label_example",
"description": "description_example"
}
],
"has_more": false,
"total": 1
} /api/stock/item-website-specification Create a item website specification
Creates a new item website specification object.
Body parameters
Returns
Returns the newly created item website specification object if the call succeeded.
curl https://api.overplane.dev/api/stock/item-website-specification \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" {
"id": "item-website-specification_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"label": "label_example",
"description": "description_example"
} /api/stock/item-website-specification/{id} Update a item website specification
Updates the specified item website specification by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the item website specification to update.
Body parameters
Returns
Returns the updated item website specification object.
curl https://api.overplane.dev/api/stock/item-website-specification/item-website-specification_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "item-website-specification_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"label": "label_example",
"description": "description_example"
} /api/stock/item-website-specification/{id} Delete a item website specification
Permanently deletes a item website specification. This cannot be undone.
Path parameters
The identifier of the item website specification to delete.
Returns
Returns a confirmation that the item website specification has been deleted.
curl https://api.overplane.dev/api/stock/item-website-specification/item-website-specification_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "item-website-specification_abc123",
"deleted": true
} /api/stock/item-website-specification/reorder Reorder item website specifications
Updates the sort order of item website specifications within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/stock/item-website-specification/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "item-website-specification_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"label": "label_example",
"description": "description_example"
}