Hugging Face · Example Payload

Hugging Face Getsplits Example

Hugging Face Getsplits Example is an example object payload from Hugging Face, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummaryrequestExamplesresponseExamples

Example Payload

Raw ↑
{
  "operationId": "getSplits",
  "method": "GET",
  "path": "/splits",
  "summary": "Get Dataset Splits",
  "requestExamples": [],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "name": "Getsplits200Example",
      "example": {
        "splits": [
          {
            "dataset": "example_value",
            "config": "example_value",
            "split": "example_value"
          }
        ],
        "pending": [
          {}
        ],
        "failed": [
          {}
        ]
      }
    },
    {
      "status": "404",
      "contentType": "application/json",
      "name": "Getsplits404Example",
      "example": {
        "error": "example_value",
        "cause_exception": "example_value",
        "cause_message": "example_value",
        "cause_traceback": [
          "example_value"
        ]
      }
    },
    {
      "status": "500",
      "contentType": "application/json",
      "name": "Getsplits500Example",
      "example": {
        "error": "example_value",
        "cause_exception": "example_value",
        "cause_message": "example_value",
        "cause_traceback": [
          "example_value"
        ]
      }
    }
  ]
}