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
Key | Datatype | Required | Description |
---|---|---|---|
include_branch | boolean | Set 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
Key | Datatype | Required | Description |
---|---|---|---|
api_key | string | Enter Stack API Key. | |
authtoken | string | Enter 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. | |
authorization | string | For this call we recommend you to use management token. | |
Content-Type | string | ||
branch | string | Enter your branch unique ID. |