# EULA REST API

Component downloads and uploads are blocked until a Nexus Administrator has agreed to the terms in the Sonatype Nexus Repository Community Edition end-user license agreement (EULA).

See [Sonatype Nexus Repository Community Edition EULA](https://links.sonatype.com/products/nxrm/ce-eula) for the complete text.

To agree to the EULA, submit a POST request with the exact text from the `disclaimer` received from the GET request from the same endpoint while updating the `accepted` property to true.

The following endpoints are available for the Nexus Repository EULA API. These endpoints require an administrator role with the `nexus:*` privilege to access and edit.

## GET EULA Agreement

```plaintext
GET /service/rest/v1/system/eula
```

This endpoint gets the EULA agreement.

```bash
curl -u admin:admin123 -X GET 'https://localhost:8081/service/rest/v1/system/eula'
```

```json
{
  "disclaimer": "Use of Sonatype Nexus Repository - Community Edition is governed by the End User License Agreement at https://links.sonatype.com/products/nxrm/ce-eula. By returning the value from ‘accepted:false’ to ‘accepted:true’, you acknowledge that you have read and agree to the End User License Agreement at https://links.sonatype.com/products/nxrm/ce-eula.",
  "accepted": false
}
```

## POST EULA Agreement

```plaintext
POST /service/rest/v1/system/eula
```

Use this endpoint to accept the EULA. The request must include the complete `disclaimer` text provided from the GET request with the `accepted` property set to true.

The EULA must be accepted before using the Nexus Repository Community Edition.

#### Example request

```bash
curl -X POST -u admin:admin123 \
 -d '{"accepted": true, "disclaimer": "Use of Sonatype Nexus Repository - Community Edition is governed by the End User License Agreement at https://links.sonatype.com/products/nxrm/ce-eula. By returning the value from ‘accepted:false’ to ‘accepted:true’, you acknowledge that you have read and agree to the End User License Agreement at https://links.sonatype.com/products/nxrm/ce-eula."}' \
 'https://localhost:8081/service/rest/v1/system/eula' \
```

## Search results

No results found
