{ "opencollection": "1.0.0", "info": { "name": "Microsoft Dynamics 365 Business Central Accounts Leads API", "version": "2.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize", "accessTokenUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Leads", "type": "folder" }, "items": [ { "info": { "name": "Microsoft Dynamics List leads", "type": "http" }, "http": { "method": "GET", "url": "https://api.businesscentral.dynamics.com/v2.0/{tenantId}/{environment}/api/v2.0/leads", "params": [ { "name": "$top", "value": "", "type": "query", "description": "Maximum number of records to return." }, { "name": "$skip", "value": "", "type": "query", "description": "Number of records to skip." }, { "name": "$filter", "value": "", "type": "query", "description": "OData filter expression." }, { "name": "$select", "value": "", "type": "query", "description": "Comma-separated list of properties to include." }, { "name": "$orderby", "value": "", "type": "query", "description": "Comma-separated list of properties to sort by." }, { "name": "$expand", "value": "", "type": "query", "description": "Related entities to expand inline." } ] }, "docs": "Retrieves a collection of lead records." }, { "info": { "name": "Microsoft Dynamics Create a lead", "type": "http" }, "http": { "method": "POST", "url": "https://api.businesscentral.dynamics.com/v2.0/{tenantId}/{environment}/api/v2.0/leads", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new lead record." }, { "info": { "name": "Microsoft Dynamics Get a lead", "type": "http" }, "http": { "method": "GET", "url": "https://api.businesscentral.dynamics.com/v2.0/{tenantId}/{environment}/api/v2.0/leads(:leadid)", "params": [ { "name": "leadid", "value": "", "type": "path" }, { "name": "$select", "value": "", "type": "query", "description": "Comma-separated list of properties to include." }, { "name": "$expand", "value": "", "type": "query", "description": "Related entities to expand inline." } ] }, "docs": "Retrieves a single lead by ID." }, { "info": { "name": "Microsoft Dynamics Update a lead", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.businesscentral.dynamics.com/v2.0/{tenantId}/{environment}/api/v2.0/leads(:leadid)", "headers": [ { "name": "If-Match", "value": "" } ], "params": [ { "name": "leadid", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates an existing lead record." }, { "info": { "name": "Microsoft Dynamics Delete a lead", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.businesscentral.dynamics.com/v2.0/{tenantId}/{environment}/api/v2.0/leads(:leadid)", "params": [ { "name": "leadid", "value": "", "type": "path" } ] }, "docs": "Deletes a lead record." } ] } ], "bundled": true }