SUB Operation

PUT https://{{base_url}}/v3/content_types/{{content_type_uid}}/entries/{{entry_uid}}

The SUB operation works the opposite of ADD. It reads the latest value of a “Number” field and decrements it by a numeric value passed along with the operator.

To use the API Request, you will need to authenticate yourself either with a Management Token (highly recommended) or an Authtoken. 
Read more about it in Authentication.


For more information, refer to the SUB Operation API Reference document

Request Params

KeyDatatypeRequiredDescription
include_branchbooleanSet this to 'true' to include the '_branch' top-level key in the response. This key states the unique ID of the branch where the concerned Contentstack module resides.

Request Body

{"entry"=>{"number"=>{"SUB"=>2}}}

HEADERS

KeyDatatypeRequiredDescription
api_keystringEnter Stack API Key.
authtokenstringEnter your Authtoken. We recommend you to use the stack’s Management Token instead, along with the stack API key, to make valid Content Management API requests.
authorizationstringFor this call we recommend you to use management token.
Content-Typestring
branchstringEnter your branch unique ID.