Skip to main content

Web Service Method: Add a Custom Relation to a Resource

Abstract

Web Service Method: Add a Custom Relation to a Resource

Description

Adds a custom relation to a resource.

URL: /PoolParty/api/thesaurus/{project}/addCustomRelation

Note

Please take care that source and target resource have appropriate custom types with support of the respective relation.

This service is the programmatic approach to the frontend based functionality, described here: Insert Custom Relations and Attributes

Request

Supported Methods

POST

Content-Type

application/x-www-form-urlencoded

Path Variables

Variable

Comment

{project}

The UUID or the URI supplement (textual identifier) of the project to be used.

HTTP Parameters

Parameter

Comment

Type

Required

source

URI of the source resource

String

true

target

URI of the target resource

String

true

property

URI of the custom relation property

String

true

Response

http status code: 200if OK.

Example

POST Request

http://<server-url>/PoolParty/api/thesaurus/APItests/addCustomRelation?source=http://test.info/glossary/2614&target=http://test.info/glossary/2615&property=http://vocabulary.poolparty.biz/PoolParty/schema/Test/relation