Help

Re: The example from Airtable's own API reference is not working

1464 0
cancel
Showing results for 
Search instead for 
Did you mean: 
stevenzhengqqnn
4 - Data Explorer
4 - Data Explorer

I tried to use the API to create a new base. I copied and pasted the example from the official API reference, and the only changes I made is 1) used my own access token; 2) used the correct workspaceID. And the example returns

{"error": {

    "type":"INVALID_REQUEST_UNKNOWN",

    "message":"Invalid request: parameter validation failed. Check your request data."

    }

}

 

Not sure how this API could work if the example given by the official reference is not working.

2 Replies 2
goksan
6 - Interface Innovator
6 - Interface Innovator

Hi @stevenzhengqqnn 👋

The example works for me using a PAT with the schema.bases:write scope and access granted to the targetted workspace.

Hi @goksan 

Thanks for the reply.

I also used a PAT with the schema.bases:write scope and access granted to all current & future workspaces, but the example just doesn't work for me.

What I did:

  1. create a shell script called "haha.sh"
  2. put the example curl request from the API reference
  3. add my PAT and workspaceID
  4. run "bash haha.sh"

Not sure what the difference is that causes the issue.