| POST | /products_recipes |
|---|
"use strict";
export class ProductsRecipesAddResponse {
/** @param {{tenantsId?:number,zonesId?:number,productsId?:number,recipeUrl?:string,responseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
tenantsId;
/** @type {number} */
zonesId;
/** @type {number} */
productsId;
/** @type {string} */
recipeUrl;
/** @type {ResponseStatus} */
responseStatus;
}
export class ProductsRecipesAdd {
/** @param {{tenantsId?:number,zonesId?:number,productsId?:number,recipeUrl?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
tenantsId;
/** @type {number} */
zonesId;
/** @type {number} */
productsId;
/** @type {string} */
recipeUrl;
}
JavaScript ProductsRecipesAdd DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /products_recipes HTTP/1.1
Host: sfgboxapi.dev.scadsoftware.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"tenantsId":0,"zonesId":0,"productsId":0,"recipeUrl":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"tenantsId":0,"zonesId":0,"productsId":0,"recipeUrl":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}