NewAdvancedLabel (4.4)

Summary: Creates a new advanced label with the recipe list specified.

 

Request Type: NewAdvancedLabelRequest

  • Name

    • String

    • The name of the Advanced Label

  • Usercode (optional)

    • String

    • The user code for the Advanced Label

  • FoodIds

    • Guid[]

    • List of recipe ids to be added to the Advanced Label

Request Type: NewAdvancedLabelResponse

  • AdvancedLabelAdded

    • Boolean

    • Whether the advanced label was created and saved to the users database

  • Errors

    • Error[]

    • Gives error information on the advanced label not created.

  • Status

    • Type: exlx:ResultStatus

    • The ResultStatus of the given response

  • ResponseVersion

    • Type: exlx:XmlVersion

    • The version of the given response.

 

 

POST http://localhost:80/rest/FoodEditService.svc/NewAdvancedLabel HTTP/1.1 Content-Type: text/plain Host: localhost:80 request={ "Name":"Brand New Advanced Label", "UserCode":"123-ABC", "FoodIds":[ "8980ff36-43ad-3927-5ef8-ee69ecb67fee", "8980ff36-6833-3ec0-5ef8-ee69ecb67fee" ] }

 

{ "AdvancedLabelAdded": true, "Errors": null, "Status": { "StatusMessage": 200, "StatusCode": 200, "StatusDetail": null }, "ResponseVersion": {} }