KLIP - Kabel en leiding informatie portaal

A response example to a request with errors

In this example POST MapRequest was done with a wrong URI for delivery role and for excavation method:

                        {
	"ValidationErrors":
	[
		{
			"ValidationError":"https://beta.klip.vlaanderen.be/api/cl/klip/v2/maprequesterror/deliveryroleinvalid",
			"ErrorMessages":
			[
				{
					"Language":"nl",
					"Text":"Ongeldige rol van de bestemmeling"
				},
			]
		},
		{
			"ValidationError":"https://beta.klip.vlaanderen.be/api/cl/klip/v2/maprequesterror/excavationmethodinvalid",
			"ErrorMessages":
			[
				{
					"Language":"nl",
					"Text":"Ongeldige uitvoeringsmethode"
				}
			]
		}
	],
	"ValidationWarnings":
	[
		{
			"ValidationWarning": "https://beta.klip.vlaanderen.be/api/cl/klip/v2/maprequesterror/zoneonlypartiallywithinflanders",
			"WarningMessages":
			[
				{
					"Language": "nl",
					"Text": "Planaanvraagzone slechts deels in Vlaanderen"
				},
			]
		}
	]
}

                      

XML example

                        <InvalidRequestResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://api.agiv.be/ws/klip/v1">
	<ValidationErrors>
		<ValidationError id="https://beta.klip.vlaanderen.be/api/cl/klip/v2/maprequesterror/deliveryroleinvalid">
			<ErrorMessage language="nl">Ongeldige rol van de bestemmeling</ErrorMessage>
		</ValidationError>
		<ValidationError id="https://beta.klip.vlaanderen.be/api/cl/klip/v2/maprequesterror/excavationmethodinvalid">
			<ErrorMessage language="nl">Ongeldige uitvoeringsmethode</ErrorMessage>
		</ValidationError>
	</ValidationErrors>
	<ValidationWarnings>
		<ValidationWarning id="https://beta.klip.vlaanderen.be/api/cl/klip/v2/maprequesterror/zoneonlypartiallywithinflanders">
			<WarningMessage language="nl">Planaanvraagzone slechts deels in Vlaanderen</WarningMessage>
		</ValidationWarning>
	</ValidationWarnings>
</InvalidRequestResponse>