{
  "opencollection": "1.0.0",
  "info": {
    "name": "Split Admin Identities API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Identities",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Update segment keys via CSV",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.split.io/internal/api/v2/segments/:environmentId/:segmentName/upload",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the environment"
              },
              {
                "name": "segmentName",
                "value": "",
                "type": "path",
                "description": "The name of the segment"
              }
            ]
          },
          "docs": "Replaces all keys in a segment by uploading a CSV file containing the new set of identities."
        },
        {
          "info": {
            "name": "List segment keys",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.split.io/internal/api/v2/segments/:environmentId/:segmentName/keys",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the environment"
              },
              {
                "name": "segmentName",
                "value": "",
                "type": "path",
                "description": "The name of the segment"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of results to return per page"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Number of results to skip for pagination"
              }
            ]
          },
          "docs": "Retrieves the identity keys belonging to the specified segment in the given environment."
        },
        {
          "info": {
            "name": "Add keys to segment",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.split.io/internal/api/v2/segments/:environmentId/:segmentName/keys",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the environment"
              },
              {
                "name": "segmentName",
                "value": "",
                "type": "path",
                "description": "The name of the segment"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds identity keys to the specified segment in the given environment."
        },
        {
          "info": {
            "name": "Remove keys from segment",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.split.io/internal/api/v2/segments/:environmentId/:segmentName/keys",
            "params": [
              {
                "name": "environmentId",
                "value": "",
                "type": "path",
                "description": "The unique identifier of the environment"
              },
              {
                "name": "segmentName",
                "value": "",
                "type": "path",
                "description": "The name of the segment"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Removes identity keys from the specified segment in the given environment."
        }
      ]
    }
  ],
  "bundled": true
}