-
201
@@ -4800,28 +4836,28 @@ Types
-
+
-
+
-
Responses
-
-
xml
-
-
json
@@ -4832,19 +4868,19 @@
Types
-
-
+
+
file_copy
-
+
<?xml version="1.0" encoding="UTF-8"?>
<Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/107/versions/4">
<VersionInfo>
@@ -4867,20 +4903,20 @@ Types
<Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api
- View more
+ View more
-
+
file_copy
-
+
{
"Version": {
"_media-type": "application/vnd.ibexa.api.Version+json",
@@ -4911,16 +4947,16 @@ Types
- View more
+ View more
-
+
-
+
-
Responses
-
-
xml
@@ -4949,11 +4985,11 @@
Types
-
-
json
@@ -4967,20 +5003,20 @@
Types
-
+
+ id="content-objects-contentid-currentversion-post-response-201-xml-modal" role="tabpanel"
+ aria-labelledby="content-objects-contentid-currentversion-post-response-201-xml-modal-tab">
file_copy
-
+
<?xml version="1.0" encoding="UTF-8"?>
<Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/107/versions/4">
<VersionInfo>
@@ -5059,18 +5095,18 @@ Types
+ id="content-objects-contentid-currentversion-post-response-201-json-modal" role="tabpanel"
+ aria-labelledby="content-objects-contentid-currentversion-post-response-201-json-modal-tab">
file_copy
-
+
{
"Version": {
"_media-type": "application/vnd.ibexa.api.Version+json",
@@ -5738,13 +5774,6 @@
@@ -5754,9 +5783,9 @@
@@ -6993,29 +7022,144 @@ Types
-
+
-
- Create a draft from a version
- ¶
+ data-search="delete-content-version">
+ Delete content version
+ ¶
- COPY
+ DELETE
+ /content/objects/{contentId}/versions/{versionNo}
+
+ Deletes the content version.
+
+
+
+
+ Possible responses
+
+
+
+
+ Code |
+ Description |
+
+
+
+
+
+ 204
+ |
+
+ No Content - the version is deleted.
+ |
+
+
+
+ 404
+ |
+
+ Error - the content item or version were not found.
+ |
+
+
+
+ 401
+ |
+
+ Error - the user is not authorized to delete this version.
+ |
+
+
+
+ 403
+ |
+
+ Error - the version is in published state.
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Publish or copy content version
+ ¶
+
+
+
+
+ POST
/content/objects/{contentId}/versions/{versionNo}
- The system creates a new draft as a copy of the given version. COPY or POST with header X-HTTP-Method-Override COPY.
+ Publishes or copies the content version as draft, depending on request method or Content-Type header. Request method can be POST, PUBLISH, or COPY.
Header parameters
+ Content-Type
+ Required when using the POST request method to indicate the action.
+
+
+
+
+ Property |
+ Value |
+
+
+
+
+ Type |
+
+
+
+ string
+
+
+
+
+ |
+
+
+ Examples |
+
+ application/vnd.ibexa.api.PublishContentVersionInput+json
+application/vnd.ibexa.api.PublishContentVersionInput+xml
+application/vnd.ibexa.api.CreateDraftFromVersionInput+json
+application/vnd.ibexa.api.CreateDraftFromVersionInput+xml
+
+ |
+
+
+
+
+
+
Accept
- If set, the updated version is returned in XML or JSON format.
+ If set, the published version is returned in XML or JSON format.
@@ -7065,13 +7209,21 @@ Possible responses
-
201
|
- Created.
+ Copy created.
+ |
+
+
+
+ 204
+ |
+
+ No Content - the content version is published.
|
@@ -7079,7 +7231,15 @@ Possible responses
401
- Error - the user is not authorized to update this content item.
+ Error - the user is not authorized to publish this version.
+ |
+
+
+
+ 403
+ |
+
+ Error - the version is not a draft.
|
@@ -7087,7 +7247,7 @@ Possible responses
404
- Error - the content item was not found.
+ Error - the content item or version were not found.
|
@@ -7133,28 +7293,28 @@ Types
-
+
-
+
-
Responses
-
-
xml
-
-
json
@@ -7165,19 +7325,19 @@
Types
-
-
+
+
file_copy
-
+
<?xml version="1.0" encoding="UTF-8"?>
<Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/107/versions/7">
<VersionInfo>
@@ -7200,20 +7360,20 @@ Types
<Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api
- View more
+ View more
-
+
file_copy
-
+
{
"Version": {
"_media-type": "application/vnd.ibexa.api.Version+json",
@@ -7244,17 +7404,17 @@ Types
- View more
+ View more
-
+
-
+
-
Responses
-
-
xml
@@ -7282,11 +7442,11 @@
Types
-
-
json
@@ -7300,20 +7460,20 @@
Types
-
+
+ id="content-objects-contentid-versions-versionno-post-response-201-xml-modal" role="tabpanel"
+ aria-labelledby="content-objects-contentid-versions-versionno-post-response-201-xml-modal-tab">
file_copy
-
+
<?xml version="1.0" encoding="UTF-8"?>
<Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/107/versions/7">
<VersionInfo>
@@ -7392,18 +7552,18 @@ Types
+ id="content-objects-contentid-versions-versionno-post-response-201-json-modal" role="tabpanel"
+ aria-labelledby="content-objects-contentid-versions-versionno-post-response-201-json-modal-tab">
file_copy
-
+
{
"Version": {
"_media-type": "application/vnd.ibexa.api.Version+json",
@@ -7504,161 +7664,7 @@ Types
-
-
-
-
-
-
-
-
- Delete content version
- ¶
-
-
-
-
- DELETE
- /content/objects/{contentId}/versions/{versionNo}
-
- Deletes the content version.
-
-
-
-
- Possible responses
-
-
-
-
- Code |
- Description |
-
-
-
-
-
- 204
- |
-
- No Content - the version is deleted.
- |
-
-
-
- 404
- |
-
- Error - the content item or version were not found.
- |
-
-
-
- 401
- |
-
- Error - the user is not authorized to delete this version.
- |
-
-
-
- 403
- |
-
- Error - the version is in published state.
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Publish a content version
- ¶
-
-
-
-
- PUBLISH
- /content/objects/{contentId}/versions/{versionNo}
-
- Publishes the content version. PUBLISH or POST with header X-HTTP-Method-Override PUBLISH
-
-
-
-
- Possible responses
-
-
-
-
- Code |
- Description |
-
-
-
-
-
- 204
- |
-
- No Content - the content version is published.
- |
-
-
-
- 401
- |
-
- Error - the user is not authorized to publish this version.
- |
-
-
-
- 403
- |
-
- Error - the version is not a draft.
- |
-
-
-
- 404
- |
-
- Error - the content item or version were not found.
- |
-
-
-
-
-
-
-
-
-
@@ -16851,20 +16857,6 @@ /content/locations/
GET
-
-
-
-
- MOVE
-
-
-
-
-
-
- COPY
-
-
@@ -16881,9 +16873,9 @@ /content/locations/
-
-
- SWAP
+
+
+ POST
@@ -17382,218 +17374,6 @@ Types
-
-
-
-
-
-
- MOVE
- /content/locations/{path}
-
- Moves Location to a different parent. The destination can also be '/content/trash' where the Location is put into the trash. (NOTE - Be aware that the user might lose access to the item after it has been moved, for example when read access is limited by a subtree). MOVE or POST with header X-HTTP-Method-Override MOVE.
-
-
- Header parameters
-
- Destination
- A parent Location resource to which the Location is moved e.g. '/api/ibexa/v2/content/locations/1/63'.
-
-
-
-
- Property |
- Value |
-
-
-
-
- Type |
-
-
-
- string
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
- Possible responses
-
-
-
-
- Code |
- Description |
-
-
-
-
-
- 201
- |
-
- Created. If destination is '/api/ibexa/v2/content/trash' and content only has one Location (NOTE - Like on normal subtree moves, be aware that the user might lose access to the item after it has been moved to Trash.)
- |
-
-
-
- 204
- |
-
- No Content. If destination is '/api/ibexa/v2/content/trash' and content still has other Locations (no trash item is created).
- |
-
-
-
- 401
- |
-
- Error - the user is not authorized to move this Location.
- |
-
-
-
- 404
- |
-
- Error - the Location with the given ID does not exist.
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- COPY
- /content/locations/{path}
-
- Copies the subtree to a different parent. COPY or POST with header X-HTTP-Method-Override COPY.
-
-
- Header parameters
-
- Destination
- A parent Location resource to which the Location is moved e.g. '/api/ibexa/v2/content/locations/1/63'.
-
-
-
-
- Property |
- Value |
-
-
-
-
- Type |
-
-
-
- string
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
- Possible responses
-
-
-
-
- Code |
- Description |
-
-
-
-
-
- 201
- |
-
- Created. Copied the subtree to a different parent.
- |
-
-
-
- 401
- |
-
- Error - the user is not authorized to move this Location.
- |
-
-
-
- 404
- |
-
- Error - the Location with the given ID does not exist.
- |
-
-
-
-
-
-
-
-
-
-
@@ -18403,29 +18183,71 @@ Types
-
+
-
- Swap Location
- ¶
+ data-search="swap-location---copy-subtree---move-subtree---trash">
+ Swap Location / Copy subtree / Move subtree / Trash
+ ¶
- SWAP
+ POST
/content/locations/{path}
- Swaps the Location of a content item with the given Location of another content item. SWAP or POST with header X-HTTP-Method-Override SWAP.
+ Depending on request method or Content-Type header, one of the following: swaps the Location of a content item with the given Location of another content item, copies a subtree, moves a subtree, sends location to trash. Request method can be POST, SWAP, COPY, MOVE, or TRASH.
Header parameters
+ Content-Type
+ Required only when using POST request method. Indicates the format of the request body and the action.
+
+
+
+
+ Property |
+ Value |
+
+
+
+
+ Type |
+
+
+
+ string
+
+
+
+
+ |
+
+
+ Examples |
+
+ application/vnd.ibexa.api.SwapLocationInput+json
+application/vnd.ibexa.api.SwapLocationInput+xml
+application/vnd.ibexa.api.CopyLocationInput+json
+application/vnd.ibexa.api.CopyLocationInput+xml
+application/vnd.ibexa.api.MoveLocationInput+json
+application/vnd.ibexa.api.MoveLocationInput+xml
+application/vnd.ibexa.api.TrashLocationInput+json
+application/vnd.ibexa.api.TrashLocationInput+xml
+
+ |
+
+
+
+
+
+
Destination
- A parent Location resource to which the Location is moved e.g. '/api/ibexa/v2/content/locations/1/63'.
+ Required only when using SWAP, COPY, or MOVE request methods. A location resource to swap with, copy the subtree to, or move the subtree to, e.g. '/api/ibexa/v2/content/locations/1/63'.
@@ -18446,6 +18268,12 @@ Header parameters
+
+
+ Examples |
+
+ /api/ibexa/v2/content/locations/1/63
+ |
@@ -18466,6 +18294,14 @@ Possible responses
+
+ 201
+ |
+
+ Created. Copied or moved the subtree to a different parent, or sent the location to Trash.
+ |
+
+
204
|
@@ -18494,14 +18330,304 @@ Possible responses
-
+
+
+
+
+
+ -
+ Request
+
+ -
+
+ json
+
+
+ -
+
+ xml
+
+
+
+
+
+
+
+
+
+ file_copy
+
+
+
+ {
+ "SwapLocationInput": {
+ "destination": "/1/2"
+ }
+}
+
+
+
+ View more
+
+
+ file_copy
+
+
+
+ {
+ "CopyLocationInput": {
+ "destination": "/1/5"
+ }
+}
+
+
+
+ View more
+
+
+
+
+ file_copy
+
+
+
+ <SwapLocationInput>
+ <destination>/1/2</destination>
+</SwapLocationInput>
+
+
+
+ View more
+
+
+ file_copy
+
+
+
+ <CopyLocationInput>
+ <destination>/1/2</destination>
+</CopyLocationInput>
+
+
+
+ View more
+
+
+
+
+
+
+
+
+
+
+ -
+
+ Request
+
+
+ -
+
+ json
+
+
+ -
+
+
+ -
+
+ xml
+
+
+ -
+
+
+
+
+
+
+
+
+
+ file_copy
+
+
+
+ {
+ "SwapLocationInput": {
+ "destination": "/1/2"
+ }
+}
+
+
+
+
+
+ file_copy
+
+
+
+ {
+ "CopyLocationInput": {
+ "destination": "/1/5"
+ }
+}
+
+
+
+
+
+
+
+ file_copy
+
+
+
+ <SwapLocationInput>
+ <destination>/1/2</destination>
+</SwapLocationInput>
+
+
+
+
+
+ file_copy
+
+
+
+ <CopyLocationInput>
+ <destination>/1/2</destination>
+</CopyLocationInput>
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -22100,8 +22226,8 @@ /content/trash/{
-
- MOVE
+
+ POST
@@ -22581,16 +22707,52 @@ Types
- MOVE
+ POST
/content/trash/{trashItemid}
- Restores an item from Trash. MOVE or POST with header X-HTTP-Method-Override MOVE.
+ Restores an item from Trash. Request method can be POST or MOVE.
Header parameters
+ Content-Type
+ Optional when using the MOVE request method.
+
+
+
+
+ Property |
+ Value |
+
+
+
+
+ Type |
+
+
+
+ string
+
+
+
+
+ |
+
+
+ Examples |
+
+ application/vnd.ibexa.api.RestoreTrashItemInput+json
+application/vnd.ibexa.api.RestoreTrashItemInput+xml
+
+ |
+
+
+
+
+
+
Destination
- If the destination Location URI is provided, the item from Trash is restored under this Location, otherwise it is restored under its original parent Location.
+ Used together with MOVE request method. If the destination Location URI (e.g. /api/ibexa/v2/content/locations/1/2) is provided, the item from Trash is restored under this Location, otherwise it is restored under its original parent Location.
@@ -22667,11 +22829,279 @@ Possible responses
-
+
+
+
+
+
+ -
+ Request
+
+ -
+
+ json
+
+
+ -
+
+ xml
+
+
+
+
+
+
+
+
+
+ file_copy
+
+
+
+ {
+ "RestoreTrashItemInput": {
+ "destination": "/1/2"
+ }
+}
+
+
+
+ View more
+
+
+ file_copy
+
+
+
+ {
+ "RestoreTrashItemInput": {
+ }
+}
+
+
+
+ View more
+
+
+
+
+ file_copy
+
+
+
+ <RestoreTrashItemInput>
+ <destination>/1/2</destination>
+</RestoreTrashItemInput>
+
+
+
+ View more
+
+
+ file_copy
+
+
+
+ <RestoreTrashItemInput />
+
+
+
+ View more
+
+
+
+
+
+
+
+
+
+
+ -
+
+ Request
+
+
+ -
+
+ json
+
+
+ -
+
+
+ -
+
+ xml
+
+
+ -
+
+
+
+
+
+
+
+
+
+ file_copy
+
+
+
+ {
+ "RestoreTrashItemInput": {
+ "destination": "/1/2"
+ }
+}
+
+
+
+
+
+ file_copy
+
+
+
+ {
+ "RestoreTrashItemInput": {
+ }
+}
+
+
+
+
+
+
+
+ file_copy
+
+
+
+ <RestoreTrashItemInput>
+ <destination>/1/2</destination>
+</RestoreTrashItemInput>
+
+
+
+
+
+ file_copy
+
+
+
+ <RestoreTrashItemInput />
+
+
+
+
+
+
+
+
+
+
+
@@ -35343,14 +35773,7 @@ /content/types
-
-
- COPY
-
-
-
-
-
+
POST
@@ -36235,76 +36658,15 @@ Types
-
-
-
-
- Copy content type
- ¶
-
-
-
-
- COPY
- /content/types/{contentTypeId}
-
- Copies a content type. A new remote ID is generated, and the identifier of the copy is set to 'copy_of_originalBaseIdentifier_newTypeId' (or another random string). COPY or POST with header X-HTTP-Method-Override COPY.
-
-
-
-
- Possible responses
-
-
-
-
- Code |
- Description |
-
-
-
-
-
- 201
- |
-
- Copy of the content type created.
- |
-
-
-
- 401
- |
-
- Error - The user is not authorized to copy this content type.
- |
-
-
-
-
-
-
-
-
-
-
-
-
+
-
- Create Draft
- ¶
+ data-search="create-draft---copy">
+ Create Draft / Copy
+ ¶
@@ -36312,7 +36674,7 @@ Possible responses
POST
/content/types/{contentTypeId}
- Creates a draft and updates it with the given data.
+ Depending on request details, either creates a content type draft with the given data or copies a content type. When copying a new ID is generated, and the identifier of the copy is set to 'copy_of_originalBaseIdentifier_newTypeId'. To create a copy request method can be POST or COPY.
Header parameters
@@ -36354,7 +36716,7 @@ Header parameters
Content-Type
- The content type Update schema encoded in XML or JSON format.
+ The content type update schema encoded in XML or JSON format or application/vnd.ibexa.api.CopyContentTypeInput to indicate copying.
@@ -36381,6 +36743,8 @@ Header parameters
application/vnd.ibexa.api.ContentTypeUpdate+xml
application/vnd.ibexa.api.ContentTypeUpdate+json
+application/vnd.ibexa.api.CopyContentTypeInput+json
+application/vnd.ibexa.api.CopyContentTypeInput+xml
|
@@ -36410,7 +36774,7 @@ Possible responses
- Draft created.
+ Draft or copy created. For copying the response is empty.
|
@@ -36426,7 +36790,7 @@ Possible responses
401
- Error - The user is not authorized to create the draft.
+ Error - The user is not authorized to create or copy the draft.
|
@@ -36574,7 +36938,7 @@ Types
|