{
  "opencollection": "1.0.0",
  "info": {
    "name": "PlanetScale Platform Backups Organization Members API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Organization Members",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List organization members",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.planetscale.com/v1/organizations/:organization/members",
            "params": [
              {
                "name": "organization",
                "value": "",
                "type": "path",
                "description": "The name of the organization."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page number for pagination."
              },
              {
                "name": "per_page",
                "value": "",
                "type": "query",
                "description": "The number of results per page."
              }
            ]
          },
          "docs": "Returns a list of all members in the specified organization. Requires the read_organization permission on the service token."
        },
        {
          "info": {
            "name": "Get an organization member",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.planetscale.com/v1/organizations/:organization/members/:member_id",
            "params": [
              {
                "name": "organization",
                "value": "",
                "type": "path",
                "description": "The name of the organization."
              },
              {
                "name": "member_id",
                "value": "",
                "type": "path",
                "description": "The ID of the organization member."
              }
            ]
          },
          "docs": "Returns details about a specific member in the organization. Requires the read_organization permission."
        },
        {
          "info": {
            "name": "Update an organization member",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.planetscale.com/v1/organizations/:organization/members/:member_id",
            "params": [
              {
                "name": "organization",
                "value": "",
                "type": "path",
                "description": "The name of the organization."
              },
              {
                "name": "member_id",
                "value": "",
                "type": "path",
                "description": "The ID of the organization member."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the role or properties of a specific member in the organization. Requires the write_organization permission."
        },
        {
          "info": {
            "name": "Remove an organization member",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.planetscale.com/v1/organizations/:organization/members/:member_id",
            "params": [
              {
                "name": "organization",
                "value": "",
                "type": "path",
                "description": "The name of the organization."
              },
              {
                "name": "member_id",
                "value": "",
                "type": "path",
                "description": "The ID of the organization member."
              }
            ]
          },
          "docs": "Removes a member from the organization. Requires the write_organization permission."
        }
      ]
    }
  ],
  "bundled": true
}