General Information
...
Name | Source | Mandatory | Type | Special Format | Description |
---|---|---|---|---|---|
id | Query | YES | String | N/A | The product id |
code | Query | NO | String | The Length is 4 - 5 | The product code |
name | Body | YES | String | The product name | |
description | Body | NO | String | The product description | |
_TTL | Body | YES | String | '6', '12', '24', '48', '72', '96', '120', '144', '168' | |
acl | Body | NO | Object | Product ACL |
...
Code Block | ||||
---|---|---|---|---|
| ||||
> CURL -X POST http://127.0.0.1:4004/product?id=%product_id% -d { "code": "SOME", "name": "Some", "description": "package description", "_TTL": "1824", "acl": {} } |
Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result": true, "data": [ { } ] } |
...