You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specs/api/projects.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,12 +130,15 @@ Fetches a single project by slug.
130
130
"canDelete": false
131
131
},
132
132
"createdAt": "...",
133
-
"updatedAt": "..."
133
+
"updatedAt": "...",
134
+
"deletedAt": "..."| null
134
135
}
135
136
```
136
137
137
138
`permissions` is the *current caller's* permissions on this project — the frontend uses it to decide which actions to render. The server still enforces the same rules on each mutation endpoint.
138
139
140
+
`deletedAt` is `null` for active projects. It is non-null only when a soft-deleted project is fetched by staff (non-staff get `404`), so the SPA can render the soft-delete banner with a Restore action.
141
+
139
142
### Errors
140
143
141
144
-`404 not_found` — slug doesn't match (or is soft-deleted and caller can't see deleted).
0 commit comments