POST resource/massive-complex-ontology-resource-creation

Massive creation of a list of resources based on a complex ontology

Request Information

Headers

HTTP_AUTHORIZATION: Required. OAuth 1.0 parameters with the OAuth signature of the url you are going to request. The consumer keys and access token can be obtained from the community administration.

Sample:
        HTTP_AUTHORIZATION:
            OAuth oauth_token="CObXqjfOisVh9%2F2GjC7NNd8BCzY%3D",
            oauth_consumer_key="clGACsiGaMp%2FD%2BUwkSvRBxA1k50%3D",
            oauth_nonce="VqKza6d5x1HpPQWFe08spbdOnkTQpfaLfD9Oeuyg",
            oauth_signature_method="HMAC-SHA1",
            oauth_timestamp="1462882011",
            oauth_signature="RH5aKKKJaEvK5cIsZZzXtFh7cCk%3D"
    

Body Parameters

NameDescriptionTypeAdditional information
resources

Collection of LoadResourceParams

Optional

load_id

globally unique identifier

Optional

Request Formats

application/json, text/json

Sample:
{
  "resources": [
    {
      "community_short_name": "sample string 1",
      "resource_id": "e30c079b-9b7a-465e-b412-e3589e9a6b5d",
      "title": "sample string 3",
      "description": "sample string 4",
      "tags": [
        "sample string 1",
        "sample string 2"
      ],
      "categories": [
        "274ebc12-8a32-4e3f-a4b7-9734ed9f115d",
        "bb55f6ee-7f8d-4925-8eb2-5457499e69ce"
      ],
      "resource_type": 5,
      "resource_url": "sample string 6",
      "resource_file": "QEA=",
      "resource_attached_files": [
        {
          "file_rdf_property": "sample string 1",
          "file_property_type": 2,
          "rdf_attached_file": "QEA=",
          "delete_file": true
        },
        {
          "file_rdf_property": "sample string 1",
          "file_property_type": 2,
          "rdf_attached_file": "QEA=",
          "delete_file": true
        }
      ],
      "creator_is_author": true,
      "authors": "sample string 8",
      "auto_tags_title_text": "sample string 9",
      "auto_tags_description_text": "sample string 10",
      "create_screenshot": true,
      "url_screenshot": "sample string 12",
      "predicate_screenshot": "sample string 13",
      "screenshot_sizes": [
        1,
        2
      ],
      "priority": 14,
      "visibility": 15,
      "readers_list": [
        {
          "user_id": "da8638d8-8fe8-496c-a0e6-2fdd66f37ccf",
          "user_short_name": "sample string 2",
          "group_short_name": "sample string 3",
          "organization_short_name": "sample string 4"
        },
        {
          "user_id": "da8638d8-8fe8-496c-a0e6-2fdd66f37ccf",
          "user_short_name": "sample string 2",
          "group_short_name": "sample string 3",
          "organization_short_name": "sample string 4"
        }
      ],
      "editors_list": [
        {
          "user_id": "da8638d8-8fe8-496c-a0e6-2fdd66f37ccf",
          "user_short_name": "sample string 2",
          "group_short_name": "sample string 3",
          "organization_short_name": "sample string 4"
        },
        {
          "user_id": "da8638d8-8fe8-496c-a0e6-2fdd66f37ccf",
          "user_short_name": "sample string 2",
          "group_short_name": "sample string 3",
          "organization_short_name": "sample string 4"
        }
      ],
      "creation_date": "2025-05-09T18:13:12.7371109+02:00",
      "publisher_email": "sample string 16",
      "publish_home": true,
      "load_id": "sample string 18",
      "main_image": "sample string 19",
      "end_of_load": true,
      "create_version": true,
      "canonical_url": "sample string 22",
      "aumented_reading": {
        "title": "sample string 1",
        "description": "sample string 2"
      }
    },
    {
      "community_short_name": "sample string 1",
      "resource_id": "e30c079b-9b7a-465e-b412-e3589e9a6b5d",
      "title": "sample string 3",
      "description": "sample string 4",
      "tags": [
        "sample string 1",
        "sample string 2"
      ],
      "categories": [
        "274ebc12-8a32-4e3f-a4b7-9734ed9f115d",
        "bb55f6ee-7f8d-4925-8eb2-5457499e69ce"
      ],
      "resource_type": 5,
      "resource_url": "sample string 6",
      "resource_file": "QEA=",
      "resource_attached_files": [
        {
          "file_rdf_property": "sample string 1",
          "file_property_type": 2,
          "rdf_attached_file": "QEA=",
          "delete_file": true
        },
        {
          "file_rdf_property": "sample string 1",
          "file_property_type": 2,
          "rdf_attached_file": "QEA=",
          "delete_file": true
        }
      ],
      "creator_is_author": true,
      "authors": "sample string 8",
      "auto_tags_title_text": "sample string 9",
      "auto_tags_description_text": "sample string 10",
      "create_screenshot": true,
      "url_screenshot": "sample string 12",
      "predicate_screenshot": "sample string 13",
      "screenshot_sizes": [
        1,
        2
      ],
      "priority": 14,
      "visibility": 15,
      "readers_list": [
        {
          "user_id": "da8638d8-8fe8-496c-a0e6-2fdd66f37ccf",
          "user_short_name": "sample string 2",
          "group_short_name": "sample string 3",
          "organization_short_name": "sample string 4"
        },
        {
          "user_id": "da8638d8-8fe8-496c-a0e6-2fdd66f37ccf",
          "user_short_name": "sample string 2",
          "group_short_name": "sample string 3",
          "organization_short_name": "sample string 4"
        }
      ],
      "editors_list": [
        {
          "user_id": "da8638d8-8fe8-496c-a0e6-2fdd66f37ccf",
          "user_short_name": "sample string 2",
          "group_short_name": "sample string 3",
          "organization_short_name": "sample string 4"
        },
        {
          "user_id": "da8638d8-8fe8-496c-a0e6-2fdd66f37ccf",
          "user_short_name": "sample string 2",
          "group_short_name": "sample string 3",
          "organization_short_name": "sample string 4"
        }
      ],
      "creation_date": "2025-05-09T18:13:12.7371109+02:00",
      "publisher_email": "sample string 16",
      "publish_home": true,
      "load_id": "sample string 18",
      "main_image": "sample string 19",
      "end_of_load": true,
      "create_version": true,
      "canonical_url": "sample string 22",
      "aumented_reading": {
        "title": "sample string 1",
        "description": "sample string 2"
      }
    }
  ],
  "load_id": "20130a18-7907-4c79-b09e-9218bff47a4e"
}

Response Information

Response HTTP status code

On success, the response contains 200 code.

On fail, throws a WebException with code:

  • 401 Unauthorized if the OAuth signature is invalid
  • 400 Bad Request if the params are invalid
  • 500 Internal server error if something goes wrong...