School Plans API

returns errors when failed

PUT /api/v1/school_plans/retention

Request

Headers

Accept: application/json
X-Api-Token: Nchio8hVwcVrfEczCx34jADb8G6zzEypsQ
X-Api-Email: user-160@example.com

Route

PUT /api/v1/school_plans/retention

Body

{}

cURL

curl "http://localhost:3000/api/v1/school_plans/retention" -d '{}' -X PUT \
	-H "Accept: application/json" \
	-H "X-Api-Token: Nchio8hVwcVrfEczCx34jADb8G6zzEypsQ" \
	-H "X-Api-Email: user-160@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 79

Status

422 Unprocessable Entity

Body

{
  "errors": [
    {
      "text": "9a904291-3525-4b40-93a3-d5f9d80048db",
      "severity": "error"
    }
  ]
}