---
title: "Add calendar to user and/or blog, this calendar can be of two types: system (internal calendars) and user (calendars updated by users)"
method: POST
path: "/v2/scheduler/calendars/{calendar-id}/assignation"
tags: ["ICS Calendar Rest Services for Metricool calendar (scheduler)"]
---

# Add calendar to user and/or blog, this calendar can be of two types: system (internal calendars) and user (calendars updated by users)

`POST /v2/scheduler/calendars/{calendar-id}/assignation`

## Request

- Base URL: `https://app.metricool.com/api`
- URL: `https://app.metricool.com/api/v2/scheduler/calendars/{calendar-id}/assignation`
- Auth: none declared

## Path parameters

- `calendar-id` integer, required

## Request body

- InformationAboutAddingACalendarToAnUserOrBlog
  - `aggregationFrom` string, required: Adding for a user or blog

## Response `200`

Ok

- JsonOkResponseResultInformationAboutAddedCalendarToAUserOrBlog
  - `metadata` object
  - `page` JsonPaging
    - `next` string
  - `data` ResultInformationAboutAddedCalendarToAUserOrBlog
    - `calendarId` integer: Internal calendar id
    - `aggregationTo` integer: Blog id, if it is add for a blog
    - `userId` integer: User id, if it is add for a user

## Other responses

- `204`: Not content
- `400`: Bad request
- `403`: Forbidden
- `500`: Internal server error

---

[API](https://skmtc.dev/metricool/apis/metricool-api.md) · [All operations](https://skmtc.dev/metricool/apis/metricool-api/llms.txt) · [OpenAPI document](https://skmtc.dev/metricool/apis/metricool-api/revisions/aea9d9a8415a?raw)
