The constants are called DimensionContentInterface::STAGE_DRAFT and STAGE_LIVE. If you change content by code, publish only what was published before. Otherwise open changes go live with it.
Glossary Term
Stage (draft/live)
The state of a content row: draft or live. workflowPlace names the publishing state, for example draft, review_draft or published.