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:
stringRequired:trueSpecifies the name of your application, for example, Discover.- resourcePath
Type:stringRequired:trueRelative path of the resource, for example, thesaurus.
Form Parameters
- :file
-
Type:
fileRequired:trueThe resource configuration to create as a zip file.
Security
- basicAuth
-
Type:
basicDescription:Basic username/password authentication.
Response
Supported Media Types
- application/json
201 Response
Resource configuration successfully created.
Body
Root Schema : Response
Type:
object- message
-
Type:
string - status
-
Type:
integer(int32)
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