Discussions

Ask a Question
Back to All

why can't I post a license_number in /licenses?

(edited)

The following curl script generates a 500 error:

curl --request POST
--url https://api.medallion.co/api/v1/org/licenses/
--header 'accept: application/json'
--header 'content-type: application/json'
--header 'x-api-key: X-API-KEY'
--data '
{
"state": "AK",
"provider": "ba43de89-94ad-435c-ab3c-f8db11d2a5a4",
"status": "active",
"expiration_date": "2025-01-01",
"certificate_type": "MD",
"registration": "dea",
"license_number": "MA72808"
}

However, if I leave out the license number, it works.