Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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