ckanaction

organization_update

PUT
organization_update

Update an organization.

You must be authorized to edit the organization.

Update methods may delete parameters not explicitly provided in the data_dict. If you want to edit only a specific attribute use organization_patch instead.

Authorization

apiTokenHeader
headerAuthorization<token>

CKAN API token

Request Body

application/json
  1. body
id?string

the name or id of the organization to update

name?string

the name of the organization, a string between 2 and 100 characters long, containing only lowercase alphanumeric characters, -, and _

title?string

the title of the organization

description?string

the description of the organization

image_url?string

the URL to an image to be displayed on the organization's page

state?string

the 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?string
extras?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<>

ignored. use package_owner_org_update() to change package ownership

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)

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