{ "opencollection": "1.0.0", "info": { "name": "Campaigns Ad Servers User Permissions API", "version": "3.0.1807" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://auth.mediamath.com/authorize", "accessTokenUrl": "https://auth.mediamath.com/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "User Permissions", "type": "folder" }, "items": [ { "info": { "name": "Update Permissions for a User", "type": "http" }, "http": { "method": "POST", "url": "https://api.mediamath.com/api/v3.0/users/:user_id/permissions", "params": [ { "name": "user_id", "value": "", "type": "path", "description": "Numeric ID of the user" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update Permissions for a User" }, { "info": { "name": "List User Permissions", "type": "http" }, "http": { "method": "GET", "url": "https://api.mediamath.com/api/v3.0/permissions/:user_id", "params": [ { "name": "page_limit", "value": "", "type": "query", "description": "Number of elements in the collection to retrieve" }, { "name": "page_offset", "value": "", "type": "query", "description": "Index of the first element in the collection to retrieve" }, { "name": "user_id", "value": "", "type": "path", "description": "User ID" }, { "name": "organization_id", "value": "", "type": "query", "description": "Numeric ID of the user" }, { "name": "agency_id", "value": "", "type": "query", "description": "Numeric ID of the agency" }, { "name": "advertiser_id", "value": "", "type": "query", "description": "Numeric ID of the advertiser" }, { "name": "campaign_id", "value": "", "type": "query", "description": "Numeric ID of the campaign" }, { "name": "strategy_id", "value": "", "type": "query", "description": "Numeric ID of the strategy" } ] }, "docs": "Get a list of user permissions" }, { "info": { "name": "List User Permissions for Entities", "type": "http" }, "http": { "method": "POST", "url": "https://api.mediamath.com/api/v3.0/permissions/:user_id", "params": [ { "name": "page_limit", "value": "", "type": "query", "description": "Number of elements in the collection to retrieve" }, { "name": "page_offset", "value": "", "type": "query", "description": "Index of the first element in the collection to retrieve" }, { "name": "user_id", "value": "", "type": "path", "description": "User ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Get a list of user permissions for requested entities" }, { "info": { "name": "List User Permissions for All Organizations", "type": "http" }, "http": { "method": "GET", "url": "https://api.mediamath.com/api/v3.0/permissions/:user_id/organizations", "params": [ { "name": "page_limit", "value": "", "type": "query", "description": "Number of elements in the collection to retrieve" }, { "name": "page_offset", "value": "", "type": "query", "description": "Index of the first element in the collection to retrieve" }, { "name": "user_id", "value": "", "type": "path", "description": "User ID" } ] }, "docs": "Get a list of user permissions for organizations" }, { "info": { "name": "List User Permissions for All Agencies", "type": "http" }, "http": { "method": "GET", "url": "https://api.mediamath.com/api/v3.0/permissions/:user_id/agencies", "params": [ { "name": "page_limit", "value": "", "type": "query", "description": "Number of elements in the collection to retrieve" }, { "name": "page_offset", "value": "", "type": "query", "description": "Index of the first element in the collection to retrieve" }, { "name": "user_id", "value": "", "type": "path", "description": "User ID" } ] }, "docs": "Get a list of user permissions for agencies" }, { "info": { "name": "List User Permissions for All Advertisers", "type": "http" }, "http": { "method": "GET", "url": "https://api.mediamath.com/api/v3.0/permissions/:user_id/advertisers", "params": [ { "name": "page_limit", "value": "", "type": "query", "description": "Number of elements in the collection to retrieve" }, { "name": "page_offset", "value": "", "type": "query", "description": "Index of the first element in the collection to retrieve" }, { "name": "user_id", "value": "", "type": "path", "description": "User ID" } ] }, "docs": "Get a list of user permissions for advertisers" }, { "info": { "name": "List User Permissions for All Campaigns", "type": "http" }, "http": { "method": "GET", "url": "https://api.mediamath.com/api/v3.0/permissions/:user_id/campaigns", "params": [ { "name": "page_limit", "value": "", "type": "query", "description": "Number of elements in the collection to retrieve" }, { "name": "page_offset", "value": "", "type": "query", "description": "Index of the first element in the collection to retrieve" }, { "name": "user_id", "value": "", "type": "path", "description": "User ID" } ] }, "docs": "Get a list of user permissions for campaigns" }, { "info": { "name": "List User Permissions for All Strategies", "type": "http" }, "http": { "method": "GET", "url": "https://api.mediamath.com/api/v3.0/permissions/:user_id/strategies", "params": [ { "name": "page_limit", "value": "", "type": "query", "description": "Number of elements in the collection to retrieve" }, { "name": "page_offset", "value": "", "type": "query", "description": "Index of the first element in the collection to retrieve" }, { "name": "user_id", "value": "", "type": "path", "description": "User ID" } ] }, "docs": "Get a list of user permissions for strategies" }, { "info": { "name": "List User Permissions (V2 Format)", "type": "http" }, "http": { "method": "GET", "url": "https://api.mediamath.com/api/v3.0/permissions/:user_id/v2format", "params": [ { "name": "user_id", "value": "", "type": "path", "description": "User ID" } ] }, "docs": "Get a list of user permissions in V2 format" }, { "info": { "name": "List User Permissions for Entities (V2 Format)", "type": "http" }, "http": { "method": "POST", "url": "https://api.mediamath.com/api/v3.0/permissions/:user_id/v2format", "params": [ { "name": "user_id", "value": "", "type": "path", "description": "User ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Get a list of user permissions for requested entities in V2 format" } ] } ], "bundled": true }