Look up a dataset schema in API not working | Community
Skip to main content
Level 4
June 9, 2021
Solved

Look up a dataset schema in API not working

  • June 9, 2021
  • 1 reply
  • 1060 views

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 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Stewart_Schilling

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}'

 

1 reply

Stewart_Schilling
Community Advisor
Stewart_SchillingCommunity AdvisorAccepted solution
Community Advisor
June 30, 2021

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}'