POST resource/modify-basic-ontology-resource
Modifies a basic ontology resource
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
Name | Description | Type | Additional information |
---|---|---|---|
community_short_name |
Community short name |
string |
Required |
resource_id |
Resource identificator |
globally unique identifier |
Required |
title |
Resource title |
string |
Required |
description |
Resource description |
string |
Required |
tags |
Resource tags |
Collection of string |
Required |
categories |
Resource categories |
Collection of globally unique identifier |
Optional |
resource_type |
Resource type |
integer |
Required |
resource_url |
Resource url |
string |
Optional |
resource_file |
Resource attached file |
Collection of byte |
Optional |
resource_attached_files |
Resource attached files |
Collection of AttachedResource |
Optional |
creator_is_author |
True if the resource creator is the author |
boolean |
Required |
authors |
Resource authors (comma separated) |
string |
Optional |
auto_tags_title_text |
Tags auto extracted of title |
string |
Optional |
auto_tags_description_text |
Tags auto extracted of description |
string |
Optional |
create_screenshot |
True if a screenshot of the resource must be generated |
boolean |
Optional |
url_screenshot |
Url to make a screenshot |
string |
Optional |
predicate_screenshot |
Screenshot predicate |
string |
Optional |
screenshot_sizes |
Screenshot posible sizes |
Collection of integer |
Optional |
priority |
Priority of the upload |
integer |
Optional |
visibility |
Resource visibility enumeration |
integer |
Optional |
readers_list |
Resource readers list |
Collection of ReaderEditor |
Optional |
editors_list |
Resource editors list |
Collection of ReaderEditor |
Optional |
creation_date |
Resource creation date |
date |
Optional |
publisher_email |
Resource publisher email |
string |
Required |
publish_home |
True if the resource must be published in the home of the community |
boolean |
Optional |
load_id |
Load identificator |
string |
Required |
main_image |
Path of the resource main image |
string |
Optional |
end_of_load |
True if it's the end of the load and must delete the cache |
boolean |
Optional |
create_version |
True if the resource must be versioned |
boolean |
Optional |
canonical_url |
Resource canonical URL |
string |
Optional |
aumented_reading |
aumented reading |
AumentedReading |
Optional |
Request Formats
application/json, text/json
{ "community_short_name": "developers", "resource_id": "abc4a08a-6a33-40fe-be0e-edadfd27e123", "title": "Why develop with Gnoss framework?", "description": "GNOSS is a robust, reliable and semantic development environment, which allows you deploying and managing your own knowledge graphs.", "tags": [ "Gnoss", "framework", "develope", "semantic", "reliable", "knowledge", "graphs" ], "categories": [ "d1cc64aa-7bc7-4a4b-9c51-1db91c6a17f2" ], "resource_type": 0, "resource_url": "http://gnoss.com/Ontologia/Application.owl", "resource_file": "AQI=", "creator_is_author": true, "authors": "Andrew Milton,Kevin Smith", "auto_tags_title_text": "GNOSS is a robust, reliable and semantic development environment", "auto_tags_description_text": "", "create_screenshot": false, "url_screenshot": "", "predicate_screenshot": "", "priority": 0, "visibility": 0, "editors_list": [ { "user_id": "00000000-0000-0000-0000-000000000000", "user_short_name": "john-vander-var" }, { "user_id": "00000000-0000-0000-0000-000000000000", "group_short_name": "administrators" }, { "user_id": "00000000-0000-0000-0000-000000000000", "group_short_name": "developers", "organization_short_name": "gnossteam" } ], "creation_date": "2015-05-12T00:00:00", "publisher_email": "johnvandervar@organization.com", "publish_home": true, "load_id": "137BB795-454B-4BA9-9160-2AD9D10A1D7F", "end_of_load": true, "create_version": false }
Response Information
Resource Description
Description | Type |
---|---|
resource identifier guid |
Boolean |
Response Formats
application/json, text/json
true
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...