Skip to main content

Create Configuration

Parameters

Name

In

Type

Required

Description

configuration

body

(raw)

object

false

An object with settings and metadata of the new configuration.

Configuration

Mandatory parameters:

  • title

  • searchSpace

Note

application/json is a mandatory content type for operations with a request body.

Example cURL Request
curl 'https://adf-dev.semantic-web.at/ADF/api/configurations/' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJ3U2ZNbmY1Wm9leEFhc2NiSnNtZ2tlNktHRnc2NG1laWY0MzJwNHBXX2RrIn0.eyJleHAiOjE3MDk3MzM1MTksImlhdCI6MTcwOTczMzIxOSwianRpIjoiMzcwYjFhY2MtOWUxOS00NzE0LTg5MzgtOTg4NGM5YzYxM2JkIiwiaXNzIjoiaHR0cHM6Ly9sb2dpbi1pbnRlcm5hbC1ldS5wb29scGFydHkuYml6L2F1dGgvcmVhbG1zL3ZvY2FidWxhcnkuc2VtYW50aWMtd2ViLmF0IiwiYXVkIjoiYWNjb3VudCIsInN1YiI6IjQwNjk1MTk2LTQyZGYtNGIzOS05NGEyLTQ1MzgzOGM3YzEzMSIsInR5cCI6IkJlYXJlciIsImF6cCI6InBwdCIsInNlc3Npb25fc3RhdGUiOiIzODA1M2YzYS1lZTA5LTRhOGEtYjdkNi0zZDI2MzI2NjY0YWEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiKiJdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsib2ZmbGluZV9hY2Nlc3MiLCJQb29sUGFydHlTdXBlckFkbWluIiwibG9jYWwtdXNlciIsInVtYV9hdXRob3JpemF0aW9uIiwiZGVmYXVsdC1yb2xlcy12b2NhYnVsYXJ5LnNlbWFudGljLXdlYi5hdCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJzaWQiOiIzODA1M2YzYS1lZTA5LTRhOGEtYjdkNi0zZDI2MzI2NjY0YWEiLCJpcmkiOiJodHRwOi8vcmVzb3VyY2Uuc2VtYW50aWMtd2ViLmF0L3VzZXIvbGFrb21jaWtvdmFyIiwiZW1haWxfdmVyaWZpZWQiOnRydWUsInVpTGFuZ3VhZ2UiOiJlbiIsImRpc3BsYXlMYW5ndWFnZXMiOlsiIl0sInNrb3NWaWV3IjoiQkFTSUNTS09TVklFVyIsIm5hbWUiOiJSb21hbmEgTGFrb21jaWtvdmEiLCJncm91cHMiOlsiL0NvY2t0YWlscyIsIi9QdWJsaWMiLCIvU1dDIl0sInRpbWVab25lIjoiRXVyb3BlL1ZpZW5uYSIsInByZWZlcnJlZF91c2VybmFtZSI6Imxha29tY2lrb3ZhciIsImdpdmVuX25hbWUiOiJSb21hbmEiLCJhY0xhbmd1YWdlIjoiZW4iLCJmYW1pbHlfbmFtZSI6Ikxha29tY2lrb3ZhIn0.ZMbxrFVL426M8zAXKf6iGnpZLuisTFO7gQeifejy2aldfFjWCDpdlDL1QfwMve1-AI6mRe6C4KJoRUrguxIYDOdBk5fzqyRgBXSPeSPWXv7wUGvtXTyn2BXYuClXhQO8bFeAkx235Umo9nhrAuxf2pyRqLeTxeSuEcfUh6hGXhXJHFUhhihHYNoYrcgGJ2UkVU9Zwq4oDK5m-7KZoOAwFdaM4Ri5B3tMTgym72Y-aNTZVLzLbFKfcSj3pepWr8URYoJT-x5BKD_wpXS7g3AHPtf9I0l0N-8RXLHn9w5xWVHn4G0P0BDjXXtJb1s6ifpUKR7bfJsXhfeYxnWavMvHUA' \
--data '{
  "config": {...
  },
  "created": "2023-08-04T08:09:42.889Z",
  "id": 1,
  "user": "ppil"
}'
Example Body
{
    "id": 55,
    "user": "ppil",
    "created": "2023-12-10T15:09:30.363Z",
    "config": {
        "title": "Cocktails",
        "searchSpace": "f8c3c4f8-c14c-48c7-af5a-ab5f63b3ae93",
        "visible": true,
        "result": {
            "itemsPerPage": 10,
            "showResultCount": true,
            "summaryLength": 200,
            "showTags": true,
            "numberOfTags": 10,
            "titleAction": "detail_view",
            "dateFormat": "medium",
            "showSimilarDocuments": true,
            "numberOfSimilarDocuments": 5,
            "showDynamicSentiment": false,
            "showResultAsImage": false
        },
        "filter": {
            "facetsToShow": [],
            "hideEmptyFacets": true,
            "componentOrder": []
        },
        "layout": {
            "basicActionColor": {
                "backgroundColor": "#1565c0",
                "fontColor": "#ffffff"
            },
            "focusActionColor": {
                "backgroundColor": "#f07d2e",
                "fontColor": "#ffffff"
            },
            "criticalActionColor": {
                "backgroundColor": "#ff0000",
                "fontColor": "#ffffff"
            },
            "navbar": {
                "backgroundColor": "#00adee",
                "fontColor": "#ffffff"
            },
            "facets": {
                "backgroundColor": "#fff",
                "fontColor": "#212121"
            },
            "documents": {
                "backgroundColor": "#fff",
                "fontColor": "#212121"
            },
            "logo": ""
        },
        "details": {
            "detailsToShow": [],
            "showSimilar": false,
            "showSimilarAsImage": false,
            "showRecommendations": false,
            "recommender": "",
            "numberOfRecommendations": 4,
            "numberOfSimilar": 4,
            "showRecommendedAsImage": false,
            "showConceptHighlighting": true
        }
    }
}

Responses

Status

Meaning

Description

200

OK

Create a new ADF configuration

401

Unauthorized

Unauthorized

403

Forbidden

Forbidden

404

Not Found

Not Found

200 Response Example
200 Response Schema

Name

Type

Description

message

string

A message informing on the success of the operation.

config

object

An object with the settings and metadata of the new configuration.

Configuration

errors

array

An array of objects, each representing a single resource key creation of which failed.

» key

string

The resource key that could not be created.

» message

string

A message informing about the reasons why the creation failed.