# /admin/securityprofiles/{id}/expirydate

> The /admin/securityprofiles/{id}/expirydate endpoint of the DS Server Web API and its PATCH method, which sets the date a security profile expires.

- **Product:** DS Server
- **Section:** Documentation
- **Kind:** Endpoint
- **Path:** DS Server > API Reference > Web API > Administration > /admin/securityprofiles/{id}/expirydate
- **107 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/web-api/administration/securityprofiles-id-expirydate/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/web-api/administration/securityprofiles-id-expirydate/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/web-api/administration/securityprofiles-id-expirydate/llms-full.txt

---

This endpoint offers the following method.

| Method | Endpoint | Description |
|---|---|---|
| [`PATCH`](https://docs.textcontrol.com/ds-server/reference/web-api/administration/securityprofiles-id-expirydate/patch/llms-full.txt) | [/admin/securityprofiles/{id}/expirydate](https://docs.textcontrol.com/ds-server/reference/web-api/administration/securityprofiles-id-expirydate/patch/llms-full.txt) | Specifies the expiry date of a security profile based on a given ID. |

---

## In This Section

- [PATCH /admin/securityprofiles/{id}/expirydate](https://docs.textcontrol.com/ds-server/reference/web-api/administration/securityprofiles-id-expirydate/patch/llms-full.txt): Set or remove the expiry date of a security profile: send a JSON date-time string, or null so that the profile never expires, with the admin credentials.

---

## Nearby

- **Previous:** [PATCH /admin/securityprofiles/{id}/allowclientcredentialsgranttype](https://docs.textcontrol.com/ds-server/reference/web-api/administration/securityprofiles-id-allowclientcredentialsgranttype/patch/llms-full.txt)
- **Next:** [PATCH /admin/securityprofiles/{id}/expirydate](https://docs.textcontrol.com/ds-server/reference/web-api/administration/securityprofiles-id-expirydate/patch/llms-full.txt)
