I haven't been able to get the following API call to work in Matillion:

curl code:

curl --location --request POST 'https://api.monday.com/v2' \

--header 'Authorization: auhorization_key

 

it works in Postman fine.

 

.rsd file I generated:

<api:script xmlns:api="http://apiscript.com/ns?v1" xmlns:xs="http://www.w3.org/2001/XMLSchema">

 

 <!-- See Column Definitions to specify column behavior and use XPaths to extract column values from JSON. -->

 <api:info title="VOC3" desc="Generated schema file." xmlns:other="http://apiscript.com/ns?v1">

  <!-- You can modify the name, type, and column size here. -->

  <!-- You can modify the name, type, and column size here. -->

  <attr name="id"      xs:type="string" readonly="false"   other:xPath="/json/data/boards/items/id"      />

  <attr name="field"     xs:type="integer" readonly="false"   other:xPath="/json/data/boards/items/id/colmun_values/id"    />

  <attr name="field_value" xs:type="integer" readonly="false"   other:xPath="/json/data/boards/items/id/colmun_values/value"    />

 </api:info>

 

 <api:set attr="DataModel" value="DOCUMENT" />

 <api:set attr="uri" value="https://api.monday.com/v2" />

 

 <api:set attr="JSONPath" value="/data/boards/items" />

 

 <!-- The GET method corresponds to SELECT. Here you can override the default processing of the SELECT statement. The results of processing are pushed to the schema's output. See SELECT Execution for more information. -->

 <api:script method="GET">

  <api:set attr="method" value="POST"/> <!-- HTTP request type -->

  <api:set attr="data">

{"query":"query { boards(ids:3381227481){ name items { id column_values { id value } } } }"}

  </api:set>

  <api:set attr="ContentType" value="application/json" />

  <api:call op="jsonproviderGet">

   <api:push/>

  </api:call>

 </api:script>

</api:script>

Hi Ben,

 

Hope you have resolved this already, but if you haven't, do give this a try:

  • In your API Query component that runs the Query Profile, under Connection Options, try add 'CustomHeaders' under Parameter
  • Then add value 'Authorization: Bearer xxxxx' where xxxx is your auhorization_key
  • Example:
  • I used a variable instead of actual value - the variable value is refreshed by another job

 

Hope this helps.

 

Cheers

Winston