---
title: "Replace the current user's selected standards"
method: PUT
path: "/rest/v1/user/resources"
tags: ["User"]
---

# Replace the current user's selected standards

`PUT /rest/v1/user/resources`

Requires login (CRE_ENABLE_LOGIN) and the MyOpenCRE feature (CRE_ENABLE_MYOPENCRE). When either flag is disabled the request is a no-op and returns an empty selection. When both are enabled, anonymous requests receive 401.

## Request body

- object
  - `selected` string[], required — Standard names to select. Non-empty strings; values are trimmed and deduplicated.

## Response `200`

The stored selection

- object
  - `selected` string[], required

## Other responses

- `400` — Invalid selection body
- `401` — Not authenticated (both feature flags enabled and no active session)

---

[API](https://skmtc.net/owasp/apis/opencre-rest-api.md) · [All operations](https://skmtc.net/owasp/apis/opencre-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/owasp/opencre-rest-api/versions/17121b00bb98/schema)
