{ "opencollection": "1.0.0", "info": { "name": "Cube Agents Comments API", "version": "1.0.0 (1.0)" }, "items": [ { "info": { "name": "Comments", "type": "folder" }, "items": [ { "info": { "name": "List comments", "type": "http" }, "http": { "method": "GET", "url": "https://api.cubesoftware.com/comments/:target_app/:target_model", "headers": [ { "name": "X-Company-ID", "value": "" } ], "params": [ { "name": "target_app", "value": "", "type": "path", "description": "The app label of the target object" }, { "name": "target_id", "value": "", "type": "query", "description": "Filter by target object id: int or uuid." }, { "name": "target_model", "value": "", "type": "path", "description": "The model name of the target object" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "List all comments for a specific content type with filtering." }, { "info": { "name": "Create comment", "type": "http" }, "http": { "method": "POST", "url": "https://api.cubesoftware.com/comments/:target_app/:target_model", "headers": [ { "name": "X-Company-ID", "value": "" } ], "params": [ { "name": "target_app", "value": "", "type": "path", "description": "The app label of the target object" }, { "name": "target_model", "value": "", "type": "path", "description": "The model name of the target object" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Create a new comment for a specific target object. The content must not exceed 1000 characters." }, { "info": { "name": "Retrieve comment", "type": "http" }, "http": { "method": "GET", "url": "https://api.cubesoftware.com/comments/:target_app/:target_model/:id", "headers": [ { "name": "X-Company-ID", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path" }, { "name": "target_app", "value": "", "type": "path", "description": "The app label of the target object" }, { "name": "target_model", "value": "", "type": "path", "description": "The model name of the target object" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieve a specific comment by its id." }, { "info": { "name": "Update comment", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.cubesoftware.com/comments/:target_app/:target_model/:id", "headers": [ { "name": "X-Company-ID", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path" }, { "name": "target_app", "value": "", "type": "path", "description": "The app label of the target object" }, { "name": "target_model", "value": "", "type": "path", "description": "The model name of the target object" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Update a specific comment by its id." }, { "info": { "name": "Destroy comment", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.cubesoftware.com/comments/:target_app/:target_model/:id", "headers": [ { "name": "X-Company-ID", "value": "" } ], "params": [ { "name": "id", "value": "", "type": "path" }, { "name": "target_app", "value": "", "type": "path", "description": "The app label of the target object" }, { "name": "target_model", "value": "", "type": "path", "description": "The model name of the target object" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://portal.cubesoftware.com/o/authorize/", "accessTokenUrl": "https://api.cubesoftware.com/o/token/", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Destroy a specific comment by its id." } ] } ], "bundled": true }