> For the complete documentation index, see [llms.txt](https://intuitem.gitbook.io/ciso-assistant/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://intuitem.gitbook.io/ciso-assistant/api-documentation/api-reference/library-drafts.md). Agents can also search and read this documentation through its [MCP server](https://intuitem.gitbook.io/ciso-assistant/~gitbook/mcp).

# Library drafts

## GET /api/library-drafts/

> Interactive library packager. A draft is a document that serializes to\
> the same library YAML the tools/ Excel converter produces; publishing\
> feeds that YAML to the existing stored-library loader — the single\
> writer of live referential objects. The builder never touches live\
> Framework/ReferenceControl/Threat/... rows itself.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"PaginatedLibraryDraftReadList":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"$ref":"#/components/schemas/LibraryDraftRead"}}}},"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/":{"get":{"operationId":"library_drafts_list","description":"Interactive library packager. A draft is a document that serializes to\nthe same library YAML the tools/ Excel converter produces; publishing\nfeeds that YAML to the existing stored-library loader — the single\nwriter of live referential objects. The builder never touches live\nFramework/ReferenceControl/Threat/... rows itself.","parameters":[{"in":"query","name":"created_at__date","schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at__date__gt","schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at__date__gte","schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at__date__lt","schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at__date__lte","schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at__gt","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"created_at__gte","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"created_at__isnull","schema":{"type":"boolean"}},{"in":"query","name":"created_at__lt","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"created_at__lte","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"folder","schema":{"type":"array","items":{"type":"string","format":"uuid"}},"explode":true,"style":"form"},{"in":"query","name":"genericcollection","schema":{"type":"array","items":{"type":"string","format":"uuid"}},"description":"Multiple values may be separated by commas.","explode":false,"style":"form"},{"in":"query","name":"id","schema":{"type":"array","items":{"type":"string","format":"uuid"}},"description":"Multiple values may be separated by commas.","explode":false,"style":"form"},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"in":"query","name":"locale","schema":{"type":"string"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}},{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"in":"query","name":"packager","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","description":"A search term.","schema":{"type":"string"}},{"in":"query","name":"updated_at__date","schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at__date__gt","schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at__date__gte","schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at__date__lt","schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at__date__lte","schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at__gt","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"updated_at__gte","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"updated_at__isnull","schema":{"type":"boolean"}},{"in":"query","name":"updated_at__lt","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"updated_at__lte","schema":{"type":"string","format":"date-time"}}],"tags":["library-drafts"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedLibraryDraftReadList"}}},"description":""}}}}}}
```

## POST /api/library-drafts/

> Interactive library packager. A draft is a document that serializes to\
> the same library YAML the tools/ Excel converter produces; publishing\
> feeds that YAML to the existing stored-library loader — the single\
> writer of live referential objects. The builder never touches live\
> Framework/ReferenceControl/Threat/... rows itself.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftWrite":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"folder":{"type":"string","format":"uuid"}},"required":["id","name","packager","ref_id"]}}},"paths":{"/api/library-drafts/":{"post":{"operationId":"library_drafts_create","description":"Interactive library packager. A draft is a document that serializes to\nthe same library YAML the tools/ Excel converter produces; publishing\nfeeds that YAML to the existing stored-library loader — the single\nwriter of live referential objects. The builder never touches live\nFramework/ReferenceControl/Threat/... rows itself.","tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftWrite"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftWrite"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftWrite"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftWrite"}}},"description":""}}}}}}
```

## GET /api/library-drafts/{id}/

> Interactive library packager. A draft is a document that serializes to\
> the same library YAML the tools/ Excel converter produces; publishing\
> feeds that YAML to the existing stored-library loader — the single\
> writer of live referential objects. The builder never touches live\
> Framework/ReferenceControl/Threat/... rows itself.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/":{"get":{"operationId":"library_drafts_retrieve","description":"Interactive library packager. A draft is a document that serializes to\nthe same library YAML the tools/ Excel converter produces; publishing\nfeeds that YAML to the existing stored-library loader — the single\nwriter of live referential objects. The builder never touches live\nFramework/ReferenceControl/Threat/... rows itself.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## PUT /api/library-drafts/{id}/

> Interactive library packager. A draft is a document that serializes to\
> the same library YAML the tools/ Excel converter produces; publishing\
> feeds that YAML to the existing stored-library loader — the single\
> writer of live referential objects. The builder never touches live\
> Framework/ReferenceControl/Threat/... rows itself.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftWrite":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"folder":{"type":"string","format":"uuid"}},"required":["id","name","packager","ref_id"]}}},"paths":{"/api/library-drafts/{id}/":{"put":{"operationId":"library_drafts_update","description":"Interactive library packager. A draft is a document that serializes to\nthe same library YAML the tools/ Excel converter produces; publishing\nfeeds that YAML to the existing stored-library loader — the single\nwriter of live referential objects. The builder never touches live\nFramework/ReferenceControl/Threat/... rows itself.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftWrite"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftWrite"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftWrite"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftWrite"}}},"description":""}}}}}}
```

## DELETE /api/library-drafts/{id}/

> Interactive library packager. A draft is a document that serializes to\
> the same library YAML the tools/ Excel converter produces; publishing\
> feeds that YAML to the existing stored-library loader — the single\
> writer of live referential objects. The builder never touches live\
> Framework/ReferenceControl/Threat/... rows itself.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/library-drafts/{id}/":{"delete":{"operationId":"library_drafts_destroy","description":"Interactive library packager. A draft is a document that serializes to\nthe same library YAML the tools/ Excel converter produces; publishing\nfeeds that YAML to the existing stored-library loader — the single\nwriter of live referential objects. The builder never touches live\nFramework/ReferenceControl/Threat/... rows itself.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"responses":{"204":{"description":"No response body"}}}}}}
```

## PATCH /api/library-drafts/{id}/

> Interactive library packager. A draft is a document that serializes to\
> the same library YAML the tools/ Excel converter produces; publishing\
> feeds that YAML to the existing stored-library loader — the single\
> writer of live referential objects. The builder never touches live\
> Framework/ReferenceControl/Threat/... rows itself.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"PatchedLibraryDraftWrite":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"folder":{"type":"string","format":"uuid"}}},"LibraryDraftWrite":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"folder":{"type":"string","format":"uuid"}},"required":["id","name","packager","ref_id"]}}},"paths":{"/api/library-drafts/{id}/":{"patch":{"operationId":"library_drafts_partial_update","description":"Interactive library packager. A draft is a document that serializes to\nthe same library YAML the tools/ Excel converter produces; publishing\nfeeds that YAML to the existing stored-library loader — the single\nwriter of live referential objects. The builder never touches live\nFramework/ReferenceControl/Threat/... rows itself.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchedLibraryDraftWrite"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PatchedLibraryDraftWrite"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PatchedLibraryDraftWrite"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftWrite"}}},"description":""}}}}}}
```

## POST /api/library-drafts/{id}/add-framework/

> Add a skeleton framework object to the draft document.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/add-framework/":{"post":{"operationId":"library_drafts_add_framework_create","description":"Add a skeleton framework object to the draft document.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## POST /api/library-drafts/{id}/add-quick-form/

> Add a skeleton quick form object (one empty page) to the draft.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/add-quick-form/":{"post":{"operationId":"library_drafts_add_quick_form_create","description":"Add a skeleton quick form object (one empty page) to the draft.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## GET /api/library-drafts/{id}/cascade-info/

> Interactive library packager. A draft is a document that serializes to\
> the same library YAML the tools/ Excel converter produces; publishing\
> feeds that YAML to the existing stored-library loader — the single\
> writer of live referential objects. The builder never touches live\
> Framework/ReferenceControl/Threat/... rows itself.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/cascade-info/":{"get":{"operationId":"library_drafts_cascade_info_retrieve","description":"Interactive library packager. A draft is a document that serializes to\nthe same library YAML the tools/ Excel converter produces; publishing\nfeeds that YAML to the existing stored-library loader — the single\nwriter of live referential objects. The builder never touches live\nFramework/ReferenceControl/Threat/... rows itself.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## GET /api/library-drafts/{id}/conflicts/

> Interactive library packager. A draft is a document that serializes to\
> the same library YAML the tools/ Excel converter produces; publishing\
> feeds that YAML to the existing stored-library loader — the single\
> writer of live referential objects. The builder never touches live\
> Framework/ReferenceControl/Threat/... rows itself.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/conflicts/":{"get":{"operationId":"library_drafts_conflicts_retrieve","description":"Interactive library packager. A draft is a document that serializes to\nthe same library YAML the tools/ Excel converter produces; publishing\nfeeds that YAML to the existing stored-library loader — the single\nwriter of live referential objects. The builder never touches live\nFramework/ReferenceControl/Threat/... rows itself.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## POST /api/library-drafts/{id}/delete-object/

> Remove a top-level object from the draft document.\
> \
> Framework-node links to the object block the deletion unless \`force\`\
> is set, in which case they are stripped. A requirement mapping set\
> pointing at the object always blocks (its framework fields are\
> mandatory): delete the mapping set first.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/delete-object/":{"post":{"operationId":"library_drafts_delete_object_create","description":"Remove a top-level object from the draft document.\n\nFramework-node links to the object block the deletion unless `force`\nis set, in which case they are stripped. A requirement mapping set\npointing at the object always blocks (its framework fields are\nmandatory): delete the mapping set first.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## GET /api/library-drafts/{id}/export/

> Pure GET, no state change. A published-and-clean draft exports as\
> the canonical artifact; anything else is a working copy whose URNs may\
> still change, so the filename says so.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/export/":{"get":{"operationId":"library_drafts_export_retrieve","description":"Pure GET, no state change. A published-and-clean draft exports as\nthe canonical artifact; anything else is a working copy whose URNs may\nstill change, so the filename says so.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## GET /api/library-drafts/{id}/framework-editor/

> Bridge to the visual framework editor.\
> \
> GET returns the framework object of the draft converted to the\
> editor-doc shape; PUT converts an editor doc back and saves it into\
> the draft document. No live Framework rows are involved.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/framework-editor/":{"get":{"operationId":"library_drafts_framework_editor_retrieve","description":"Bridge to the visual framework editor.\n\nGET returns the framework object of the draft converted to the\neditor-doc shape; PUT converts an editor doc back and saves it into\nthe draft document. No live Framework rows are involved.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## PUT /api/library-drafts/{id}/framework-editor/

> Bridge to the visual framework editor.\
> \
> GET returns the framework object of the draft converted to the\
> editor-doc shape; PUT converts an editor doc back and saves it into\
> the draft document. No live Framework rows are involved.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/framework-editor/":{"put":{"operationId":"library_drafts_framework_editor_update","description":"Bridge to the visual framework editor.\n\nGET returns the framework object of the draft converted to the\neditor-doc shape; PUT converts an editor doc back and saves it into\nthe draft document. No live Framework rows are involved.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## POST /api/library-drafts/{id}/framework-editor-preview/

> What would change on the live (loaded) framework if the draft were\
> published now — diffed by URN against the loaded rows.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/framework-editor-preview/":{"post":{"operationId":"library_drafts_framework_editor_preview_create","description":"What would change on the live (loaded) framework if the draft were\npublished now — diffed by URN against the loaded rows.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## POST /api/library-drafts/{id}/import-objects/

> Selective extraction (clone): copy objects from a source library\
> into this draft, rebased onto the draft's URN family. The source is\
> a stored library (id/urn) or another draft (\`\`draft:\<id>\`\`) — a\
> draft is just a library document, so its work-in-progress objects\
> can be borrowed without publishing it first.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/import-objects/":{"post":{"operationId":"library_drafts_import_objects_create","description":"Selective extraction (clone): copy objects from a source library\ninto this draft, rebased onto the draft's URN family. The source is\na stored library (id/urn) or another draft (``draft:<id>``) — a\ndraft is just a library document, so its work-in-progress objects\ncan be borrowed without publishing it first.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## GET /api/library-drafts/{id}/neighborhood/

> Interactive library packager. A draft is a document that serializes to\
> the same library YAML the tools/ Excel converter produces; publishing\
> feeds that YAML to the existing stored-library loader — the single\
> writer of live referential objects. The builder never touches live\
> Framework/ReferenceControl/Threat/... rows itself.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/neighborhood/":{"get":{"operationId":"library_drafts_neighborhood_retrieve","description":"Interactive library packager. A draft is a document that serializes to\nthe same library YAML the tools/ Excel converter produces; publishing\nfeeds that YAML to the existing stored-library loader — the single\nwriter of live referential objects. The builder never touches live\nFramework/ReferenceControl/Threat/... rows itself.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## GET /api/library-drafts/{id}/object/

> Interactive library packager. A draft is a document that serializes to\
> the same library YAML the tools/ Excel converter produces; publishing\
> feeds that YAML to the existing stored-library loader — the single\
> writer of live referential objects. The builder never touches live\
> Framework/ReferenceControl/Threat/... rows itself.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/object/":{"get":{"operationId":"library_drafts_object_retrieve","description":"Interactive library packager. A draft is a document that serializes to\nthe same library YAML the tools/ Excel converter produces; publishing\nfeeds that YAML to the existing stored-library loader — the single\nwriter of live referential objects. The builder never touches live\nFramework/ReferenceControl/Threat/... rows itself.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## GET /api/library-drafts/{id}/preset-editor/

> Bridge to the journey preset editor.\
> \
> GET returns the draft's preset object in the editor-draft shape\
> ({journey\_meta, scaffolded\_objects, steps}); PUT validates an editor\
> draft and saves it back into the document, creating the preset object\
> on first save. profile/feature\_flags and unknown keys are preserved.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/preset-editor/":{"get":{"operationId":"library_drafts_preset_editor_retrieve","description":"Bridge to the journey preset editor.\n\nGET returns the draft's preset object in the editor-draft shape\n({journey_meta, scaffolded_objects, steps}); PUT validates an editor\ndraft and saves it back into the document, creating the preset object\non first save. profile/feature_flags and unknown keys are preserved.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## PUT /api/library-drafts/{id}/preset-editor/

> Bridge to the journey preset editor.\
> \
> GET returns the draft's preset object in the editor-draft shape\
> ({journey\_meta, scaffolded\_objects, steps}); PUT validates an editor\
> draft and saves it back into the document, creating the preset object\
> on first save. profile/feature\_flags and unknown keys are preserved.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/preset-editor/":{"put":{"operationId":"library_drafts_preset_editor_update","description":"Bridge to the journey preset editor.\n\nGET returns the draft's preset object in the editor-draft shape\n({journey_meta, scaffolded_objects, steps}); PUT validates an editor\ndraft and saves it back into the document, creating the preset object\non first save. profile/feature_flags and unknown keys are preserved.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## POST /api/library-drafts/{id}/preset-editor-preview/

> Steps removed from the document's preset compared to the loaded\
> Preset, with the user journey state that would be lost — mirrors the\
> retired standalone preset editor's publish preview.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/preset-editor-preview/":{"post":{"operationId":"library_drafts_preset_editor_preview_create","description":"Steps removed from the document's preset compared to the loaded\nPreset, with the user journey state that would be lost — mirrors the\nretired standalone preset editor's publish preview.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## POST /api/library-drafts/{id}/publish/

> Publish = the user's commit: freeze the identity and snapshot the\
> content (version + fingerprint). With load=true (the default) the\
> draft is also serialized to library YAML and fed to the existing\
> stored-library loader — loading is proof of publication, so it always\
> implies the commit. Re-publishing an already-loaded URN goes through\
> the loader's update path (update-by-URN). load=false commits without\
> touching the corpus (publish-for-export).

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/publish/":{"post":{"operationId":"library_drafts_publish_create","description":"Publish = the user's commit: freeze the identity and snapshot the\ncontent (version + fingerprint). With load=true (the default) the\ndraft is also serialized to library YAML and fed to the existing\nstored-library loader — loading is proof of publication, so it always\nimplies the commit. Re-publishing an already-loaded URN goes through\nthe loader's update path (update-by-URN). load=false commits without\ntouching the corpus (publish-for-export).","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## GET /api/library-drafts/{id}/quick-form-editor/

> Bridge to the visual editor for the quick form of the draft.\
> \
> Same protocol as framework-editor: GET returns the editor doc, PUT\
> converts an editor doc back and saves it into the draft document.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/quick-form-editor/":{"get":{"operationId":"library_drafts_quick_form_editor_retrieve","description":"Bridge to the visual editor for the quick form of the draft.\n\nSame protocol as framework-editor: GET returns the editor doc, PUT\nconverts an editor doc back and saves it into the draft document.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## PUT /api/library-drafts/{id}/quick-form-editor/

> Bridge to the visual editor for the quick form of the draft.\
> \
> Same protocol as framework-editor: GET returns the editor doc, PUT\
> converts an editor doc back and saves it into the draft document.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/quick-form-editor/":{"put":{"operationId":"library_drafts_quick_form_editor_update","description":"Bridge to the visual editor for the quick form of the draft.\n\nSame protocol as framework-editor: GET returns the editor doc, PUT\nconverts an editor doc back and saves it into the draft document.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## POST /api/library-drafts/{id}/quick-form-editor-preview/

> What would change on the live quick form if the draft were\
> published now, diffed by URN against the loaded rows.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/quick-form-editor-preview/":{"post":{"operationId":"library_drafts_quick_form_editor_preview_create","description":"What would change on the live quick form if the draft were\npublished now, diffed by URN against the loaded rows.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## POST /api/library-drafts/{id}/quick-form-fill-preview/

> The form as a respondent would meet it, straight from the draft.\
> \
> Distinct from \`quick-form-editor-preview\`, which diffs the draft against the\
> live rows: this renders the pages and evaluates the real conditional\
> visibility, scoring and outcome rules against trial answers, so an author can\
> see what their logic actually does before publishing anything. Nothing is\
> stored — the answers live in the request body. Same pipeline as a loaded\
> form's preview (\`core.quick\_form\_preview\`).

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/quick-form-fill-preview/":{"post":{"operationId":"library_drafts_quick_form_fill_preview_create","description":"The form as a respondent would meet it, straight from the draft.\n\nDistinct from `quick-form-editor-preview`, which diffs the draft against the\nlive rows: this renders the pages and evaluates the real conditional\nvisibility, scoring and outcome rules against trial answers, so an author can\nsee what their logic actually does before publishing anything. Nothing is\nstored — the answers live in the request body. Same pipeline as a loaded\nform's preview (`core.quick_form_preview`).","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## GET /api/library-drafts/{id}/reference-catalog/

> Pickable threats and reference controls for framework-node links.\
> \
> Without a parameter: the draft's own objects, each declared\
> dependency's, and the list of other stored libraries holding such\
> objects. With ?library=\<id or urn>: that library's objects alone\
> (browse-on-demand; linking from it auto-declares the dependency on\
> the next framework-editor save).

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/reference-catalog/":{"get":{"operationId":"library_drafts_reference_catalog_retrieve","description":"Pickable threats and reference controls for framework-node links.\n\nWithout a parameter: the draft's own objects, each declared\ndependency's, and the list of other stored libraries holding such\nobjects. With ?library=<id or urn>: that library's objects alone\n(browse-on-demand; linking from it auto-declares the dependency on\nthe next framework-editor save).","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## POST /api/library-drafts/{id}/upsert-object/

> Create or update a leaf object (threat, reference control, risk\
> matrix, metric definition) in the draft document.\
> \
> Without \`urn\` a new object is created, its URN minted server-side\
> under the library's family base; with \`urn\` the matching object is\
> updated (URN untouched, unknown keys preserved, null values clear\
> their key). Payloads are validated with the loader's own importers.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/upsert-object/":{"post":{"operationId":"library_drafts_upsert_object_create","description":"Create or update a leaf object (threat, reference control, risk\nmatrix, metric definition) in the draft document.\n\nWithout `urn` a new object is created, its URN minted server-side\nunder the library's family base; with `urn` the matching object is\nupdated (URN untouched, unknown keys preserved, null values clear\ntheir key). Payloads are validated with the loader's own importers.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## GET /api/library-drafts/{id}/validate/

> Dry-run the loader-level validation and reference integrity checks.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/{id}/validate/":{"get":{"operationId":"library_drafts_validate_retrieve","description":"Dry-run the loader-level validation and reference integrity checks.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Library draft.","required":true}],"tags":["library-drafts"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## POST /api/library-drafts/adopt/

> Import a custom library into a draft, identity preserved.\
> \
> The inverse of publish (YAML → draft): the library is then maintained\
> in the builder and re-published as updates of the same URN family.\
> Built-in libraries can never acquire an identity-preserving draft.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/adopt/":{"post":{"operationId":"library_drafts_adopt_create","description":"Import a custom library into a draft, identity preserved.\n\nThe inverse of publish (YAML → draft): the library is then maintained\nin the builder and re-published as updates of the same URN family.\nBuilt-in libraries can never acquire an identity-preserving draft.","tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## GET /api/library-drafts/autocomplete/

> Interactive library packager. A draft is a document that serializes to\
> the same library YAML the tools/ Excel converter produces; publishing\
> feeds that YAML to the existing stored-library loader — the single\
> writer of live referential objects. The builder never touches live\
> Framework/ReferenceControl/Threat/... rows itself.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/autocomplete/":{"get":{"operationId":"library_drafts_autocomplete_retrieve","description":"Interactive library packager. A draft is a document that serializes to\nthe same library YAML the tools/ Excel converter produces; publishing\nfeeds that YAML to the existing stored-library loader — the single\nwriter of live referential objects. The builder never touches live\nFramework/ReferenceControl/Threat/... rows itself.","tags":["library-drafts"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## POST /api/library-drafts/batch-action/

> Interactive library packager. A draft is a document that serializes to\
> the same library YAML the tools/ Excel converter produces; publishing\
> feeds that YAML to the existing stored-library loader — the single\
> writer of live referential objects. The builder never touches live\
> Framework/ReferenceControl/Threat/... rows itself.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/batch-action/":{"post":{"operationId":"library_drafts_batch_action_create","description":"Interactive library packager. A draft is a document that serializes to\nthe same library YAML the tools/ Excel converter produces; publishing\nfeeds that YAML to the existing stored-library loader — the single\nwriter of live referential objects. The builder never touches live\nFramework/ReferenceControl/Threat/... rows itself.","tags":["library-drafts"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## GET /api/library-drafts/check-identity/

> Advisory identity check for the creation form, before a draft exists.\
> \
> Collection actions bypass the object-level RBAC machinery, so the\
> check is explicit — and the answer spans the whole corpus (stored,\
> loaded, drafts), so it is reserved for root-level draft creators.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/check-identity/":{"get":{"operationId":"library_drafts_check_identity_retrieve","description":"Advisory identity check for the creation form, before a draft exists.\n\nCollection actions bypass the object-level RBAC machinery, so the\ncheck is explicit — and the answer spans the whole corpus (stored,\nloaded, drafts), so it is reserved for root-level draft creators.","tags":["library-drafts"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```

## POST /api/library-drafts/import-yaml/

> Seed a NEW editable draft from an uploaded library YAML file.\
> \
> A library YAML is just a serialized draft document, so this is the\
> inverse of Export — without routing through a StoredLibrary first.\
> Unlike adopt (which keeps a stored/loaded library in sync and freezes\
> its identity), the imported file is not loaded anywhere: the draft's\
> identity stays editable (renaming rebases the whole URN family) until\
> it is published. Dependencies are resolved only at publish, as usual.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"library-drafts"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"LibraryDraftRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"folder":{"type":"string","readOnly":true},"urn":{"type":"string","readOnly":true},"packager":{"type":"string","pattern":"^[a-z0-9_-]+$","maxLength":100},"ref_id":{"type":"string","title":"Reference ID","pattern":"^[a-z0-9_-]+$","maxLength":100},"locale":{"type":"string","maxLength":100},"version":{"type":"integer","maximum":9223372036854776000,"minimum":1,"format":"int64"},"provider":{"type":"string","nullable":true,"maxLength":200},"copyright":{"type":"string","nullable":true,"maxLength":4096},"publication_date":{"type":"string","format":"date","nullable":true},"annotation":{"type":"string","nullable":true},"translations":{},"dependencies":{},"labels":{},"content":{},"objects_meta":{"type":"object","additionalProperties":{},"readOnly":true},"identity_locked":{"type":"boolean","readOnly":true},"has_unpublished_changes":{"type":"boolean","readOnly":true},"first_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_at":{"type":"string","format":"date-time","nullable":true},"last_published_version":{"type":"integer","maximum":9223372036854776000,"minimum":-9223372036854776000,"format":"int64","nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true}},"required":["created_at","folder","has_unpublished_changes","id","identity_locked","name","objects_meta","packager","ref_id","updated_at","urn"]}}},"paths":{"/api/library-drafts/import-yaml/":{"post":{"operationId":"library_drafts_import_yaml_create","description":"Seed a NEW editable draft from an uploaded library YAML file.\n\nA library YAML is just a serialized draft document, so this is the\ninverse of Export — without routing through a StoredLibrary first.\nUnlike adopt (which keeps a stored/loaded library in sync and freezes\nits identity), the imported file is not loaded anywhere: the draft's\nidentity stays editable (renaming rebases the whole URN family) until\nit is published. Dependencies are resolved only at publish, as usual.","tags":["library-drafts"],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryDraftRead"}}},"description":""}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://intuitem.gitbook.io/ciso-assistant/api-documentation/api-reference/library-drafts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
