Assign a Fixed Value
Last updated
Was this helpful?
Last updated
Was this helpful?
In Postman, the API looks like this:
The body of the file for this call will look like this:
In the entity section, you will need to provide the step name and version (version can be validated in the ‘data blocks’ section of TDO or on the ‘assembled data’ page).
The attribute name is the name from the list in the TDO data assignment page. In this case, we are working on the third attribute in the list:
In the final section of the body, we are specifying the method being used (‘ASSIGN’) and the value to be assigned (‘125’). Since we have not specified a format type, this will be assigned using the default value of STRING.
When the API is successfully run, you will receive the following return message:
Note that the return message starts with the Mongo object ID, provides the rule name and properties.
Here is that rule in TDO after the API is run.
You can see that the rule name on the TDO screen is the same as the rule name returned to Postman after the API was run and the value assigned is the value sent in the API.