Create/Update Tokens via REST API

Level 1

Create/Update Tokens via REST API

Hi I am trying to create/update tokens in a folder using this reference

I have made a post request in python as per the url{folder id}/tokens.json?access_token={token}

with the header as content type application/x-www-form-urlencoded and data passed as per instructed, however I get an error code 600 access token not specified. 

I use the same format for the bulk activity download with no problems

Is there a different way to provide the access token for this type of request?


Tags (1)
Level 10 - Community Moderator

Re: Create/Update Tokens via REST API

Use the Authorization header:

Authorization: Bearer {{access_token}}

In theory the query param should be supported as an alternate, but I've never found a need for it.

Level 10

Re: Create/Update Tokens via REST API

Also, you could consider using, which abstracts away a lot of the API details.