{
  "opencollection": "1.0.0",
  "info": {
    "name": "elastic.io Platform REST Agents Workspaces API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Workspaces",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Elastic.io List workspaces",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.elastic.io/v2/workspaces",
            "params": [
              {
                "name": "page[size]",
                "value": "",
                "type": "query",
                "description": "Number of items per page"
              },
              {
                "name": "page[number]",
                "value": "",
                "type": "query",
                "description": "Page number to retrieve"
              },
              {
                "name": "filter[contract_id]",
                "value": "",
                "type": "query",
                "description": "Filter by contract ID"
              }
            ]
          },
          "docs": "Retrieve a list of workspaces accessible to the user."
        },
        {
          "info": {
            "name": "Elastic.io Create a workspace",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.elastic.io/v2/workspaces",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new workspace within a contract."
        },
        {
          "info": {
            "name": "Elastic.io Get a workspace",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.elastic.io/v2/workspaces/:workspace_id",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the workspace"
              }
            ]
          },
          "docs": "Retrieve details of a specific workspace."
        },
        {
          "info": {
            "name": "Elastic.io Update a workspace",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.elastic.io/v2/workspaces/:workspace_id",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the workspace"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update an existing workspace."
        },
        {
          "info": {
            "name": "Elastic.io Delete a workspace",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.elastic.io/v2/workspaces/:workspace_id",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the workspace"
              }
            ]
          },
          "docs": "Delete a workspace."
        },
        {
          "info": {
            "name": "Elastic.io List workspace members",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.elastic.io/v2/workspaces/:workspace_id/members",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the workspace"
              }
            ]
          },
          "docs": "Retrieve the list of members in a workspace."
        },
        {
          "info": {
            "name": "Elastic.io Add a workspace member",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.elastic.io/v2/workspaces/:workspace_id/members",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the workspace"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add a user as a member of a workspace."
        },
        {
          "info": {
            "name": "Elastic.io Remove a workspace member",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.elastic.io/v2/workspaces/:workspace_id/members/:user_id",
            "params": [
              {
                "name": "workspace_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the workspace"
              },
              {
                "name": "user_id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the user"
              }
            ]
          },
          "docs": "Remove a member from a workspace."
        }
      ]
    }
  ],
  "bundled": true
}