PUT api/recipes/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
Recipe| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| code | string |
Max length: 20 |
|
| description | string |
Max length: 250 |
|
| kg_mix | integer |
None. |
|
| kg_bag | integer |
None. |
|
| mixing_time | string |
Max length: 50 |
|
| status | string |
None. |
|
| notes | string |
None. |
|
| create_date | integer |
None. |
|
| components | Collection of Component |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"code": "sample string 2",
"description": "sample string 3",
"kg_mix": 4,
"kg_bag": 5,
"mixing_time": "sample string 6",
"status": "sample string 7",
"notes": "sample string 8",
"create_date": 1,
"components": [
{
"id": 1,
"type_id": 2,
"type_name": "sample string 3",
"code": "sample string 4",
"description": "sample string 5",
"kg": 6,
"percentage": 7
},
{
"id": 1,
"type_id": 2,
"type_name": "sample string 3",
"code": "sample string 4",
"description": "sample string 5",
"kg": 6,
"percentage": 7
}
]
}
Response Information
Resource Description
IdResult| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1
}