> For the complete documentation index, see [llms.txt](https://help.codegrade.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.codegrade.com/setup-assignment/build-assignment/creating-an-assignment/in-brightspace.md).

# In Brightspace

Follow the steps below to create a new CodeGrade assignment in Brightspace:

1. Navigate to the homepage of the course to create the assignment in.
2. Click the **"Content"** button at the top of the page.
3. In the **"Add Existing Activities"** dropdown, click *"CodeGrade"* to open a new dialog.
4. In the new CodeGrade dialog, provide the name and deadline of the assignment and press **"Create assignment".** You can optionally also set the "Available at" and "Locked at" dates.

Making it a graded assignment:

1. Click on the CodeGrade assignment to open it (if it opens in a new tab, open the Brightspace tab to the left of it).
2. In Brightspace, you now see the possibility to add a Grade item. ([Learn more about Grade Items in Brightspace (D2L documentation)](https://documentation.brightspace.com/EN/le/grades/instructor/creating_grade_items.htm)
3. After adding a Grade item, relaunch the CodeGrade assignment and it now is a graded assignment!

{% hint style="success" %}
Grades are automatically sent back to Brightspace after setting [the **assignment state** to **Done** in CodeGrade.](/faq/releasing-grades-and-feedback.md) While the assignment is in the **Done** state, all grades and changes to grades are immediately sent back to Brightspace.
{% endhint %}

Next up, we can set the General settings of the CodeGrade assignment:

{% content-ref url="/pages/F0zZ1aj7XLlwCqbDZYOz" %}
[General settings](/setup-assignment/build-assignment/general-settings.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.codegrade.com/setup-assignment/build-assignment/creating-an-assignment/in-brightspace.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
