Skip to main content

Web Service Method: Remove a Custom Attribute from a Resource

Abstract

Web Service Method: Remove a Custom Attribute from a Resource

Description

Removes a custom attribute from a resource.

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

Note

Please take care that the target resource has an appropriate custom type for the respective attribute.

This is the opposite method of: Web Service Method: Add Custom Attribute

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

resource

The resource the attribute value should be removed from

String

true

property

URI of the attribute property

String

true

value

The literal value that should be removed

String

true

language

The literal language (only relevant when removing labels)

String

false

Response

http status code: 200if OK.

Note

The service checks if the operation is compatible with the defined custom types. For example you can not remove a property from a resource that has no defined type. In such cases an http status code 400 is returned, together with a message about the causes for the bad request error.

Example

POST Request

http://<server-url>/PoolParty/api/thesaurus/APItests/removeCustomLiteral?resource=http://test.info/glossary/2614&property=http://vocabulary.poolparty.biz/PoolParty/schema/Test/code&value=4711