├── LICENSE └── README.md /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Jamf Open Source Community 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Classic-API-Postman-Collection 2 | 3 | ## Overview 4 | This collection is provided to assist Jamf Pro users of the Classic API. It provides a quick method to interact with all non-deprecated endpoints. 5 | 6 | This article describes the recommended Postman configuration and setup process to import the collection, configure variables to connect it to your Jamf Pro environment and begin testing API calls and interacting with your Jamf Pro environment via the Classic API. 7 | 8 | The following expectations were used when designing this collection: 9 | * All POST operations include a pre-populated request body. 10 | - This request body may not include all fields supported by the body of the given object, however it will include those required to successfully create the object. 11 | - Pull requests or issue submissions are encouraged to enhance or update this data. 12 | * All GET operations include at least one example response. 13 | - Endpoints that have conditional inputs in the form of parameters or request bodies should include multiple examples (e.g. `computercommmands` and `mobiledevicecommands`). 14 | * All query parameters that have a defined list of acceptable values denote the allowed values in the description of the parameter. 15 | 16 | ## Import the Collection 17 | Use the following options to import the collection into Postman: 18 | * For Jamf Pro version 10.34.0 and earlier: Click the [![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/3f5cc9fc4978cdae78fc) button to automatically import the collection into your Postman app. 19 | * For Jamf Pro Version 10.35.0 and later: Click the [![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/12cbc6c93dfcabf14e41?action=collection%2Fimport) button to automatically import the collection into your Postman app. 20 | * In Postman, click File >> Import. 21 | - Download the JSON included in this repo and select the .json file. 22 | 23 | ## Define Environment Variables 24 | This collection utilizes the following variables which should be defined within the environment variables. Using variables at the collection level is not currently supported by the script that performs that authorization token requests. Follow Postman's documentation to [Manage Environments](https://learning.getpostman.com/docs/postman/environments_and_globals/manage_environments). 25 | 26 | ## 10.34.0 and earlier 27 | | Variable | Description | Example | 28 | |--------------|-------------------------------------------------|---------------------------| 29 | | url | Hostname and port of the Jamf Pro environment | company.jamfcloud.com:443 | 30 | | username | Username to authenticate to Jamf Pro with | administrator | 31 | | password | Password of the user authenticating to Jamf Pro | pa$$word | 32 | 33 | ## 10.35.0 and later 34 | | Variable | Description | Example | 35 | |--------------|-----------------------------------------------------------|-----------------------------------| 36 | | url | Protocol, hostname and port of the Jamf Pro environment | https://company.jamfcloud.com:443 | 37 | | username | Username to authenticate to Jamf Pro with | administrator | 38 | | password | Password of the user authenticating to Jamf Pro | pa$$word | 39 | 40 | This version of the collection utilizes scripts to manage the Bearer Token, which is a new authentication method supported in version 10.35.0 and later of Jamf Pro. Tokens will be requested as necessary, so no interaction with authentication endpoint should be necessary. For more information on authentication changes to the Classic API, see the [Jamf Developer Portal](https://developer.jamf.com/jamf-pro/docs/classic-api-authentication-changes). 41 | 42 | ## Getting Started 43 | After the collection has been imported and valid values have been defined for the variables, all calls should be supported with minimal input required. Additional data will be required either in the form of a parameter value and/or a request body. 44 | --------------------------------------------------------------------------------