POST hub/{serial}/AddPlannings
Add a or multiples plannings to a hub. Subscription Required.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
serial |
Serial of the Hub |
string |
Required |
Body Parameters
List of planning to set (JSON)
Flipr.Web.Api.Controllers.JsonWrappers.PlanningsName | Description | Type | Additional information |
---|---|---|---|
plannings |
Liste des plannings |
Collection of Flipr.Business.Hub.Planning |
None. |
Request Formats
application/json, text/json
Sample:
{ "plannings": [ { "id": 1, "name": "sample string 1", "isActivated": true, "order": 1, "list_StartingMinute_duration": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "days": "sample string 3" }, { "id": 1, "name": "sample string 1", "isActivated": true, "order": 1, "list_StartingMinute_duration": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "days": "sample string 3" } ] }
text/html
Sample:
{"plannings":[{"id":1,"name":"sample string 1","isActivated":true,"order":1,"list_StartingMinute_duration":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"days":"sample string 3"},{"id":1,"name":"sample string 1","isActivated":true,"order":1,"list_StartingMinute_duration":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"days":"sample string 3"}]}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResult
Flipr.Web.Api.Controllers.JsonWrappers.PlanningsAddedName | Description | Type | Additional information |
---|---|---|---|
plannings |
List plannings |
Collection of Flipr.Business.Hub.Planning |
None. |
ErrorCode |
Gets or sets the error code if there is one |
string |
None. |
Message |
Gets or sets the error message if there is one |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "plannings": [ { "id": 1, "name": "sample string 1", "isActivated": true, "order": 1, "list_StartingMinute_duration": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "days": "sample string 3" }, { "id": 1, "name": "sample string 1", "isActivated": true, "order": 1, "list_StartingMinute_duration": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "days": "sample string 3" } ], "ErrorCode": "sample string 1", "Message": "sample string 2" }
text/html
Sample:
{"plannings":[{"id":1,"name":"sample string 1","isActivated":true,"order":1,"list_StartingMinute_duration":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"days":"sample string 3"},{"id":1,"name":"sample string 1","isActivated":true,"order":1,"list_StartingMinute_duration":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"days":"sample string 3"}],"ErrorCode":"sample string 1","Message":"sample string 2"}