Create or update a schema file

put

https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/v1/schema

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - multipart/form-data ()
Root Schema : schema
Type: object
Show Source
Back to Top

Response

Supported Media Types

201 Response

Your request is successful and a new resource has been created.
Body ()
Root Schema : UploadSchemaOracle
Type: object
Title: UploadSchemaOracle
Show Source
Nested Schema : primaryFile
Type: object
File to upload and Download.

400 Response

Your request couldn't be processed because it contains missing or invalid information, such as a validation error on an input field, a missing required value, and so forth.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

401 Response

Your request isn't authorized. The authentication credentials included with this request are missing or invalid.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

404 Response

Your request includes a resource URI that doesn't exist.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

405 Response

HTTP action specified in the request (DELETE, GET, POST, PUT) isn't supported for this request URI.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

500 Response

The server encountered something unexpected that prevented it from completing the request.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source
Back to Top

Examples

The following example shows how to update a schema file by submitting a PUT request on the REST resource using cURL.

cURL Command

curl -u username:password -X PUT https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/v1/schema' \ -H 'Content-Type: application/json' -D @put_schema.json | json_pp

Example of Response Body

The following example shows the contents of the response body in JSON format.
{
    "fileName": "<filename>.yml",
    "path": "/Contribution Folders/CatalogManagement/schema/custom",
    "url": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/v1/schema/<filename>.yml?path=custom"
}
Back to Top