Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Look up a dataset schema in API not working

navink386520
Level 2
Level 2

I am trying to access Look up dataset api using following url in postman

https://platform.adobe.io/data/foundation/schemaregistry/tenant/schemas/_<tenantID>/schemas/<altid>, and getting an error

 

{
    "timestamp""2021-06-09T19:08:25.379+00:00",
    "status"404,
    "error""Not Found",
    "message""",
    "path""/tenant/schemas/_<tenantID>/schemas/<altId>"
}
 
I am not sure if am making mistake on altid. Additional information - I am getting getting altid from https://platform.adobe.io/data/foundation/schemaregistry/stats 
1 Reply
Stewart_Schilling
Community Advisor
Community Advisor

It appears that you are using slashes instead of dots within the altId.  

This is from the docs:

curl -X GET \
  https://platform.adobe.io/data/foundation/schemaregistry/tenant/schemas/_{TENANT_ID}.schemas.533ca5da28087c44344810891b0f03d9 \
  -H 'Accept: application/vnd.adobe.xed-full+json; version=1' \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {IMS_ORG}' \
  -H 'x-sandbox-name: {SANDBOX_NAME}'