Description |
---|
Use this API call to update an existing attribute property of a resource. |
URL: /PoolParty/api/editor/{project}/updateAttribute
Supported Methods |
---|
POST |
application/json
Parameter | Comment | Type | Required |
---|---|---|---|
editor | The editor's URI. | IRI JSON representation of an IRI object. | true |
Attribute | Type | Comment |
---|---|---|
| String | The string value of the URI. URIs must contain a colon ':' and must not contain any whitespaces. |
{
"uri" : "https://semantic-web.com/api/uri#5233"
}
Attribute | Type | Comment |
---|---|---|
context | String | URI of the mutable graph in which the source exist |
oldValue | CustomValue | Existing value |
predicate | String | URI of attribute property |
subject | String | URI of source |
type | String | The data type of the value that should be added. LITERAL, BOOLEAN, DATE, URI, INTEGER, LONG, FLOAT, DATETIME |
value | CustomValue | Attribute value that should be added |
{
"predicate" : "some predicate",
"subject" : "https://semantic-web.com/api/subject#7969",
"context" : "some context",
"oldValue" : {
"language" : "it",
"label" : "some label"
},
"type" : "https://semantic-web.com/api/type#32662",
"value" : {
"language" : "it",
"label" : "some label"
}
text/plain
Status: 200- OK