{ "opencollection": "1.0.0", "info": { "name": "Neon Management API Keys Roles API", "version": "2.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Roles", "type": "folder" }, "items": [ { "info": { "name": "List roles", "type": "http" }, "http": { "method": "GET", "url": "https://console.neon.tech/api/v2/projects/:project_id/branches/:branch_id/roles", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "The Neon project ID" }, { "name": "branch_id", "value": "", "type": "path", "description": "The branch ID" } ] }, "docs": "Retrieves a list of Postgres roles for the specified branch." }, { "info": { "name": "Create a role", "type": "http" }, "http": { "method": "POST", "url": "https://console.neon.tech/api/v2/projects/:project_id/branches/:branch_id/roles", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "The Neon project ID" }, { "name": "branch_id", "value": "", "type": "path", "description": "The branch ID" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a Postgres role in the specified branch. You must specify a role name." }, { "info": { "name": "Retrieve role details", "type": "http" }, "http": { "method": "GET", "url": "https://console.neon.tech/api/v2/projects/:project_id/branches/:branch_id/roles/:role_name", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "The Neon project ID" }, { "name": "branch_id", "value": "", "type": "path", "description": "The branch ID" }, { "name": "role_name", "value": "", "type": "path", "description": "The Postgres role name" } ] }, "docs": "Retrieves information about the specified Postgres role." }, { "info": { "name": "Delete a role", "type": "http" }, "http": { "method": "DELETE", "url": "https://console.neon.tech/api/v2/projects/:project_id/branches/:branch_id/roles/:role_name", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "The Neon project ID" }, { "name": "branch_id", "value": "", "type": "path", "description": "The branch ID" }, { "name": "role_name", "value": "", "type": "path", "description": "The Postgres role name" } ] }, "docs": "Deletes the specified Postgres role from the branch." }, { "info": { "name": "Reset role password", "type": "http" }, "http": { "method": "POST", "url": "https://console.neon.tech/api/v2/projects/:project_id/branches/:branch_id/roles/:role_name/reset_password", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "The Neon project ID" }, { "name": "branch_id", "value": "", "type": "path", "description": "The branch ID" }, { "name": "role_name", "value": "", "type": "path", "description": "The Postgres role name" } ] }, "docs": "Resets the password for the specified Postgres role. Returns the new password in the response." } ] } ], "bundled": true }