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
- multipart/form-data
Path Parameters
-
appName: string
Specifies the name of your application. For example, "cloud".
-
resourcePath: string
Relative path of the resource, for example, thesaurus.
Form Parameters
-
:file: file
The resource configuration to create as a zip file.
Security
-
basicAuth: basic
Type:
basic
Description:Basic username/password authentication.
Response
Supported Media Types
- application/json
201 Response
Resource configuration successfully created.
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