ckanaction

api_token_create

POST
api_token_create

Create new API Token for current user.

Apart from the user and name field that are required by default implementation, there may be additional fields registered by extensions.

Authorization

apiTokenHeader
headerAuthorization<token>

CKAN API token

Request Body

application/json
  1. body
user?string

name or id of the user who owns new API Token

name?string

distinctive name for API Token

Example Request
curl -X POST 'http://localhost:5000/api/3/action/api_token_create' \  -H 'Content-Type: application/json' \  -d '{}'