Not able to submit measurements on sandbox

52 views
Skip to first unread message

Brijesh Shah

unread,
Jan 23, 2020, 5:17:25 AM1/23/20
to Developer Group for QPP APIs
Hi

I try to submit measurements on sandbox (preview.qpp.cms.gov) via "/submission` API but I am getting following error. I am using development auth key for submission. Same key is working fine for Score preview API

{
 
"error": {
   
"type": "UnauthorizedError",
   
"message": "Current user cannot create this object"
 
}
}


abhijeet mahajan

unread,
Jan 23, 2020, 9:36:00 AM1/23/20
to Developer Group for QPP APIs
Hi Brijesh,

I don't represent CMS\QPP. But have been using these APIs for last two years and we are not supposed to use the '/submission' API for creating measurements.
/measurement-sets is the correct API.

Thanks,
Abhijeet

Michelle Ingle

unread,
Jan 23, 2020, 10:27:41 AM1/23/20
to Developer Group for QPP APIs
Correct!  Registry tokens do not have authorization to the POST /submissions endpoint.  This is because the entity you are serving receives measurementSets posted automatically from other CMS internal systems and POST /submissions could overwrite those and negatively affect your client.  Only Individuals or Groups can use that endpoint.  We are working to update the swaggar docs with a note to remind Registry users of this.

If you are a Registry the best endpoint to use is POST /measurementSets.  When you POST the first Measurement Set for an entity it will also create the SubmissionsID for the entity you are posting for.  Additionally you could use POST /measures.

Hope that helps!
Michelle
Reply all
Reply to author
Forward
0 new messages