---
agentTools:
  projectIndex: https://developers.northpass.com/llms.txt
---

# Add courses to a group

Add existing courses to an existing group. This will add any courses that are not in the group, and ignore any courses that are already in the group. You do not have to include any courses that are already present, as this will not remove any current relationships.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "OpenAPI Specification",
    "version": "1.0.0"
  },
  "paths": {
    "/v2/groups/{group_uuid}/relationships/courses": {
      "post": {
        "tags": [
          "Groups"
        ],
        "summary": "Add courses to a group",
        "description": "Add existing courses to an existing group. This will add any courses that are not in the group, and ignore any courses that are already in the group. You do not have to include any courses that are already present, as this will not remove any current relationships.\n",
        "parameters": [
          {
            "name": "group_uuid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "data"
                ],
                "type": "object",
                "properties": {
                  "data": {
                    "type": "array",
                    "description": "Data",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string",
                          "default": "courses"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "successful operation",
            "headers": {
              "Cache-Control": {
                "x-example-value": "no-cache",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "*/*": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              },
              "application/json": {
                "examples": {
                  "response": {
                    "value": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "when the group does not exist",
            "headers": {
              "Content-Type": {
                "x-example-value": "application/json; charset=utf-8",
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "x-example-value": "no-cache",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "*/*": {
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              },
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "errors": [
                        {
                          "status": "404",
                          "title": "Not Found",
                          "detail": "The resource you requested does not exist",
                          "code": "api_error",
                          "source": {}
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": [
          {
            "X-Api-Key": []
          }
        ]
      }
    }
  },
  "tags": [
    {
      "name": "Groups"
    }
  ],
  "servers": [
    {
      "url": "https://api.northpass.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "X-Api-Key": {
        "type": "apiKey",
        "name": "X-Api-Key",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 94,
      "1": 131,
      "2": 105,
      "3": 179,
      "4": 156,
      "5": 162,
      "6": 182,
      "7": 0,
      "8": 57,
      "9": 227,
      "10": 168,
      "11": 70
    }
  }
}
```