Create a resource configuration

post

/gsadmin/v1/{appName}/{resourcePath}

Creates the configuration for a resource using the zip content passed in the request body

Request

Supported Media Types
  • application/zip
Path Parameters
appName
Type: string
Required: true
Specifies the name of your application, for example, Discover.
resourcePath
Type: string
Required: true
Relative path of the resource, for example, thesaurus.
Form Parameters
:file
Type: file
Required: true
The resource configuration to create as a zip file.
Security
basicAuth
Type: basic
Description: Basic username/password authentication.

Response

Supported Media Types
  • application/json
201 Response
Resource configuration successfully created.
Body
Root Schema : Response
Type: object

Examples

The following example shows how to create the thesaurus configuration for the cloud application:

curl -H "Authorization: Bearer <token>" -X POST --data @<Input json path> http://<host>:<port>/gsadmin/v1/cloud/thesaurus