ServicePlan

PUT /serviceplan/{id}

Request

  • Base URL
    https://api.c1st.com/api
  • URL
    https://api.c1st.com/api/serviceplan/{id}
  • Auth
    HTTP bearer

Path parameters

idinteger required

Request body

Example request

{
  "content": {
    "id": 1,
    "servicecallgroup": {
      "title": "El-cykel",
      "producttags": [
        {
          "position": 23.04
        }
      ],
      "templates": [
        {
          "id": 12,
          "title": "1. Service",
          "days": 60,
          "template": "Hej [customer_name] det er tid til første service af din nye cykel. Kig ind eller ring til os på [store_phone]",
          "noticedate": "2027-11-01T12:00:00+01:00",
          "day": 2,
          "month": "March",
          "year": 3,
          "task_service_group_id": 12,
          "deleted_at": "2024-02-23T09:37:20.000000Z"
        }
      ],
      "deleted_at": "2024-02-23T09:37:20.000000Z"
    },
    "servicecallgroups": [
      {
        "title": "El-cykel",
        "producttags": [
          {
            "position": 23.04
          }
        ],
        "templates": [
          {
            "id": 12,
            "title": "1. Service",
            "days": 60,
            "template": "Hej [customer_name] det er tid til første service af din nye cykel. Kig ind eller ring til os på [store_phone]",
            "noticedate": "2027-11-01T12:00:00+01:00",
            "day": 2,
            "month": "March",
            "year": 3,
            "task_service_group_id": 12,
            "deleted_at": "2024-02-23T09:37:20.000000Z"
          }
        ],
        "deleted_at": "2024-02-23T09:37:20.000000Z"
      }
    ],
    "producttagsrestriction": [
      {
        "position": 23.04
      }
    ]
  }
}

Response

Ok

Example response

{
  "content": {
    "id": 1,
    "servicecallgroup": {
      "title": "El-cykel",
      "producttags": [
        {
          "position": 23.04
        }
      ],
      "templates": [
        {
          "id": 12,
          "title": "1. Service",
          "days": 60,
          "template": "Hej [customer_name] det er tid til første service af din nye cykel. Kig ind eller ring til os på [store_phone]",
          "noticedate": "2027-11-01T12:00:00+01:00",
          "day": 2,
          "month": "March",
          "year": 3,
          "task_service_group_id": 12,
          "deleted_at": "2024-02-23T09:37:20.000000Z"
        }
      ],
      "deleted_at": "2024-02-23T09:37:20.000000Z"
    },
    "servicecallgroups": [
      {
        "title": "El-cykel",
        "producttags": [
          {
            "position": 23.04
          }
        ],
        "templates": [
          {
            "id": 12,
            "title": "1. Service",
            "days": 60,
            "template": "Hej [customer_name] det er tid til første service af din nye cykel. Kig ind eller ring til os på [store_phone]",
            "noticedate": "2027-11-01T12:00:00+01:00",
            "day": 2,
            "month": "March",
            "year": 3,
            "task_service_group_id": 12,
            "deleted_at": "2024-02-23T09:37:20.000000Z"
          }
        ],
        "deleted_at": "2024-02-23T09:37:20.000000Z"
      }
    ],
    "producttagsrestriction": [
      {
        "position": 23.04
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.