Hugging Face · Example Payload

Hugging Face Createrepo Example

Hugging Face Createrepo 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": "createRepo",
  "method": "POST",
  "path": "/repos/create",
  "summary": "Create a New Repository",
  "requestExamples": [
    {
      "contentType": "application/json",
      "name": "CreaterepoRequestExample",
      "example": {
        "name": "Example Title",
        "type": "model",
        "organization": "example_value",
        "private": true,
        "sdk": "gradio"
      }
    }
  ],
  "responseExamples": [
    {
      "status": "200",
      "contentType": "application/json",
      "name": "Createrepo200Example",
      "example": {
        "url": "https://www.example.com"
      }
    },
    {
      "status": "401",
      "contentType": "application/json",
      "name": "Createrepo401Example",
      "example": {
        "error": "example_value",
        "statusCode": 10
      }
    },
    {
      "status": "409",
      "contentType": "application/json",
      "name": "Createrepo409Example",
      "example": {
        "error": "example_value",
        "statusCode": 10
      }
    }
  ]
}