diff --git a/docs/content/docs/resource_create.mdx b/docs/content/docs/resource_create.mdx new file mode 100644 index 0000000..2310e7b --- /dev/null +++ b/docs/content/docs/resource_create.mdx @@ -0,0 +1,20 @@ +--- +title: resource_create +full: true +_openapi: + method: POST + route: resource_create + toc: [] + structuredData: + headings: [] + contents: + - content: | + Appends a new resource to a datasets list of resources. +--- + +{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */} + +Appends a new resource to a datasets list of resources. + + + \ No newline at end of file diff --git a/docs/lib/openapi.yml b/docs/lib/openapi.yml index 8c10d8f..b927d4d 100644 --- a/docs/lib/openapi.yml +++ b/docs/lib/openapi.yml @@ -1622,4 +1622,50 @@ paths: additionalProperties: true owner_org: type: string - description: "the id of the dataset's owning organization, see `organization_list()` or `organization_list_for_user()` for available values. This parameter can be made optional if the config option [`ckan.auth.create_unowned_dataset`](https://docs.ckan.org/en/2.11/maintaining/configuration.html#ckan-auth-create-unowned-dataset) is set to `True`." \ No newline at end of file + description: "the id of the dataset's owning organization, see `organization_list()` or `organization_list_for_user()` for available values. This parameter can be made optional if the config option [`ckan.auth.create_unowned_dataset`](https://docs.ckan.org/en/2.11/maintaining/configuration.html#ckan-auth-create-unowned-dataset) is set to `True`." + resource_create: + post: + operationId: resource_create + summary: resource_create + description: | + Appends a new resource to a datasets list of resources. + requestBody: + required: false + content: + multipart/form-data: + schema: + type: object + properties: + package_id: + type: string + description: id of package that the resource should be added to + url: + type: string + description: url of resource + description: + type: string + format: + type: string + hash: + type: string + name: + type: string + resource_type: + type: string + mimetype: + type: string + mimetype_inner: + type: string + cache_url: + type: string + size: + type: integer + created: + type: string + last_modified: + type: string + cache_last_updated: + type: string + upload: + type: string + format: binary