Web Service Method: Create a New Corpus

Description

Creates a new corpus.

URL: /PoolParty/api/corpusmanagement/{project}/create

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

corpusTitle

The name of the corpus to be created.

String

true

language

The language of the new corpus

String

true

repositoryUri

The URI of a repository where the corpus should be stored. Possible values are:

For a remote repository this parameter coincides with this repository's IRI.

IRI

true

Response

http status code 200if OK + JSON formatted response

Attribute

Type

Comment

corpusName

String

Corpus name

corpusId

URI

Generated corpus ID

language

String

Language of corpus

Example

Screenshot of an example call, done with Postman:

23901187.png