{ "opencollection": "1.0.0", "info": { "name": "Vantage AccessGrants Segments API", "version": "2.0.0" }, "request": { "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://console.vantage.sh/account/profile", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Segments", "type": "folder" }, "items": [ { "info": { "name": "Get all segments", "type": "http" }, "http": { "method": "GET", "url": "https://api.vantage.sh/v2/segments", "params": [ { "name": "page", "value": "", "type": "query", "description": "The page of results to return." }, { "name": "limit", "value": "", "type": "query", "description": "The amount of results to return. The maximum is 1000." } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://console.vantage.sh/account/profile", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Return all Segments." }, { "info": { "name": "Create segment", "type": "http" }, "http": { "method": "POST", "url": "https://api.vantage.sh/v2/segments", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://console.vantage.sh/account/profile", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Create a Segment." }, { "info": { "name": "Get segment by token", "type": "http" }, "http": { "method": "GET", "url": "https://api.vantage.sh/v2/segments/:segment_token", "params": [ { "name": "segment_token", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://console.vantage.sh/account/profile", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Return a Segment." }, { "info": { "name": "Update segment", "type": "http" }, "http": { "method": "PUT", "url": "https://api.vantage.sh/v2/segments/:segment_token", "params": [ { "name": "segment_token", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://console.vantage.sh/account/profile", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Update a Segment." }, { "info": { "name": "Delete segment", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.vantage.sh/v2/segments/:segment_token", "params": [ { "name": "segment_token", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://console.vantage.sh/account/profile", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Delete a Segment." } ] } ], "bundled": true }