# Update user expiry (/docs/api-reference/reseller/setUserExpiry)

> Set or remove the expiry date on a child user. The user must belong to a child organization of your reseller.



> **Reseller accounts only.** [Request access](https://omnidim.io/contact-us?reason=partnership\&lock=1).

**POST** `/reseller/users/expiry`

Set or remove the expiry date on a child user. The user must
belong to a child organization of your reseller.

```yaml
operationId: setUserExpiry
requestBody:
  required: true
  content:
    application/json:
      schema:
        type: object
        required:
          - user_id
        properties:
          user_id:
            type: integer
            description: ID of the child user to update.
          expiry_date:
            type: string
            format: date
            nullable: true
            description: Expiry date in `YYYY-MM-DD` format. Omit or pass `null` to remove the expiry.
      example:
        user_id: 1234
        expiry_date: '2026-12-31'
responses:
  '200':
    description: Expiry updated.
    content:
      application/json:
        schema:
          type: object
          properties:
            success:
              type: boolean
            message:
              type: string
            user_id:
              type: integer
            expiry_date:
              type: string
              format: date
              nullable: true
          example:
            success: true
            message: User expiry date updated successfully
            user_id: 1234
            expiry_date: '2026-12-31'
```

**curl**

```bash
curl -X POST "https://backend.omnidim.io/api/v1/reseller/users/expiry" \
  -H "Authorization: Bearer $OMNIDIM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "user_id": 1234,
  "expiry_date": "2026-12-31"
}'
```
