organization_create
Create a new organization.
You must be authorized to create organizations.
Plugins may change the parameters of this function depending on the value of the type parameter, see the IGroupForm plugin interface.
apiTokenHeaderAuthorization<token>CKAN API token
application/json- body
name?stringthe name of the organization, a string between 2 and 100 characters long, containing only lowercase alphanumeric characters, -, and _
id?stringthe id of the organization
title?stringthe title of the organization
description?stringthe description of the organization
image_url?stringthe URL to an image to be displayed on the organization's page
state?stringthe current state of the organization, e.g. 'active' or 'deleted', only active organization show up in search results and other lists of organization, this parameter will be ignored if you are not authorized to change the state of the organization (default: 'active')
approval_status?stringextras?array<>the organization's extras, extras are arbitrary (key: value) metadata items that can be added to organization, each extra dictionary should have keys 'key' (a string), 'value' (a string), and optionally 'deleted'
packages?array<>the datasets (packages) that belong to the organization, a list of dictionaries each with keys 'name' (string, the id or name of the dataset) and optionally 'title' (string, the title of the dataset)
users?array<>the users that belong to the organization, a list of dictionaries each with key 'name' (string, the id or name of the user) and optionally 'capacity' (string, the capacity in which the user is a member of the organization)
curl -X POST 'http://localhost:5000/api/3/action/organization_create' \ -H 'Content-Type: application/json' \ -d '{}'