Views
DELETE /workspace/{workspaceId}/views/{viewId}
Changed onDelete a view.
The owner/admin rule (a workspace view needs admin rights, a personal view only its owner) is enforced by the views service itself, which holds the ownerType and personId — checking here as well would cost an extra fetch to re-derive what it already knows. Its 403 is relayed verbatim.
Request
- Base URLhttps://api.craft.io
- URLhttps://api.craft.io/workspace/{workspaceId}/views/{viewId}
- AuthAPI key in header x-api-key
Path parameters
workspaceIdstring required
viewIdstring required
Response
The view is deleted
Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- info
endpoint added
- info