Create a new recipe with valid recipe JSON
post
/s1-recipe-svc/rest/v1.0/recipes
Creates a new recipe when you provide a valid recipe JSON file. Restricted to the Intake Designer role.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
string
Response
Supported Media Types
- application/json
201 Response
Success
Root Schema : Recipe
Type:
Show Source
object
-
comment: string
Minimum Length:
0
Maximum Length:2048
-
enterpriseId: number
-
id: string
(uuid)
-
objectVersionNumber: number
-
operationType: string
Minimum Length:
1
Maximum Length:16
-
reason: string
Minimum Length:
0
Maximum Length:255
-
recipeJson: string
-
softwareVersionNumber: number
-
userId: number
-
versionEnd: string
(date-time)
-
versionStart: string
(date-time)
401 Response
Unauthorized User
Root Schema : ErrorResponseData
Type:
object
Response object for error
Show Source
-
details: object
details
Error Details
-
errorCode: string
Error CodeExample:
Exception
-
errorMessage: string
Error MessageExample:
Please see the server log for details
Nested Schema : details
Type:
object
Error Details
404 Response
Recipe not found
Root Schema : ErrorResponseData
Type:
object
Response object for error
Show Source
-
details: object
details
Error Details
-
errorCode: string
Error CodeExample:
Exception
-
errorMessage: string
Error MessageExample:
Please see the server log for details
Nested Schema : details
Type:
object
Error Details
500 Response
Internal Server Error
Root Schema : ErrorResponseData
Type:
object
Response object for error
Show Source
-
details: object
details
Error Details
-
errorCode: string
Error CodeExample:
Exception
-
errorMessage: string
Error MessageExample:
Please see the server log for details
Nested Schema : details
Type:
object
Error Details