# API call is not allowed(unsupported container)" in myAPI script

**URL:** <https://connective.celigo.com/t/api-call-is-not-allowed-unsupported-container-in-myapi-script/534>\
**Category:** Integrator.io\
**Tags:** graphql, http, myapi, error-handling\
**Created:** [February 16, 2023, 12:51pm UTC](https://connective.celigo.com/t/api-call-is-not-allowed-unsupported-container-in-myapi-script/534 "2023-02-16T12:51:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuriensing](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/nuriensing/32/6918_2.png) [@nuriensing](https://connective.celigo.com/u/nuriensing)\
**Post date:** [February 16, 2023, 12:51pm UTC](https://connective.celigo.com/t/api-call-is-not-allowed-unsupported-container-in-myapi-script/534/1 "2023-02-16T12:51:36Z")

</div>

I am encountering an issue with myAPI script where I am receiving the following response:

```
{ "statusCode": 400, "headers": {}, "body": "{\"message\":\"API call is not allowed(unsupported container).\"}"}
```

I am unsure about the meaning of the error message. Can anyone please explain it to me?

Here is the relevant code snippets. It is a POST or GET to a graphQL api:

```
main function snippet let productObj = exportObjDefinition_test(options,connection_id);try { invokeExportResponse = exports.runVirtual({export:productObj}); console.log(JSON.stringify(invokeExportResponse)); response.statusCode = 200; } catch(e) { console.log("be") invokeExportResponse = JSON.stringify(e); response.statusCode = 400; }
```

```
function exportObjDefinition_test(options,connectionId) { let orderId = options.orderId; let orderNumber = options.orderNumber; return { "_connectionId": "${connectionId}", "http": { //"method": "POST", "method": "GET", "body": `{"query":"query {\n languageList {\n totalCount\n edges {\n node\n }\n }\n}","variables":{}}`, "formType": "http", "response": { "resourcePath": "data" } }, "rawData": "removed", "adaptorType": "HTTPExport"}}
```

I also tried using formType: graph\_ql, which also did not work. And also used an existing flowstep export and getting the export definition object \> body via the Celigo REST (Postman), which gave me the same error.

Can anyone help me solve this issue? Thank you.

---

<div class="post-metadata">

**Author:** ![neelgupta](https://avatars.discourse-cdn.com/v4/letter/n/ac8455/32.png) [@neelgupta](https://connective.celigo.com/u/neelgupta)\
**Post date:** [February 17, 2023, 9:48am UTC](https://connective.celigo.com/t/api-call-is-not-allowed-unsupported-container-in-myapi-script/534/2 "2023-02-17T09:48:28Z")

</div>

Hi @nuriensing ,   
We have checked your request. If you make API request via Postman on "v1/:\_myApiId/request", it will not return any error. In case of preview on UI, you might receive this error. We have logged a bug for this issue, will fix it soon.  
  
Thank you
