{
  "openapi" : "3.0.1",
  "info" : {
    "contact" : {
      "name" : "Rijkswaterstaat DSO - Team Knooppunt",
      "url" : "https://developer.omgevingswet.overheid.nl/services/contact/"
    },
    "description" : "API voor het uploaden van de CPA voor de ebMS-digikoppelingen naar het Digitaal Stelsel Omgevingswet.",
    "license" : {
      "name" : "Copyright",
      "url" : "https://developer.omgevingswet.overheid.nl/site/copyright/"
    },
    "termsOfService" : "https://developer.omgevingswet.overheid.nl/services/fair-use-policy/",
    "title" : "Knooppunt-Aanbieden-CPA",
    "version" : "1.0.0"
  },
  "externalDocs" : {
    "description" : "Api-register",
    "url" : "https://developer.omgevingswet.overheid.nl/api-register/api/cpa-aanbieden/"
  },
  "servers" : [ {
    "url" : "https://pkio.service.omgevingswet.overheid.nl/overheid/knooppunt/api/aanbieden-cpa/v1/",
    "description" : "Productieomgeving"
  }, {
    "url" : "https://pkio.service.pre.omgevingswet.overheid.nl/overheid/knooppunt/api/aanbieden-cpa/v1/",
    "description" : "Pre-productieomgeving"
  } ],
  "tags" : [ {
    "description" : "API voor het aanbieden van CPA's",
    "name" : "AanbiedenCPA"
  } ],
  "paths" : {
    "/" : {
      "post" : {
        "description" : "Aanbieden van een CPA met valideren en opladen.",
        "operationId" : "aanbiedenCPA",
        "requestBody" : {
          "content" : {
            "application/xml" : {
              "schema" : {
                "type" : "string",
                "description" : "CPA-inhoud"
              }
            },
            "text/xml" : {
              "schema" : {
                "type" : "string",
                "description" : "CPA-inhoud"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "content" : {
              "application/hal+json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CPARespons"
                }
              },
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CPARespons"
                }
              }
            },
            "description" : "CPA is succesvol aangeboden."
          },
          "401" : {
            "content" : {
              "application/hal+json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Model401"
                }
              },
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Model401"
                }
              }
            },
            "description" : "CPA is ongeldig."
          },
          "500" : {
            "content" : {
              "application/hal+json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/AlgemeneFout"
                }
              },
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/AlgemeneFout"
                }
              }
            },
            "description" : "Technische fout opgetreden."
          }
        },
        "summary" : "Aanbieden CPA",
        "tags" : [ "AanbiedenCPA" ],
        "x-auth-type" : "Application & Application User",
        "x-throttling-tier" : "Unlimited"
      }
    },
    "/openapi.json" : {
      "get" : {
        "description" : "OpenAPI Specification van Aanbieden CPA.",
        "operationId" : "oasAanbiedenCPA",
        "responses" : {
          "200" : {
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object"
                }
              }
            },
            "description" : "De OpenAPI Specification van Aanbieden CPA."
          }
        },
        "summary" : "OAS Aanbieden CPA",
        "tags" : [ "AanbiedenCPA" ],
        "x-auth-type" : "None",
        "x-throttling-tier" : "Unlimited"
      }
    }
  },
  "components" : {
    "schemas" : {
      "AlgemeneFout" : {
        "type" : "object",
        "properties" : {
          "detail" : {
            "type" : "string"
          },
          "instance" : {
            "type" : "string"
          },
          "status" : {
            "type" : "integer",
            "format" : "int64"
          },
          "title" : {
            "type" : "string"
          },
          "type" : {
            "type" : "string"
          }
        },
        "required" : [ "status", "title", "type" ]
      },
      "CPARespons" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "detail" : {
            "type" : "string"
          },
          "melding" : {
            "type" : "string"
          }
        }
      },
      "Model401" : {
        "type" : "object",
        "properties" : {
          "detail" : {
            "type" : "string",
            "example" : "Geen mandaat gevonden."
          },
          "instance" : {
            "type" : "string",
            "example" : "1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d"
          },
          "status" : {
            "type" : "integer",
            "format" : "int32",
            "example" : 401
          },
          "title" : {
            "type" : "string",
            "example" : "Authenticatiegegevens ontbreken of zijn onjuist."
          },
          "type" : {
            "type" : "string",
            "example" : "https://content.omgevingswet.overheid.nl/fout/id/concept/Ongeautoriseerd"
          }
        }
      }
    }
  }
}