The Item Variant Settings object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: false
Default: false
Default: false
{
"id": "item-variant-settings_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"do_not_update_variants": false,
"allow_rename_attribute_value": false,
"allow_different_uom": false
} /api/stock/item-variant-settings Retrieve item variant settings
Retrieves the current item variant settings. This is a singleton resource.
Returns
Returns the item variant settings object.
curl https://api.overplane.dev/api/stock/item-variant-settings \
-H "Authorization: Bearer sk_test_..." {
"id": "item-variant-settings_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"do_not_update_variants": false,
"allow_rename_attribute_value": false,
"allow_different_uom": false
} /api/stock/item-variant-settings/{id} Update a item variant settings
Updates the specified item variant settings by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the item variant settings to update.
Body parameters
Default: false
Default: false
Default: false
Returns
Returns the updated item variant settings object.
curl https://api.overplane.dev/api/stock/item-variant-settings/item-variant-settings_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"do_not_update_variants":false,"allow_rename_attribute_value":false}' {
"id": "item-variant-settings_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"do_not_update_variants": false,
"allow_rename_attribute_value": false,
"allow_different_uom": false
} Line items
Child objects that belong to this item variant settings. These are accessed via the parent's ID.
Variant Field
Attributes
Endpoints
/api/stock/variant-field?parent_id={id} /api/stock/variant-field /api/stock/variant-field/{id} /api/stock/variant-field/{id} /api/stock/variant-field/reorder {
"id": "variant-field_abc123",
"idx": 1,
"item_variant_settings_id": "item_variant_settings_id_example",
"field_name": "field_name_example"
}