PATCH/projects/api/v3/calendars/{id}.json

Update an existing calendar.

Update an existing Calendar.

Path Params

  • Name
    id
    Type
    integer
    required
    Description

Body Params

Request contains information of a calendar to be created or updated.

    • Name
      calendar
      Type
      object
      Description
      Calendar contains all the information returned from a calendar.
    • Name
      calendarOptions
      Type
      object
      Description
      Options are options for calendars

    Responses

    • Code
      200
      Type
      object
      Schema
      Description
      200 OK
      Response contains information about a specific calendar.
    • Code
      400
      Type
      object
      Schema
      Description
      400 Bad Request
      ErrorResponse defines how []Error should be marshaled to JSON.
    • Code
      403
      Type
      object
      Schema
      Description
      403 Forbidden
      ErrorResponse defines how []Error should be marshaled to JSON.
    • Code
      404
      Description
      404 Not Found No Data
    • Code
      409
      Type
      object
      Schema
      Description
      409 Conflict
      ErrorResponse defines how []Error should be marshaled to JSON.

    Examples

    200 OK

    Response
    {
      "calendar": {
        "canViewPlanning": true,
        "createdAt": "string",
        "id": 0,
        "name": "string",
        "primary": true,
        "type": "string",
        "updatedAt": "string"
      }
    }