Cycle Counts
Delete Cycle Count
This endpoint deletes an existing cycle count.
DELETE
/v1/cycle_counts/:id
Bearer*
Body
id
string
The id of the cycle count to delete.
Response
id
string
The ID provided in the data tab may be used to identify the return
object
string
The object type
success
number
Indicates whether the call was successful. 1 if successful, 0 if not.
curl --location --request DELETE 'https://api.stateset.com/v1/cycle_counts/:id' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "pl_ODkRWQtx9NVsRX"
}'
{
"id": "pi_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "cyclecounts",
"deleted": true
}
curl --location --request DELETE 'https://api.stateset.com/v1/cycle_counts/:id' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "pl_ODkRWQtx9NVsRX"
}'
{
"id": "pi_1NXWPnCo6bFb1KQto6C8OWvE",
"object": "cyclecounts",
"deleted": true
}