---
agentTools:
  projectIndex: https://developers.northpass.com/llms.txt
---

# Create a question bank

Creates a new question bank.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "OpenAPI Specification",
    "version": "1.0.0"
  },
  "paths": {
    "/v2/question_banks": {
      "post": {
        "tags": [
          "Question Banks"
        ],
        "summary": "Create a question bank",
        "description": "Creates a new question bank.\n",
        "requestBody": {
          "$ref": "#/components/requestBodies/Body4"
        },
        "responses": {
          "201": {
            "description": "successful operation",
            "headers": {
              "Content-Type": {
                "x-example-value": "application/json; charset=utf-8",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "x-example-value": "max-age=0, private, must-revalidate",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "response": {
                    "value": {
                      "data": {
                        "type": "question_banks",
                        "id": "18eb2b36-3d60-46d2-b8d8-b4d978d7036d",
                        "attributes": {
                          "name": "Cooking Courses",
                          "created_at": "2024-10-08T08:37:34Z"
                        },
                        "relationships": {
                          "dynamic_quizzes": {
                            "data": []
                          }
                        },
                        "links": {
                          "self": "https://api.northpass.com/v1/question_banks/18eb2b36-3d60-46d2-b8d8-b4d978d7036d",
                          "build": {
                            "href": "https://app.northpass.com/question_banks/18eb2b36-3d60-46d2-b8d8-b4d978d7036d/builder",
                            "methods": [
                              "get"
                            ]
                          },
                          "clone": "https://app.northpass.com/question_banks/18eb2b36-3d60-46d2-b8d8-b4d978d7036d/clone"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "when you don't have the necessary permissions",
            "headers": {
              "Content-Type": {
                "x-example-value": "application/json; charset=utf-8",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "x-example-value": "no-cache",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "response": {
                    "value": {
                      "errors": [
                        {
                          "status": "403",
                          "title": "Forbidden",
                          "detail": "You don't have necessary permissions for the resource",
                          "code": "api_error",
                          "source": {}
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "when the validation fails",
            "headers": {
              "Content-Type": {
                "x-example-value": "application/json; charset=utf-8",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "x-example-value": "no-cache",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "examples": {
                  "response": {
                    "value": {
                      "errors": [
                        {
                          "status": "422",
                          "title": "Invalid Attribute",
                          "detail": "can't be blank",
                          "source": {
                            "pointer": "/data/attributes/name"
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": [
          {
            "X-Api-Key": []
          }
        ]
      }
    }
  },
  "tags": [
    {
      "name": "Question Banks"
    }
  ],
  "servers": [
    {
      "url": "https://api.northpass.com"
    }
  ],
  "components": {
    "requestBodies": {
      "Body4": {
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "attributes": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "example": "Cooking Courses",
                          "description": "Data attributes name"
                        }
                      },
                      "required": [
                        "name"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "securitySchemes": {
      "X-Api-Key": {
        "type": "apiKey",
        "name": "X-Api-Key",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 94,
      "1": 131,
      "2": 105,
      "3": 179,
      "4": 156,
      "5": 162,
      "6": 182,
      "7": 0,
      "8": 57,
      "9": 227,
      "10": 168,
      "11": 70
    }
  }
}
```