openapi: 3.0.0 info: title: Leaf Agriculture Leaf API Reference > Alerts API Reference > Leaf Link > Provider Applications Info > CNHi API description: We are Leaf Agriculture, provider of a unified farm data API. After experiencing the difficulty of building applications in food and agriculture first hand as software developers, and hearing similar stories of frustration with existing tools and often insurmountable technical barriers from other companies, we decided to tackle the problem at hand. version: 1.0.0 tags: - name: API Reference > Leaf Link > Provider Applications Info > CNHi paths: /services/usermanagement/api/app-keys/CNHI: get: tags: - API Reference > Leaf Link > Provider Applications Info > CNHi summary: Leaf Agriculture Get all CNHi app information parameters: - name: Content-Type in: header schema: type: string example: application/json - name: Authorization in: header schema: type: string example: Bearer {{leaf_token}} responses: '200': description: Successful response content: application/json: {} /services/usermanagement/api/app-keys/CNHI/{app_name}/{cnhi_client_environment}: get: tags: - API Reference > Leaf Link > Provider Applications Info > CNHi summary: Leaf Agriculture Get a CNHi app information parameters: - name: Content-Type in: header schema: type: string example: application/json - name: Authorization in: header schema: type: string example: Bearer {{leaf_token}} - name: app_name in: path schema: type: string required: true - name: cnhi_client_environment in: path schema: type: string required: true responses: '200': description: Successful response content: application/json: {} post: tags: - API Reference > Leaf Link > Provider Applications Info > CNHi summary: Leaf Agriculture Create a CNHi app information requestBody: content: application/json: schema: type: object example: clientId: '{{cnhi_client_id}}' clientSecret: '{{cnhi_client_secret}}' subscriptionKey: '{{cnhi_subscription_key}}' parameters: - name: Content-Type in: header schema: type: string example: application/json - name: Authorization in: header schema: type: string example: Bearer {{leaf_token}} - name: app_name in: path schema: type: string required: true - name: cnhi_client_environment in: path schema: type: string required: true responses: '200': description: Successful response content: application/json: {} put: tags: - API Reference > Leaf Link > Provider Applications Info > CNHi summary: Leaf Agriculture Update a CNHi app information requestBody: content: application/json: schema: type: object example: clientId: '{{cnhi_client_id}}' clientSecret: '{{cnhi_client_secret}}' subscriptionKey: '{{cnhi_subscription_key}}' parameters: - name: Content-Type in: header schema: type: string example: application/json - name: Authorization in: header schema: type: string example: Bearer {{leaf_token}} - name: app_name in: path schema: type: string required: true - name: cnhi_client_environment in: path schema: type: string required: true responses: '200': description: Successful response content: application/json: {} delete: tags: - API Reference > Leaf Link > Provider Applications Info > CNHi summary: Leaf Agriculture Delete a CNHi app information parameters: - name: Content-Type in: header schema: type: string example: application/json - name: Authorization in: header schema: type: string example: Bearer {{leaf_token}} - name: app_name in: path schema: type: string required: true - name: cnhi_client_environment in: path schema: type: string required: true responses: '200': description: Successful response content: application/json: {}