# SubjectEntry

Type: SubjectEntry

Single (Authorization) Subject entry holding its type.

Schema: [SubjectEntry](https://sourcey-ditto.pages.dev/http-api-doc/models/subjectentry.md)

Example:

```json
{
  "type": "This is some description for this subject, adjust as needed.",
  "expiry": "2020-12-07T11:36:40Z",
  "announcement": {
    "beforeExpiry": "5m",
    "whenDeleted": true
  }
}
```

- `type` (required)
  Type: string
  
  The type is offered only for documentation purposes. You are not restricted to any specific types, but we recommend to use it to specify the kind of the subject as shown in our examples.

- `expiry` (optional)
  Type: string, date-time
  
  The optional expiry timestamp (formatted in ISO-8601) indicates how long this subject should be considered active before it is automatically deleted from the Policy.

- `announcement` (optional)
  Reference: [SubjectAnnouncement](https://sourcey-ditto.pages.dev/http-api-doc/models/subjectannouncement.md); Type: SubjectAnnouncement
  
  Settings for announcements to be made about the subject.
  
  Example:
  
  ```json
  {
    "beforeExpiry": "5m",
    "whenDeleted": true,
    "randomizationInterval": "5m"
  }
  ```