P_updateStockStatus
Enables or disables all the stock
Supported arguments
The following arguments are supported by P_updateStockStatus mutation:
Field | Type | Description |
---|---|---|
input | P_API_UpdateStockStatusInput! |
Return type
The mutation returns theP_API_UpdateStockStatusResponse
type.
Example usage
Mutation
This mutation is rate limited at 1 request per 1 minute.
mutation {
P_updateStockStatus(input: {enabled: false}) { # Disable all of the stock
success
}
}
mutation {
P_updateStockStatus(input: {enabled: true}) { # Enable all of the stock
success
}
}
Result
{
"data": {
"P_updateStockStatus": {
"success": true
}
}
}