Expand my Community achievements bar.

SOLVED

Look up a dataset schema in API not working

Avatar

Level 4

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 Accepted Solution

Avatar

Correct answer by
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}'

 

View solution in original post

1 Reply

Avatar

Correct answer by
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}'