Resources

Create a resource

Changed on

Create a resource.

post/resources/

Request

Request body application/x-www-form-urlencoded

resource_category_idinteger required
titlestring required
tag_linestring required
descriptionstring required
resource_typestring required

Type of resource: download_local, download_external, external_purchase, fileless

prefix_idinteger
version_stringstring
custom_fields[<name>]string
tagsstring[]
external_urlstring
alt_support_urlstring
description_attachment_keystring

API attachment key for description images

version_attachment_keystring

API attachment key for version file. Required for download_local type.

external_download_urlstring

External download URL. Required for download_external type.

currencystring

Currency code. Required for external_purchase type.

external_purchase_urlstring

Purchase URL. Required for external_purchase type.

Response

OK

successboolean

Changes

    • breaking

      request body became required

    • breaking

      removed the media type application/json from the request body

    • breaking

      the response's property type changed from string to boolean for status

    • warning

      removed the request property

    • info

      api operation id post_resources_ removed and replaced with postResources

    • info

      the endpoint scheme security XF-Api-Key was added to the API

    • info

      the endpoint scheme security XF-OAuth2 was added to the API

    • info

      added the new optional header request parameter XF-Api-User to all path's operations

    • info

      added the new optional query request parameter api_bypass_permissions to all path's operations

    • info

      api tag Resources added

    • info

      api tag resources removed

    • info

      added optional request body

    • info

      added the media type application/json for the response with the status