POST/desk/api/v2/businesshours.json

Create a new businesshour.

Body Params

BusinessHourAPIBody handles the get/create/update request/response for businesshour.

    • Name
      businesshour
      Type
      object
      Description
      BusinessHour represents a BusinessHour.
    • Name
      included
      Type
      object
      Description
      Included allows adding referenced objects on the API response. The included keys should map to the `types` in the Relationship slices/objects.

    Responses

    • Code
      201
      Type
      object
      Schema
      Description
      201 Created
      BusinessHourAPIBody handles the get/create/update request/response for businesshour.
    • Code
      400
      Type
      object
      Schema
      Description
      400 Bad Request
      Validator hold the validation errors. Typically you shouldn't create this directly but use the New() function.

    Examples

    201 Created

    BusinessHourAPIBody
    {  "businesshour": {    "businesshourholidays": [      {        "delete": true,        "id": 0,        "meta": {          "additionalProp": "Unknown Type: any"        },        "type": 0      }    ],    "businesshourschedules": [      {        "delete": true,        "id": 0,        "meta": {          "additionalProp": "Unknown Type: any"