The examples in this guide make use of sample JSON data which you need to adapt by replacing the example values with your own values.
The following requests are covered in this section.
POST Requests |
POST Requests |
PATCH Requests |
GET Requests |
DELETE Requests |
For your convenience, the following sample JSON files are available in the Attachments tab on the side bar for you to download and customize:
-
Sample environment: TrainingEnvSEM.postman_environment.json
-
Request collection: Demo SEM Web API.postman_collection.json
These samples are provided as templates for you to run the requests in Postman using your own data with authentication by Smart API Manager (SAM).
For details of how to download and import these files, see Import and configure SEM JSON files.
Your payload results may differ from those shown in the examples in this tutorial according to your environment variables and your data.
-
For all requests, the Header field of the script must contain the key 'Authorization' with a suitable token string:
-
For details about generating a token, see the topic Use Postman to get an access token for authentication in the Smart Engineering Manager Web API Installation and Upgrade Guide.
-
If a general admin user does not have privileges for creating new sites or plants, copying and loading plants, or associating applications, the System Administrator can grant limited privileges to that user to be able to perform the above actions without compromising database security. For details, see the following topics in the Smart Engineering Manager Installation and Upgrade Guide: