From 0af46036367dc684a1c7c33a4725c9c7623d688d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Tue, 23 Sep 2025 11:50:14 +0200 Subject: [PATCH 1/4] Added spec --- openapi.yaml | 31405 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 31405 insertions(+) create mode 100644 openapi.yaml diff --git a/openapi.yaml b/openapi.yaml new file mode 100644 index 0000000000..c9e49fd2c4 --- /dev/null +++ b/openapi.yaml @@ -0,0 +1,31405 @@ +openapi: 3.1.0 +info: + title: 'Ibexa DXP REST API' + description: '' + version: 5.0.2 +servers: + - + url: /api/ibexa/v2 + description: 'Current server' +paths: + /activity-log-group/list: + get: + operationId: api_activity-log-grouplist_get + tags: + - 'Activity Log' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ActivityLogGroupList+xml: + schema: + $ref: '#/components/schemas/ActivityLogGroupList' + example: | + + + + 14 + 1707478796 + + 396 + Ibexa\Contracts\Core\Repository\Values\Content\Content + create + + + + 396 + Ibexa\Contracts\Core\Repository\Values\Content\Content + publish + + + + + 14 + 1707475048 + + 395 + Ibexa\Contracts\Core\Repository\Values\Content\Content + create + + + + 395 + Ibexa\Contracts\Core\Repository\Values\Content\Content + publish + + + + + application/vnd.ibexa.api.ActivityLogGroupList+json: + schema: + $ref: '#/components/schemas/ActivityLogGroupListWrapper' + example: + ActivityLogGroupList: + _media-type: application/vnd.ibexa.api.ActivityLogGroupList+json + _href: /api/ibexa/v2/activity-log-group/list + ActivityLogGroups: [{ _media-type: application/vnd.ibexa.api.ActivityLogGroup+json, user_id: 14, logged_at: 1707478796, ActivityLogEntries: [{ _media-type: application/vnd.ibexa.api.ActivityLog+json, object_id: '396', object_class: Ibexa\Contracts\Core\Repository\Values\Content\Content, action: create, data: [] }, { _media-type: application/vnd.ibexa.api.ActivityLog+json, object_id: '396', object_class: Ibexa\Contracts\Core\Repository\Values\Content\Content, action: publish, data: [] }] }, { _media-type: application/vnd.ibexa.api.ActivityLogGroup+json, user_id: 14, logged_at: 1707475048, ActivityLogEntries: [{ _media-type: application/vnd.ibexa.api.ActivityLog+json, object_id: '395', object_class: Ibexa\Contracts\Core\Repository\Values\Content\Content, action: create, data: [] }, { _media-type: application/vnd.ibexa.api.ActivityLog+json, object_id: '395', object_class: Ibexa\Contracts\Core\Repository\Values\Content\Content, action: publish, data: [] }] }] + '401': + description: 'Error - the user is not authorized to list activities.' + summary: 'List of activity log groups' + description: 'Lists last activity log groups and their entries.' + parameters: + - + name: Accept + in: header + description: 'If set, the list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + /bookmark: + get: + operationId: api_bookmark_get + tags: + - Bookmark + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.BookmarkList+xml: + schema: + $ref: '#/components/schemas/BookmarkList' + example: | + + + 3 + + + 65 + 0 + false + false + false + + /1/2/57/65/ + 3 + 0 + aa538e305aea472eb221ce23d1cc4b50 + + + PATH + ASC + + + + + Art3 + Art3 + + +
+ + + 2021-06-28T11:34:17+00:00 + 2021-06-28T11:34:17+00:00 + eng-GB + 1 + false + false + PUBLISHED + + + + + + + + 68 + 0 + false + false + false + + /1/2/58/68/ + 3 + 0 + b8cc4627dbc3ca693c85b6b06a8f7492 + + + PUBLISHED + DESC + + + + + Tip1 + Tip1 + + +
+ + + 2021-06-28T11:36:21+00:00 + 2021-06-28T11:36:21+00:00 + eng-GB + 1 + true + false + PUBLISHED + + + + + + + + 59 + 0 + false + false + false + + /1/2/59/ + 2 + 3 + fd949fc2eed1fff847d73021ff1a6ea9 + + + PATH + ASC + + + + + Dog Breed Catalog + Dog Breed Catalog + + +
+ + + 2021-06-28T11:23:10+00:00 + 2021-06-28T11:23:10+00:00 + eng-GB + 1 + true + false + PUBLISHED + + + + + + + application/vnd.ibexa.api.BookmarkList+json: + schema: + $ref: '#/components/schemas/BookmarkListWrapper' + example: + BookmarkList: + _media-type: application/vnd.ibexa.api.BookmarkList+json + count: 3 + items: [{ _media-type: application/vnd.ibexa.api.Bookmark+json, __href: /api/ibexa/v2/bookmark/65, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/57/65, id: 65, priority: 0, hidden: false, invisible: false, explicitlyHidden: false, ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/57 }, pathString: /1/2/57/65/, depth: 3, childCount: 0, remoteId: aa538e305aea472eb221ce23d1cc4b50, Children: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/locations/1/2/57/65/children }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/63 }, sortField: PATH, sortOrder: ASC, UrlAliases: { _media-type: application/vnd.ibexa.api.UrlAliasRefList+json, _href: /api/ibexa/v2/content/locations/1/2/57/65/urlaliases }, ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/63, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/63, _remoteId: 211e99934c8fef5900e4813b96ec5c87, _id: 63, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2 }, Name: Art3, TranslatedName: Art3, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/63/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/63/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/63/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-06-28T11:34:17+00:00', publishedDate: '2021-06-28T11:34:17+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: false, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/63/objectstates } } } } }, { _media-type: application/vnd.ibexa.api.Bookmark+json, __href: /api/ibexa/v2/bookmark/68, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/58/68, id: 68, priority: 0, hidden: false, invisible: false, explicitlyHidden: false, ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/58 }, pathString: /1/2/58/68/, depth: 3, childCount: 0, remoteId: b8cc4627dbc3ca693c85b6b06a8f7492, Children: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/locations/1/2/58/68/children }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/67 }, sortField: PUBLISHED, sortOrder: DESC, UrlAliases: { _media-type: application/vnd.ibexa.api.UrlAliasRefList+json, _href: /api/ibexa/v2/content/locations/1/2/58/68/urlaliases }, ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/67, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/67, _remoteId: 180adb876af5755d65c1a362fcd619c8, _id: 67, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/45 }, Name: Tip1, TranslatedName: Tip1, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/67/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/67/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/67/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-06-28T11:36:21+00:00', publishedDate: '2021-06-28T11:36:21+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/67/objectstates } } } } }, { _media-type: application/vnd.ibexa.api.Bookmark+json, __href: /api/ibexa/v2/bookmark/59, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/59, id: 59, priority: 0, hidden: false, invisible: false, explicitlyHidden: false, ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2 }, pathString: /1/2/59/, depth: 2, childCount: 3, remoteId: fd949fc2eed1fff847d73021ff1a6ea9, Children: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/locations/1/2/59/children }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/58 }, sortField: PATH, sortOrder: ASC, UrlAliases: { _media-type: application/vnd.ibexa.api.UrlAliasRefList+json, _href: /api/ibexa/v2/content/locations/1/2/59/urlaliases }, ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/58, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/58, _remoteId: 00b513aae54036a16e00fb3365c4b5f3, _id: 58, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1 }, Name: 'Dog Breed Catalog', TranslatedName: 'Dog Breed Catalog', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/58/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/58/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/58/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-06-28T11:23:10+00:00', publishedDate: '2021-06-28T11:23:10+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/58/objectstates } } } } }] + '401': + description: 'Error - the user is not authorized to list bookmarks.' + summary: 'List of bookmarks' + description: 'Lists bookmarked Locations for the current user.' + parameters: + - + name: Accept + in: header + description: 'If set, the list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/bookmark/{locationId}': + post: + operationId: api_bookmark_locationId_post + tags: + - Bookmark + responses: + '201': + description: Created. + '401': + description: 'Error - the user is not authorized to given Location.' + '404': + description: 'Error - the given Location does not exist.' + '409': + description: 'Error - Location is already bookmarked.' + summary: 'Create bookmark' + description: 'Add given Location to bookmarks of the current user.' + parameters: + - + name: locationId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new BookmarkCreateController resource' + content: { } + required: false + deprecated: false + delete: + operationId: api_bookmark_locationId_delete + tags: + - Bookmark + responses: + '204': + description: 'Deleted - no content.' + '401': + description: 'Error - the user is not authorized for the given Location.' + '404': + description: 'Error - the given Location does not exist / is not bookmarked.' + summary: 'Delete bookmark' + description: 'Deletes the given Location from bookmarks of the current user.' + parameters: + - + name: locationId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + head: + operationId: api_bookmark_locationId_head + tags: + - Bookmark + responses: + '200': + description: 'OK - bookmarked.' + '401': + description: 'Error - the user is not authorized for the given Location.' + '404': + description: 'Error - the given Location does not exist / is not bookmarked.' + summary: 'Check if Location is bookmarked' + description: 'Checks if the given Location is bookmarked by the current user.' + parameters: + - + name: locationId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /calendar/event: + get: + operationId: api_calendarevent_get + tags: + - Calendar + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.EventList+xml: + schema: + $ref: '#/components/schemas/EventList' + example: | + + + 5 + + application/vnd.ibexa.api.EventList+json: + schema: + $ref: '#/components/schemas/EventListWrapper' + example: + EventList: + _media-type: application/vnd.ibexa.api.EventList+json + _currentPage: '/api/ibexa/v2/calendar/event?start=1597104000&end=1598745600&count=10' + totalCount: 5 + events: [] + summary: 'Calendar list' + description: 'Calendar event list.' + parameters: + - + name: Accept + in: header + description: 'If set, the calendar event list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /calendar/event/grouped-by-day: + get: + operationId: api_calendareventgrouped-by-day_get + tags: + - Calendar + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.EventGroupList+xml: + schema: + $ref: '#/components/schemas/EventGroupList' + example: | + + + + + 1597104000 + 1597190400 + + 0 + + + + 1597190400 + 1597276800 + + 0 + + + + 1597276800 + 1597363200 + + 1 + + + + 1597363200 + 1597449600 + + 1 + + + + 1597449600 + 1597536000 + + 1 + + + + 1597536000 + 1597622400 + + 1 + + + + 1597622400 + 1597708800 + + 0 + + + + 1597708800 + 1597795200 + + 0 + + + + 1597795200 + 1597881600 + + 1 + + + + 1597881600 + 1597968000 + + 0 + + + + 1597968000 + 1598054400 + + 0 + + + + 1598054400 + 1598140800 + + 0 + + + + 1598140800 + 1598227200 + + 0 + + + + 1598227200 + 1598313600 + + 0 + + + + 1598313600 + 1598400000 + + 0 + + + + 1598400000 + 1598486400 + + 0 + + + + 1598486400 + 1598572800 + + 0 + + + + 1598572800 + 1598659200 + + 0 + + + + 1598659200 + 1598745600 + + 0 + + + application/vnd.ibexa.api.EventGroupList+json: + schema: + $ref: '#/components/schemas/EventGroupListWrapper' + example: + EventGroupList: + _media-type: application/vnd.ibexa.api.EventGroupList+json + groups: [{ _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597104000&end=1597190400&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597104000', endDate: '1597190400' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597190400&end=1597276800&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597190400', endDate: '1597276800' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597276800&end=1597363200&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597276800', endDate: '1597363200' }, totalCount: 1, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597363200&end=1597449600&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597363200', endDate: '1597449600' }, totalCount: 1, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597449600&end=1597536000&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597449600', endDate: '1597536000' }, totalCount: 1, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597536000&end=1597622400&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597536000', endDate: '1597622400' }, totalCount: 1, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597622400&end=1597708800&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597622400', endDate: '1597708800' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597708800&end=1597795200&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597708800', endDate: '1597795200' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597795200&end=1597881600&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597795200', endDate: '1597881600' }, totalCount: 1, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597881600&end=1597968000&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597881600', endDate: '1597968000' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597968000&end=1598054400&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597968000', endDate: '1598054400' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598054400&end=1598140800&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598054400', endDate: '1598140800' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598140800&end=1598227200&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598140800', endDate: '1598227200' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598227200&end=1598313600&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598227200', endDate: '1598313600' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598313600&end=1598400000&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598313600', endDate: '1598400000' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598400000&end=1598486400&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598400000', endDate: '1598486400' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598486400&end=1598572800&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598486400', endDate: '1598572800' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598572800&end=1598659200&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598572800', endDate: '1598659200' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598659200&end=1598745600&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598659200', endDate: '1598745600' }, totalCount: 0, events: [] }] + summary: 'Calendar list grouped by day' + description: 'Calendar event list grouped by day.' + parameters: + - + name: Accept + in: header + description: 'If set, the calendar event list grouped by day is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/calendar/event/{eventType}': + post: + operationId: api_calendarevent_eventType_post + tags: + - Calendar + responses: + '204': + description: 'No Content - the action has been unscheduled.' + summary: 'Calendar action' + description: 'A calendar action that e.g. reschedules or unschedules calendar events. The event type should always be copied from an event.' + parameters: + - + name: Content-Type + in: header + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: eventType + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new EventExecuteActionController resource' + content: + application/vnd.ibexa.api.calendar.future_publication.UnscheduleAction+json: + schema: + $ref: '#/components/schemas/UnscheduleActionWrapper' + x-ibexa-example-file: '@IbexaCalendarBundle/Resources/api_platform/examples/calendar/event/eventType/POST/future_publication.UnscheduleAction.json.example' + application/vnd.ibexa.api.calendar.future_hide.UnscheduleAction+json: + schema: + $ref: '#/components/schemas/UnscheduleActionWrapper' + x-ibexa-example-file: '@IbexaCalendarBundle/Resources/api_platform/examples/calendar/event/eventType/POST/future_publication.UnscheduleAction.json.example' + required: false + deprecated: false + /cart: + post: + operationId: api_cart_post + tags: + - Cart + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Cart+xml: + schema: + $ref: '#/components/schemas/Cart' + application/vnd.ibexa.api.Cart+json: + schema: + $ref: '#/components/schemas/CartWrapper' + example: + Cart: + _media-type: application/vnd.ibexa.api.Cart+json + id: 12 + identifier: fafccc4b-cce1-40d7-8d23-29ad41638581 + name: Default + createdAt: '2023-10-12T10:02:51+00:00' + updatedAt: '2023-10-12T10:02:51+00:00' + owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } + entries: [] + '400': + description: 'Error - The input does not match the input schema definition.' + summary: 'Create Cart' + description: 'Creates Cart from payload.' + parameters: + - + name: Content-Type + in: header + description: 'The CartCreate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Accept + in: header + description: 'If set, the created Cart is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new CartCreateController resource' + content: + application/vnd.ibexa.api.CartCreate+xml: + schema: + $ref: '#/components/schemas/CartCreate' + application/vnd.ibexa.api.CartCreate+json: + schema: + $ref: '#/components/schemas/CartCreateWrapper' + x-ibexa-example-file: '@IbexaCartBundle/Resources/api_platform/examples/cart/POST/CartCreate.json.example' + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + /cart/view: + post: + operationId: api_cartview_post + tags: + - Cart + responses: + '200': + description: 'OK - returns a view and its results' + content: + application/vnd.ibexa.api.CartView+xml: + schema: + $ref: '#/components/schemas/CartView' + application/vnd.ibexa.api.CartView+json: + schema: + $ref: '#/components/schemas/CartViewWrapper' + summary: 'Filter carts' + description: 'Executes a query and returns a View including the results.' + parameters: + - + name: Accept + in: header + description: 'The CartView schema is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The CartViewInput schema is posted in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new CartViewController resource' + content: + application/vnd.ibexa.api.CartViewInput+xml: + schema: + $ref: '#/components/schemas/CartViewInput' + application/vnd.ibexa.api.CartViewInput+json: + schema: + $ref: '#/components/schemas/CartViewInputWrapper' + x-ibexa-example-file: '@IbexaCartBundle/Resources/api_platform/examples/cart/view/CartViewInput.json.example' + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/cart/{identifier}': + get: + operationId: api_cart_identifier_get + tags: + - Cart + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Cart+xml: + schema: + $ref: '#/components/schemas/Cart' + application/vnd.ibexa.api.Cart+json: + schema: + $ref: '#/components/schemas/CartWrapper' + example: + Cart: + _media-type: application/vnd.ibexa.api.Cart+json + id: 12 + identifier: fafccc4b-cce1-40d7-8d23-29ad41638581 + name: Default + createdAt: '2023-10-12T10:02:51+00:00' + updatedAt: '2023-10-12T10:02:51+00:00' + owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } + entries: [] + '401': + description: 'Error - the user is not authorized to get this cart.' + '404': + description: 'Error - The identifier do not match any Cart.' + summary: 'Get Cart' + description: 'Gets Cart by its identifier.' + parameters: + - + name: Accept + in: header + description: 'The Cart is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + delete: + operationId: api_cart_identifier_delete + tags: + - Cart + responses: + '204': + description: 'CartDeleteController resource deleted' + summary: 'Delete Cart' + description: 'Deletes Cart by its identifier.' + parameters: + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + patch: + operationId: api_cart_identifier_patch + tags: + - Cart + responses: + '200': + description: 'OK - return the updated cart' + content: + application/vnd.ibexa.api.Cart+xml: + schema: + $ref: '#/components/schemas/Cart' + application/vnd.ibexa.api.Cart+json: + schema: + $ref: '#/components/schemas/CartWrapper' + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update this cart.' + '404': + description: 'Error - The identifier do not match any cart.' + summary: "Update Cart's metadata" + description: "Updates identified Cart's metadata from payload." + parameters: + - + name: Content-Type + in: header + description: 'The CartMetadataUpdate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Accept + in: header + description: 'If set, the updated Cart is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated CartUpdateController resource' + content: + application/vnd.ibexa.api.CartMetadataUpdate+xml: + schema: + $ref: '#/components/schemas/CartMetadataUpdate' + application/vnd.ibexa.api.CartMetadataUpdate+json: + schema: + $ref: '#/components/schemas/CartMetadataUpdateWrapper' + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/cart/{identifier}/empty': + post: + operationId: api_cart_identifierempty_post + tags: + - Cart + responses: + '204': + description: 'No Content - Cart emptied.' + '401': + description: 'Error - The user is not authorized to empty this Cart.' + '404': + description: 'Error - Cart not found.' + summary: 'Empty Cart' + description: 'Empties the given Cart.' + parameters: + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new CartEmptyController resource' + content: { } + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/cart/{identifier}/entry': + post: + operationId: api_cart_identifierentry_post + tags: + - Cart + responses: + '200': + description: 'OK - return the updated cart' + content: + application/vnd.ibexa.api.Cart+xml: + schema: + $ref: '#/components/schemas/Cart' + application/vnd.ibexa.api.Cart+json: + schema: + $ref: '#/components/schemas/CartWrapper' + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to add an entry to this cart.' + '404': + description: 'Error - The identifier do not match any cart.' + summary: 'Add Entry to Cart' + description: 'Adds an entry to the cart referenced by its identifier' + parameters: + - + name: Content-Type + in: header + description: 'The CartEntryAdd schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Accept + in: header + description: 'If set, the updated Cart is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new CartEntryCreateController resource' + content: + application/vnd.ibexa.api.CartEntryAdd+xml: + schema: + $ref: '#/components/schemas/CartEntryAdd' + application/vnd.ibexa.api.CartEntryAdd+json: + schema: + $ref: '#/components/schemas/CartEntryAddWrapper' + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/cart/{identifier}/entry/{entryId}': + delete: + operationId: api_cart_identifierentry_entryId_delete + tags: + - Cart + responses: + '200': + description: 'OK - return the updated cart' + content: + application/vnd.ibexa.api.Cart+xml: + schema: + $ref: '#/components/schemas/Cart' + application/vnd.ibexa.api.Cart+json: + schema: + $ref: '#/components/schemas/CartWrapper' + '401': + description: 'Error - the user is not authorized to remove an entry from this cart.' + '404': + description: "Error - the identifiers don't match any cart or entry." + '204': + description: 'CartEntryRemoveController resource deleted' + summary: 'Remove Entry from Cart' + description: 'Removes the given entry from the given Cart.' + parameters: + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: entryId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Accept + in: header + description: 'If set, the updated Cart is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + patch: + operationId: api_cart_identifierentry_entryId_patch + tags: + - Cart + responses: + '200': + description: 'OK - return the updated cart' + content: + application/vnd.ibexa.api.Cart+xml: + schema: + $ref: '#/components/schemas/Cart' + application/vnd.ibexa.api.Cart+json: + schema: + $ref: '#/components/schemas/CartWrapper' + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update an entry of this cart.' + '404': + description: "Error - the identifiers don't match any cart or entry." + summary: 'Update Entry from Cart' + description: 'Updates the given entry from the given Cart.' + parameters: + - + name: Content-Type + in: header + description: 'The CartEntryUpdate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: entryId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Accept + in: header + description: 'If set, the updated Cart is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated CartEntryUpdateController resource' + content: + application/vnd.ibexa.api.CartEntryUpdate+xml: + schema: + $ref: '#/components/schemas/CartEntryUpdate' + application/vnd.ibexa.api.CartEntryUpdate+json: + schema: + $ref: '#/components/schemas/CartEntryUpdateWrapper' + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/cart/{identifier}/summary': + get: + operationId: api_cart_identifiersummary_get + tags: + - Cart + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.CartSummary+xml: + schema: + $ref: '#/components/schemas/CartSummary' + application/vnd.ibexa.api.CartSummary+json: + schema: + $ref: '#/components/schemas/CartSummaryWrapper' + example: + CartSummary: + _media-type: application/vnd.ibexa.api.CartSummary+json + _href: /api/ibexa/v2/cart/fdfb2e95-b0b9-4f17-b0cc-08d4d2cfd8f1/summary + id: 1 + identifier: fdfb2e95-b0b9-4f17-b0cc-08d4d2cfd8f1 + name: Updated + createdAt: '2023-01-10T12:48:40+00:00' + updatedAt: '2023-01-10T12:49:10+00:00' + Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + SummaryEntryCollection: { _media-type: application/vnd.ibexa.api.SummaryEntryCollection+json, count: '1', SummaryEntry: [{ _media-type: application/vnd.ibexa.api.CartSummaryEntry+json, identifier: ddf3d7bf-ca17-4eff-8265-2d7e00877a91, id: 1, names: { value: [{ _languageCode: eng-GB, '#text': 'Flipper Zero' }] }, quantity: 2, Price: { _media-type: application/vnd.ibexa.api.Price+json, RestPrice: { _media-type: application/vnd.ibexa.api.RestPrice+json, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '100', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } }, formatted: €1.00 } }, PriceInclVat: { _media-type: application/vnd.ibexa.api.PriceInclVat+json, RestPrice: { _media-type: application/vnd.ibexa.api.RestPrice+json, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '12300', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } }, formatted: €123.00 } }, SubtotalPrice: { _media-type: application/vnd.ibexa.api.SubtotalPrice+json, RestPrice: { _media-type: application/vnd.ibexa.api.RestPrice+json, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '20000', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } }, formatted: €200.00 } }, SubtotalPriceInclVat: { _media-type: application/vnd.ibexa.api.SubtotalPriceInclVat+json, RestPrice: { _media-type: application/vnd.ibexa.api.RestPrice+json, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '24600', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } }, formatted: €246.00 } }, VatCategory: { _media-type: application/vnd.ibexa.api.VatCategory+json, identifier: default, region: poland, vatValue: 23 }, Product: { _media-type: application/vnd.ibexa.api.Product+json, code: '0001', name: 'Flipper Zero', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: tool, name: Tool, AttributeAssignmentList: [] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/67, _remoteId: 3a12e8a3480143ce0159a55e152533b1, _id: 67, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/50 }, Name: 'Flipper Zero', TranslatedName: 'Flipper Zero', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/67/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/67/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/67/versions/1, VersionInfo: { id: 527, versionNo: 1, status: PUBLISHED, modificationDate: '2023-01-10T12:44:41+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-01-10T12:44:41+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Flipper Zero' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/67 } }, Fields: { field: [{ id: 300, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Flipper Zero' }, { id: 301, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 1, code: '0001', attributes: [] } }, { id: 302, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 303, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 304, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [3], taxonomy: product_categories } }, { id: 305, fieldDefinitionIdentifier: field_63bd5d67f1817, languageCode: eng-GB, fieldTypeIdentifier: ibexa_seo, fieldValue: '' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/67/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/67/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-01-10T12:44:41+00:00', publishedDate: '2023-01-10T12:44:41+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/67/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml }, created_at: 1673354681, updated_at: 1673354681, AttributesList: [], Availability: { _media-type: application/vnd.ibexa.api.Availability+json, is_available: true, stock: 100, is_infinite: false }, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '100.00', base_amount: '100.00', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true }, money: '10000', base_money: '10000' } } }] } + TotalPrice: { _media-type: application/vnd.ibexa.api.Price+json, RestPrice: { _media-type: application/vnd.ibexa.api.RestPrice+json, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '20000', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } }, formatted: €200.00 } } + TotalPriceInclVat: { _media-type: application/vnd.ibexa.api.Price+json, RestPrice: { _media-type: application/vnd.ibexa.api.RestPrice+json, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '24600', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } }, formatted: €246.00 } } + vatCategorySummary: [{ _media-type: application/vnd.ibexa.api.VatCategorySummary+json, VatCategory: { _media-type: application/vnd.ibexa.api.VatCategory+json, identifier: default, region: poland, vatValue: 23 }, RestPrice: { _media-type: application/vnd.ibexa.api.RestPrice+json, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '4600', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } }, formatted: €46.00 } }] + Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } + '401': + description: 'Error - The user is not authorized to read this Cart.' + '404': + description: 'Error - Cart not found.' + summary: 'Cart Summary' + description: 'Gets a summary of the given Cart.' + parameters: + - + name: Accept + in: header + description: 'If set, the Cart Summary is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + /ai/action-types: + get: + operationId: api_aiaction-types_get + tags: + - 'Connector AI' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ai.ActionTypeList+json: + schema: + $ref: '#/components/schemas/ActionTypeList' + example: + ActionTypeList: + _media-type: application/vnd.ibexa.api.ai.ActionTypeList+json + _href: /api/ibexa/v2/ai/action-types + ActionType: [{ _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: generate_alt_text, name: 'Generate alternative text', inputIdentifier: image, outputIdentifier: text, options: { width: 512, height: 512, image_quality: 85 } }, { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }] + application/vnd.ibexa.api.ai.ActionTypeList+xml: + schema: + $ref: '#/components/schemas/ActionTypeList' + example: | + + + + generate_alt_text + Generate alternative text + image + text + + 512 + 512 + 85 + + + + refine_text + Refine text + text + text + + + + summary: 'Get action types list.' + description: 'Returns action types list.' + parameters: [] + deprecated: false + '/ai/action-types/{identifier}': + get: + operationId: api_aiaction-types_identifier_get + tags: + - 'Connector AI' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ai.ActionType+json: + schema: + $ref: '#/components/schemas/ActionType' + example: + ActionType: + _media-type: application/vnd.ibexa.api.ai.ActionType+json + identifier: generate_alt_text + name: 'Generate alternative text' + inputIdentifier: image + outputIdentifier: text + options: { width: 512, height: 512, image_quality: 85 } + application/vnd.ibexa.api.ai.ActionType+xml: + schema: + $ref: '#/components/schemas/ActionType' + example: | + + + generate_alt_text + Generate alternative text + image + text + + 512 + 512 + 85 + + + '406': + description: 'Error - an action type of the given unique identifier is not found.' + summary: 'Get an action type by its unique identifier.' + description: 'Returns an action type by its unique string identifier.' + parameters: + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + example: generate_alt_text + deprecated: false + /ai/actions: + get: + operationId: api_aiactions_get + tags: + - 'Connector AI' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ai.ActionConfigurationList+json: + schema: + $ref: '#/components/schemas/ActionConfigurationList' + example: + ActionConfigurationList: + _media-type: application/vnd.ibexa.api.ai.ActionConfigurationList+json + _href: /api/ibexa/v2/ai/actions + ActionConfiguration: [{ _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: rewrite_with_friendly_tone, name: 'Rewrite in friendly tone', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Rewrite text in friendly tone. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: rewrite_with_professional_tone, name: 'Rewrite in professional tone', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Rewrite text in professional tone. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: summarize_text, name: Summarize, description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Summarize text into one sentence. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: expand_text, name: 'Expand text', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Expand the given text by 25%. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: shorten_text, name: 'Shorten text', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Shorten the given text by 25%. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: proofread, name: Proofread, description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Rewrite given text to identify and fix grammatical and punctuation errors. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: improve_readability, name: 'Improve readability', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Rewrite this content to improve readability. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: gen_alt_text, name: 'Generate alternative text', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: generate_alt_text, name: 'Generate alternative text', inputIdentifier: image, outputIdentifier: text, options: { width: 512, height: 512, image_quality: 85 } }, actionTypeOptions: { max_length: 140 }, actionHandlerIdentifier: openai-image-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: '', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }] + application/vnd.ibexa.api.ai.ActionConfigurationList+xml: + schema: + $ref: '#/components/schemas/ActionConfigurationList' + example: | + + + + rewrite_with_friendly_tone + Rewrite in friendly tone + + 1 + + refine_text + Refine text + text + text + + + + openai-text-to-text + + 4000 + 1 + Rewrite text in friendly tone. Preserve meaning and crucial information. + gpt-4-turbo + + 2025-08-07T13:16:47+02:00 + 2025-08-07T13:16:47+02:00 + + + rewrite_with_professional_tone + Rewrite in professional tone + + 1 + + refine_text + Refine text + text + text + + + + openai-text-to-text + + 4000 + 1 + Rewrite text in professional tone. Preserve meaning and crucial information. + gpt-4-turbo + + 2025-08-07T13:16:47+02:00 + 2025-08-07T13:16:47+02:00 + + + summarize_text + Summarize + + 1 + + refine_text + Refine text + text + text + + + + openai-text-to-text + + 4000 + 1 + Summarize text into one sentence. Preserve meaning and crucial information. + gpt-4-turbo + + 2025-08-07T13:16:47+02:00 + 2025-08-07T13:16:47+02:00 + + + expand_text + Expand text + + 1 + + refine_text + Refine text + text + text + + + + openai-text-to-text + + 4000 + 1 + Expand the given text by 25%. Preserve meaning and crucial information. + gpt-4-turbo + + 2025-08-07T13:16:47+02:00 + 2025-08-07T13:16:47+02:00 + + + shorten_text + Shorten text + + 1 + + refine_text + Refine text + text + text + + + + openai-text-to-text + + 4000 + 1 + Shorten the given text by 25%. Preserve meaning and crucial information. + gpt-4-turbo + + 2025-08-07T13:16:47+02:00 + 2025-08-07T13:16:47+02:00 + + + proofread + Proofread + + 1 + + refine_text + Refine text + text + text + + + + openai-text-to-text + + 4000 + 1 + Rewrite given text to identify and fix grammatical and punctuation errors. Preserve meaning and crucial information. + gpt-4-turbo + + 2025-08-07T13:16:47+02:00 + 2025-08-07T13:16:47+02:00 + + + improve_readability + Improve readability + + 1 + + refine_text + Refine text + text + text + + + + openai-text-to-text + + 4000 + 1 + Rewrite this content to improve readability. Preserve meaning and crucial information. + gpt-4-turbo + + 2025-08-07T13:16:47+02:00 + 2025-08-07T13:16:47+02:00 + + + gen_alt_text + Generate alternative text + + 1 + + generate_alt_text + Generate alternative text + image + text + + 512 + 512 + 85 + + + + 140 + + openai-image-to-text + + 4000 + 1 + + gpt-4-turbo + + 2025-08-07T13:16:47+02:00 + 2025-08-07T13:16:47+02:00 + + + summary: 'Get action configuration list.' + description: 'Returns action configuration list.' + parameters: [] + deprecated: false + post: + operationId: api_aiactions_post + tags: + - 'Connector AI' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ai.ActionConfigurationList+json: + schema: + $ref: '#/components/schemas/ActionConfigurationList' + example: + ActionConfigurationList: + _media-type: application/vnd.ibexa.api.ai.ActionConfigurationList+json + _href: /api/ibexa/v2/ai/actions + ActionConfiguration: [{ _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: rewrite_with_professional_tone, name: 'Rewrite in professional tone', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Rewrite text in professional tone. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: rewrite_with_friendly_tone, name: 'Rewrite in friendly tone', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Rewrite text in friendly tone. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }] + application/vnd.ibexa.api.ai.ActionConfigurationList+xml: + schema: + $ref: '#/components/schemas/ActionConfigurationList' + example: | + + + + rewrite_with_professional_tone + Rewrite in professional tone + + 1 + + refine_text + Refine text + text + text + + + + openai-text-to-text + + 4000 + 1 + Rewrite text in professional tone. Preserve meaning and crucial information. + gpt-4-turbo + + 2025-08-07T13:16:47+02:00 + 2025-08-07T13:16:47+02:00 + + + rewrite_with_friendly_tone + Rewrite in friendly tone + + 1 + + refine_text + Refine text + text + text + + + + openai-text-to-text + + 4000 + 1 + Rewrite text in friendly tone. Preserve meaning and crucial information. + gpt-4-turbo + + 2025-08-07T13:16:47+02:00 + 2025-08-07T13:16:47+02:00 + + + summary: 'Query action configuration list.' + description: 'Returns action configuration list based on the given query.' + parameters: + - + name: X-Csrf-Token + in: header + description: 'CSRF token obtained during the authentication.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ActionConfigurationListController resource' + content: + application/vnd.ibexa.api.ai.ActionConfigurationListInput+json: + schema: + $ref: '#/components/schemas/ActionConfigurationListInput' + x-ibexa-example-file: '@IbexaConnectorAiBundle/Resources/api_platform/examples/actions/POST/ActionConfigurationListInput.json.example' + application/vnd.ibexa.api.ai.ActionConfigurationListInput+xml: + schema: + $ref: '#/components/schemas/ActionConfigurationListInput' + x-ibexa-example-file: '@IbexaConnectorAiBundle/Resources/api_platform/examples/actions/POST/ActionConfigurationListInput.xml.example' + required: false + deprecated: false + '/ai/actions/{actionConfigurationIdentifier}/execute': + post: + operationId: api_aiactions_actionConfigurationIdentifierexecute_post + tags: + - 'Connector AI' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ai.Text+json: + schema: + $ref: '#/components/schemas/Text' + example: + Text: + _media-type: application/vnd.ibexa.api.ai.Text+json + text: ['Hello, how have you been spending your day?'] + application/vnd.ibexa.api.ai.Text+xml: + schema: + $ref: '#/components/schemas/Text' + example: | + + + Hello, I hope you are well. How have you been spending your day? + + application/vnd.ibexa.api.ai.AltText+json: + schema: + $ref: '#/components/schemas/AltText' + example: + AltText: + _media-type: application/vnd.ibexa.api.ai.AltText+json + Text: { _media-type: application/vnd.ibexa.api.ai.Text+json, text: ['Blurred image of an open laptop on a desk with paperwork and another laptop in the background.'] } + application/vnd.ibexa.api.ai.AltText+xml: + schema: + $ref: '#/components/schemas/AltText' + example: | + + + + Sunlit home office with an open laptop, papers, and a blurred background. + + + '400': + description: 'Error - if the provided input or action configuration is invalid or the given action cannot be performed for any reason.' + content: + application/vnd.ibexa.api.ai.ErrorMessage+json: + schema: + $ref: '#/components/schemas/ErrorMessage' + application/vnd.ibexa.api.ai.ErrorMessage+xml: + schema: + $ref: '#/components/schemas/ErrorMessage' + summary: 'Execute the given AI action' + description: 'Executes the given AI Action using configured ActionConfiguration or ActionHandler, if passed. Might consume AI agent resources.' + parameters: + - + name: actionConfigurationIdentifier + in: path + description: 'Configured action name (obtain by listing the configured actions via GET `/api/ibexa/v2/ai/actions` endpoint).' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + examples: + rewrite_with_friendly_tone: + value: rewrite_with_friendly_tone + rewrite_with_professional_tone: + value: rewrite_with_professional_tone + summarize_text: + value: summarize_text + expand_text: + value: expand_text + shorten_text: + value: shorten_text + proofread: + value: proofread + improve_readability: + value: improve_readability + gen_alt_text: + value: gen_alt_text + - + name: X-Csrf-Token + in: header + description: 'CSRF token obtained during the authentication.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'Input to execute the action. An Input type must match the action type.' + content: + application/vnd.ibexa.api.ai.RefineText+json: + schema: + $ref: '#/components/schemas/RefineText' + x-ibexa-example-file: '@IbexaConnectorAiBundle/Resources/api_platform/examples/actions/action_configuration_identifier/execute/POST/RefineText.json.example' + application/vnd.ibexa.api.ai.RefineText+xml: + schema: + $ref: '#/components/schemas/RefineText' + x-ibexa-example-file: '@IbexaConnectorAiBundle/Resources/api_platform/examples/actions/action_configuration_identifier/execute/POST/RefineText.xml.example' + application/vnd.ibexa.api.ai.GenerateAltText+json: + schema: + $ref: '#/components/schemas/GenerateAltText' + x-ibexa-example-file: '@IbexaConnectorAiBundle/Resources/api_platform/examples/actions/action_configuration_identifier/execute/POST/GenerateAltText.json.example' + application/vnd.ibexa.api.ai.GenerateAltText+xml: + schema: + $ref: '#/components/schemas/GenerateAltText' + x-ibexa-example-file: '@IbexaConnectorAiBundle/Resources/api_platform/examples/actions/action_configuration_identifier/execute/POST/GenerateAltText.xml.example' + required: false + deprecated: false + '/ai/actions/{identifier}': + get: + operationId: api_aiactions_identifier_get + tags: + - 'Connector AI' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ai.ActionConfiguration+json: + schema: + $ref: '#/components/schemas/ActionConfiguration' + example: + ActionConfiguration: + _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json + identifier: rewrite_with_friendly_tone + name: 'Rewrite in friendly tone' + description: '' + enabled: true + ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] } + actionTypeOptions: [] + actionHandlerIdentifier: openai-text-to-text + actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Rewrite text in friendly tone. Preserve meaning and crucial information.', model: gpt-4-turbo } + createdAt: '2025-08-07T13:16:47+02:00' + updatedAt: '2025-08-07T13:18:00+02:00' + application/vnd.ibexa.api.ai.ActionConfiguration+xml: + schema: + $ref: '#/components/schemas/ActionConfiguration' + example: | + + + rewrite_with_friendly_tone + Rewrite in friendly tone + + 1 + + refine_text + Refine text + text + text + + + + openai-text-to-text + + 4000 + 1 + Rewrite text in friendly tone. Preserve meaning and crucial information. + gpt-4-turbo + + 2025-08-07T13:16:47+02:00 + 2025-08-07T13:16:47+02:00 + + '404': + description: 'Error - an action configuration of the given unique identifier is not found.' + '401': + description: "Error – the user doesn't have access to the given action configuration" + summary: 'Get an action configuration by its unique identifier.' + description: 'Returns an action configuration by its unique string identifier.' + parameters: + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + example: rewrite_with_friendly_tone + deprecated: false + /corporate: + get: + operationId: api_corporate_get + tags: + - 'Corporate Account' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.CorporateAccountRoot+xml: + schema: + $ref: '#/components/schemas/CorporateAccountRoot' + example: | + + + + + + + + + + + + application/vnd.ibexa.api.CorporateAccountRoot+json: + schema: + $ref: '#/components/schemas/CorporateAccountRootWrapper' + example: + CorporateAccountRoot: + _media-type: application/vnd.ibexa.api.CorporateAccountRoot+json + links: [{ _media-type: application/vnd.ibexa.api.CompaniesList+json, _rel: ca-companies, _href: /api/ibexa/v2/corporate/companies }, { _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _rel: ca-types, _href: '/api/ibexa/v2/content/typegroups?identifier=corporate_account' }, { _media-type: application/vnd.ibexa.api.ContentType+json, _rel: ca-types-company, _href: /api/ibexa/v2/content/types/48 }, { _media-type: application/vnd.ibexa.api.ContentType+json, _rel: ca-types-member, _href: /api/ibexa/v2/content/types/47 }, { _media-type: application/vnd.ibexa.api.ContentType+json, _rel: ca-types-address, _href: /api/ibexa/v2/content/types/49 }, { _media-type: application/vnd.ibexa.api.SalesRepresentativesList+json, _rel: ca-sales-representatives, _href: /api/ibexa/v2/corporate/sales-representatives }, { _media-type: application/vnd.ibexa.api.Role+json, _rel: ca-role-admin, _href: /api/ibexa/v2/user/roles/14 }, { _media-type: application/vnd.ibexa.api.Role+json, _rel: ca-role-buyer, _href: /api/ibexa/v2/user/roles/15 }] + summary: 'Root Resource' + description: 'Provides basic information about Corporate Account endpoints and configuration.' + parameters: + - + name: Accept + in: header + description: 'If set, helps to determine response format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + /corporate/companies: + get: + operationId: api_corporatecompanies_get + tags: + - 'Corporate Account' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.CompanyList+xml: + schema: + $ref: '#/components/schemas/CompanyList' + example: | + + + + 66 + Ibexa AS + + + Ibexa AS + Ibexa AS + + + + + 593 + 1 + PUBLISHED + 2023-04-03T13:09:40+02:00 + + 2023-04-03T13:09:40+02:00 + eng-GB + eng-GB + + + eng-GB + + + + Ibexa AS + + + + + + 295 + active + eng-GB + ibexa_boolean + true + + + 296 + name + eng-GB + ibexa_string + Ibexa AS + + + 297 + vat + eng-GB + ibexa_string + 123 456 789 + + + 298 + website + eng-GB + ibexa_string + https://ibexa.co + + + 299 + customer_group + eng-GB + ibexa_customer_group + + 1 + + + + 300 + sales_rep + eng-GB + ibexa_object_relation + + 14 + /api/ibexa/v2/content/objects/14 + + + + 301 + contact + eng-GB + ibexa_object_relation + + 74 + /api/ibexa/v2/content/objects/74 + + + + 302 + default_address + eng-GB + ibexa_object_relation + + 69 + /api/ibexa/v2/content/objects/69 + + + + 303 + billing_address + eng-GB + ibexa_address + + HQ + PL + + Silesia + Katowice + Gliwicka 6/5 + 40-079 + company@email.invalid + +48 000 000 000 + + + + + 305 + members + eng-GB + ibexa_object_relation + + 67 + /api/ibexa/v2/content/objects/67 + + + + 304 + address_book + eng-GB + ibexa_object_relation + + 68 + /api/ibexa/v2/content/objects/68 + + + + + + /placeholder + + + image/svg+xml + + + +
+ + + + 2023-04-03T13:09:40+02:00 + 2023-03-31T14:33:36+02:00 + eng-GB + 1 + true + false + PUBLISHED + + + HQ, Poland + 74 + 14 + 69 + 68 + 67 + + + /1/65/67/ + 1 + + + 75 + QNTM Group AB + + + QNTM Group AB + QNTM Group AB + + + + + 546 + 3 + PUBLISHED + 2023-03-31T15:24:49+02:00 + + 2023-03-31T15:24:49+02:00 + eng-GB + eng-GB + + + eng-GB + + + + QNTM Group AB + + + + + + 341 + active + eng-GB + ibexa_boolean + true + + + 342 + name + eng-GB + ibexa_string + QNTM Group AB + + + 343 + vat + eng-GB + ibexa_string + 123 456 789 + + + 344 + website + eng-GB + ibexa_string + https://ibexa.co + + + 345 + customer_group + eng-GB + ibexa_customer_group + + 1 + + + + 346 + sales_rep + eng-GB + ibexa_object_relation + + 14 + /api/ibexa/v2/content/objects/14 + + + + 347 + contact + eng-GB + ibexa_object_relation + + + + + + 348 + default_address + eng-GB + ibexa_object_relation + + + + + + 349 + billing_address + eng-GB + ibexa_address + + + + + + + + 351 + members + eng-GB + ibexa_object_relation + + 76 + /api/ibexa/v2/content/objects/76 + + + + 350 + address_book + eng-GB + ibexa_object_relation + + 77 + /api/ibexa/v2/content/objects/77 + + + + + + /placeholder + + + image/svg+xml + + + +
+ + + + 2023-03-31T15:24:49+02:00 + 2023-03-31T15:24:48+02:00 + eng-GB + 3 + true + false + PUBLISHED + + + + + 14 + + 77 + 76 + + + /1/65/76/ + 1 + + + application/vnd.ibexa.api.CompanyList+json: + schema: + $ref: '#/components/schemas/CompanyListWrapper' + example: + CompanyList: + _media-type: application/vnd.ibexa.api.CompanyList+json + companies: [{ _media-type: application/vnd.ibexa.api.Company+json, id: 66, name: 'Ibexa AS', Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/66, _remoteId: 9f20fb03d0ab0a6aef9930f7e6720377, _id: 66, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa AS', TranslatedName: 'Ibexa AS', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/66/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/versions/1, VersionInfo: { id: 593, versionNo: 1, status: PUBLISHED, modificationDate: '2023-04-03T13:09:40+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-03T13:09:40+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa AS' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/66 } }, Fields: { field: [{ id: 295, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 296, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa AS' }, { id: 297, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 298, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 299, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 300, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 301, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 74, destinationContentHref: /api/ibexa/v2/content/objects/74 } }, { id: 302, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 69, destinationContentHref: /api/ibexa/v2/content/objects/69 } }, { id: 303, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } } }, { id: 305, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 67, destinationContentHref: /api/ibexa/v2/content/objects/67 } }, { id: 304, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 68, destinationContentHref: /api/ibexa/v2/content/objects/68 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/66/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/66/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-03T13:09:40+02:00', publishedDate: '2023-03-31T14:33:36+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/66/objectstates } }, billingAddress: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } }, contactId: 74, salesRepresentativeId: 80, defaultAddressId: 69, addressBookId: 68, membersId: 67, MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/66/members }, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 }, locationPath: /1/65/67/, isActive: true }, { _media-type: application/vnd.ibexa.api.Company+json, id: 75, name: 'QNTM Group AB', Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/75, _remoteId: 1d7eaec5b4371f7a35f253d15ecd5258, _id: 75, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'QNTM Group AB', TranslatedName: 'QNTM Group AB', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/75/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/75/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/75/versions/3, VersionInfo: { id: 546, versionNo: 3, status: PUBLISHED, modificationDate: '2023-03-31T15:24:49+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-03-31T15:24:49+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'QNTM Group AB' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/75 } }, Fields: { field: [{ id: 341, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 342, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'QNTM Group AB' }, { id: 343, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 344, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 345, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 346, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 347, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: null } }, { id: 348, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: null } }, { id: 349, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: null, country: null, fields: [] } }, { id: 351, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 76, destinationContentHref: /api/ibexa/v2/content/objects/76 } }, { id: 350, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 77, destinationContentHref: /api/ibexa/v2/content/objects/77 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/75/versions/3/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/76 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/75/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-03-31T15:24:49+02:00', publishedDate: '2023-03-31T15:24:48+02:00', mainLanguageCode: eng-GB, currentVersionNo: 3, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/75/objectstates } }, billingAddress: { name: null, country: null, fields: [] }, contactId: null, salesRepresentativeId: 14, defaultAddressId: null, addressBookId: 77, membersId: 76, MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/75/members }, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/76 }, locationPath: /1/65/76/, isActive: true }] + '400': + description: 'Returned when invalid Criterion or Sort clause is used' + content: + application/vnd.ibexa.api.ErrorMessage: + schema: + $ref: '#/components/schemas/ErrorMessage' + summary: 'Read list of companies' + description: 'Returns paginated list of available companies.' + parameters: + - + name: Accept + in: header + description: 'If set, helps to determine response format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + post: + operationId: api_corporatecompanies_post + tags: + - 'Corporate Account' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.Company+xml: + schema: + $ref: '#/components/schemas/Company' + example: | + + + 66 + Ibexa AS + + + Ibexa AS + Ibexa AS + + + + + 593 + 1 + PUBLISHED + 2023-04-03T13:09:40+02:00 + + 2023-04-03T13:09:40+02:00 + eng-GB + eng-GB + + + eng-GB + + + + Ibexa AS + + + + + + 295 + active + eng-GB + ibexa_boolean + true + + + 296 + name + eng-GB + ibexa_string + Ibexa AS + + + 297 + vat + eng-GB + ibexa_string + 123 456 789 + + + 298 + website + eng-GB + ibexa_string + https://ibexa.co + + + 299 + customer_group + eng-GB + ibexa_customer_group + + 1 + + + + 300 + sales_rep + eng-GB + ibexa_object_relation + + 14 + /api/ibexa/v2/content/objects/14 + + + + 301 + contact + eng-GB + ibexa_object_relation + + 74 + /api/ibexa/v2/content/objects/74 + + + + 302 + default_address + eng-GB + ibexa_object_relation + + 69 + /api/ibexa/v2/content/objects/69 + + + + 303 + billing_address + eng-GB + ibexa_address + + HQ + PL + + Silesia + Katowice + Gliwicka 6/5 + 40-079 + company@email.invalid + +48 000 000 000 + + + + + 305 + members + eng-GB + ibexa_object_relation + + 67 + /api/ibexa/v2/content/objects/67 + + + + 304 + address_book + eng-GB + ibexa_object_relation + + 68 + /api/ibexa/v2/content/objects/68 + + + + + + /placeholder + + + image/svg+xml + + + +
+ + + + 2023-04-03T13:09:40+02:00 + 2023-03-31T14:33:36+02:00 + eng-GB + 1 + true + false + PUBLISHED + + + HQ, Poland + 74 + 80 + 69 + 68 + 67 + + + /1/65/67/ + 1 + + application/vnd.ibexa.api.Company+json: + schema: + $ref: '#/components/schemas/CompanyWrapper' + example: + Company: + _media-type: application/vnd.ibexa.api.Company+json + id: 66 + name: 'Ibexa AS' + Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/66, _remoteId: 9f20fb03d0ab0a6aef9930f7e6720377, _id: 66, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa AS', TranslatedName: 'Ibexa AS', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/66/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/versions/1, VersionInfo: { id: 593, versionNo: 1, status: PUBLISHED, modificationDate: '2023-04-03T13:09:40+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-03T13:09:40+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa AS' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/66 } }, Fields: { field: [{ id: 295, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 296, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa AS' }, { id: 297, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 298, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 299, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 300, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 301, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 74, destinationContentHref: /api/ibexa/v2/content/objects/74 } }, { id: 302, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 69, destinationContentHref: /api/ibexa/v2/content/objects/69 } }, { id: 303, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } } }, { id: 305, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 67, destinationContentHref: /api/ibexa/v2/content/objects/67 } }, { id: 304, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 68, destinationContentHref: /api/ibexa/v2/content/objects/68 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/66/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/66/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-03T13:09:40+02:00', publishedDate: '2023-03-31T14:33:36+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/66/objectstates } } + billingAddress: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } } + contactId: 74 + salesRepresentativeId: 80 + defaultAddressId: 69 + addressBookId: 68 + membersId: 67 + MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/66/members } + Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 } + locationPath: /1/65/67/ + isActive: true + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this Company.' + summary: 'Create a company' + description: 'Creates a CompanyCreateController resource.' + parameters: + - + name: Accept + in: header + description: 'If set, the new company is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The CompanyCreate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new CompanyCreateController resource' + content: + application/vnd.ibexa.api.CompanyCreate+xml: + schema: + $ref: '#/components/schemas/CompanyCreate' + x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/POST/CompanyCreate.xml.example' + application/vnd.ibexa.api.CompanyCreate+json: + schema: + $ref: '#/components/schemas/CompanyCreateWrapper' + x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/POST/CompanyCreate.json.example' + required: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + '/corporate/companies/{companyId}': + get: + operationId: api_corporatecompanies_companyId_get + tags: + - 'Corporate Account' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Company+json: + schema: + $ref: '#/components/schemas/CompanyWrapper' + example: + Company: + _media-type: application/vnd.ibexa.api.Company+json + id: 66 + name: 'Ibexa AS' + Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/66, _remoteId: 9f20fb03d0ab0a6aef9930f7e6720377, _id: 66, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa AS', TranslatedName: 'Ibexa AS', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/66/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/versions/1, VersionInfo: { id: 593, versionNo: 1, status: PUBLISHED, modificationDate: '2023-04-03T13:09:40+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-03T13:09:40+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa AS' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/66 } }, Fields: { field: [{ id: 295, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 296, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa AS' }, { id: 297, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 298, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 299, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 300, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 301, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 74, destinationContentHref: /api/ibexa/v2/content/objects/74 } }, { id: 302, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 69, destinationContentHref: /api/ibexa/v2/content/objects/69 } }, { id: 303, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } } }, { id: 305, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 67, destinationContentHref: /api/ibexa/v2/content/objects/67 } }, { id: 304, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 68, destinationContentHref: /api/ibexa/v2/content/objects/68 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/66/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/66/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-03T13:09:40+02:00', publishedDate: '2023-03-31T14:33:36+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/66/objectstates } } + billingAddress: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } } + contactId: 74 + salesRepresentativeId: 80 + defaultAddressId: 69 + addressBookId: 68 + membersId: 67 + MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/66/members } + Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 } + locationPath: /1/65/67/ + isActive: true + application/vnd.ibexa.api.Company+xml: + schema: + $ref: '#/components/schemas/Company' + example: | + + + 66 + Ibexa AS + + + Ibexa AS + Ibexa AS + + + + + 593 + 1 + PUBLISHED + 2023-04-03T13:09:40+02:00 + + 2023-04-03T13:09:40+02:00 + eng-GB + eng-GB + + + eng-GB + + + + Ibexa AS + + + + + + 295 + active + eng-GB + ibexa_boolean + true + + + 296 + name + eng-GB + ibexa_string + Ibexa AS + + + 297 + vat + eng-GB + ibexa_string + 123 456 789 + + + 298 + website + eng-GB + ibexa_string + https://ibexa.co + + + 299 + customer_group + eng-GB + ibexa_customer_group + + 1 + + + + 300 + sales_rep + eng-GB + ibexa_object_relation + + 14 + /api/ibexa/v2/content/objects/14 + + + + 301 + contact + eng-GB + ibexa_object_relation + + 74 + /api/ibexa/v2/content/objects/74 + + + + 302 + default_address + eng-GB + ibexa_object_relation + + 69 + /api/ibexa/v2/content/objects/69 + + + + 303 + billing_address + eng-GB + ibexa_address + + HQ + PL + + Silesia + Katowice + Gliwicka 6/5 + 40-079 + company@email.invalid + +48 000 000 000 + + + + + 305 + members + eng-GB + ibexa_object_relation + + 67 + /api/ibexa/v2/content/objects/67 + + + + 304 + address_book + eng-GB + ibexa_object_relation + + 68 + /api/ibexa/v2/content/objects/68 + + + + + + /placeholder + + + image/svg+xml + + + +
+ + + + 2023-04-03T13:09:40+02:00 + 2023-03-31T14:33:36+02:00 + eng-GB + 1 + true + false + PUBLISHED + + + HQ, Poland + 74 + 80 + 69 + 68 + 67 + + + /1/65/67/ + 1 + + '401': + description: 'Error - The user is not authorized to read this company.' + '404': + description: 'Error - The company does not exist.' + summary: 'Get company' + description: 'Returns the company by given company ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the company is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: companyId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + delete: + operationId: api_corporatecompanies_companyId_delete + tags: + - 'Corporate Account' + responses: + '204': + description: 'No Content - given company is deleted.' + '401': + description: 'Error - the user is not authorized to delete this company.' + '404': + description: 'Error - the company does not exist.' + summary: 'Delete company' + description: 'The given company is deleted.' + parameters: + - + name: Accept + in: header + description: 'If set, in the case of an error the error message is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: X-CSRF-Token + in: header + description: "Only needed for session's checking. The {csrfToken} needed on all unsafe HTTP methods with session." + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: companyId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + patch: + operationId: api_corporatecompanies_companyId_patch + tags: + - 'Corporate Account' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Company+xml: + schema: + $ref: '#/components/schemas/Company' + example: | + + + 66 + Ibexa AS + + + Ibexa AS + Ibexa AS + + + + + 593 + 1 + PUBLISHED + 2023-04-03T13:09:40+02:00 + + 2023-04-03T13:09:40+02:00 + eng-GB + eng-GB + + + eng-GB + + + + Ibexa AS + + + + + + 295 + active + eng-GB + ibexa_boolean + true + + + 296 + name + eng-GB + ibexa_string + Ibexa AS + + + 297 + vat + eng-GB + ibexa_string + 123 456 789 + + + 298 + website + eng-GB + ibexa_string + https://ibexa.co + + + 299 + customer_group + eng-GB + ibexa_customer_group + + 1 + + + + 300 + sales_rep + eng-GB + ibexa_object_relation + + 14 + /api/ibexa/v2/content/objects/14 + + + + 301 + contact + eng-GB + ibexa_object_relation + + 74 + /api/ibexa/v2/content/objects/74 + + + + 302 + default_address + eng-GB + ibexa_object_relation + + 69 + /api/ibexa/v2/content/objects/69 + + + + 303 + billing_address + eng-GB + ibexa_address + + HQ + PL + + Silesia + Katowice + Gliwicka 6/5 + 40-079 + company@email.invalid + +48 000 000 000 + + + + + 305 + members + eng-GB + ibexa_object_relation + + 67 + /api/ibexa/v2/content/objects/67 + + + + 304 + address_book + eng-GB + ibexa_object_relation + + 68 + /api/ibexa/v2/content/objects/68 + + + + + + /placeholder + + + image/svg+xml + + + +
+ + + + 2023-04-03T13:09:40+02:00 + 2023-03-31T14:33:36+02:00 + eng-GB + 1 + true + false + PUBLISHED + + + HQ, Poland + 74 + 80 + 69 + 68 + 67 + + + /1/65/67/ + 1 + + application/vnd.ibexa.api.Company+json: + schema: + $ref: '#/components/schemas/CompanyWrapper' + example: + Company: + _media-type: application/vnd.ibexa.api.Company+json + id: 66 + name: 'Ibexa AS' + Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/66, _remoteId: 9f20fb03d0ab0a6aef9930f7e6720377, _id: 66, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa AS', TranslatedName: 'Ibexa AS', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/66/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/versions/1, VersionInfo: { id: 593, versionNo: 1, status: PUBLISHED, modificationDate: '2023-04-03T13:09:40+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-03T13:09:40+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa AS' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/66 } }, Fields: { field: [{ id: 295, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 296, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa AS' }, { id: 297, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 298, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 299, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 300, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 301, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 74, destinationContentHref: /api/ibexa/v2/content/objects/74 } }, { id: 302, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 69, destinationContentHref: /api/ibexa/v2/content/objects/69 } }, { id: 303, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } } }, { id: 305, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 67, destinationContentHref: /api/ibexa/v2/content/objects/67 } }, { id: 304, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 68, destinationContentHref: /api/ibexa/v2/content/objects/68 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/66/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/66/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-03T13:09:40+02:00', publishedDate: '2023-03-31T14:33:36+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/66/objectstates } } + billingAddress: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } } + contactId: 74 + salesRepresentativeId: 80 + defaultAddressId: 69 + addressBookId: 68 + membersId: 67 + MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/66/members } + Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 } + locationPath: /1/65/67/ + isActive: true + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this company.' + summary: 'Update a company' + description: 'Updates a company. PATCH or POST with header X-HTTP-Method-Override PATCH.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated company is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The company input schema encoded in XML or JSON.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: companyId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated CompanyUpdateController resource' + content: + application/vnd.ibexa.api.CompanyUpdate+xml: + schema: + $ref: '#/components/schemas/CompanyUpdate' + x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/company_id/PATCH/CompanyUpdate.xml.example' + application/vnd.ibexa.api.CompanyUpdate+json: + schema: + $ref: '#/components/schemas/CompanyUpdateWrapper' + x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/company_id/PATCH/CompanyUpdate.json.example' + required: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + '/corporate/companies/{companyId}/members': + get: + operationId: api_corporatecompanies_companyIdmembers_get + tags: + - 'Corporate Account' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.MemberList+xml: + schema: + $ref: '#/components/schemas/MemberList' + example: | + + + + 144 + Jay Kowalski + + 139 + Ibexa Sp. z o. o. + + + Ibexa Sp. z o. o. + Ibexa Sp. z o. o. + + + + + 677 + 6 + PUBLISHED + 2023-04-28T16:10:13+02:00 + + 2023-04-28T16:10:13+02:00 + eng-GB + eng-GB + + + eng-GB + + + + Ibexa Sp. z o. o. + + + + + + 673 + active + eng-GB + ibexa_boolean + true + + + 674 + name + eng-GB + ibexa_string + Ibexa Sp. z o. o. + + + 675 + vat + eng-GB + ibexa_string + 123 456 789 + + + 676 + website + eng-GB + ibexa_string + https://ibexa.co + + + 677 + customer_group + eng-GB + ibexa_customer_group + + 1 + + + + 678 + sales_rep + eng-GB + ibexa_object_relation + + 14 + /api/ibexa/v2/content/objects/14 + + + + 679 + contact + eng-GB + ibexa_object_relation + + 144 + /api/ibexa/v2/content/objects/144 + + + + 680 + default_address + eng-GB + ibexa_object_relation + + 142 + /api/ibexa/v2/content/objects/142 + + + + 681 + billing_address + eng-GB + ibexa_address + + HQ + PL + + Silesia + Katowice + Gliwicka 6/5 + 40-079 + company@email.invalid + +48 000 000 000 + + + + + 683 + members + eng-GB + ibexa_object_relation + + 140 + /api/ibexa/v2/content/objects/140 + + + + 682 + address_book + eng-GB + ibexa_object_relation + + 141 + /api/ibexa/v2/content/objects/141 + + + + + + /placeholder + + + image/svg+xml + + + +
+ + + + 2023-04-28T16:10:13+02:00 + 2023-04-28T15:44:55+02:00 + eng-GB + 6 + true + false + PUBLISHED + + + HQ, Poland + 144 + 14 + 142 + 141 + 140 + + + /1/65/140/ + 1 + + + + Jay Kowalski + +
+ + + + + 2023-04-28T16:10:03+02:00 + 2023-04-28T16:17:07+02:00 + eng-GB + true + + + 683 + 6 + PUBLISHED + 2023-04-28T16:17:07+02:00 + + 2023-04-28T16:17:06+02:00 + eng-GB + eng-GB + + + eng-GB + + + + Jay Kowalski + + + + + + 698 + first_name + eng-GB + ibexa_string + Jay + + + 699 + last_name + eng-GB + ibexa_string + Kowalski + + + 700 + phone_number + eng-GB + ibexa_string + +48 123 123 456 + + + 701 + user + eng-GB + ibexa_user + + true + 144 + jay.kowalski + jay.kowalski@email.invalid + 1682691427 + false + 5 + + + + + + + /user/default_profile_image/initials.svg?initials=JK#profile_image + + + image/svg+xml + + + jay.kowalski + jay.kowalski@email.invalid + false + + + + + Company Buyer + + + + + application/vnd.ibexa.api.MemberList+json: + schema: + $ref: '#/components/schemas/MemberListWrapper' + example: + MemberList: + _media-type: application/vnd.ibexa.api.MemberList+json + _href: /api/ibexa/v2/corporate/companies/139/members + members: [{ _media-type: application/vnd.ibexa.api.Member+json, _href: /api/ibexa/v2/corporate/companies/139/members/144, id: 144, name: 'Jay Kowalski', Company: { _media-type: application/vnd.ibexa.api.Company+json, id: 139, name: 'Ibexa Sp. z o. o.', Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/139, _remoteId: b16d06d4c5ba7c37b26fa167b551dfc2, _id: 139, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa Sp. z o. o.', TranslatedName: 'Ibexa Sp. z o. o.', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/139/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/versions/6, VersionInfo: { id: 677, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:10:13+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:10:13+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa Sp. z o. o.' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/139 } }, Fields: { field: [{ id: 673, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 674, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa Sp. z o. o.' }, { id: 675, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 676, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 677, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 678, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 679, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 144, destinationContentHref: /api/ibexa/v2/content/objects/144 } }, { id: 680, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 142, destinationContentHref: /api/ibexa/v2/content/objects/142 } }, { id: 681, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } } }, { id: 683, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 140, destinationContentHref: /api/ibexa/v2/content/objects/140 } }, { id: 682, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 141, destinationContentHref: /api/ibexa/v2/content/objects/141 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/139/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/139/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-28T16:10:13+02:00', publishedDate: '2023-04-28T15:44:55+02:00', mainLanguageCode: eng-GB, currentVersionNo: 6, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/139/objectstates } }, billingAddress: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } }, contactId: 144, salesRepresentativeId: 14, defaultAddressId: 142, addressBookId: 141, membersId: 140, MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/139/members }, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, locationPath: /1/65/140/, isActive: true }, User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/144, _id: 144, _remoteId: 1b3938c16adfa29996f3afff0b4a0032, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/47 }, name: 'Jay Kowalski', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/144/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140/141/145 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/144/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/144/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, publishDate: '2023-04-28T16:10:03+02:00', lastModificationDate: '2023-04-28T16:17:07+02:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/144/versions/6, VersionInfo: { id: 683, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:17:07+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:17:06+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jay Kowalski' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/144 } }, Fields: { field: [{ id: 698, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jay }, { id: 699, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Kowalski }, { id: 700, fieldDefinitionIdentifier: phone_number, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '+48 123 123 456' }, { id: 701, fieldDefinitionIdentifier: user, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 144, login: jay.kowalski, email: jay.kowalski@email.invalid, passwordUpdatedAt: 1682691427, enabled: false, maxLogin: 5, plainPassword: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/144/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/user/default_profile_image/initials.svg?initials=JK#profile_image', width: null, height: null, mimeType: image/svg+xml } }, login: jay.kowalski, email: jay.kowalski@email.invalid, enabled: false, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/144/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/144/roles } }, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/15, identifier: 'Company Buyer', Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/15/policies } } }] + '400': + description: 'Returned when invalid Criterion or Sort clause is used.' + content: + application/vnd.ibexa.api.ErrorMessage: + schema: + $ref: '#/components/schemas/ErrorMessage' + '404': + description: 'Error - The identifier do not match any company.' + summary: 'Read list of company members' + description: 'Returns paginated list of a given company members.' + parameters: + - + name: Accept + in: header + description: 'If set, helps to determine response format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + enum: + - application/vnd.ibexa.api.MemberList+xml + - application/vnd.ibexa.api.MemberList+json + style: simple + explode: false + allowReserved: false + - + name: companyId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: 'filter[DateMetadataCriterion][Target]' + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: false + schema: + type: string + enum: + - created + - modified + - published + style: form + explode: false + allowReserved: false + - + name: 'filter[DateMetadataCriterion][Operator]' + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: false + schema: + type: string + enum: + - eq + - gt + - gte + - lt + - lte + style: form + explode: false + allowReserved: false + - + name: 'filter[DateMetadataCriterion][Value]' + in: query + description: 'DateTime as a UNIX timestamp' + required: false + deprecated: false + allowEmptyValue: false + schema: + type: integer + style: form + explode: false + allowReserved: false + - + name: 'sort[ContentName]' + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: false + schema: + type: string + enum: + - ascending + - descending + style: form + explode: false + allowReserved: false + - + name: 'sort[DatePublished]' + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: false + schema: + type: string + enum: + - ascending + - descending + style: form + explode: false + allowReserved: false + - + name: 'sort[DateModified]' + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: false + schema: + type: string + enum: + - ascending + - descending + style: form + explode: false + allowReserved: false + - + name: offset + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: false + schema: + type: integer + style: form + explode: false + allowReserved: false + - + name: limit + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: false + schema: + type: integer + style: form + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + post: + operationId: api_corporatecompanies_companyIdmembers_post + tags: + - 'Corporate Account' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.Member+xml: + schema: + $ref: '#/components/schemas/Member' + example: | + + + 144 + Jay Kowalski + + 139 + Ibexa Sp. z o. o. + + + Ibexa Sp. z o. o. + Ibexa Sp. z o. o. + + + + + 677 + 6 + PUBLISHED + 2023-04-28T16:10:13+02:00 + + 2023-04-28T16:10:13+02:00 + eng-GB + eng-GB + + + eng-GB + + + + Ibexa Sp. z o. o. + + + + + + 673 + active + eng-GB + ibexa_boolean + true + + + 674 + name + eng-GB + ibexa_string + Ibexa Sp. z o. o. + + + 675 + vat + eng-GB + ibexa_string + 123 456 789 + + + 676 + website + eng-GB + ibexa_string + https://ibexa.co + + + 677 + customer_group + eng-GB + ibexa_customer_group + + 1 + + + + 678 + sales_rep + eng-GB + ibexa_object_relation + + 14 + /api/ibexa/v2/content/objects/14 + + + + 679 + contact + eng-GB + ibexa_object_relation + + 144 + /api/ibexa/v2/content/objects/144 + + + + 680 + default_address + eng-GB + ibexa_object_relation + + 142 + /api/ibexa/v2/content/objects/142 + + + + 681 + billing_address + eng-GB + ibexa_address + + HQ + PL + + Silesia + Katowice + Gliwicka 6/5 + 40-079 + company@email.invalid + +48 000 000 000 + + + + + 683 + members + eng-GB + ibexa_object_relation + + 140 + /api/ibexa/v2/content/objects/140 + + + + 682 + address_book + eng-GB + ibexa_object_relation + + 141 + /api/ibexa/v2/content/objects/141 + + + + + + /placeholder + + + image/svg+xml + + + +
+ + + + 2023-04-28T16:10:13+02:00 + 2023-04-28T15:44:55+02:00 + eng-GB + 6 + true + false + PUBLISHED + + + HQ, Poland + 144 + 14 + 142 + 141 + 140 + + + /1/65/140/ + 1 + + + + Jay Kowalski + +
+ + + + + 2023-04-28T16:10:03+02:00 + 2023-04-28T16:10:03+02:00 + eng-GB + true + + + 676 + 1 + PUBLISHED + 2023-04-28T16:10:03+02:00 + + 2023-04-28T16:10:03+02:00 + eng-GB + eng-GB + + + eng-GB + + + + Jay Kowalski + + + + + + 698 + first_name + eng-GB + ibexa_string + Jay + + + 699 + last_name + eng-GB + ibexa_string + Kowalski + + + 700 + phone_number + eng-GB + ibexa_string + +48 123 123 456 + + + 701 + user + eng-GB + ibexa_user + + true + 144 + jay.kowalski + jay.kowalski@email.invalid + 1682691003 + true + 0 + + + + + + + /user/default_profile_image/initials.svg?initials=JK#profile_image + + + image/svg+xml + + + jay.kowalski + jay.kowalski@email.invalid + true + + + + + Company Admin + + + + application/vnd.ibexa.api.Member+json: + schema: + $ref: '#/components/schemas/MemberWrapper' + example: + Member: + _media-type: application/vnd.ibexa.api.Member+json + _href: /api/ibexa/v2/corporate/companies/139/members/144 + id: 144 + name: 'Jay Kowalski' + Company: { _media-type: application/vnd.ibexa.api.Company+json, id: 139, name: 'Ibexa Sp. z o. o.', Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/139, _remoteId: b16d06d4c5ba7c37b26fa167b551dfc2, _id: 139, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa Sp. z o. o.', TranslatedName: 'Ibexa Sp. z o. o.', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/139/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/versions/6, VersionInfo: { id: 677, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:10:13+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:10:13+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa Sp. z o. o.' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/139 } }, Fields: { field: [{ id: 673, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 674, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa Sp. z o. o.' }, { id: 675, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 676, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 677, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 678, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 679, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 144, destinationContentHref: /api/ibexa/v2/content/objects/144 } }, { id: 680, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 142, destinationContentHref: /api/ibexa/v2/content/objects/142 } }, { id: 681, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } } }, { id: 683, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 140, destinationContentHref: /api/ibexa/v2/content/objects/140 } }, { id: 682, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 141, destinationContentHref: /api/ibexa/v2/content/objects/141 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/139/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/139/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-28T16:10:13+02:00', publishedDate: '2023-04-28T15:44:55+02:00', mainLanguageCode: eng-GB, currentVersionNo: 6, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/139/objectstates } }, billingAddress: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } }, contactId: 144, salesRepresentativeId: 14, defaultAddressId: 142, addressBookId: 141, membersId: 140, MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/139/members }, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, locationPath: /1/65/140/, isActive: true } + User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/144, _id: 144, _remoteId: 1b3938c16adfa29996f3afff0b4a0032, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/47 }, name: 'Jay Kowalski', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/144/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140/141/145 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/144/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/144/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, publishDate: '2023-04-28T16:10:03+02:00', lastModificationDate: '2023-04-28T16:17:07+02:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/144/versions/6, VersionInfo: { id: 683, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:17:07+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:17:06+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jay Kowalski' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/144 } }, Fields: { field: [{ id: 698, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jay }, { id: 699, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Kowalski }, { id: 700, fieldDefinitionIdentifier: phone_number, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '+48 123 123 456' }, { id: 701, fieldDefinitionIdentifier: user, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 144, login: jay.kowalski, email: jay.kowalski@email.invalid, passwordUpdatedAt: 1682691427, enabled: false, maxLogin: 5, plainPassword: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/144/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/user/default_profile_image/initials.svg?initials=JK#profile_image', width: null, height: null, mimeType: image/svg+xml } }, login: jay.kowalski, email: jay.kowalski@email.invalid, enabled: false, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/144/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/144/roles } } + Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/15, identifier: 'Company Buyer', Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/15/policies } } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create a company member.' + summary: 'Create a company member' + description: 'Creates a company member.' + parameters: + - + name: Accept + in: header + description: 'If set, the new member is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The CompanyCreate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: companyId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new MemberCreateController resource' + content: + application/vnd.ibexa.api.MemberCreate+xml: + schema: + $ref: '#/components/schemas/MemberCreate' + x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/company_id/members/POST/MemberCreate.xml.example' + application/vnd.ibexa.api.MemberCreate+json: + schema: + $ref: '#/components/schemas/MemberCreateWrapper' + x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/company_id/members/POST/MemberCreate.json.example' + required: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + '/corporate/companies/{companyId}/members/{memberId}': + get: + operationId: api_corporatecompanies_companyIdmembers_memberId_get + tags: + - 'Corporate Account' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Member+xml: + schema: + $ref: '#/components/schemas/Member' + example: | + + + 144 + Jay Kowalski + + 139 + Ibexa Sp. z o. o. + + + Ibexa Sp. z o. o. + Ibexa Sp. z o. o. + + + + + 677 + 6 + PUBLISHED + 2023-04-28T16:10:13+02:00 + + 2023-04-28T16:10:13+02:00 + eng-GB + eng-GB + + + eng-GB + + + + Ibexa Sp. z o. o. + + + + + + 673 + active + eng-GB + ibexa_boolean + true + + + 674 + name + eng-GB + ibexa_string + Ibexa Sp. z o. o. + + + 675 + vat + eng-GB + ibexa_string + 123 456 789 + + + 676 + website + eng-GB + ibexa_string + https://ibexa.co + + + 677 + customer_group + eng-GB + ibexa_customer_group + + 1 + + + + 678 + sales_rep + eng-GB + ibexa_object_relation + + 14 + /api/ibexa/v2/content/objects/14 + + + + 679 + contact + eng-GB + ibexa_object_relation + + 144 + /api/ibexa/v2/content/objects/144 + + + + 680 + default_address + eng-GB + ibexa_object_relation + + 142 + /api/ibexa/v2/content/objects/142 + + + + 681 + billing_address + eng-GB + ibexa_address + + HQ + PL + + Silesia + Katowice + Gliwicka 6/5 + 40-079 + company@email.invalid + +48 000 000 000 + + + + + 683 + members + eng-GB + ibexa_object_relation + + 140 + /api/ibexa/v2/content/objects/140 + + + + 682 + address_book + eng-GB + ibexa_object_relation + + 141 + /api/ibexa/v2/content/objects/141 + + + + + + /placeholder + + + image/svg+xml + + + +
+ + + + 2023-04-28T16:10:13+02:00 + 2023-04-28T15:44:55+02:00 + eng-GB + 6 + true + false + PUBLISHED + + + HQ, Poland + 144 + 14 + 142 + 141 + 140 + + + /1/65/140/ + 1 + + + + Jay Kowalski + +
+ + + + + 2023-04-28T16:10:03+02:00 + 2023-04-28T16:10:03+02:00 + eng-GB + true + + + 676 + 1 + PUBLISHED + 2023-04-28T16:10:03+02:00 + + 2023-04-28T16:10:03+02:00 + eng-GB + eng-GB + + + eng-GB + + + + Jay Kowalski + + + + + + 698 + first_name + eng-GB + ibexa_string + Jay + + + 699 + last_name + eng-GB + ibexa_string + Kowalski + + + 700 + phone_number + eng-GB + ibexa_string + +48 123 123 456 + + + 701 + user + eng-GB + ibexa_user + + true + 144 + jay.kowalski + jay.kowalski@email.invalid + 1682691003 + true + 0 + + + + + + + /user/default_profile_image/initials.svg?initials=JK#profile_image + + + image/svg+xml + + + jay.kowalski + jay.kowalski@email.invalid + true + + + + + Company Admin + + + + application/vnd.ibexa.api.Member+json: + schema: + $ref: '#/components/schemas/MemberWrapper' + example: + Member: + _media-type: application/vnd.ibexa.api.Member+json + _href: /api/ibexa/v2/corporate/companies/139/members/144 + id: 144 + name: 'Jay Kowalski' + Company: { _media-type: application/vnd.ibexa.api.Company+json, id: 139, name: 'Ibexa Sp. z o. o.', Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/139, _remoteId: b16d06d4c5ba7c37b26fa167b551dfc2, _id: 139, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa Sp. z o. o.', TranslatedName: 'Ibexa Sp. z o. o.', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/139/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/versions/6, VersionInfo: { id: 677, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:10:13+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:10:13+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa Sp. z o. o.' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/139 } }, Fields: { field: [{ id: 673, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 674, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa Sp. z o. o.' }, { id: 675, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 676, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 677, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 678, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 679, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 144, destinationContentHref: /api/ibexa/v2/content/objects/144 } }, { id: 680, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 142, destinationContentHref: /api/ibexa/v2/content/objects/142 } }, { id: 681, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } } }, { id: 683, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 140, destinationContentHref: /api/ibexa/v2/content/objects/140 } }, { id: 682, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 141, destinationContentHref: /api/ibexa/v2/content/objects/141 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/139/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/139/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-28T16:10:13+02:00', publishedDate: '2023-04-28T15:44:55+02:00', mainLanguageCode: eng-GB, currentVersionNo: 6, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/139/objectstates } }, billingAddress: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } }, contactId: 144, salesRepresentativeId: 14, defaultAddressId: 142, addressBookId: 141, membersId: 140, MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/139/members }, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, locationPath: /1/65/140/, isActive: true } + User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/144, _id: 144, _remoteId: 1b3938c16adfa29996f3afff0b4a0032, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/47 }, name: 'Jay Kowalski', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/144/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140/141/145 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/144/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/144/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, publishDate: '2023-04-28T16:10:03+02:00', lastModificationDate: '2023-04-28T16:17:07+02:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/144/versions/6, VersionInfo: { id: 683, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:17:07+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:17:06+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jay Kowalski' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/144 } }, Fields: { field: [{ id: 698, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jay }, { id: 699, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Kowalski }, { id: 700, fieldDefinitionIdentifier: phone_number, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '+48 123 123 456' }, { id: 701, fieldDefinitionIdentifier: user, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 144, login: jay.kowalski, email: jay.kowalski@email.invalid, passwordUpdatedAt: 1682691427, enabled: false, maxLogin: 5, plainPassword: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/144/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/user/default_profile_image/initials.svg?initials=JK#profile_image', width: null, height: null, mimeType: image/svg+xml } }, login: jay.kowalski, email: jay.kowalski@email.invalid, enabled: false, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/144/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/144/roles } } + Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/15, identifier: 'Company Buyer', Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/15/policies } } + '401': + description: 'Error - The user is not authorized to read this company.' + '404': + description: 'Error - The company does not exist.' + summary: 'Get company member' + description: 'Returns the company member by given member ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the company member is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: companyId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: memberId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + delete: + operationId: api_corporatecompanies_companyIdmembers_memberId_delete + tags: + - 'Corporate Account' + responses: + '204': + description: 'No Content - given company member is deleted.' + '401': + description: 'Error - the user is not authorized to delete this company member.' + '404': + description: 'Error - the company member does not exist.' + summary: 'Delete company member' + description: 'The given company member is deleted.' + parameters: + - + name: Accept + in: header + description: 'If set, in the case of an error the error message is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: X-CSRF-Token + in: header + description: "Only needed for session's checking. The {csrfToken} needed on all unsafe HTTP methods with session." + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: companyId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: memberId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + patch: + operationId: api_corporatecompanies_companyIdmembers_memberId_patch + tags: + - 'Corporate Account' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Member+xml: + schema: + $ref: '#/components/schemas/Member' + example: | + + + 144 + Jay Kowalski + + 139 + Ibexa Sp. z o. o. + + + Ibexa Sp. z o. o. + Ibexa Sp. z o. o. + + + + + 677 + 6 + PUBLISHED + 2023-04-28T16:10:13+02:00 + + 2023-04-28T16:10:13+02:00 + eng-GB + eng-GB + + + eng-GB + + + + Ibexa Sp. z o. o. + + + + + + 673 + active + eng-GB + ibexa_boolean + true + + + 674 + name + eng-GB + ibexa_string + Ibexa Sp. z o. o. + + + 675 + vat + eng-GB + ibexa_string + 123 456 789 + + + 676 + website + eng-GB + ibexa_string + https://ibexa.co + + + 677 + customer_group + eng-GB + ibexa_customer_group + + 1 + + + + 678 + sales_rep + eng-GB + ibexa_object_relation + + 14 + /api/ibexa/v2/content/objects/14 + + + + 679 + contact + eng-GB + ibexa_object_relation + + 144 + /api/ibexa/v2/content/objects/144 + + + + 680 + default_address + eng-GB + ibexa_object_relation + + 142 + /api/ibexa/v2/content/objects/142 + + + + 681 + billing_address + eng-GB + ibexa_address + + HQ + PL + + Silesia + Katowice + Gliwicka 6/5 + 40-079 + company@email.invalid + +48 000 000 000 + + + + + 683 + members + eng-GB + ibexa_object_relation + + 140 + /api/ibexa/v2/content/objects/140 + + + + 682 + address_book + eng-GB + ibexa_object_relation + + 141 + /api/ibexa/v2/content/objects/141 + + + + + + /placeholder + + + image/svg+xml + + + +
+ + + + 2023-04-28T16:10:13+02:00 + 2023-04-28T15:44:55+02:00 + eng-GB + 6 + true + false + PUBLISHED + + + HQ, Poland + 144 + 14 + 142 + 141 + 140 + + + /1/65/140/ + 1 + + + + Jay Kowalski + +
+ + + + + 2023-04-28T16:10:03+02:00 + 2023-04-28T16:10:03+02:00 + eng-GB + true + + + 676 + 1 + PUBLISHED + 2023-04-28T16:10:03+02:00 + + 2023-04-28T16:10:03+02:00 + eng-GB + eng-GB + + + eng-GB + + + + Jay Kowalski + + + + + + 698 + first_name + eng-GB + ibexa_string + Jay + + + 699 + last_name + eng-GB + ibexa_string + Kowalski + + + 700 + phone_number + eng-GB + ibexa_string + +48 123 123 456 + + + 701 + user + eng-GB + ibexa_user + + true + 144 + jay.kowalski + jay.kowalski@email.invalid + 1682691003 + true + 0 + + + + + + + /user/default_profile_image/initials.svg?initials=JK#profile_image + + + image/svg+xml + + + jay.kowalski + jay.kowalski@email.invalid + true + + + + + Company Admin + + + + application/vnd.ibexa.api.Member+json: + schema: + $ref: '#/components/schemas/MemberWrapper' + example: + Member: + _media-type: application/vnd.ibexa.api.Member+json + _href: /api/ibexa/v2/corporate/companies/139/members/144 + id: 144 + name: 'Jay Kowalski' + Company: { _media-type: application/vnd.ibexa.api.Company+json, id: 139, name: 'Ibexa Sp. z o. o.', Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/139, _remoteId: b16d06d4c5ba7c37b26fa167b551dfc2, _id: 139, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa Sp. z o. o.', TranslatedName: 'Ibexa Sp. z o. o.', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/139/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/versions/6, VersionInfo: { id: 677, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:10:13+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:10:13+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa Sp. z o. o.' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/139 } }, Fields: { field: [{ id: 673, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 674, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa Sp. z o. o.' }, { id: 675, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 676, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 677, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 678, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 679, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 144, destinationContentHref: /api/ibexa/v2/content/objects/144 } }, { id: 680, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 142, destinationContentHref: /api/ibexa/v2/content/objects/142 } }, { id: 681, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } } }, { id: 683, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 140, destinationContentHref: /api/ibexa/v2/content/objects/140 } }, { id: 682, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 141, destinationContentHref: /api/ibexa/v2/content/objects/141 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/139/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/139/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-28T16:10:13+02:00', publishedDate: '2023-04-28T15:44:55+02:00', mainLanguageCode: eng-GB, currentVersionNo: 6, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/139/objectstates } }, billingAddress: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } }, contactId: 144, salesRepresentativeId: 14, defaultAddressId: 142, addressBookId: 141, membersId: 140, MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/139/members }, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, locationPath: /1/65/140/, isActive: true } + User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/144, _id: 144, _remoteId: 1b3938c16adfa29996f3afff0b4a0032, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/47 }, name: 'Jay Kowalski', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/144/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140/141/145 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/144/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/144/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, publishDate: '2023-04-28T16:10:03+02:00', lastModificationDate: '2023-04-28T16:17:07+02:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/144/versions/6, VersionInfo: { id: 683, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:17:07+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:17:06+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jay Kowalski' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/144 } }, Fields: { field: [{ id: 698, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jay }, { id: 699, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Kowalski }, { id: 700, fieldDefinitionIdentifier: phone_number, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '+48 123 123 456' }, { id: 701, fieldDefinitionIdentifier: user, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 144, login: jay.kowalski, email: jay.kowalski@email.invalid, passwordUpdatedAt: 1682691427, enabled: false, maxLogin: 5, plainPassword: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/144/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/user/default_profile_image/initials.svg?initials=JK#profile_image', width: null, height: null, mimeType: image/svg+xml } }, login: jay.kowalski, email: jay.kowalski@email.invalid, enabled: false, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/144/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/144/roles } } + Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/15, identifier: 'Company Buyer', Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/15/policies } } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this company member.' + summary: 'Update a company member' + description: 'Updates a company member. PATCH or POST with header X-HTTP-Method-Override PATCH.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated company member is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The company input schema encoded in XML or JSON.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: companyId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: memberId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated MemberUpdateController resource' + content: + application/vnd.ibexa.api.MemberUpdate+xml: + schema: + $ref: '#/components/schemas/MemberUpdate' + x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/company_id/members/member_id/PATCH/MemberUpdate.xml.example' + application/vnd.ibexa.api.MemberUpdate+json: + schema: + $ref: '#/components/schemas/MemberUpdateWrapper' + x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/company_id/members/member_id/PATCH/MemberUpdate.json.example' + required: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + /corporate/sales-representatives: + get: + operationId: api_corporatesales-representatives_get + tags: + - 'Corporate Account' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.SalesRepresentativesList+xml: + schema: + $ref: '#/components/schemas/SalesRepresentativesList' + example: | + + + + + John Black + +
+ + + + + 2023-06-20T07:33:17+00:00 + 2023-06-20T07:33:17+00:00 + eng-GB + true + + + 536 + 1 + PUBLISHED + 2023-06-20T07:33:17+00:00 + + 2023-06-20T07:33:17+00:00 + eng-GB + eng-GB + + + eng-GB + + + + John Black + + + + + + 339 + first_name + eng-GB + ibexa_string + John + + + 340 + last_name + eng-GB + ibexa_string + Black + + + 341 + user_account + eng-GB + ibexa_user + + true + 75 + John Black + j.black@ibexa.co + 1687246397 + true + 0 + + + + + 342 + signature + eng-GB + ibexa_text + + + + 343 + image + eng-GB + ibexa_image + + + + + + /user/default_profile_image/initials.svg?initials=JB#profile_image + + + image/svg+xml + + + John Black + j.black@ibexa.co + true + + + + + application/vnd.ibexa.api.SalesRepresentativesList+json: + schema: + $ref: '#/components/schemas/SalesRepresentativesListWrapper' + example: + SalesRepresentativesList: + _media-type: application/vnd.ibexa.api.SalesRepresentativesList+json + users: [{ _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/75, _id: 75, _remoteId: f262e2fa12ae105b78a1b654e87a0874, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 }, name: 'John Black', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/75/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/64/76 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/75/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/75/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, publishDate: '2023-06-20T07:33:17+00:00', lastModificationDate: '2023-06-20T07:33:17+00:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/75/versions/1, VersionInfo: { id: 536, versionNo: 1, status: PUBLISHED, modificationDate: '2023-06-20T07:33:17+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-06-20T07:33:17+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'John Black' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/75 } }, Fields: { field: [{ id: 339, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: John }, { id: 340, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Black }, { id: 341, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 75, login: 'John Black', email: j.black@ibexa.co, passwordUpdatedAt: 1687246397, enabled: true, maxLogin: 0, plainPassword: null } }, { id: 342, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 343, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/75/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/user/default_profile_image/initials.svg?initials=JB#profile_image', width: null, height: null, mimeType: image/svg+xml } }, login: 'John Black', email: j.black@ibexa.co, enabled: true, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/75/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/75/roles } }] + '401': + description: 'Error - the user is not authorized to read Sales Representatives List.' + content: + application/vnd.ibexa.api.ErrorMessage: + schema: + $ref: '#/components/schemas/ErrorMessage' + summary: 'Read list of sales representatives' + description: 'Returns paginated list of available sales representatives.' + parameters: + - + name: Accept + in: header + description: 'If set, helps to determine response format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + /discounts: + get: + operationId: api_discounts_get + tags: + - Discounts + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.DiscountList+json: + schema: + $ref: '#/components/schemas/DiscountList' + example: + DiscountList: + _media-type: application/vnd.ibexa.api.DiscountList+json + Discount: [{ _media-type: application/vnd.ibexa.api.Discount+json, id: 2, identifier: my_discount_identifier, name: 'My Discount', type: cart, label: 'My Discount label', labelDescription: 'My Discount description', priority: 1, isEnabled: true, createdAt: '2025-08-18T11:28:43+02:00', updatedAt: '2025-08-18T11:28:43+02:00', startDate: '2025-08-01T00:00:00+02:00', endDate: '2025-08-31T23:59:59+02:00', DiscountRule: { _media-type: application/vnd.ibexa.api.DiscountRule.FixedAmount+json, type: fixed_amount, expressionValues: { discount_amount: '12' } }, DiscountConditions: [{ _media-type: application/vnd.ibexa.api.DiscountCondition.IsInCurrency+json, identifier: is_in_currency, expressionValues: { currency_code: PLN } }], DiscountTranslations: [{ _media-type: application/vnd.ibexa.api.DiscountTranslation+json, languageCode: eng-GB, name: 'My Discount', description: 'My Discount description', label: 'My Discount label', labelDescription: 'My Discount description' }] }, { _media-type: application/vnd.ibexa.api.Discount+json, id: 3, identifier: my_another_discount, name: 'My Another Discount', type: catalog, label: 'Catalog discount label', labelDescription: 'Catalog discount description', priority: 1, isEnabled: true, createdAt: '2025-08-18T11:58:37+02:00', updatedAt: '2025-08-18T11:58:37+02:00', startDate: '2025-08-18T09:57:14+02:00', DiscountRule: { _media-type: application/vnd.ibexa.api.DiscountRule.Percentage+json, type: percentage, expressionValues: { discount_percentage: '10' } }, DiscountConditions: [{ _media-type: application/vnd.ibexa.api.DiscountCondition.IsInCurrency+json, identifier: is_in_currency, expressionValues: { currency_code: PLN } }], DiscountTranslations: [{ _media-type: application/vnd.ibexa.api.DiscountTranslation+json, languageCode: eng-GB, name: 'My Another Discount', description: 'My Another Discount Description', label: 'Catalog discount label', labelDescription: 'Catalog discount description' }] }] + summary: 'Get discounts' + description: 'Returns a list of all defined discounts' + parameters: + - + name: offset + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: false + schema: + type: integer + style: form + explode: false + allowReserved: false + example: 0 + - + name: limit + in: query + description: '' + required: false + deprecated: false + allowEmptyValue: false + schema: + type: integer + style: form + explode: false + allowReserved: false + example: 25 + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + post: + operationId: api_discounts_post + tags: + - Discounts + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Discount+json: + schema: + $ref: '#/components/schemas/Discount' + example: + Discount: + _media-type: application/vnd.ibexa.api.Discount+json + id: 2 + identifier: my_discount_identifier + name: 'My Discount' + type: cart + label: 'My Discount label' + labelDescription: 'My Discount description' + priority: 1 + isEnabled: true + createdAt: '2025-08-18T11:28:43+02:00' + updatedAt: '2025-08-18T11:28:43+02:00' + startDate: '2025-08-01T00:00:00+02:00' + endDate: '2025-08-31T23:59:59+02:00' + DiscountRule: { _media-type: application/vnd.ibexa.api.DiscountRule.FixedAmount+json, type: fixed_amount, expressionValues: { discount_amount: '12' } } + DiscountConditions: [{ _media-type: application/vnd.ibexa.api.DiscountCondition.IsInCurrency+json, identifier: is_in_currency, expressionValues: { currency_code: PLN } }] + DiscountTranslations: [{ _media-type: application/vnd.ibexa.api.DiscountTranslation+json, languageCode: eng-GB, name: 'My Discount', description: 'My Discount description', label: 'My Discount label', labelDescription: 'My Discount description' }] + '401': + description: 'Error - the user is not authorized to create a discount item.' + '406': + description: 'Error - the input data is not valid.' + summary: 'Create a discount' + description: 'Creates a new discount' + parameters: + - + name: X-Csrf-Token + in: header + description: 'CSRF token obtained during the authentication.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new DiscountCreateController resource' + content: + application/vnd.ibexa.api.DiscountCreate+json: + schema: + $ref: '#/components/schemas/DiscountCreate' + x-ibexa-example-file: '@IbexaDiscountsBundle/Resources/api_platform/examples/discounts/POST/DiscountCreate.json.example' + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/discounts/{identifier}': + get: + operationId: api_discounts_identifier_get + tags: + - Discounts + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Discount+json: + schema: + $ref: '#/components/schemas/Discount' + example: + Discount: + _media-type: application/vnd.ibexa.api.Discount+json + id: 2 + identifier: my_discount_identifier + name: 'My Discount' + type: cart + label: 'My Discount label' + labelDescription: 'My Discount description' + priority: 1 + isEnabled: true + createdAt: '2025-08-18T11:28:43+02:00' + updatedAt: '2025-08-18T11:28:43+02:00' + startDate: '2025-08-01T00:00:00+02:00' + endDate: '2025-08-31T23:59:59+02:00' + DiscountRule: { _media-type: application/vnd.ibexa.api.DiscountRule.FixedAmount+json, type: fixed_amount, expressionValues: { discount_amount: '12' } } + DiscountConditions: [{ _media-type: application/vnd.ibexa.api.DiscountCondition.IsInCurrency+json, identifier: is_in_currency, expressionValues: { currency_code: PLN } }] + DiscountTranslations: [{ _media-type: application/vnd.ibexa.api.DiscountTranslation+json, languageCode: eng-GB, name: 'My Discount', description: 'My Discount description', label: 'My Discount label', labelDescription: 'My Discount description' }] + '404': + description: 'Error - a discount of the given unique identifier is not found.' + '401': + description: 'Error - the user is not authorized to read this discount item.' + summary: 'Get a discount item by its unique identifier.' + description: 'Returns a discount item by its unique string identifier.' + parameters: + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + example: my_discount_identifier + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + delete: + operationId: api_discounts_identifier_delete + tags: + - Discounts + responses: + '204': + description: 'The discount is deleted.' + '404': + description: 'Error - a discount of the given unique identifier is not found.' + '401': + description: 'Error - the user is not authorized to delete a discount item.' + summary: 'Delete a discount item' + description: 'Deletes an existing discount item by its unique identifier' + parameters: + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + example: my_discount_identifier + - + name: X-Csrf-Token + in: header + description: 'CSRF token obtained during the authentication.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + patch: + operationId: api_discounts_identifier_patch + tags: + - Discounts + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Discount+json: + schema: + $ref: '#/components/schemas/Discount' + example: + Discount: + _media-type: application/vnd.ibexa.api.Discount+json + id: 2 + identifier: my_discount_identifier + name: 'My Discount' + type: cart + label: 'My Discount label' + labelDescription: 'My Discount description' + priority: 1 + isEnabled: true + createdAt: '2025-08-18T11:28:43+02:00' + updatedAt: '2025-08-18T11:28:43+02:00' + startDate: '2025-08-01T00:00:00+02:00' + endDate: '2025-08-31T23:59:59+02:00' + DiscountRule: { _media-type: application/vnd.ibexa.api.DiscountRule.FixedAmount+json, type: fixed_amount, expressionValues: { discount_amount: '12' } } + DiscountConditions: [{ _media-type: application/vnd.ibexa.api.DiscountCondition.IsInCurrency+json, identifier: is_in_currency, expressionValues: { currency_code: PLN } }] + DiscountTranslations: [{ _media-type: application/vnd.ibexa.api.DiscountTranslation+json, languageCode: eng-GB, name: 'My Discount', description: 'My Discount description', label: 'My Discount label', labelDescription: 'My Discount description' }] + '404': + description: 'Error - a discount of the given unique identifier is not found.' + '401': + description: 'Error - the user is not authorized to update a discount item.' + '406': + description: 'Error - the input data is not valid.' + summary: 'Update a discount' + description: 'Updates a new discount' + parameters: + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + example: my_discount_identifier + - + name: X-Csrf-Token + in: header + description: 'CSRF token obtained during the authentication.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated DiscountUpdateController resource' + content: + application/vnd.ibexa.api.DiscountUpdate+json: + schema: + $ref: '#/components/schemas/DiscountUpdate' + x-ibexa-example-file: '@IbexaDiscountsBundle/Resources/api_platform/examples/discounts/PATCH/DiscountUpdate.json.example' + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/discounts/{identifier}/disable': + post: + operationId: api_discounts_identifierdisable_post + tags: + - Discounts + responses: + '204': + description: 'The discount is disabled.' + '404': + description: 'Error - a discount of the given unique identifier is not found.' + '401': + description: 'Error - the user is not authorized to disable a discount item.' + summary: 'Disables a discount' + description: 'Disables a discount item by its unique identifier' + parameters: + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + example: my_discount_identifier + - + name: X-Csrf-Token + in: header + description: 'CSRF token obtained during the authentication.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new DiscountDisableController resource' + content: { } + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/discounts/{identifier}/enable': + post: + operationId: api_discounts_identifierenable_post + tags: + - Discounts + responses: + '204': + description: 'The discount is enabled.' + '404': + description: 'Error - a discount of the given unique identifier is not found.' + '401': + description: 'Error - the user is not authorized to enable a discount item.' + summary: 'Enables a discount' + description: 'Enables a discount item by its unique identifier' + parameters: + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + example: my_discount_identifier + - + name: X-Csrf-Token + in: header + description: 'CSRF token obtained during the authentication.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new DiscountEnableController resource' + content: { } + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/discounts/{id}': + get: + operationId: api_discounts_id_get + tags: + - Discounts + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Discount+json: + schema: + $ref: '#/components/schemas/Discount' + example: + Discount: + _media-type: application/vnd.ibexa.api.Discount+json + id: 2 + identifier: my_discount_identifier + name: 'My Discount' + type: cart + label: 'My Discount label' + labelDescription: 'My Discount description' + priority: 1 + isEnabled: true + createdAt: '2025-08-18T11:28:43+02:00' + updatedAt: '2025-08-18T11:28:43+02:00' + startDate: '2025-08-01T00:00:00+02:00' + endDate: '2025-08-31T23:59:59+02:00' + DiscountRule: { _media-type: application/vnd.ibexa.api.DiscountRule.FixedAmount+json, type: fixed_amount, expressionValues: { discount_amount: '12' } } + DiscountConditions: [{ _media-type: application/vnd.ibexa.api.DiscountCondition.IsInCurrency+json, identifier: is_in_currency, expressionValues: { currency_code: PLN } }] + DiscountTranslations: [{ _media-type: application/vnd.ibexa.api.DiscountTranslation+json, languageCode: eng-GB, name: 'My Discount', description: 'My Discount description', label: 'My Discount label', labelDescription: 'My Discount description' }] + '404': + description: 'Error - a discount of the given ID is not found.' + '401': + description: 'Error - the user is not authorized to read this discount item.' + summary: 'Get a discount item' + description: 'Returns a discount item by its ID.' + parameters: + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: integer + style: simple + explode: false + allowReserved: false + example: 1 + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + /languages: + get: + operationId: api_languages_get + tags: + - Language + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.LanguageList+xml: + schema: + $ref: '#/components/schemas/LanguageList' + example: | + + + + 2 + eng-GB + English (United Kingdom) + + + 4 + pol-PL + Polish (polski) + + + application/vnd.ibexa.api.LanguageList+json: + schema: + $ref: '#/components/schemas/LanguageListWrapper' + example: + LanguageList: + _media-type: application/vnd.ibexa.api.LanguageList+json + _href: /api/ibexa/v2/languages + Language: [{ _media-type: application/vnd.ibexa.api.Language+json, _href: /api/ibexa/v2/languages/eng-GB, languageId: 2, languageCode: eng-GB, name: 'English (United Kingdom)' }, { _href: /api/ibexa/v2/languages/pol-PL, _media-type: application/vnd.ibexa.api.Language+json, languageCode: pol-PL, languageId: 4, name: 'Polish (polski)' }] + summary: 'Language list' + description: 'Lists languages' + parameters: + - + name: Accept + in: header + description: 'If set, the list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/languages/{code}': + get: + operationId: api_languages_code_get + tags: + - Language + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Language+xml: + schema: + $ref: '#/components/schemas/Language' + example: | + + + 2 + eng-GB + English (United Kingdom) + + application/vnd.ibexa.api.Language+json: + schema: + $ref: '#/components/schemas/LanguageWrapper' + example: + Language: + _media-type: application/vnd.ibexa.api.Language+json + _href: /api/ibexa/v2/languages/eng-GB + languageId: 2 + languageCode: eng-GB + name: 'English (United Kingdom)' + summary: 'Get language' + description: 'Retrieves a LanguageLoadByIdController resource.' + parameters: + - + name: Accept + in: header + description: 'If set, the language is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: code + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /content/locations: + get: + operationId: api_contentlocations_get + tags: + - Location + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.LocationList+xml: + schema: + $ref: '#/components/schemas/Location' + example: | + + + 96 + 0 + false + true + false + + /1/2/42/96/ + 3 + 0 + 58133c8c75230e5debe362a28b92d27a + + + PATH + ASC + + + + + Art3 + Art3 + + +
+ + + 2021-06-28T11:34:17+00:00 + 2021-06-28T11:34:17+00:00 + eng-GB + 1 + false + false + PUBLISHED + + + + + application/vnd.ibexa.api.LocationList+json: + schema: + $ref: '#/components/schemas/LocationWrapper' + example: + Location: + _media-type: application/vnd.ibexa.api.Location+json + _href: /api/ibexa/v2/content/locations/1/2/59/114 + id: 114 + priority: 0 + hidden: false + invisible: false + explicitlyHidden: false + ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/59 } + pathString: /1/2/59/114/ + depth: 3 + childCount: 0 + remoteId: 47a1e4ee082fb64e93a822dcfe3a5614 + Children: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/children } + Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/59 } + sortField: PATH + sortOrder: ASC + UrlAliases: { _media-type: application/vnd.ibexa.api.UrlAliasRefList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/urlaliases } + ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, _remoteId: 0fe1b1543f886b0becd4d9b2c7c517d0, _id: 59, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2 }, Name: Art1, TranslatedName: Art1, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/59/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/59/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/59/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-06-28T11:33:01+00:00', publishedDate: '2021-06-28T11:33:01+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: false, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/59/objectstates } } } + '307': + description: 'Temporary redirect to the main resource URL.' + '404': + description: 'Error - the Location with the given ID (remote ID or URL Alias) does not exist.' + summary: 'Load Locations by id/remoteId/urlAlias' + description: 'Loads the Location for a given ID (x), remote ID or URL alias.' + parameters: + - + name: Accept + in: header + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/content/locations/{path}': + get: + operationId: api_contentlocations_path_get + tags: + - Location + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Location+xml: + schema: + $ref: '#/components/schemas/Location' + example: | + + + 96 + 0 + false + true + false + + /1/2/42/96/ + 3 + 0 + 58133c8c75230e5debe362a28b92d27a + + + PATH + ASC + + + + + Art3 + Art3 + + +
+ + + 2021-06-28T11:34:17+00:00 + 2021-06-28T11:34:17+00:00 + eng-GB + 1 + false + false + PUBLISHED + + + + + application/vnd.ibexa.api.Location+json: + schema: + $ref: '#/components/schemas/LocationWrapper' + example: + Location: + _media-type: application/vnd.ibexa.api.Location+json + _href: /api/ibexa/v2/content/locations/1/2/59/114 + id: 114 + priority: 0 + hidden: false + invisible: false + explicitlyHidden: false + ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/59 } + pathString: /1/2/59/114/ + depth: 3 + childCount: 0 + remoteId: 47a1e4ee082fb64e93a822dcfe3a5614 + Children: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/children } + Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/59 } + sortField: PATH + sortOrder: ASC + UrlAliases: { _media-type: application/vnd.ibexa.api.UrlAliasRefList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/urlaliases } + ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, _remoteId: 0fe1b1543f886b0becd4d9b2c7c517d0, _id: 59, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2 }, Name: Art1, TranslatedName: Art1, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/59/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/59/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/59/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-06-28T11:33:01+00:00', publishedDate: '2021-06-28T11:33:01+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: false, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/59/objectstates } } } + '401': + description: 'Error - the user is not authorized to read this Location.' + '404': + description: 'Error - the Location with the given path does not exist.' + summary: 'Load Location' + description: "Loads the Location for the given path e.g. '/content/locations/1/2/61'." + parameters: + - + name: Accept + in: header + description: 'If set, the new Location is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_contentlocations_path_delete + tags: + - Location + responses: + '204': + description: 'No Content - deleted.' + '401': + description: 'Error - the user is not authorized to delete this subtree.' + '404': + description: 'Error - the Location with the given ID does not exist.' + summary: 'Delete subtree' + description: 'Deletes the complete subtree for the given path. Every content item which does not have any other Location is deleted. Otherwise the deleted Location is removed from the content item. The children are recursively deleted.' + parameters: + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_contentlocations_path_patch + tags: + - Location + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Location+xml: + schema: + $ref: '#/components/schemas/Location' + example: | + + + 96 + 0 + false + true + false + + /1/2/42/96/ + 3 + 0 + 58133c8c75230e5debe362a28b92d27a + + + PATH + ASC + + + + + Art3 + Art3 + + +
+ + + 2021-06-28T11:34:17+00:00 + 2021-06-28T11:34:17+00:00 + eng-GB + 1 + false + false + PUBLISHED + + + + + application/vnd.ibexa.api.Location+json: + schema: + $ref: '#/components/schemas/LocationWrapper' + example: + Location: + _media-type: application/vnd.ibexa.api.Location+json + _href: /api/ibexa/v2/content/locations/1/2/59/114 + id: 114 + priority: 0 + hidden: false + invisible: false + explicitlyHidden: false + ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/59 } + pathString: /1/2/59/114/ + depth: 3 + childCount: 0 + remoteId: 47a1e4ee082fb64e93a822dcfe3a5614 + Children: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/children } + Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/59 } + sortField: PATH + sortOrder: ASC + UrlAliases: { _media-type: application/vnd.ibexa.api.UrlAliasRefList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/urlaliases } + ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, _remoteId: 0fe1b1543f886b0becd4d9b2c7c517d0, _id: 59, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2 }, Name: Art1, TranslatedName: Art1, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/59/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/59/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/59/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-06-28T11:33:01+00:00', publishedDate: '2021-06-28T11:33:01+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: false, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/59/objectstates } } } + '401': + description: 'Error - the user is not authorized to update this Location.' + '404': + description: 'Error - the Location with the given ID does not exist.' + summary: 'Update Location' + description: 'Updates the Location. This method can also be used to hide/reveal a Location via the hidden field in the LocationUpdate. PATCH or POST with header X-HTTP-Method-Override PATCH.' + parameters: + - + name: Accept + in: header + description: 'If set, the Location is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The LocationUpdate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated LocationUpdateController resource' + content: + application/vnd.ibexa.api.LocationUpdate+xml: + schema: + $ref: '#/components/schemas/LocationUpdateStruct' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/locations/location_id/PATCH/LocationUpdate.xml.example' + application/vnd.ibexa.api.LocationUpdate+json: + schema: + $ref: '#/components/schemas/LocationUpdateStructWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/locations/location_id/PATCH/LocationUpdate.json.example' + required: false + deprecated: false + '/content/locations/{path}/children': + get: + operationId: api_contentlocations_pathchildren_get + tags: + - Location + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.LocationList+xml: + schema: + $ref: '#/components/schemas/LocationList' + example: | + + + + + application/vnd.ibexa.api.LocationList+json: + schema: + $ref: '#/components/schemas/LocationListWrapper' + '401': + description: 'Error - the user is not authorized to read this content item.' + '404': + description: 'Error - the content item with the given ID does not exist.' + summary: 'Get child Locations.' + description: 'Loads all child Locations for the given parent Location.' + parameters: + - + name: Accept + in: header + description: 'If set, the new Location list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/content/locations/{path}/urlaliases': + get: + operationId: api_contentlocations_pathurlaliases_get + tags: + - Location + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.UrlAliasRefList+xml: + schema: + $ref: '#/components/schemas/UrlAliasRefList' + example: | + + + + + application/vnd.ibexa.api.UrlAliasRefList+json: + schema: + $ref: '#/components/schemas/UrlAliasRefListWrapper' + '400': + description: 'Error - The user has no permission to read URL aliases.' + '401': + description: 'Error - The Location was not found.' + summary: 'List URL aliases for Location' + description: 'Returns the list of URL aliases for a Location.' + parameters: + - + name: Accept + in: header + description: 'If set, the URL alias list contains only references and is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /content/objectstategroups: + get: + operationId: api_contentobjectstategroups_get + tags: + - 'Object State Groups' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ObjectStateGroupList+xml: + schema: + $ref: '#/components/schemas/ObjectStateGroupList' + example: | + + + + 2 + ibexa_lock + eng-GB + eng-GB + + + Lock + + + + + + + 3 + accessibility + eng-GB + eng-GB + + + Accessibility + + + + + + + 6 + custom-states + eng-GB + eng-GB + + + Custom State + + + Custom Object state + + + + application/vnd.ibexa.api.ObjectStateGroupList+json: + schema: + $ref: '#/components/schemas/ObjectStateGroupListWrapper' + example: + ObjectStateGroupList: + _media-type: application/vnd.ibexa.api.ObjectStateGroupList+json + _href: /api/ibexa/v2/content/objectstategroups + ObjectStateGroup: [{ _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/2, id: 2, identifier: ibexa_lock, defaultLanguageCode: eng-GB, languageCodes: eng-GB, ObjectStates: { _media-type: application/vnd.ibexa.api.ObjectStateList+json, _href: /api/ibexa/v2/content/objectstategroups/2/objectstates }, names: { value: [{ _languageCode: eng-GB, '#text': Lock }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] } }, { _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/3, id: 3, identifier: accessibility, defaultLanguageCode: eng-GB, languageCodes: eng-GB, ObjectStates: { _media-type: application/vnd.ibexa.api.ObjectStateList+json, _href: /api/ibexa/v2/content/objectstategroups/3/objectstates }, names: { value: [{ _languageCode: eng-GB, '#text': Accessibility }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] } }, { _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/6, id: 6, identifier: custom-states, defaultLanguageCode: eng-GB, languageCodes: eng-GB, ObjectStates: { _media-type: application/vnd.ibexa.api.ObjectStateList+json, _href: /api/ibexa/v2/content/objectstategroups/6/objectstates }, names: { value: [{ _languageCode: eng-GB, '#text': 'Custom State' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Custom Object state' }] } }] + '401': + description: 'Error - The user has no permission to read Object state groups.' + summary: 'List Object state groups' + description: 'Returns a list of all Object state groups.' + parameters: + - + name: Accept + in: header + description: 'If set, the Object state group list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_contentobjectstategroups_post + tags: + - 'Object State Groups' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.ObjectStateGroup+xml: + schema: + $ref: '#/components/schemas/ObjectStateGroup' + example: | + + + 7 + custom-states + eng-GB + eng-GB + + + New Custom State name + + + Custom Object state + + + application/vnd.ibexa.api.ObjectStateGroup+json: + schema: + $ref: '#/components/schemas/ObjectStateGroupWrapper' + example: + ObjectStateGroup: + _media-type: application/vnd.ibexa.api.ObjectStateGroup+json + _href: /api/ibexa/v2/content/objectstategroups/7 + id: 7 + identifier: custom-states + defaultLanguageCode: eng-GB + languageCodes: eng-GB + ObjectStates: { _media-type: application/vnd.ibexa.api.ObjectStateList+json, _href: /api/ibexa/v2/content/objectstategroups/7/objectstates } + names: { value: [{ _languageCode: eng-GB, '#text': 'New Custom State name' }] } + descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Custom Object state' }] } + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - The user is not authorized to create an Object state group.' + '403': + description: 'Error - An Object state group with the same identifier already exists.' + summary: 'Create Object state group' + description: 'Creates a new Object state group.' + parameters: + - + name: Accept + in: header + description: 'If set, the new Object state group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The Object state group input schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ObjectStateGroupCreateController resource' + content: + application/vnd.ibexa.api.ObjectStateGroupCreate+xml: + schema: + $ref: '#/components/schemas/ObjectStateGroupCreate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/POST/ObjectStateGroupCreate.xml.example' + application/vnd.ibexa.api.ObjectStateGroupCreate+json: + schema: + $ref: '#/components/schemas/ObjectStateGroupCreateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/POST/ObjectStateGroupCreate.json.example' + required: false + deprecated: false + '/content/objectstategroups/{objectStateGroupId}': + get: + operationId: api_contentobjectstategroups_objectStateGroupId_get + tags: + - 'Object State Groups' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ObjectStateGroup+xml: + schema: + $ref: '#/components/schemas/ObjectStateGroup' + example: | + + + 7 + custom-states + eng-GB + eng-GB + + + New Custom State name + + + Custom Object state + + + application/vnd.ibexa.api.ObjectStateGroup+json: + schema: + $ref: '#/components/schemas/ObjectStateGroupWrapper' + example: + ObjectStateGroup: + _media-type: application/vnd.ibexa.api.ObjectStateGroup+json + _href: /api/ibexa/v2/content/objectstategroups/7 + id: 7 + identifier: custom-states + defaultLanguageCode: eng-GB + languageCodes: eng-GB + ObjectStates: { _media-type: application/vnd.ibexa.api.ObjectStateList+json, _href: /api/ibexa/v2/content/objectstategroups/7/objectstates } + names: { value: [{ _languageCode: eng-GB, '#text': 'New Custom State name' }] } + descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Custom Object state' }] } + '401': + description: 'Error - The user is not authorized to read this Object state group.' + '404': + description: 'Error - The Object state group does not exist.' + summary: 'Get Object state group' + description: 'Returns the Object state group with the provided ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the Object state group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: objectStateGroupId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_contentobjectstategroups_objectStateGroupId_delete + tags: + - 'Object State Groups' + responses: + '204': + description: 'No Content - Object state group deleted.' + '401': + description: 'Error - The user is not authorized to delete an Object state group.' + '404': + description: 'Error - The Object state group does not exist.' + summary: 'Delete Object state group' + description: 'Deletes the given Object state group including Object states.' + parameters: + - + name: objectStateGroupId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_contentobjectstategroups_objectStateGroupId_patch + tags: + - 'Object State Groups' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ObjectStateGroup+xml: + schema: + $ref: '#/components/schemas/ObjectStateGroup' + example: | + + + 7 + custom-states + eng-GB + eng-GB + + + New Custom State name + + + Custom Object state + + + application/vnd.ibexa.api.ObjectStateGroup+json: + schema: + $ref: '#/components/schemas/ObjectStateGroupWrapper' + example: + ObjectStateGroup: + _media-type: application/vnd.ibexa.api.ObjectStateGroup+json + _href: /api/ibexa/v2/content/objectstategroups/7 + id: 7 + identifier: custom-states + defaultLanguageCode: eng-GB + languageCodes: eng-GB + ObjectStates: { _media-type: application/vnd.ibexa.api.ObjectStateList+json, _href: /api/ibexa/v2/content/objectstategroups/7/objectstates } + names: { value: [{ _languageCode: eng-GB, '#text': 'New Custom State name' }] } + descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Custom Object state' }] } + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - The user is not authorized to update an Object state group.' + '403': + description: 'Error - An Object state group with the provided identifier already exists.' + '412': + description: 'Error - The current ETag does not match the one provided in the If-Match header.' + summary: 'Update Object state group' + description: 'Updates an Object state group. PATCH or POST with header X-HTTP-Method-Override PATCH.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated Object state group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The Object state group input schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: objectStateGroupId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated ObjectStateGroupUpdateController resource' + content: + application/vnd.ibexa.api.ObjectStateGroupUpdate+xml: + schema: + $ref: '#/components/schemas/ObjectStateGroupUpdate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/object_state_group_id/PATCH/ObjectStateGroupUpdate.xml.example' + application/vnd.ibexa.api.ObjectStateGroupUpdate+json: + schema: + $ref: '#/components/schemas/ObjectStateGroupUpdateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/object_state_group_id/PATCH/ObjectStateGroupUpdate.json.example' + required: false + deprecated: false + '/content/objectstategroups/{objectStateGroupId}/objectstates': + get: + operationId: api_contentobjectstategroups_objectStateGroupIdobjectstates_get + tags: + - 'Object State Groups' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ObjectStateList+xml: + schema: + $ref: '#/components/schemas/ObjectStateList' + example: | + + + + 1 + not_locked + 0 + + eng-GB + eng-GB + + Not locked + + + + + + + 2 + locked + 1 + + eng-GB + eng-GB + + Locked + + + + + + + application/vnd.ibexa.api.ObjectStateList+json: + schema: + $ref: '#/components/schemas/ObjectStateListWrapper' + example: + ObjectStateList: + _media-type: application/vnd.ibexa.api.ObjectStateList+json + _href: /api/ibexa/v2/content/objectstategroups/2/objectstates + ObjectState: [{ _media-type: application/vnd.ibexa.api.ObjectState+json, _href: /api/ibexa/v2/content/objectstategroups/2/objectstates/1, id: 1, identifier: not_locked, priority: 0, ObjectStateGroup: { _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/2 }, defaultLanguageCode: eng-GB, languageCodes: eng-GB, names: { value: [{ _languageCode: eng-GB, '#text': 'Not locked' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] } }, { _media-type: application/vnd.ibexa.api.ObjectState+json, _href: /api/ibexa/v2/content/objectstategroups/2/objectstates/2, id: 2, identifier: locked, priority: 1, ObjectStateGroup: { _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/2 }, defaultLanguageCode: eng-GB, languageCodes: eng-GB, names: { value: [{ _languageCode: eng-GB, '#text': Locked }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] } }] + '401': + description: 'Error - The user has no permission to read Object states.' + summary: 'List Object states' + description: 'Returns a list of all Object states of the given group.' + parameters: + - + name: Accept + in: header + description: 'If set, the Object state list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: objectStateGroupId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_contentobjectstategroups_objectStateGroupIdobjectstates_post + tags: + - 'Object State Groups' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.ObjectState+xml: + schema: + $ref: '#/components/schemas/ObjectState' + example: | + + + 2 + locked + 1 + + eng-GB + eng-GB + + New Object State name + + + + + + application/vnd.ibexa.api.ObjectState+json: + schema: + $ref: '#/components/schemas/ObjectStateWrapper' + example: + ObjectState: + _media-type: application/vnd.ibexa.api.ObjectState+json + _href: /api/ibexa/v2/content/objectstategroups/6/objectstates/9 + id: 9 + identifier: closed + priority: 1 + ObjectStateGroup: { _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/6 } + defaultLanguageCode: eng-GB + languageCodes: eng-GB + names: { value: [{ _languageCode: eng-GB, '#text': 'New Object State name' }] } + descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] } + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - The user is not authorized to create an Object state.' + '403': + description: 'Error - An Object state with the same identifier already exists in the given group.' + summary: 'Create Object state' + description: 'Creates a new Object state.' + parameters: + - + name: Accept + in: header + description: 'If set, the new Object state is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The Object state input schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: objectStateGroupId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ObjectStateCreateController resource' + content: + application/vnd.ibexa.api.ObjectStateCreate+xml: + schema: + $ref: '#/components/schemas/ObjectStateCreate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/object_state_group_id/objectstates/POST/ObjectStateCreate.xml.example' + application/vnd.ibexa.api.ObjectStateCreate+json: + schema: + $ref: '#/components/schemas/ObjectStateCreateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/object_state_group_id/objectstates/POST/ObjectStateCreate.json.example' + required: false + deprecated: false + '/content/objectstategroups/{objectStateGroupId}/objectstates/{objectStateId}': + get: + operationId: api_contentobjectstategroups_objectStateGroupIdobjectstates_objectStateId_get + tags: + - 'Object State Groups' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ObjectState+xml: + schema: + $ref: '#/components/schemas/ObjectState' + example: | + + + 2 + locked + 1 + + eng-GB + eng-GB + + New Object State name + + + + + + application/vnd.ibexa.api.ObjectState+json: + schema: + $ref: '#/components/schemas/ObjectStateWrapper' + example: + ObjectState: + _media-type: application/vnd.ibexa.api.ObjectState+json + _href: /api/ibexa/v2/content/objectstategroups/6/objectstates/9 + id: 9 + identifier: closed + priority: 1 + ObjectStateGroup: { _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/6 } + defaultLanguageCode: eng-GB + languageCodes: eng-GB + names: { value: [{ _languageCode: eng-GB, '#text': 'New Object State name' }] } + descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] } + '401': + description: 'Error - The user is not authorized to read this Object state.' + '404': + description: 'Error - The Object state does not exist.' + summary: 'Get Object state' + description: 'Returns the Object state.' + parameters: + - + name: Accept + in: header + description: 'If set, the Object State is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: objectStateGroupId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: objectStateId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_contentobjectstategroups_objectStateGroupIdobjectstates_objectStateId_delete + tags: + - 'Object State Groups' + responses: + '204': + description: 'No Content - Object state deleted.' + '401': + description: 'Error - The user is not authorized to delete an Object state.' + '404': + description: 'Error - The Object state does not exist.' + summary: 'Delete Object state' + description: 'Deletes provided Object state.' + parameters: + - + name: objectStateGroupId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: objectStateId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_contentobjectstategroups_objectStateGroupIdobjectstates_objectStateId_patch + tags: + - 'Object State Groups' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ObjectState+xml: + schema: + $ref: '#/components/schemas/ObjectState' + example: | + + + 2 + locked + 1 + + eng-GB + eng-GB + + New Object State name + + + + + + application/vnd.ibexa.api.ObjectState+json: + schema: + $ref: '#/components/schemas/ObjectStateWrapper' + example: + ObjectState: + _media-type: application/vnd.ibexa.api.ObjectState+json + _href: /api/ibexa/v2/content/objectstategroups/6/objectstates/9 + id: 9 + identifier: closed + priority: 1 + ObjectStateGroup: { _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/6 } + defaultLanguageCode: eng-GB + languageCodes: eng-GB + names: { value: [{ _languageCode: eng-GB, '#text': 'New Object State name' }] } + descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] } + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - The user is not authorized to update the Object state.' + '403': + description: 'Error - An Object state with the provided identifier already exists in this group.' + '412': + description: 'Error - The current ETag does not match the one provided in the If-Match header.' + summary: 'Update Object state' + description: 'Updates an Object state. PATCH or POST with header X-HTTP-Method-Override PATCH.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated Object state is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The Object state input schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: objectStateGroupId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: objectStateId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated ObjectStateUpdateController resource' + content: + application/vnd.ibexa.api.ObjectStateUpdate+xml: + schema: + $ref: '#/components/schemas/ObjectStateUpdate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/object_state_group_id/objectstates/object_state_id/PATCH/ObjectStateUpdate.xml.example' + application/vnd.ibexa.api.ObjectStateUpdate+json: + schema: + $ref: '#/components/schemas/ObjectStateUpdateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/object_state_group_id/objectstates/object_state_id/PATCH/ObjectStateUpdate.json.example' + required: false + deprecated: false + /content/objects: + get: + operationId: api_contentobjects_get + tags: + - Objects + responses: + '307': + description: 'Temporary redirect to `GET /content/objects/{contentId}` equivalent.' + headers: + Location: + description: 'Contains the prefixed `/content/objects/{contentId}` absolute path of the content item.' + schema: + type: string + '400': + description: 'Error - the required `remoteId` query parameter is missing.' + '404': + description: 'Error - the content with the given remote ID does not exist.' + summary: 'Load content by remote ID' + description: 'Loads content item for a given remote ID.' + parameters: + - + name: remoteId + in: query + description: 'Remote ID of the content item.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: form + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_contentobjects_post + tags: + - Objects + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.Content+xml: + schema: + $ref: '#/components/schemas/Content' + example: | + + + + Forms + Forms + + + + + 514 + 1 + PUBLISHED + 2018-09-17T06:48:13+00:00 + + 2018-09-17T06:48:13+00:00 + eng-GB + eng-GB + + + eng-GB + + + + Forms + + + + + + 249 + name + eng-GB + ibexa_string + Forms + + + 250 + short_name + eng-GB + ibexa_string + + + + 251 + short_description + eng-GB + ibexa_richtext + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + + + 252 + description + eng-GB + ibexa_richtext + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + + + + + /bundles/ezplatformadminui/img/ez-icons.svg#folder + + + image/svg+xml + + + +
+ + + + 2018-09-17T06:48:13+00:00 + 2018-09-17T06:48:13+00:00 + eng-GB + 1 + false + false + PUBLISHED + + + application/vnd.ibexa.api.Content+json: + schema: + $ref: '#/components/schemas/ContentWrapper' + example: + Content: + _media-type: application/vnd.ibexa.api.Content+json + _href: /api/ibexa/v2/content/objects/54 + _remoteId: 9e863fbb0fb835ce050032b4f00de61d + _id: 54 + ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1 } + Name: Forms + TranslatedName: Forms + Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/54/versions } + CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/54/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/54/versions/1, VersionInfo: { id: 514, versionNo: 1, status: PUBLISHED, modificationDate: '2018-09-17T06:48:13+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2018-09-17T06:48:13+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Forms }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/54 } }, Fields: { field: [{ id: 249, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Forms }, { id: 250, fieldDefinitionIdentifier: short_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: null }, { id: 251, fieldDefinitionIdentifier: short_description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 252, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/54/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#folder', width: null, height: null, mimeType: image/svg+xml } } } + Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/6 } + MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/55 } + Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/54/locations } + Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + lastModificationDate: '2018-09-17T06:48:13+00:00' + publishedDate: '2018-09-17T06:48:13+00:00' + mainLanguageCode: eng-GB + currentVersionNo: 1 + alwaysAvailable: false + isHidden: false + status: PUBLISHED + ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/54/objectstates } + application/vnd.ibexa.api.ContentInfo+xml: + schema: + $ref: '#/components/schemas/ContentInfoWrapper' + example: | + + + + article1 + + +
+ + + + 2019-02-19T15:00:34+01:00 + 2019-02-19T15:00:34+01:00 + eng-GB + 1 + false + + + '400': + description: 'Error - the input does not match the input schema definition or the validation on a field fails.' + '401': + description: 'Error - the user is not authorized to create this Object in this Location.' + '404': + description: 'Error - the parent Location specified in the request body does not exist.' + summary: 'Create content item' + description: 'Creates a draft assigned to the authenticated user. If a different user ID is given in the input, the draft is assigned to the given user but this action requires special permissions for the authenticated user (this is useful for content staging where the transfer process does not have to authenticate with the user who created the content item in the source server). The user needs to publish the content item if it should be visible.' + parameters: + - + name: Accept + in: header + description: 'Content - If set, all information for the content item including the embedded current version is returned in XML or JSON format. ContentInfo - If set, all information for the content item (excluding the current version) is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The ContentCreate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ContentCreateController resource' + content: + application/vnd.ibexa.api.ContentCreate+xml: + schema: + $ref: '#/components/schemas/ContentCreate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/POST/ContentCreate.xml.example' + application/vnd.ibexa.api.ContentCreate+json: + schema: + $ref: '#/components/schemas/ContentCreateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/POST/ContentCreate.json.example' + required: false + deprecated: false + '/content/objects/{contentId}': + get: + operationId: api_contentobjects_contentId_get + tags: + - Objects + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Content+xml: + schema: + $ref: '#/components/schemas/Content' + example: | + + + + Forms + Forms + + + + + 514 + 1 + PUBLISHED + 2018-09-17T06:48:13+00:00 + + 2018-09-17T06:48:13+00:00 + eng-GB + eng-GB + + + eng-GB + + + + Forms + + + + + + 249 + name + eng-GB + ibexa_string + Forms + + + 250 + short_name + eng-GB + ibexa_string + + + + 251 + short_description + eng-GB + ibexa_richtext + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + + + 252 + description + eng-GB + ibexa_richtext + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + + + + + /bundles/ezplatformadminui/img/ez-icons.svg#folder + + + image/svg+xml + + + +
+ + + + 2018-09-17T06:48:13+00:00 + 2018-09-17T06:48:13+00:00 + eng-GB + 1 + false + false + PUBLISHED + + + application/vnd.ibexa.api.Content+json: + schema: + $ref: '#/components/schemas/ContentWrapper' + example: + Content: + _media-type: application/vnd.ibexa.api.Content+json + _href: /api/ibexa/v2/content/objects/54 + _remoteId: 9e863fbb0fb835ce050032b4f00de61d + _id: 54 + ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1 } + Name: Forms + TranslatedName: Forms + Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/54/versions } + CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/54/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/54/versions/1, VersionInfo: { id: 514, versionNo: 1, status: PUBLISHED, modificationDate: '2018-09-17T06:48:13+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2018-09-17T06:48:13+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Forms }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/54 } }, Fields: { field: [{ id: 249, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Forms }, { id: 250, fieldDefinitionIdentifier: short_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: null }, { id: 251, fieldDefinitionIdentifier: short_description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 252, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/54/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#folder', width: null, height: null, mimeType: image/svg+xml } } } + Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/6 } + MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/55 } + Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/54/locations } + Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + lastModificationDate: '2018-09-17T06:48:13+00:00' + publishedDate: '2018-09-17T06:48:13+00:00' + mainLanguageCode: eng-GB + currentVersionNo: 1 + alwaysAvailable: false + isHidden: false + status: PUBLISHED + ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/54/objectstates } + application/vnd.ibexa.api.ContentInfo+xml: + schema: + $ref: '#/components/schemas/ContentInfo' + application/vnd.ibexa.api.ContentInfo+json: + schema: + $ref: '#/components/schemas/ContentInfoWrapper' + example: | + + + + article1 + + +
+ + + + 2019-02-19T15:00:34+01:00 + 2019-02-19T15:00:34+01:00 + eng-GB + 1 + false + + + '401': + description: 'Error - the user is not authorized to read this object. This could also happen if there is no published version yet and another user owns a draft of this content item.' + '404': + description: 'Error - the ID is not found.' + summary: 'Load content' + description: 'Loads the content item for the given ID. Depending on the Accept header the current version is embedded (i.e. the current published version or if it does not exist, the draft of the authenticated user).' + parameters: + - + name: Accept + in: header + description: |- + + * Content - If set, all information for the content item including the embedded current version is returned in XML or JSON format. + * ContentInfo - If set, all information for the content item (excluding the current version) is returned in XML or JSON format. + + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + enum: + - application/vnd.ibexa.api.Content+xml + - application/vnd.ibexa.api.Content+json + - application/vnd.ibexa.api.ContentInfo+xml + - application/vnd.ibexa.api.ContentInfo+json + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: 'If the provided ETag matches the current ETag then a "304 Not Modified" is returned. The ETag changes if the meta data has changed, this happens also if there is a new published version.' + required: false + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: integer + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_contentobjects_contentId_delete + tags: + - Objects + responses: + '204': + description: 'The content item is deleted.' + '404': + description: 'Error - content item was not found.' + '401': + description: 'Error - the user is not authorized to delete this content item.' + summary: 'Delete Content' + description: 'Deletes content item. If content item has multiple Locations, all of them will be deleted via delete a subtree.' + parameters: + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_contentobjects_contentId_patch + tags: + - Objects + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ContentInfo+xml: + schema: + $ref: '#/components/schemas/ContentInfo' + application/vnd.ibexa.api.ContentInfo+json: + schema: + $ref: '#/components/schemas/ContentInfoWrapper' + example: | + + + + article1 + + +
+ + + + 2019-02-19T15:00:34+01:00 + 2019-02-19T15:00:34+01:00 + eng-GB + 1 + false + + + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update this object.' + '404': + description: 'Error - the content ID does not exist.' + '412': + description: 'Error - the current ETag does not match with the one provided in the If-Match header.' + '415': + description: 'Error - the media-type is not one of those specified in headers.' + summary: 'Update content' + description: 'This method updates the content metadata which is independent from a version. PATCH or POST with header X-HTTP-Method-Override PATCH.' + parameters: + - + name: Accept + in: header + description: 'If set, all information for the content item (excluding the current version) is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-match + in: header + description: 'Causes to patch only if the specified ETag is the current one. Otherwise a 412 is returned.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The ContentUpdate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated ContentMetadataUpdateController resource' + content: + application/vnd.ibexa.api.ContentUpdate+xml: + schema: + $ref: '#/components/schemas/ContentInfo' + application/vnd.ibexa.api.ContentUpdate+json: + schema: + $ref: '#/components/schemas/ContentInfoWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/PATCH/ContentInfo.xml.example' + required: false + deprecated: false + '/content/objects/{contentId}/currentversion': + get: + operationId: api_contentobjects_contentIdcurrentversion_get + tags: + - Objects + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Version+xml: + schema: + $ref: '#/components/schemas/Version' + example: | + + + + 581 + 5 + ARCHIVED + 2023-05-24T06:11:50+00:00 + + 2023-05-24T06:09:49+00:00 + eng-GB + eng-GB + + + eng-GB + + + + Features + + + + + + 477 + name + eng-GB + ibexa_string + Features + + + 478 + short_name + eng-GB + ibexa_string + + + + 479 + short_description + eng-GB + ibexa_richtext + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + + + 480 + description + eng-GB + ibexa_richtext + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + + + + + /placeholder + + + image/svg+xml + + + application/vnd.ibexa.api.Version+json: + schema: + $ref: '#/components/schemas/VersionWrapper' + example: + Version: + _media-type: application/vnd.ibexa.api.Version+json + _href: /api/ibexa/v2/content/objects/107/versions/5 + VersionInfo: { id: 581, versionNo: 5, status: ARCHIVED, modificationDate: '2023-05-24T06:11:50+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-05-24T06:09:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Features }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/107 } } + Fields: { field: [{ id: 477, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Features }, { id: 478, fieldDefinitionIdentifier: short_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: null }, { id: 479, fieldDefinitionIdentifier: short_description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 480, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }] } + Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/107/versions/5/relations, Relation: [] } + Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } + '307': + description: 'Temporary redirect.' + '404': + description: 'Error - the resource does not exist.' + summary: 'Get current version' + description: 'Redirects to the current version of the content item.' + parameters: + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_contentobjects_contentIdcurrentversion_post + tags: + - Objects + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.Version+xml: + schema: + $ref: '#/components/schemas/Version' + example: | + + + + 581 + 5 + ARCHIVED + 2023-05-24T06:11:50+00:00 + + 2023-05-24T06:09:49+00:00 + eng-GB + eng-GB + + + eng-GB + + + + Features + + + + + + 477 + name + eng-GB + ibexa_string + Features + + + 478 + short_name + eng-GB + ibexa_string + + + + 479 + short_description + eng-GB + ibexa_richtext + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + + + 480 + description + eng-GB + ibexa_richtext + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + + + + + /placeholder + + + image/svg+xml + + + application/vnd.ibexa.api.Version+json: + schema: + $ref: '#/components/schemas/VersionWrapper' + example: + Version: + _media-type: application/vnd.ibexa.api.Version+json + _href: /api/ibexa/v2/content/objects/107/versions/5 + VersionInfo: { id: 581, versionNo: 5, status: ARCHIVED, modificationDate: '2023-05-24T06:11:50+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-05-24T06:09:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Features }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/107 } } + Fields: { field: [{ id: 477, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Features }, { id: 478, fieldDefinitionIdentifier: short_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: null }, { id: 479, fieldDefinitionIdentifier: short_description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 480, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }] } + Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/107/versions/5/relations, Relation: [] } + Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } + '401': + description: 'Error - the user is not authorized to update this content item.' + '403': + description: 'Error - the current version is already a draft.' + '404': + description: 'Error - the content item was not found.' + summary: 'Create a draft from current version' + description: 'The system creates a new draft as a copy of the current version. COPY or POST with header X-HTTP-Method-Override COPY.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated version is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ContentDraftCreateFromCurrentVersionController resource' + content: { } + required: false + deprecated: false + '/content/objects/{contentId}/hide': + post: + operationId: api_contentobjects_contentIdhide_post + tags: + - Objects + responses: + '204': + description: 'OK - Object item is hidden.' + '401': + description: 'Error - The user has no permission to change Object item visibility.' + '404': + description: 'Error - The content item was not found.' + summary: 'Hide content item' + description: 'Makes or keep the content item invisible' + parameters: + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ContentHideController resource' + content: { } + required: false + deprecated: false + '/content/objects/{contentId}/locations': + get: + operationId: api_contentobjects_contentIdlocations_get + tags: + - Objects + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.LocationList+xml: + schema: + $ref: '#/components/schemas/LocationList' + example: | + + + + + application/vnd.ibexa.api.LocationList+json: + schema: + $ref: '#/components/schemas/LocationListWrapper' + example: + LocationList: + _media-type: application/vnd.ibexa.api.LocationList+json + _href: /api/ibexa/v2/content/objects/63/locations + Location: [{ _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/57/65 }] + '401': + description: 'Error - the user is not authorized to read this content item.' + '404': + description: 'Error - the content item with the given ID does not exist.' + summary: 'Get Locations for content item' + description: 'Loads all Locations for the given content item.' + parameters: + - + name: Accept + in: header + description: 'If set, the Location list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_contentobjects_contentIdlocations_post + tags: + - Objects + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.Location+xml: + schema: + $ref: '#/components/schemas/Location' + example: | + + + 96 + 0 + false + true + false + + /1/2/42/96/ + 3 + 0 + 58133c8c75230e5debe362a28b92d27a + + + PATH + ASC + + + + + Art3 + Art3 + + +
+ + + 2021-06-28T11:34:17+00:00 + 2021-06-28T11:34:17+00:00 + eng-GB + 1 + false + false + PUBLISHED + + + + + application/vnd.ibexa.api.Location+json: + schema: + $ref: '#/components/schemas/LocationWrapper' + example: + Location: + _media-type: application/vnd.ibexa.api.Location+json + _href: /api/ibexa/v2/content/locations/1/2/59/114 + id: 114 + priority: 0 + hidden: false + invisible: false + explicitlyHidden: false + ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/59 } + pathString: /1/2/59/114/ + depth: 3 + childCount: 0 + remoteId: 47a1e4ee082fb64e93a822dcfe3a5614 + Children: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/children } + Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/59 } + sortField: PATH + sortOrder: ASC + UrlAliases: { _media-type: application/vnd.ibexa.api.UrlAliasRefList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/urlaliases } + ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, _remoteId: 0fe1b1543f886b0becd4d9b2c7c517d0, _id: 59, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2 }, Name: Art1, TranslatedName: Art1, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/59/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/59/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/59/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-06-28T11:33:01+00:00', publishedDate: '2021-06-28T11:33:01+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: false, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/59/objectstates } } } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this Location.' + '403': + description: 'Error - a Location under the given parent ID already exists.' + summary: 'Create new Location for content item' + description: 'Creates a new Location for the given content item.' + parameters: + - + name: Accept + in: header + description: 'If set, the new Location is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The LocationCreate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new LocationCreateController resource' + content: + application/vnd.ibexa.api.LocationCreate+xml: + schema: + $ref: '#/components/schemas/LocationCreate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/locations/POST/LocationCreate.xml.example' + application/vnd.ibexa.api.LocationCreate+json: + schema: + $ref: '#/components/schemas/LocationCreateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/locations/POST/LocationCreate.json.example' + required: false + deprecated: false + '/content/objects/{contentId}/objectstates': + get: + operationId: api_contentobjects_contentIdobjectstates_get + tags: + - Objects + responses: + '200': + description: 'OK - returns the Object state.' + content: + application/vnd.ibexa.api.ContentObjectStates+xml: + schema: + $ref: '#/components/schemas/ContentObjectStates' + application/vnd.ibexa.api.ContentObjectStates+json: + schema: + $ref: '#/components/schemas/ContentObjectStates' + '404': + description: 'Error - The content item does not exist.' + summary: 'Get Object states of content item' + description: 'Returns the Object states of a content item' + parameters: + - + name: Accept + in: header + description: 'If set, the Object states are returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_contentobjects_contentIdobjectstates_patch + tags: + - Objects + responses: + '204': + description: '204' + content: + application/vnd.ibexa.api.ContentObjectStates+xml: + schema: + $ref: '#/components/schemas/ContentObjectStates' + example: | + + + + + application/vnd.ibexa.api.ContentObjectStates+json: + schema: + $ref: '#/components/schemas/ContentObjectStatesWrapper' + example: + ContentObjectStates: + _media-type: application/vnd.ibexa.api.ContentObjectStates+json + ObjectState: [{ _media-type: application/vnd.ibexa.api.ObjectState+json, _href: /api/ibexa/v2/content/objectstategroups/2/objectstates/1 }, { _media-type: application/vnd.ibexa.api.ObjectState+json, _href: /api/ibexa/v2/content/objectstategroups/3/objectstates/3 }, { _media-type: application/vnd.ibexa.api.ObjectState+json, _href: /api/ibexa/v2/content/objectstategroups/7/objectstates/7 }, { _media-type: application/vnd.ibexa.api.ObjectState+json, _href: /api/ibexa/v2/content/objectstategroups/8/objectstates/8 }] + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - The user is not authorized to set an Object state.' + '403': + description: 'Error - The input contains multiple Object states of the same Object state group.' + '412': + description: 'Error - The current ETag does not match the one provided in the If-Match header.' + summary: 'Set Object states of content item' + description: 'Updates Object states of a content item. An Object state in the input overrides the state of the Object state group. PATCH or POST with header X-HTTP-Method-Override PATCH.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated Object state is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The content item Object states input schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated ObjectStatesForContentUpdateController resource' + content: + application/vnd.ibexa.api.ContentObjectStates+xml: + schema: + $ref: '#/components/schemas/ContentObjectStates' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/objectstates/PATCH/ContentObjectStates.response.xml.example' + application/vnd.ibexa.api.ContentObjectStates+json: + schema: + $ref: '#/components/schemas/ContentObjectStatesWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/objectstates/GET/ContentObjectStates.json.example' + required: false + deprecated: false + '/content/objects/{contentId}/relations': + get: + operationId: api_contentobjects_contentIdrelations_get + tags: + - Objects + responses: + '307': + description: 'Temporary redirect.' + '401': + description: 'Error - the user is not authorized to read this content item.' + '404': + description: 'Error - the content item was not found.' + summary: 'Load Relations of content item' + description: 'Redirects to the Relations of the current version.' + parameters: + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/content/objects/{contentId}/reveal': + post: + operationId: api_contentobjects_contentIdreveal_post + tags: + - Objects + responses: + '204': + description: 'OK - Object item is revealed.' + '401': + description: 'Error - The user has no permission to change Object item visibility.' + '404': + description: 'Error - The content item was not found.' + summary: 'Reveal content item' + description: 'Makes or keep the content item visible' + parameters: + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ContentRevealController resource' + content: { } + required: false + deprecated: false + '/content/objects/{contentId}/translations/{languageCode}': + delete: + operationId: api_contentobjects_contentIdtranslations_languageCode_delete + tags: + - Objects + responses: + '204': + description: 'No Content' + '401': + description: 'Error - the user is not authorized to delete content item (content/remove policy).' + '404': + description: 'Error - the content item was not found.' + '406': + description: 'Error - the given translation does not exist for the content item.' + '409': + description: 'Error - the specified translation is the only one any version has or is the main translation.' + summary: 'Delete translation (permanently)' + description: 'Permanently deletes a translation from all versions of a content item.' + parameters: + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: languageCode + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/content/objects/{contentId}/versions': + get: + operationId: api_contentobjects_contentIdversions_get + tags: + - Objects + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.VersionList+xml: + schema: + $ref: '#/components/schemas/VersionList' + example: | + + + + + + 521 + 1 + PUBLISHED + 2021-06-28T11:33:49+00:00 + + 2021-06-28T11:33:31+00:00 + eng-GB + eng-GB + + + eng-GB + + + + Art1 + + + + + + + + 580 + 2 + DRAFT + 2021-07-26T08:10:02+00:00 + + 2021-07-26T08:10:02+00:00 + eng-GB + eng-GB + + + eng-GB + + + + Art1 + + + + + + + + 581 + 3 + DRAFT + 2021-07-26T08:16:50+00:00 + + 2021-07-26T08:16:50+00:00 + eng-GB + eng-GB + + + eng-GB + + + + Art1 + + + + + + application/vnd.ibexa.api.VersionList+json: + schema: + $ref: '#/components/schemas/VersionListWrapper' + example: + VersionList: + _media-type: application/vnd.ibexa.api.VersionList+json + _href: /api/ibexa/v2/content/objects/61/versions + VersionItem: [{ Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/61/versions/1 }, VersionInfo: { id: 521, versionNo: 1, status: PUBLISHED, modificationDate: '2021-06-28T11:33:49+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-06-28T11:33:31+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Art1 }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/61 } } }, { Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/61/versions/2 }, VersionInfo: { id: 580, versionNo: 2, status: DRAFT, modificationDate: '2021-07-26T08:10:02+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-07-26T08:10:02+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Art1 }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/61 } } }, { Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/61/versions/3 }, VersionInfo: { id: 581, versionNo: 3, status: DRAFT, modificationDate: '2021-07-26T08:16:50+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-07-26T08:16:50+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Art1 }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/61 } } }] + '401': + description: 'Error - the user has no permission to read the versions.' + summary: 'List versions' + description: 'Returns a list of all versions of the content item. This method does not include fields and relations in the version elements of the response.' + parameters: + - + name: Accept + in: header + description: 'If set, the version list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/content/objects/{contentId}/versions/{versionNo}': + get: + operationId: api_contentobjects_contentIdversions_versionNo_get + tags: + - Objects + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Version+xml: + schema: + $ref: '#/components/schemas/Version' + example: | + + + + 581 + 5 + ARCHIVED + 2023-05-24T06:11:50+00:00 + + 2023-05-24T06:09:49+00:00 + eng-GB + eng-GB + + + eng-GB + + + + Features + + + + + + 477 + name + eng-GB + ibexa_string + Features + + + 478 + short_name + eng-GB + ibexa_string + + + + 479 + short_description + eng-GB + ibexa_richtext + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + + + 480 + description + eng-GB + ibexa_richtext + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + + + + + /placeholder + + + image/svg+xml + + + application/vnd.ibexa.api.Version+json: + schema: + $ref: '#/components/schemas/VersionWrapper' + example: + Version: + _media-type: application/vnd.ibexa.api.Version+json + _href: /api/ibexa/v2/content/objects/107/versions/5 + VersionInfo: { id: 581, versionNo: 5, status: ARCHIVED, modificationDate: '2023-05-24T06:11:50+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-05-24T06:09:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Features }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/107 } } + Fields: { field: [{ id: 477, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Features }, { id: 478, fieldDefinitionIdentifier: short_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: null }, { id: 479, fieldDefinitionIdentifier: short_description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 480, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }] } + Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/107/versions/5/relations, Relation: [] } + Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } + '304': + description: 'Error - the ETag does not match the current one.' + '401': + description: 'Error - the user is not authorized to read this content item.' + '404': + description: 'Error - the ID or version is not found.' + summary: 'Load version' + description: 'Loads a specific version of a content item. This method returns Fields and relations.' + parameters: + - + name: If-None-Match + in: header + description: 'Only return the version if the given ETag is the not current one, otherwise a 304 is returned.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Accept + in: header + description: 'If set, the version list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: versionNo + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_contentobjects_contentIdversions_versionNo_post + tags: + - Objects + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.Version+xml: + schema: + $ref: '#/components/schemas/Version' + example: | + + + + 581 + 5 + ARCHIVED + 2023-05-24T06:11:50+00:00 + + 2023-05-24T06:09:49+00:00 + eng-GB + eng-GB + + + eng-GB + + + + Features + + + + + + 477 + name + eng-GB + ibexa_string + Features + + + 478 + short_name + eng-GB + ibexa_string + + + + 479 + short_description + eng-GB + ibexa_richtext + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + + + 480 + description + eng-GB + ibexa_richtext + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + + + + + /placeholder + + + image/svg+xml + + + application/vnd.ibexa.api.Version+json: + schema: + $ref: '#/components/schemas/VersionWrapper' + example: + Version: + _media-type: application/vnd.ibexa.api.Version+json + _href: /api/ibexa/v2/content/objects/107/versions/5 + VersionInfo: { id: 581, versionNo: 5, status: ARCHIVED, modificationDate: '2023-05-24T06:11:50+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-05-24T06:09:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Features }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/107 } } + Fields: { field: [{ id: 477, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Features }, { id: 478, fieldDefinitionIdentifier: short_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: null }, { id: 479, fieldDefinitionIdentifier: short_description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 480, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }] } + Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/107/versions/5/relations, Relation: [] } + Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } + '401': + description: 'Error - the user is not authorized to update this content item.' + '404': + description: 'Error - the content item was not found.' + summary: 'Create a draft from a version' + description: 'The system creates a new draft as a copy of the given version. COPY or POST with header X-HTTP-Method-Override COPY.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated version is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: versionNo + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ContentDraftCreateFromVersionController resource' + content: { } + required: false + deprecated: false + delete: + operationId: api_contentobjects_contentIdversions_versionNo_delete + tags: + - Objects + responses: + '204': + description: 'No Content - the version is deleted.' + '404': + description: 'Error - the content item or version were not found.' + '401': + description: 'Error - the user is not authorized to delete this version.' + '403': + description: 'Error - the version is in published state.' + summary: 'Delete content version' + description: 'Deletes the content version.' + parameters: + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: versionNo + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_contentobjects_contentIdversions_versionNo_patch + tags: + - Objects + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Version+xml: + schema: + $ref: '#/components/schemas/Version' + example: | + + + + 581 + 5 + ARCHIVED + 2023-05-24T06:11:50+00:00 + + 2023-05-24T06:09:49+00:00 + eng-GB + eng-GB + + + eng-GB + + + + Features + + + + + + 477 + name + eng-GB + ibexa_string + Features + + + 478 + short_name + eng-GB + ibexa_string + + + + 479 + short_description + eng-GB + ibexa_richtext + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + + + 480 + description + eng-GB + ibexa_richtext + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + + + + + /placeholder + + + image/svg+xml + + + application/vnd.ibexa.api.Version+json: + schema: + $ref: '#/components/schemas/VersionWrapper' + example: + Version: + _media-type: application/vnd.ibexa.api.Version+json + _href: /api/ibexa/v2/content/objects/107/versions/5 + VersionInfo: { id: 581, versionNo: 5, status: ARCHIVED, modificationDate: '2023-05-24T06:11:50+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-05-24T06:09:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Features }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/107 } } + Fields: { field: [{ id: 477, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Features }, { id: 478, fieldDefinitionIdentifier: short_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: null }, { id: 479, fieldDefinitionIdentifier: short_description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 480, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }] } + Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/107/versions/5/relations, Relation: [] } + Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update this version.' + '403': + description: 'Error - the version is not allowed to change - i.e. version is not a DRAFT.' + '404': + description: 'Error - the content ID or version ID does not exist.' + '412': + description: 'Error - the current ETag does not match with the one provided in the If-Match header.' + summary: 'Update version' + description: 'A specific draft is updated. PATCH or POST with header X-HTTP-Method-Override PATCH.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated version is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-match + in: header + description: 'Performs the patch only if the specified ETag is the current one.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The VersionUpdate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: versionNo + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated ContentVersionUpdateController resource' + content: + application/vnd.ibexa.api.VersionUpdate+xml: + schema: + $ref: '#/components/schemas/VersionUpdate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/versions/version_no/PATCH/VersionUpdate.xml.example' + application/vnd.ibexa.api.VersionUpdate+json: + schema: + $ref: '#/components/schemas/VersionUpdateWrapper' + required: false + deprecated: false + '/content/objects/{contentId}/versions/{versionNo}/relations': + get: + operationId: api_contentobjects_contentIdversions_versionNorelations_get + tags: + - Objects + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.RelationList+xml: + schema: + $ref: '#/components/schemas/RelationList' + example: | + + + + + + LINK + + + application/vnd.ibexa.api.RelationList+json: + schema: + $ref: '#/components/schemas/RelationListWrapper' + example: + Relations: + _media-type: application/vnd.ibexa.api.RelationList+json + _href: /api/ibexa/v2/content/objects/107/versions/9/relations + Relation: [{ _media-type: application/vnd.ibexa.api.Relation+json, _href: /api/ibexa/v2/content/objects/107/versions/9/relations/7, SourceContent: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/107 }, DestinationContent: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/52 }, RelationType: LINK }] + '401': + description: 'Error - the user is not authorized to read this content item.' + '404': + description: 'Error - the content item was not found.' + summary: 'Load Relations of content item version' + description: 'Loads the Relations of the given version.' + parameters: + - + name: Accept + in: header + description: 'If set, the Relation is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: versionNo + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_contentobjects_contentIdversions_versionNorelations_post + tags: + - Objects + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.Relation+xml: + schema: + $ref: '#/components/schemas/Relation' + example: | + + + + + COMMON + + application/vnd.ibexa.api.Relation+json: + schema: + $ref: '#/components/schemas/RelationWrapper' + example: + Relation: + _media-type: application/vnd.ibexa.api.Relation+json + _href: /api/ibexa/v2/content/objects/59/versions/2/relations/38 + SourceContent: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59 } + DestinationContent: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59 } + RelationType: COMMON + summary: 'Create new Relation' + description: 'Creates a new Relation of type COMMON for the given draft.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated version is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The RelationCreate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: versionNo + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ContentRelationCreateController resource' + content: + application/vnd.ibexa.api.RelationCreate+xml: + schema: + $ref: '#/components/schemas/RelationCreate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/versions/version_no/relations/POST/RelationCreate.xml.example' + application/vnd.ibexa.api.RelationCreate+json: + schema: + $ref: '#/components/schemas/RelationCreateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/versions/version_no/relations/POST/RelationCreate.json.example' + required: false + deprecated: false + '/content/objects/{contentId}/versions/{versionNo}/relations/{relationId}': + get: + operationId: api_contentobjects_contentIdversions_versionNorelations_relationId_get + tags: + - Objects + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Relation+xml: + schema: + $ref: '#/components/schemas/Relation' + example: | + + + + + COMMON + + application/vnd.ibexa.api.Relation+json: + schema: + $ref: '#/components/schemas/RelationWrapper' + example: + Relation: + _media-type: application/vnd.ibexa.api.Relation+json + _href: /api/ibexa/v2/content/objects/59/versions/2/relations/38 + SourceContent: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59 } + DestinationContent: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59 } + RelationType: COMMON + '401': + description: 'Error - the user is not authorized to read this content item.' + '404': + description: 'Error - the content item with the given ID or the Relation does not exist.' + summary: 'Load Relation' + description: 'Loads a Relation for the given content item.' + parameters: + - + name: Accept + in: header + description: 'If set, the Relation is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: versionNo + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: relationId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_contentobjects_contentIdversions_versionNorelations_relationId_delete + tags: + - Objects + responses: + '204': + description: 'No Content - deleted a Relation of the given draft.' + '401': + description: 'Error - the user is not authorized to delete this Relation.' + '403': + description: 'Error - the Relation is not of type COMMON or the given version is not a draft.' + '404': + description: 'Error - content item or the Relation were not found in the given version.' + summary: 'Delete Relation' + description: 'Deletes a Relation of the given draft.' + parameters: + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: versionNo + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: relationId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/content/objects/{contentId}/versions/{versionNo}/translations/{languageCode}': + delete: + operationId: api_contentobjects_contentIdversions_versionNotranslations_languageCode_delete + tags: + - Objects + responses: + '204': + description: 'No Content - removes a translation from a version draft.' + '401': + description: 'Error - the user is not authorized to delete this translation.' + '403': + description: 'Error - the version is not in draft state.' + '404': + description: 'Error - the content item or version number were not found.' + '406': + description: 'Error - the given translation does not exist for the version.' + '409': + description: 'Error - the specified translation is the only one the version has or is the main translation.' + summary: 'Delete translation from version draft' + description: 'Removes a translation from a version draft.' + parameters: + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: versionNo + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: languageCode + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/orders/order/cancel/{id}': + post: + operationId: api_ordersordercancel_id_post + tags: + - Orders + responses: + '204': + description: 'No content - the given order is cancelled.' + '401': + description: 'Error - the user is not authorized to delete this order.' + '404': + description: 'Error - the order with the given ID does not exist.' + '406': + description: 'Error - the order cannot be cancelled due to not-allowed workflow transition' + summary: 'Cancel order' + description: 'Cancels the given order.' + parameters: + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new OrderCancelController resource' + content: { } + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/orders/order/{identifier}': + get: + operationId: api_ordersorder_identifier_get + tags: + - Orders + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Order+xml: + schema: + $ref: '#/components/schemas/Order' + application/vnd.ibexa.api.Order+json: + schema: + $ref: '#/components/schemas/OrderWrapper' + example: + Order: + _media-type: application/vnd.ibexa.api.Order+json + id: 2 + identifier: 2d9c73cd-ea10-4459-b20e-96710c8d3898 + created: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } + modified: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } + status: pending + OrderUser: { _media-type: application/vnd.ibexa.api.OrderUser+json, id: 14, name: Administrator, email: aa@aa.aa } + OrderCurrency: { _media-type: application/vnd.ibexa.api.OrderCurrency+json, id: 1, code: EUR } + OrderValue: { _media-type: application/vnd.ibexa.api.OrderValue+json, vat: { amount: '10', currency: EUR }, total_gross: { amount: '10', currency: EUR }, total_net: { amount: '10', currency: EUR } } + OrderCompany: { _media-type: application/vnd.ibexa.api.OrderCompany+json, id: 68, name: Apple } + OrderItemsList: [{ _media-type: application/vnd.ibexa.api.OrderItem+json, quantity: 10, OrderItemValue: { _media-type: application/vnd.ibexa.api.OrderItemValue+json, unit_price_gross: { amount: '110', currency: EUR }, unit_price_net: { amount: '100', currency: EUR }, vat_rate: '10.00', subtotal_price_gross: { amount: '1100', currency: EUR }, subtotal_price_net: { amount: '1000', currency: EUR } }, OrderItemProduct: { _media-type: application/vnd.ibexa.api.OrderItemProduct+json, id: 1, code: test, name: Test }, context: { foo: bar, baz: true } }] + context: { foo: bar, baz: 123 } + '401': + description: 'Error - the user has no permission to read orders.' + '404': + description: 'Error - the order does not exist.' + summary: 'Load order by identifier' + description: 'Loads an order by its identifier (UUID).' + parameters: + - + name: Accept + in: header + description: 'Order - If set, the order returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/orders/order/{id}': + get: + operationId: api_ordersorder_id_get + tags: + - Orders + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Order+xml: + schema: + $ref: '#/components/schemas/Order' + application/vnd.ibexa.api.Order+json: + schema: + $ref: '#/components/schemas/OrderWrapper' + example: + Order: + _media-type: application/vnd.ibexa.api.Order+json + id: 2 + identifier: 2d9c73cd-ea10-4459-b20e-96710c8d3898 + created: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } + modified: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } + status: pending + OrderUser: { _media-type: application/vnd.ibexa.api.OrderUser+json, id: 14, name: Administrator, email: aa@aa.aa } + OrderCurrency: { _media-type: application/vnd.ibexa.api.OrderCurrency+json, id: 1, code: EUR } + OrderValue: { _media-type: application/vnd.ibexa.api.OrderValue+json, vat: { amount: '10', currency: EUR }, total_gross: { amount: '10', currency: EUR }, total_net: { amount: '10', currency: EUR } } + OrderCompany: { _media-type: application/vnd.ibexa.api.OrderCompany+json, id: 68, name: Apple } + OrderItemsList: [{ _media-type: application/vnd.ibexa.api.OrderItem+json, quantity: 10, OrderItemValue: { _media-type: application/vnd.ibexa.api.OrderItemValue+json, unit_price_gross: { amount: '110', currency: EUR }, unit_price_net: { amount: '100', currency: EUR }, vat_rate: '10.00', subtotal_price_gross: { amount: '1100', currency: EUR }, subtotal_price_net: { amount: '1000', currency: EUR } }, OrderItemProduct: { _media-type: application/vnd.ibexa.api.OrderItemProduct+json, id: 1, code: test, name: Test }, context: { foo: bar, baz: true } }] + context: { foo: bar, baz: 123 } + '401': + description: 'Error - the user has no permission to read orders.' + '404': + description: 'Error - the order does not exist.' + summary: 'Load order by ID' + description: 'Loads an order by its numerical ID.' + parameters: + - + name: Accept + in: header + description: 'Order - If set, the order returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + patch: + operationId: api_ordersorder_id_patch + tags: + - Orders + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Order+json: + schema: + $ref: '#/components/schemas/OrderWrapper' + example: + Order: + _media-type: application/vnd.ibexa.api.Order+json + id: 2 + identifier: 2d9c73cd-ea10-4459-b20e-96710c8d3898 + created: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } + modified: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } + status: pending + OrderUser: { _media-type: application/vnd.ibexa.api.OrderUser+json, id: 14, name: Administrator, email: aa@aa.aa } + OrderCurrency: { _media-type: application/vnd.ibexa.api.OrderCurrency+json, id: 1, code: EUR } + OrderValue: { _media-type: application/vnd.ibexa.api.OrderValue+json, vat: { amount: '10', currency: EUR }, total_gross: { amount: '10', currency: EUR }, total_net: { amount: '10', currency: EUR } } + OrderCompany: { _media-type: application/vnd.ibexa.api.OrderCompany+json, id: 68, name: Apple } + OrderItemsList: [{ _media-type: application/vnd.ibexa.api.OrderItem+json, quantity: 10, OrderItemValue: { _media-type: application/vnd.ibexa.api.OrderItemValue+json, unit_price_gross: { amount: '110', currency: EUR }, unit_price_net: { amount: '100', currency: EUR }, vat_rate: '10.00', subtotal_price_gross: { amount: '1100', currency: EUR }, subtotal_price_net: { amount: '1000', currency: EUR } }, OrderItemProduct: { _media-type: application/vnd.ibexa.api.OrderItemProduct+json, id: 1, code: test, name: Test }, context: { foo: bar, baz: true } }] + context: { foo: bar, baz: 123 } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update this order.' + '404': + description: 'Error - the order with the given ID does not exist.' + '406': + description: 'Error - the order cannot be cancelled due to not-allowed workflow transition' + summary: 'Update order' + description: 'Updates an order.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated order is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The OrderUpdate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated OrderUpdateController resource' + content: + application/vnd.ibexa.api.OrderUpdate+json: + schema: + $ref: '#/components/schemas/OrderUpdateWrapper' + x-ibexa-example-file: '@IbexaOrderManagementBundle/Resources/api_platform/examples/orders/PATCH/OrderUpdate.json.example' + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + /orders/orders: + get: + operationId: api_ordersorders_get + tags: + - Orders + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.OrderList+xml: + schema: + $ref: '#/components/schemas/OrderList' + application/vnd.ibexa.api.OrderList+json: + schema: + $ref: '#/components/schemas/OrderListWrapper' + example: + OrderList: + _media-type: application/vnd.ibexa.api.OrderList+json + Order: [{ _media-type: application/vnd.ibexa.api.Order+json, id: 2, identifier: 2d9c73cd-ea10-4459-b20e-96710c8d3898, created: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC }, modified: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC }, status: pending, OrderUser: { _media-type: application/vnd.ibexa.api.OrderUser+json, id: 14, name: Administrator, email: aa@aa.aa }, OrderCurrency: { _media-type: application/vnd.ibexa.api.OrderCurrency+json, id: 1, code: EUR }, OrderValue: { _media-type: application/vnd.ibexa.api.OrderValue+json, vat: { amount: '10', currency: EUR }, total_gross: { amount: '10', currency: EUR }, total_net: { amount: '10', currency: EUR } }, OrderCompany: { _media-type: application/vnd.ibexa.api.OrderCompany+json, id: 68, name: Apple }, OrderItemsList: [{ _media-type: application/vnd.ibexa.api.OrderItem+json, quantity: 10, OrderItemValue: { _media-type: application/vnd.ibexa.api.OrderItemValue+json, unit_price_gross: { amount: '110', currency: EUR }, unit_price_net: { amount: '100', currency: EUR }, vat_rate: '10.00', subtotal_price_gross: { amount: '1100', currency: EUR }, subtotal_price_net: { amount: '1000', currency: EUR } }, OrderItemProduct: { _media-type: application/vnd.ibexa.api.OrderItemProduct+json, id: 1, code: test, name: Test }, context: { foo: bar, baz: true } }], context: { foo: bar, baz: 123 } }, { _media-type: application/vnd.ibexa.api.Order+json, id: 3, identifier: 79b20ac4-fe23-4566-a9c2-b81966431026, created: { date: '2023-04-18 09:44:34.000000', timezone_type: 3, timezone: UTC }, modified: { date: '2023-04-18 09:44:34.000000', timezone_type: 3, timezone: UTC }, status: pending, OrderUser: { _media-type: application/vnd.ibexa.api.OrderUser+json, id: 14, name: Administrator, email: aa@aa.aa }, OrderCurrency: { _media-type: application/vnd.ibexa.api.OrderCurrency+json, id: 1, code: EUR }, OrderValue: { _media-type: application/vnd.ibexa.api.OrderValue+json, vat: { amount: '10', currency: EUR }, total_gross: { amount: '10', currency: EUR }, total_net: { amount: '10', currency: EUR } }, OrderCompany: { _media-type: application/vnd.ibexa.api.OrderCompany+json, id: 68, name: Apple }, OrderItemsList: [{ _media-type: application/vnd.ibexa.api.OrderItem+json, quantity: 10, OrderItemValue: { _media-type: application/vnd.ibexa.api.OrderItemValue+json, unit_price_gross: { amount: '110', currency: EUR }, unit_price_net: { amount: '100', currency: EUR }, vat_rate: '10.00', subtotal_price_gross: { amount: '1100', currency: EUR }, subtotal_price_net: { amount: '1000', currency: EUR } }, OrderItemProduct: { _media-type: application/vnd.ibexa.api.OrderItemProduct+json, id: 1, code: test, name: Test }, context: { foo: bar, baz: true } }], context: { foo: bar, baz: 123 } }] + '401': + description: 'Error - the user has no permission to read orders.' + summary: 'Load orders' + description: 'Loads a list of orders.' + parameters: + - + name: Accept + in: header + description: 'OrderList - If set, the orders list returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + post: + operationId: api_ordersorders_post + tags: + - Orders + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Order+json: + schema: + $ref: '#/components/schemas/OrderWrapper' + example: + Order: + _media-type: application/vnd.ibexa.api.Order+json + id: 2 + identifier: 2d9c73cd-ea10-4459-b20e-96710c8d3898 + created: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } + modified: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } + status: pending + OrderUser: { _media-type: application/vnd.ibexa.api.OrderUser+json, id: 14, name: Administrator, email: aa@aa.aa } + OrderCurrency: { _media-type: application/vnd.ibexa.api.OrderCurrency+json, id: 1, code: EUR } + OrderValue: { _media-type: application/vnd.ibexa.api.OrderValue+json, vat: { amount: '10', currency: EUR }, total_gross: { amount: '10', currency: EUR }, total_net: { amount: '10', currency: EUR } } + OrderCompany: { _media-type: application/vnd.ibexa.api.OrderCompany+json, id: 68, name: Apple } + OrderItemsList: [{ _media-type: application/vnd.ibexa.api.OrderItem+json, quantity: 10, OrderItemValue: { _media-type: application/vnd.ibexa.api.OrderItemValue+json, unit_price_gross: { amount: '110', currency: EUR }, unit_price_net: { amount: '100', currency: EUR }, vat_rate: '10.00', subtotal_price_gross: { amount: '1100', currency: EUR }, subtotal_price_net: { amount: '1000', currency: EUR } }, OrderItemProduct: { _media-type: application/vnd.ibexa.api.OrderItemProduct+json, id: 1, code: test, name: Test }, context: { foo: bar, baz: true } }] + context: { foo: bar, baz: 123 } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this order.' + '406': + description: 'Error - a order with this identifier already exists.' + summary: 'Create order' + description: 'Creates a new order.' + parameters: + - + name: Accept + in: header + description: 'If set, the new order is returned in JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The Order schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new OrderCreateController resource' + content: + application/vnd.ibexa.api.OrderCreate+json: + schema: + $ref: '#/components/schemas/OrderCreateWrapper' + x-ibexa-example-file: '@IbexaOrderManagementBundle/Resources/api_platform/examples/orders/POST/OrderCreate.json.example' + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + /payment-method: + post: + operationId: api_payment-method_post + tags: + - Payments + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.PaymentMethod+xml: + schema: + $ref: '#/components/schemas/PaymentMethod' + application/vnd.ibexa.api.PaymentMethod+json: + schema: + $ref: '#/components/schemas/PaymentMethodWrapper' + example: + PaymentMethod: + _media-type: application/vnd.ibexa.api.PaymentMethod+json + identifier: bank_transfer + id: 1 + enabled: true + name: 'Bank transfer' + description: 'Bank transfer' + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create Payment Method.' + '404': + description: 'Error - the payment methods does not exist.' + summary: 'Create payment method' + description: 'Creates a PaymentMethodCreateController resource.' + parameters: + - + name: Accept + in: header + description: 'If set, the created Payment Method is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The Payment Method input schema encoded in XML or JSON.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new PaymentMethodCreateController resource' + content: + application/vnd.ibexa.api.PaymentMethodCreateStruct+xml: + schema: + $ref: '#/components/schemas/PaymentMethodCreateStruct' + x-ibexa-example-file: '@IbexaPaymentBundle/Resources/api_platform/examples/payment-methods/POST/PaymentMethodCreateStruct.xml.example' + application/vnd.ibexa.api.PaymentMethodCreateStruct+json: + schema: + $ref: '#/components/schemas/PaymentMethodCreateStructWrapper' + x-ibexa-example-file: '@IbexaPaymentBundle/Resources/api_platform/examples/payment-methods/POST/PaymentMethodCreateStruct.json.example' + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + /payment-method/view: + post: + operationId: api_payment-methodview_post + tags: + - Payments + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.PaymentMethodView+xml: + schema: + $ref: '#/components/schemas/PaymentMethodView' + application/vnd.ibexa.api.PaymentMethodView+json: + schema: + $ref: '#/components/schemas/PaymentMethodViewWrapper' + example: + PaymentMethodView: + _media-type: application/vnd.ibexa.api.PaymentMethodView+json + identifier: example + Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 4, PaymentMethodList: [{ _media-type: application/vnd.ibexa.api.PaymentMethod+json, identifier: bank_transfer, id: 1, enabled: true, name: 'Bank transfer', description: 'Bank transfer' }, { _media-type: application/vnd.ibexa.api.PaymentMethod+json, identifier: cash_on_delivery, id: 2, enabled: true, name: 'Cash on delivery', description: 'Cash on delivery' }, { _media-type: application/vnd.ibexa.api.PaymentMethod+json, identifier: invoice, id: 3, enabled: true, name: Invoice, description: Invoice }, { _media-type: application/vnd.ibexa.api.PaymentMethod+json, identifier: paypal, id: 4, enabled: true, name: PayPal, description: PayPal }] } + '400': + description: 'Error - the input does not match the input schema definition.' + summary: 'List payment methods' + description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' + parameters: + - + name: Accept + in: header + description: 'The view in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The view input in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new PaymentMethodFindController resource' + content: + application/vnd.ibexa.api.PaymentMethodViewInput+xml: + schema: + $ref: '#/components/schemas/PaymentMethodViewInput' + application/vnd.ibexa.api.PaymentMethodViewInput+json: + schema: + $ref: '#/components/schemas/PaymentMethodViewInputWrapper' + x-ibexa-example-file: '@IbexaPaymentBundle/Resources/api_platform/examples/payment-methods/view/POST/PaymentMethodViewInput.json.example' + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/payment-method/{identifier}': + get: + operationId: api_payment-method_identifier_get + tags: + - Payments + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.PaymentMethod+xml: + schema: + $ref: '#/components/schemas/PaymentMethod' + application/vnd.ibexa.api.PaymentMethod+json: + schema: + $ref: '#/components/schemas/PaymentMethodWrapper' + example: + PaymentMethod: + _media-type: application/vnd.ibexa.api.PaymentMethod+json + identifier: bank_transfer + id: 1 + enabled: true + name: 'Bank transfer' + description: 'Bank transfer' + '401': + description: 'Error - the user has no permission to read payment methods.' + '404': + description: 'Error - the payment methods does not exist.' + summary: 'Load payment method by identifier' + description: 'Loads an payment method by its identifier.' + parameters: + - + name: Accept + in: header + description: 'Payment Method - If set, the payment method returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + delete: + operationId: api_payment-method_identifier_delete + tags: + - Payments + responses: + '204': + description: 'No Content' + '401': + description: 'Error - the user has no permission to delete payment methods.' + '404': + description: 'Error - the payment methods does not exist.' + summary: 'Delete payment method' + description: 'Removes the PaymentMethodDeleteController resource.' + parameters: + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + patch: + operationId: api_payment-method_identifier_patch + tags: + - Payments + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.PaymentMethod+xml: + schema: + $ref: '#/components/schemas/PaymentMethod' + application/vnd.ibexa.api.PaymentMethod+json: + schema: + $ref: '#/components/schemas/PaymentMethodWrapper' + example: + PaymentMethod: + _media-type: application/vnd.ibexa.api.PaymentMethod+json + identifier: bank_transfer + id: 1 + enabled: true + name: 'Bank transfer' + description: 'Bank transfer' + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update Payment Method.' + '404': + description: 'Error - the payment methods does not exist.' + summary: 'Update payment method' + description: 'Updates the PaymentMethodUpdateController resource.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated Payment Method is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The Payment Method input schema encoded in XML or JSON.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated PaymentMethodUpdateController resource' + content: + application/vnd.ibexa.api.PaymentMethodUpdateStruct+xml: + schema: + $ref: '#/components/schemas/PaymentMethodUpdateStruct' + x-ibexa-example-file: '@IbexaPaymentBundle/Resources/api_platform/examples/payment-methods/identifier/PATCH/PaymentMethodUpdateStruct.xml.example' + application/vnd.ibexa.api.PaymentMethodUpdateStruct+json: + schema: + $ref: '#/components/schemas/PaymentMethodUpdateStructWrapper' + x-ibexa-example-file: '@IbexaPaymentBundle/Resources/api_platform/examples/payment-methods/identifier/PATCH/PaymentMethodUpdateStruct.json.example' + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/payment-method/{id}': + get: + operationId: api_payment-method_id_get + tags: + - Payments + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.PaymentMethod+json: + schema: + $ref: '#/components/schemas/PaymentMethodWrapper' + example: + PaymentMethod: + _media-type: application/vnd.ibexa.api.PaymentMethod+json + identifier: bank_transfer + id: 1 + enabled: true + name: 'Bank transfer' + description: 'Bank transfer' + '401': + description: 'Error - the user has no permission to read payment methods.' + '404': + description: 'Error - the payment methods does not exist.' + summary: 'Load payment method by id' + description: 'Loads an payment method by its id.' + parameters: + - + name: Accept + in: header + description: 'Payment Method - If set, the payment method returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + /product/catalog/products: + get: + operationId: api_productcatalogproducts_get + tags: + - Product + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ProductList+json: + schema: + $ref: '#/components/schemas/ProductListWrapper' + example: + ProductList: + _media-type: application/vnd.ibexa.api.ProductList+json + Product: [{ _media-type: application/vnd.ibexa.api.Product+json, code: wsk_98845, name: 'HUMMINGBIRD PRO DRY 9,2MM', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: d_rope, name: 'Dynamic ropes', AttributeAssignmentList: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml }, created_at: 1645787815, updated_at: 1645787815, AttributesList: [] }, { _media-type: application/vnd.ibexa.api.Product+json, code: wsst_34456, name: 'Simond XC 60m', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: s_rope, name: 'Static ropes', AttributeAssignmentList: [] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/141, _remoteId: 86fdab24802923a9c30994858165ba9b, _id: 141, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/54 }, Name: 'HUMMINGBIRD PRO DRY 9,2MM', TranslatedName: 'HUMMINGBIRD PRO DRY 9,2MM', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/141/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/versions/2, VersionInfo: { id: 618, versionNo: 2, status: PUBLISHED, modificationDate: '2022-05-27T09:29:33+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-05-27T09:29:33+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'HUMMINGBIRD PRO DRY 9,2MM' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/141 } }, Fields: { field: [{ id: 612, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'HUMMINGBIRD PRO DRY 9,2MM' }, { id: 613, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 25, code: wsk_98845, attributes: [10] } }, { id: 614, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 615, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/141/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/141/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-05-27T09:29:33+00:00', publishedDate: '2022-05-27T06:51:36+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/141/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml }, created_at: 1645787893, updated_at: 1645787893, AttributesList: [] }] + '401': + description: 'Error - the user has no permission to read product.' + summary: 'Load products list (deprecated)' + description: 'Returns a list of products. Deprecated as of Ibexa DXP 4.3, use POST /product/catalog/products/view instead.' + parameters: + - + name: Accept + in: header + description: 'If set, the products are returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The product list schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + content: + application/vnd.ibexa.api.ProductListGet+json: + schema: + $ref: '#/components/schemas/ProductListGetWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/GET/ProductListGet.json.example' + required: false + deprecated: false + /product/catalog/products/view: + post: + operationId: api_productcatalogproductsview_post + tags: + - Product + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ProductView+xml: + schema: + $ref: '#/components/schemas/ProductView' + application/vnd.ibexa.api.ProductView+json: + schema: + $ref: '#/components/schemas/ProductViewWrapper' + example: + ProductView: + _media-type: application/vnd.ibexa.api.ProductView+json + identifier: TitleView + ProductQuery: { _media-type: application/vnd.ibexa.api.ProductQuery+json } + Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 2, ProductList: { _media-type: application/vnd.ibexa.api.ProductList+json, Product: [{ _media-type: application/vnd.ibexa.api.Product+json, code: OTHER, isBaseProduct: false, isVariant: false, name: 'Other Office Desk', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: desk, name: Desk, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: null } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/67, _remoteId: c5c22c68912af81992b74851f158db4a, _id: 67, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/53 }, Name: 'Other Office Desk', TranslatedName: 'Other Office Desk', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/67/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/67/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/67/versions/2, VersionInfo: { id: 529, versionNo: 2, status: PUBLISHED, modificationDate: '2023-04-12T14:06:25+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-12T14:06:25+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Other Office Desk' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/67 } }, Fields: { field: [{ id: 301, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Other Office Desk' }, { id: 302, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 4, code: OTHER, attributes: [white, []] } }, { id: 303, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 304, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 305, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: product_categories } }, { id: 306, fieldDefinitionIdentifier: field_64369cb9130a7, languageCode: eng-GB, fieldTypeIdentifier: ibexa_seo, fieldValue: '' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/67/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/67/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-12T14:06:25+00:00', publishedDate: '2023-04-12T11:59:17+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/67/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml }, created_at: 1681308385, updated_at: 1681308385, AttributesList: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: white }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null }], Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '160.00', base_amount: '160.00', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true }, money: '16000', base_money: '16000' } }, { _media-type: application/vnd.ibexa.api.Product+json, code: ERGO, isBaseProduct: false, isVariant: false, name: 'Ergo Office Desk', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: desk, name: Desk, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: null } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/66, _remoteId: 1e7449c13671b56ed3907929a2af3ad9, _id: 66, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/53 }, Name: 'Ergo Office Desk', TranslatedName: 'Ergo Office Desk', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/66/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/versions/2, VersionInfo: { id: 528, versionNo: 2, status: PUBLISHED, modificationDate: '2023-04-12T14:06:14+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-12T14:06:14+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ergo Office Desk' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/66 } }, Fields: { field: [{ id: 295, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ergo Office Desk' }, { id: 296, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 3, code: ERGO, attributes: [black, []] } }, { id: 297, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 298, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 299, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: product_categories } }, { id: 300, fieldDefinitionIdentifier: field_64369cb9130a7, languageCode: eng-GB, fieldTypeIdentifier: ibexa_seo, fieldValue: '' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/66/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/66/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-12T14:06:14+00:00', publishedDate: '2023-04-12T11:58:00+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/66/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml }, created_at: 1681308374, updated_at: 1681308374, AttributesList: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: black }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null }], Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '99.00', base_amount: '99.00', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true }, money: '9900', base_money: '9900' } }] }, aggregations: [{ _media-type: application/vnd.ibexa.api.RangeAggregationResult+json, name: price, entries: [{ _media-type: application/vnd.ibexa.api.RangeAggregationResultEntry+json, key: { Range: { _media-type: application/vnd.ibexa.api.Range+json, from: 0, to: 10000 } }, count: 1 }] }] } + '400': + description: 'Error - the input does not match the input schema definition.' + summary: 'Filter products' + description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' + parameters: + - + name: Accept + in: header + description: 'The view in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The view input in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ProductViewController resource' + content: + application/vnd.ibexa.api.ProductViewInput+xml: + schema: + $ref: '#/components/schemas/ProductViewInput' + application/vnd.ibexa.api.ProductViewInput+json: + schema: + $ref: '#/components/schemas/ProductViewInputWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/POST/ProductViewInput.json.example' + required: false + deprecated: false + '/product/catalog/products/{code}': + get: + operationId: api_productcatalogproducts_code_get + tags: + - Product + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Product+json: + schema: + $ref: '#/components/schemas/ProductWrapper' + example: + Product: + _media-type: application/vnd.ibexa.api.Product+json + code: wsk_98845 + name: 'HUMMINGBIRD PRO DRY 9,2MM' + ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: d_rope, name: 'Dynamic ropes', AttributeAssignmentList: [] } + Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/141, _remoteId: 86fdab24802923a9c30994858165ba9b, _id: 141, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/54 }, Name: 'HUMMINGBIRD PRO DRY 9,2MM', TranslatedName: 'HUMMINGBIRD PRO DRY 9,2MM', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/141/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/versions/2, VersionInfo: { id: 618, versionNo: 2, status: PUBLISHED, modificationDate: '2022-05-27T09:29:33+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-05-27T09:29:33+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'HUMMINGBIRD PRO DRY 9,2MM' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/141 } }, Fields: { field: [{ id: 612, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'HUMMINGBIRD PRO DRY 9,2MM' }, { id: 613, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 25, code: wsk_98845, attributes: [10] } }, { id: 614, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 615, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/141/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/141/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-05-27T09:29:33+00:00', publishedDate: '2022-05-27T06:51:36+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/141/objectstates } } + Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } + created_at: 1645787815 + updated_at: 1645787815 + AttributesList: [] + '401': + description: 'Error - the user is not authorized to view this product.' + '404': + description: 'Error - no product with the given code exists.' + summary: 'Load the given product' + description: 'Loads the given product.' + parameters: + - + name: Accept + in: header + description: 'If set, the products are returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'An optional product schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: code + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + content: + application/vnd.ibexa.api.ProductGet+json: + schema: + $ref: '#/components/schemas/ProductGetWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/code/GET/ProductGet.json.example' + required: false + deprecated: false + patch: + operationId: api_productcatalogproducts_code_patch + tags: + - Product + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.Product+json: + schema: + $ref: '#/components/schemas/ProductWrapper' + example: + Product: + _media-type: application/vnd.ibexa.api.Product+json + code: wsk_98845 + name: 'HUMMINGBIRD PRO DRY 9,2MM' + ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: d_rope, name: 'Dynamic ropes', AttributeAssignmentList: [] } + Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/141, _remoteId: 86fdab24802923a9c30994858165ba9b, _id: 141, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/54 }, Name: 'HUMMINGBIRD PRO DRY 9,2MM', TranslatedName: 'HUMMINGBIRD PRO DRY 9,2MM', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/141/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/versions/2, VersionInfo: { id: 618, versionNo: 2, status: PUBLISHED, modificationDate: '2022-05-27T09:29:33+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-05-27T09:29:33+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'HUMMINGBIRD PRO DRY 9,2MM' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/141 } }, Fields: { field: [{ id: 612, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'HUMMINGBIRD PRO DRY 9,2MM' }, { id: 613, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 25, code: wsk_98845, attributes: [10] } }, { id: 614, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 615, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/141/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/141/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-05-27T09:29:33+00:00', publishedDate: '2022-05-27T06:51:36+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/141/objectstates } } + Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } + created_at: 1645787815 + updated_at: 1645787815 + AttributesList: [] + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update this product.' + '403': + description: 'Error - a product with the same code already exists.' + '404': + description: 'Error - no product with the given code exists.' + summary: 'Update product' + description: 'Updates product.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated product is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'If set, the updated product is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: code + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated ProductUpdateController resource' + content: + application/vnd.ibexa.api.ProductUpdate+json: + schema: + $ref: '#/components/schemas/ProductUpdateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/code/PATCH/ProductUpdate.json.example' + required: false + deprecated: false + '/product/catalog/products/{code}/prices': + get: + operationId: api_productcatalogproducts_codeprices_get + tags: + - Product + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.PriceList+json: + schema: + $ref: '#/components/schemas/PriceListWrapper' + example: + PriceList: + _media-type: application/vnd.ibexa.api.PriceList+json + prices: [{ _media-type: application/vnd.ibexa.api.Price+json, id: 1, amount: '12.00', base_amount: '12.00', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true }, money: '1200', base_money: '1200' }, { _media-type: application/vnd.ibexa.api.Price+json, id: 2, amount: '12.00', base_amount: '12.00', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 5, code: USD, subunits: 2, enabled: true }, money: '1200', base_money: '1200' }] + totalCount: 2 + '401': + description: 'Error - the user has no permission to read prices.' + summary: 'Load the list of product prices' + description: 'Loads the list of product prices.' + parameters: + - + name: Accept + in: header + description: 'PriceList - if set, the product price list is returned in JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: code + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_productcatalogproducts_codeprices_post + tags: + - Product + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Price+json: + schema: + $ref: '#/components/schemas/PriceWrapper' + example: + Price: + _media-type: application/vnd.ibexa.api.Price+json + id: 4 + amount: '0.09' + base_amount: '0.09' + Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 94, code: CHF, subunits: 2, enabled: true } + money: '9' + base_money: '9' + application/vnd.ibexa.api.CustomPrice+json: + schema: + $ref: '#/components/schemas/CustomPriceWrapper' + example: + CustomPrice: + _media-type: application/vnd.ibexa.api.CustomPrice+json + id: 3 + amount: '17.00' + base_amount: '35.00' + Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 5, code: USD, subunits: 2, enabled: true } + money: '1700' + base_money: '3500' + custom_money: '1700' + custom_amount: '17.00' + custom_rule: null + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this price.' + summary: 'Create product price or custom price' + description: 'Create product price or custom price.' + parameters: + - + name: Accept + in: header + description: 'The product price schema encoded in JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'If set, the new price is returned in JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: code + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new PriceCreateController resource' + content: + application/vnd.ibexa.api.PriceCreateStruct+json: + schema: + $ref: '#/components/schemas/PriceCreateStructWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/code/prices/POST/PriceCreateStruct.json.example' + application/vnd.ibexa.api.CustomPriceCreateStruct+json: + schema: + $ref: '#/components/schemas/CustomPriceCreateStructWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/code/prices/POST/CustomPriceCreateStruct.json.example' + required: false + deprecated: false + '/product/catalog/products/{code}/prices/{currencyCode}': + get: + operationId: api_productcatalogproducts_codeprices_currencyCode_get + tags: + - Product + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Price+json: + schema: + $ref: '#/components/schemas/PriceWrapper' + example: + Price: + _media-type: application/vnd.ibexa.api.Price+json + id: 4 + amount: '0.09' + base_amount: '0.09' + Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 94, code: CHF, subunits: 2, enabled: true } + money: '9' + base_money: '9' + '401': + description: 'Error - the user has no permission to read prices.' + '404': + description: 'Error - the price does not exist.' + summary: 'Get price in given currency' + description: 'Get price in given currency.' + parameters: + - + name: Accept + in: header + description: 'If set, gets price in given currency in JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: code + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: currencyCode + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/product/catalog/products/{code}/prices/{currencyCode}/customer-group/{customerGroupIdentifier}': + get: + operationId: api_productcatalogproducts_codeprices_currencyCodecustomer-group_customerGroupIdentifier_get + tags: + - Product + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.CustomPrice+json: + schema: + $ref: '#/components/schemas/CustomPriceWrapper' + example: + CustomPrice: + _media-type: application/vnd.ibexa.api.CustomPrice+json + id: 3 + amount: '17.00' + base_amount: '35.00' + Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 5, code: USD, subunits: 2, enabled: true } + money: '1700' + base_money: '3500' + custom_money: '1700' + custom_amount: '17.00' + custom_rule: null + '401': + description: 'Error - the user has no permission to read prices.' + '404': + description: 'Error - the price does not exist.' + summary: 'Get price in given currency and customer group' + description: 'Get price in given currency and customer group.' + parameters: + - + name: Accept + in: header + description: 'If set, gets price in given currency and customer group in JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: code + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: currencyCode + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: customerGroupIdentifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/product/catalog/products/{code}/prices/{id}': + delete: + operationId: api_productcatalogproducts_codeprices_id_delete + tags: + - Product + responses: + '200': + description: 'No content - the given price is deleted.' + '401': + description: 'Error - the user is not authorized to delete this price.' + summary: 'Delete product price' + description: 'Deletes product price.' + parameters: + - + name: Accept + in: header + description: 'If set, deletes price of given id.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'Delete product price.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: code + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_productcatalogproducts_codeprices_id_patch + tags: + - Product + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Price+json: + schema: + $ref: '#/components/schemas/PriceWrapper' + example: + Price: + _media-type: application/vnd.ibexa.api.Price+json + id: 4 + amount: '0.09' + base_amount: '0.09' + Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 94, code: CHF, subunits: 2, enabled: true } + money: '9' + base_money: '9' + application/vnd.ibexa.api.CustomPrice+json: + schema: + $ref: '#/components/schemas/CustomPriceWrapper' + example: + CustomPrice: + _media-type: application/vnd.ibexa.api.CustomPrice+json + id: 3 + amount: '17.00' + base_amount: '35.00' + Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 5, code: USD, subunits: 2, enabled: true } + money: '1700' + base_money: '3500' + custom_money: '1700' + custom_amount: '17.00' + custom_rule: null + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update this price.' + summary: 'Update product price' + description: 'Updates product price.' + parameters: + - + name: Accept + in: header + description: 'If set, updates product price.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'Update price or custom price for given currency.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: code + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated PriceUpdateController resource' + content: + application/vnd.ibexa.api.PriceUpdateStruct+json: + schema: + $ref: '#/components/schemas/PriceUpdateStructWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/code/prices/id/PATCH/PriceUpdate.json.example' + application/vnd.ibexa.api.CustomPriceUpdateStruct+json: + schema: + $ref: '#/components/schemas/CustomPriceUpdateStructWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/code/prices/id/PATCH/CustomPriceUpdate.json.example' + required: false + deprecated: false + '/product/catalog/products/{identifier}': + delete: + operationId: api_productcatalogproducts_identifier_delete + tags: + - Product + responses: + '204': + description: 'No content - the given product is deleted.' + '401': + description: 'Error - the user is not authorized to delete this product.' + summary: 'Delete product' + description: 'Deletes the given product.' + parameters: + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/product/catalog/products/{productTypeIdentifier}': + post: + operationId: api_productcatalogproducts_productTypeIdentifier_post + tags: + - Product + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.ProductCreate+json: + schema: + $ref: '#/components/schemas/ProductWrapper' + example: + Product: + _media-type: application/vnd.ibexa.api.Product+json + code: wsk_98845 + name: 'HUMMINGBIRD PRO DRY 9,2MM' + ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: d_rope, name: 'Dynamic ropes', AttributeAssignmentList: [] } + Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/141, _remoteId: 86fdab24802923a9c30994858165ba9b, _id: 141, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/54 }, Name: 'HUMMINGBIRD PRO DRY 9,2MM', TranslatedName: 'HUMMINGBIRD PRO DRY 9,2MM', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/141/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/versions/2, VersionInfo: { id: 618, versionNo: 2, status: PUBLISHED, modificationDate: '2022-05-27T09:29:33+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-05-27T09:29:33+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'HUMMINGBIRD PRO DRY 9,2MM' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/141 } }, Fields: { field: [{ id: 612, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'HUMMINGBIRD PRO DRY 9,2MM' }, { id: 613, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 25, code: wsk_98845, attributes: [10] } }, { id: 614, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 615, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/141/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/141/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-05-27T09:29:33+00:00', publishedDate: '2022-05-27T06:51:36+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/141/objectstates } } + Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } + created_at: 1645787815 + updated_at: 1645787815 + AttributesList: [] + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update this product.' + '403': + description: 'Error - a product with the same name already exists.' + '404': + description: 'Error - no product with the given code exists.' + summary: 'Create product' + description: 'Creates a new product.' + parameters: + - + name: Accept + in: header + description: 'If set, the new product is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The product schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: productTypeIdentifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ProductCreateController resource' + content: + application/vnd.ibexa.api.ProductCreate+json: + schema: + $ref: '#/components/schemas/ProductCreateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/POST/ProductCreate.json.example' + required: false + deprecated: false + /product/catalog/attributes: + get: + operationId: api_productcatalogattributes_get + tags: + - 'Product Attribute' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.AttributeList+xml: + schema: + $ref: '#/components/schemas/AttributeList' + application/vnd.ibexa.api.AttributeList+json: + schema: + $ref: '#/components/schemas/AttributeListWrapper' + example: + AttributeList: + _media-type: application/vnd.ibexa.api.AttributeList+json + Attribute: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: attrib1, name: Attrib1, description: '', type: Checkbox, type_identifier: checkbox, value: true, group: 'Attribute Group Test', position: 0, options: [] }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: attrib2, name: Attrib2, description: '', type: Checkbox, type_identifier: checkbox, value: true, group: 'Attribute Group Test', position: 0, options: [] }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: attrib3, name: Attrib3, description: '', type: Checkbox, type_identifier: checkbox, value: true, group: 'Attribute Group Test', position: 0, options: [] }] + '401': + description: 'Error - the user has no permission to read user groups.' + summary: 'Load attributes (deprecated)' + description: 'Loads list of all attributes. Deprecated as of Ibexa DXP 4.3, use POST /product/catalog/attributes/view instead.' + parameters: + - + name: Accept + in: header + description: 'AttributeList - If set, the attributes list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_productcatalogattributes_post + tags: + - 'Product Attribute' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.Attribute+json: + schema: + $ref: '#/components/schemas/AttributeWrapper' + example: + Attribute: + _media-type: application/vnd.ibexa.api.Attribute+json + identifier: attr_group + name: 'Attribute Group' + description: description + type: Checkbox + type_identifier: checkbox + value: true + group: 'Attribute Group' + position: 0 + options: [] + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this attribute.' + '403': + description: 'Error - an attribute with the same name already exists.' + summary: 'Create attribute' + description: 'Creates a new attribute.' + parameters: + - + name: Accept + in: header + description: 'If set, the new attribute is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The attribute schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new AttributeCreateController resource' + content: + application/vnd.ibexa.api.AttributeCreate+json: + schema: + $ref: '#/components/schemas/AttributeCreateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attributes/POST/AttributeCreate.json.example' + required: false + deprecated: false + '/product/catalog/attributes/translation/{id}/{languageCode}': + delete: + operationId: api_productcatalogattributestranslation_id_languageCode_delete + tags: + - 'Product Attribute' + responses: + '200': + description: 'No Content.' + '401': + description: 'Error - the user is not authorized to delete this translation.' + summary: 'Delete attribute translation' + description: 'The given translation is removed from the attribute.' + parameters: + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: languageCode + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /product/catalog/attributes/view: + post: + operationId: api_productcatalogattributesview_post + tags: + - 'Product Attribute' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.AttributeView+xml: + schema: + $ref: '#/components/schemas/AttributeView' + application/vnd.ibexa.api.AttributeView+json: + schema: + $ref: '#/components/schemas/AttributeViewWrapper' + example: + AttributeView: + _media-type: application/vnd.ibexa.api.AttributeView+json + identifier: TitleView + AttributeQuery: { _media-type: application/vnd.ibexa.api.AttributeQuery+json } + Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 1, AttributeList: { _media-type: application/vnd.ibexa.api.AttributeList+json, Attribute: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: measure, name: measure, description: '', type: Measurement, type_identifier: measurement, group: 'Test Attribute group', position: 0, options: { type: length, unit: centimeter, measurementRange: { minimum: 12, maximum: 15 }, measurementDefaultRange: { defaultRangeMinimumValue: null, defaultRangeMaximumValue: null } } }] } } + '400': + description: 'Error - the input does not match the input schema definition.' + summary: 'Filter attributes' + description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' + parameters: + - + name: Accept + in: header + description: 'The view in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The view input in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new AttributeViewController resource' + content: + application/vnd.ibexa.api.AttributeViewInput+xml: + schema: + $ref: '#/components/schemas/AttributeViewInput' + application/vnd.ibexa.api.AttributeViewInput+json: + schema: + $ref: '#/components/schemas/AttributeViewInputWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attributes/POST/AttributeViewInput.json.example' + required: false + deprecated: false + '/product/catalog/attributes/{id}': + get: + operationId: api_productcatalogattributes_id_get + tags: + - 'Product Attribute' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Attribute+xml: + schema: + $ref: '#/components/schemas/Attribute' + application/vnd.ibexa.api.Attribute+json: + schema: + $ref: '#/components/schemas/AttributeWrapper' + example: + Attribute: + _media-type: application/vnd.ibexa.api.Attribute+json + identifier: attr_group + name: 'Attribute Group' + description: description + type: Checkbox + type_identifier: checkbox + value: true + group: 'Attribute Group' + position: 0 + options: [] + '401': + description: 'Error - the user has no permission to read the attribute.' + summary: 'Load attribute' + description: 'Loads given attribute.' + parameters: + - + name: Accept + in: header + description: 'Attribute - If set, the given attribute is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_productcatalogattributes_id_delete + tags: + - 'Product Attribute' + responses: + '200': + description: 'No Content.' + '401': + description: 'Error - the user is not authorized to delete this attribute.' + summary: 'Delete attribute' + description: 'The given attribute is removed from the attribute group.' + parameters: + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/product/catalog/attributes/{id}/{group_id}': + patch: + operationId: api_productcatalogattributes_id_group_id_patch + tags: + - 'Product Attribute' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.Attribute+json: + schema: + $ref: '#/components/schemas/AttributeWrapper' + example: + Attribute: + _media-type: application/vnd.ibexa.api.Attribute+json + identifier: attr_group + name: 'Attribute Group' + description: description + type: Checkbox + type_identifier: checkbox + value: true + group: 'Attribute Group' + position: 0 + options: [] + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this attribute.' + '403': + description: 'Error - an attribute with the same name already exists.' + '404': + description: 'Error - the attribute with the given ID does not exist.' + summary: 'Update attribute' + description: 'Updates an attribute.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated attribute is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'If set, the updated attribute group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: group_id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated AttributeUpdateController resource' + content: + application/vnd.ibexa.api.AttributeUpdate+json: + schema: + $ref: '#/components/schemas/AttributeUpdateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attributes/id/group_id/PATCH/AttributeUpdate.json.example' + required: false + deprecated: false + /product/catalog/attribute_groups: + get: + operationId: api_productcatalogattribute_groups_get + tags: + - 'Product Attribute Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.AttributeGroupList+xml: + schema: + $ref: '#/components/schemas/AttributeGroupList' + application/vnd.ibexa.api.AttributeGroupList+json: + schema: + $ref: '#/components/schemas/AttributeGroupListWrapper' + example: + AttributeGroupList: + _media-type: application/vnd.ibexa.api.AttributeGroupList+json + AttributeGroup: [{ _media-type: application/vnd.ibexa.api.AttributeGroup+json, name: 'Attribute Group Test', identifier: attr_group_test, position: 0 }, { _media-type: application/vnd.ibexa.api.AttributeGroup+json, name: Dimensions, identifier: ag_dimensions, position: 0 }] + '401': + description: 'Error - the user has no permission to read attribute groups.' + summary: 'Load attribute groups (deprecated)' + description: 'Returns a list of attribute groups. Deprecated as of Ibexa DXP 4.3, use POST /product/catalog/attribute_groups/view instead.' + parameters: + - + name: Accept + in: header + description: 'AttributeGroupList - If set, the attribute group list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The AttributeGroupListGet schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + content: + application/vnd.ibexa.api.AttributeGroupListGet+json: + schema: + $ref: '#/components/schemas/AttributeGroupListGetWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attribute_groups/GET/AttributeGroupListGet.json.example' + required: false + deprecated: false + post: + operationId: api_productcatalogattribute_groups_post + tags: + - 'Product Attribute Group' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.AttributeGroup+json: + schema: + $ref: '#/components/schemas/AttributeGroupWrapper' + example: + AttributeGroup: + _media-type: application/vnd.ibexa.api.AttributeGroup+json + name: 'Colors Group' + identifier: ag_colors + position: 0 + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this attribute group.' + '403': + description: 'Error - an attribute group with the same identifier already exists.' + summary: 'Create attribute group' + description: 'Creates a new attribute group.' + parameters: + - + name: Accept + in: header + description: 'If set, the new attribute group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The AttributeGroup schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new AttributeGroupCreateController resource' + content: + application/vnd.ibexa.api.AttributeGroupCreate+json: + schema: + $ref: '#/components/schemas/AttributeGroupCreateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attribute_groups/POST/AttributeGroupCreate.json.example' + required: false + deprecated: false + '/product/catalog/attribute_groups/translation/{id}/{languageCode}': + delete: + operationId: api_productcatalogattribute_groupstranslation_id_languageCode_delete + tags: + - 'Product Attribute Group' + responses: + '200': + description: 'No content - the given attribute group translation is deleted.' + '401': + description: 'Error - the user is not authorized to delete this attribute group translation assignment.' + summary: 'Delete attribute group translation' + description: 'Deletes given translation from attribute group.' + parameters: + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: languageCode + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /product/catalog/attribute_groups/view: + post: + operationId: api_productcatalogattribute_groupsview_post + tags: + - 'Product Attribute Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.AttributeGroupView+xml: + schema: + $ref: '#/components/schemas/AttributeGroupView' + application/vnd.ibexa.api.AttributeGroupView+json: + schema: + $ref: '#/components/schemas/AttributeGroupViewWrapper' + example: + AttributeGroupView: + _media-type: application/vnd.ibexa.api.AttributeGroupView+json + identifier: TitleView + AttributeGroupQuery: { _media-type: application/vnd.ibexa.api.AttributeGroupQuery+json } + Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 1, AttributeGroupList: { _media-type: application/vnd.ibexa.api.AttributeGroupList+json, AttributeGroup: [{ _media-type: application/vnd.ibexa.api.AttributeGroup+json, name: 'Test Attribute group', identifier: test_attribute_group, position: 0 }] } } + '400': + description: 'Error - the input does not match the input schema definition.' + summary: 'Filter attribute groups' + description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' + parameters: + - + name: Accept + in: header + description: 'The view in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The view input in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new AttributeGroupViewController resource' + content: + application/vnd.ibexa.api.AttributeGroupViewInput+xml: + schema: + $ref: '#/components/schemas/AttributeGroupViewInput' + application/vnd.ibexa.api.AttributeGroupViewInput+json: + schema: + $ref: '#/components/schemas/AttributeGroupViewInputWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attribute_groups/POST/AttributeGroupViewInput.json.example' + required: false + deprecated: false + '/product/catalog/attribute_groups/{id}': + get: + operationId: api_productcatalogattribute_groups_id_get + tags: + - 'Product Attribute Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.AttributeGroup+xml: + schema: + $ref: '#/components/schemas/AttributeGroup' + application/vnd.ibexa.api.AttributeGroup+json: + schema: + $ref: '#/components/schemas/AttributeGroupWrapper' + example: + AttributeGroup: + _media-type: application/vnd.ibexa.api.AttributeGroup+json + name: 'Colors Group' + identifier: ag_colors + position: 0 + '401': + description: 'Error - the user has no permission to read attribute groups.' + summary: 'Load attribute group' + description: 'Returns the given attribute group.' + parameters: + - + name: Accept + in: header + description: 'AttributeGroupGet - If set, the attribute group List is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'An optional AttributeGroupGet schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + content: + application/vnd.ibexa.api.AttributeGroupGet+xml: + schema: + $ref: '#/components/schemas/AttributeGroupGet' + application/vnd.ibexa.api.AttributeGroupGet+json: + schema: + $ref: '#/components/schemas/AttributeGroupGetWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attributes/id/GET/AttributeGet.json.example' + required: false + deprecated: false + delete: + operationId: api_productcatalogattribute_groups_id_delete + tags: + - 'Product Attribute Group' + responses: + '204': + description: 'No content - the given attribute group is deleted.' + '401': + description: 'Error - the user is not authorized to delete this attribute group.' + summary: 'Delete attribute group' + description: 'Deletes an attribute group.' + parameters: + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_productcatalogattribute_groups_id_patch + tags: + - 'Product Attribute Group' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.AttributeGroup+xml: + schema: + $ref: '#/components/schemas/AttributeGroup' + application/vnd.ibexa.api.AttributeGroup+json: + schema: + $ref: '#/components/schemas/AttributeGroupWrapper' + example: + AttributeGroup: + _media-type: application/vnd.ibexa.api.AttributeGroup+json + name: 'Colors Group' + identifier: ag_colors + position: 0 + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this attribute group.' + '403': + description: 'Error - an attribute group with the same identifier already exists.' + '404': + description: 'Error - the group with the given ID does not exist.' + summary: 'Update attribute group' + description: 'Updates an attribute group.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated attribute group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The attribute group update schema is sent in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated AttributeGroupUpdateController resource' + content: + application/vnd.ibexa.api.AttributeGroupUpdate+xml: + schema: + $ref: '#/components/schemas/AttributeGroupUpdate' + application/vnd.ibexa.api.AttributeGroupUpdate+json: + schema: + $ref: '#/components/schemas/AttributeGroupUpdateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attribute_groups/id/PATCH/AttributeGroupUpdate.json.example' + required: false + deprecated: false + /product/catalog/attribute_types: + get: + operationId: api_productcatalogattribute_types_get + tags: + - 'Product Attribute Type' + responses: + '200': + description: 'OK - returns a list of Attribute Types' + content: + application/vnd.ibexa.api.AttributeTypeList+xml: + schema: + $ref: '#/components/schemas/AttributeTypeList' + application/vnd.ibexa.api.AttributeTypeList+json: + schema: + $ref: '#/components/schemas/AttributeTypeListWrapper' + summary: 'List Attribute Types' + description: 'Lists all Attribute Types.' + parameters: + - + name: Accept + in: header + description: 'If set, the list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/product/catalog/attribute_types/{identifier}': + get: + operationId: api_productcatalogattribute_types_identifier_get + tags: + - 'Product Attribute Type' + responses: + '200': + description: 'OK - returns the Attribute Type' + content: + application/vnd.ibexa.api.AttributeType+xml: + schema: + $ref: '#/components/schemas/AttributeType' + application/vnd.ibexa.api.AttributeType+json: + schema: + $ref: '#/components/schemas/AttributeTypeWrapper' + '404': + description: 'Error - The Attribute Type does not exist.' + summary: 'Get Attribute Type' + description: 'Gets an Attribute Type by its identifier.' + parameters: + - + name: Accept + in: header + description: 'If set, the Attribute Type is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /product/catalog/catalogs: + post: + operationId: api_productcatalogcatalogs_post + tags: + - 'Product Catalog' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.CatalogCreate+json: + schema: + $ref: '#/components/schemas/CatalogWrapper' + example: + Catalog: + _media-type: application/vnd.ibexa.api.Catalog+json + identifier: test_catalog_copied + name: 'Snow Equipment updated' + description: 'Snow Equipment catalog for 2022' + User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + created: 1666091820 + modified: 1666091820 + status: draft + Criteria: [{ _media-type: application/vnd.ibexa.api.ProductCode+json, ProductCodeCriterion: { _media-type: application/vnd.ibexa.api.ProductCodeCriterion+json, codes: [ski] } }, { _media-type: application/vnd.ibexa.api.ProductAvailability+json, ProductAvailabilityCriterion: { _media-type: application/vnd.ibexa.api.ProductAvailabilityCriterion+json, is_available: false } }, { _media-type: application/vnd.ibexa.api.CreatedAt+json, CreatedAtCriterion: { _media-type: application/vnd.ibexa.api.CreatedAtCriterion+json, created_at: { date: '2022-12-12 00:00:00.000000', timezone_type: 3, timezone: Europe/Warsaw }, operator: '>=' } }] + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update this catalog.' + '403': + description: 'Error - a catalog with the same name already exists.' + '404': + description: 'Error - no catalog with the given code exists.' + summary: 'Create catalog' + description: 'Creates a new catalog.' + parameters: + - + name: Accept + in: header + description: 'If set, the new catalog is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The catalog schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new CatalogCreateController resource' + content: + application/vnd.ibexa.api.CatalogCreate+json: + schema: + $ref: '#/components/schemas/CatalogCreateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/catalog/POST/CatalogCreate.json.example' + required: false + deprecated: false + '/product/catalog/catalogs/copy/{identifier}': + post: + operationId: api_productcatalogcatalogscopy_identifier_post + tags: + - 'Product Catalog' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.Catalog+json: + schema: + $ref: '#/components/schemas/CatalogWrapper' + example: + Catalog: + _media-type: application/vnd.ibexa.api.Catalog+json + identifier: test_catalog_copied + name: 'Snow Equipment updated' + description: 'Snow Equipment catalog for 2022' + User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + created: 1666091820 + modified: 1666091820 + status: draft + Criteria: [{ _media-type: application/vnd.ibexa.api.ProductCode+json, ProductCodeCriterion: { _media-type: application/vnd.ibexa.api.ProductCodeCriterion+json, codes: [ski] } }, { _media-type: application/vnd.ibexa.api.ProductAvailability+json, ProductAvailabilityCriterion: { _media-type: application/vnd.ibexa.api.ProductAvailabilityCriterion+json, is_available: false } }, { _media-type: application/vnd.ibexa.api.CreatedAt+json, CreatedAtCriterion: { _media-type: application/vnd.ibexa.api.CreatedAtCriterion+json, created_at: { date: '2022-12-12 00:00:00.000000', timezone_type: 3, timezone: Europe/Warsaw }, operator: '>=' } }] + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to copy this catalog.' + '403': + description: 'Error - a catalog with the same identifier already exists.' + '404': + description: 'Error - no catalog with the given identifier exists.' + summary: 'Copy catalog' + description: 'Copies a catalog.' + parameters: + - + name: Accept + in: header + description: 'If set, the copied catalog is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'If set, the copied catalog is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new CatalogCopyController resource' + content: + application/vnd.ibexa.api.CatalogCopy+json: + schema: + $ref: '#/components/schemas/CatalogCopyWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/catalog/identifier/POST/CatalogCopy.json.example' + required: false + deprecated: false + /product/catalog/catalogs/filters: + get: + operationId: api_productcatalogcatalogsfilters_get + tags: + - 'Product Catalog' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ProductFilterList+xml: + schema: + $ref: '#/components/schemas/ProductFilterList' + application/vnd.ibexa.api.ProductFilterList+json: + schema: + $ref: '#/components/schemas/ProductFilterListWrapper' + example: + ProductFilterList: + _media-type: application/vnd.ibexa.api.ProductFilterList+json + ProductFilter: [{ _media-type: application/vnd.ibexa.api.ProductFilter+json, name: CreatedAtCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: CreatedAtRangeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: ProductCategoryCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: ColorAttributeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: FloatAttributeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: FloatAttributeRangeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: IntegerAttributeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: IntegerAttributeRangeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: SelectionAttributeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: ProductCodeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: ProductNameCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: ProductAvailabilityCriterion }] + summary: 'Load catalog filters' + description: 'Loads product filters available for catalogs.' + parameters: + - + name: Accept + in: header + description: 'If set, the filters are returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /product/catalog/catalogs/sort_clauses: + get: + operationId: api_productcatalogcatalogssort_clauses_get + tags: + - 'Product Catalog' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ProductSortClauseList+xml: + schema: + $ref: '#/components/schemas/ProductSortClauseList' + application/vnd.ibexa.api.ProductSortClauseList+json: + schema: + $ref: '#/components/schemas/ProductSortClauseListWrapper' + example: + ProductSortClauseList: + _media-type: application/vnd.ibexa.api.ProductSortClauseList+json + ProductSortClause: [{ _media-type: application/vnd.ibexa.api.ProductSortClause+json, name: ProductName }, { _media-type: application/vnd.ibexa.api.ProductSortClause+json, name: ProductCode }, { _media-type: application/vnd.ibexa.api.ProductSortClause+json, name: ProductAvailability }, { _media-type: application/vnd.ibexa.api.ProductSortClause+json, name: CreatedAt }] + summary: 'Load catalog sort clauses' + description: 'Loads product sort clauses available for catalogs.' + parameters: + - + name: Accept + in: header + description: 'If set, the clauses are returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /product/catalog/catalogs/view: + post: + operationId: api_productcatalogcatalogsview_post + tags: + - 'Product Catalog' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.CatalogView+xml: + schema: + $ref: '#/components/schemas/CatalogView' + application/vnd.ibexa.api.CatalogView+json: + schema: + $ref: '#/components/schemas/CatalogViewWrapper' + example: + CatalogView: + _media-type: application/vnd.ibexa.api.CatalogView+json + identifier: TitleView + CatalogQuery: { _media-type: application/vnd.ibexa.api.CatalogQuery+json } + Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 1, CatalogList: { _media-type: application/vnd.ibexa.api.CatalogList+json, Catalog: [{ _media-type: application/vnd.ibexa.api.Catalog+json, identifier: test, name: test, description: '', User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, created: 1665479475, modified: 1665479475, status: draft, Criteria: [{ _media-type: application/vnd.ibexa.api.ProductCode+json, ProductCodeCriterion: { _media-type: application/vnd.ibexa.api.ProductCodeCriterion+json, codes: [test] } }] }] } } + '400': + description: 'Error - the input does not match the input schema definition.' + summary: 'Filter catalogs' + description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' + parameters: + - + name: Accept + in: header + description: 'The view in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The view input in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new CatalogViewController resource' + content: + application/vnd.ibexa.api.CatalogViewInput+xml: + schema: + $ref: '#/components/schemas/CatalogViewInput' + application/vnd.ibexa.api.CatalogViewInput+json: + schema: + $ref: '#/components/schemas/CatalogViewInputWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/catalog/POST/CatalogViewInput.json.example' + required: false + deprecated: false + '/product/catalog/catalogs/{identifier}': + get: + operationId: api_productcatalogcatalogs_identifier_get + tags: + - 'Product Catalog' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Catalog+xml: + schema: + $ref: '#/components/schemas/Catalog' + application/vnd.ibexa.api.Catalog+json: + schema: + $ref: '#/components/schemas/CatalogWrapper' + example: + Catalog: + _media-type: application/vnd.ibexa.api.Catalog+json + identifier: test_catalog_copied + name: 'Snow Equipment updated' + description: 'Snow Equipment catalog for 2022' + User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + created: 1666091820 + modified: 1666091820 + status: draft + Criteria: [{ _media-type: application/vnd.ibexa.api.ProductCode+json, ProductCodeCriterion: { _media-type: application/vnd.ibexa.api.ProductCodeCriterion+json, codes: [ski] } }, { _media-type: application/vnd.ibexa.api.ProductAvailability+json, ProductAvailabilityCriterion: { _media-type: application/vnd.ibexa.api.ProductAvailabilityCriterion+json, is_available: false } }, { _media-type: application/vnd.ibexa.api.CreatedAt+json, CreatedAtCriterion: { _media-type: application/vnd.ibexa.api.CreatedAtCriterion+json, created_at: { date: '2022-12-12 00:00:00.000000', timezone_type: 3, timezone: Europe/Warsaw }, operator: '>=' } }] + '401': + description: 'Error - the user is not authorized to view this catalog.' + '404': + description: 'Error - no catalog with the given identifier exists.' + summary: 'Load catalog' + description: 'Loads the given catalog.' + parameters: + - + name: Accept + in: header + description: 'If set, the catalog is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_productcatalogcatalogs_identifier_delete + tags: + - 'Product Catalog' + responses: + '204': + description: 'No content - the given catalog is deleted.' + '401': + description: 'Error - the user is not authorized to delete this catalog.' + summary: 'Delete catalog' + description: 'Deletes the given catalog.' + parameters: + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_productcatalogcatalogs_identifier_patch + tags: + - 'Product Catalog' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.Catalog+json: + schema: + $ref: '#/components/schemas/CatalogWrapper' + example: + Catalog: + _media-type: application/vnd.ibexa.api.Catalog+json + identifier: test_catalog_copied + name: 'Snow Equipment updated' + description: 'Snow Equipment catalog for 2022' + User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + created: 1666091820 + modified: 1666091820 + status: draft + Criteria: [{ _media-type: application/vnd.ibexa.api.ProductCode+json, ProductCodeCriterion: { _media-type: application/vnd.ibexa.api.ProductCodeCriterion+json, codes: [ski] } }, { _media-type: application/vnd.ibexa.api.ProductAvailability+json, ProductAvailabilityCriterion: { _media-type: application/vnd.ibexa.api.ProductAvailabilityCriterion+json, is_available: false } }, { _media-type: application/vnd.ibexa.api.CreatedAt+json, CreatedAtCriterion: { _media-type: application/vnd.ibexa.api.CreatedAtCriterion+json, created_at: { date: '2022-12-12 00:00:00.000000', timezone_type: 3, timezone: Europe/Warsaw }, operator: '>=' } }] + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update this catalog.' + '403': + description: 'Error - a catalog with the same identifier already exists.' + '404': + description: 'Error - no catalog with the given identifier exists.' + summary: 'Update catalog' + description: 'Updates a catalog.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated catalog is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'If set, the updated catalog is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated CatalogUpdateController resource' + content: + application/vnd.ibexa.api.CatalogUpdate+json: + schema: + $ref: '#/components/schemas/CatalogUpdateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/catalog/identifier/PATCH/CatalogUpdate.json.example' + required: false + deprecated: false + '/product/catalog/catalogs/{identifier}/products/view': + post: + operationId: api_productcatalogcatalogs_identifierproductsview_post + tags: + - 'Product Catalog' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ProductView+xml: + schema: + $ref: '#/components/schemas/ProductView' + application/vnd.ibexa.api.ProductView+json: + schema: + $ref: '#/components/schemas/ProductViewWrapper' + example: + ProductView: + _media-type: application/vnd.ibexa.api.ProductView+json + identifier: TitleView + ProductQuery: { _media-type: application/vnd.ibexa.api.ProductQuery+json } + Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 2, ProductList: { _media-type: application/vnd.ibexa.api.ProductList+json, Product: [{ _media-type: application/vnd.ibexa.api.Product+json, code: OTHER, isBaseProduct: false, isVariant: false, name: 'Other Office Desk', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: desk, name: Desk, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: null } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/67, _remoteId: c5c22c68912af81992b74851f158db4a, _id: 67, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/53 }, Name: 'Other Office Desk', TranslatedName: 'Other Office Desk', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/67/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/67/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/67/versions/2, VersionInfo: { id: 529, versionNo: 2, status: PUBLISHED, modificationDate: '2023-04-12T14:06:25+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-12T14:06:25+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Other Office Desk' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/67 } }, Fields: { field: [{ id: 301, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Other Office Desk' }, { id: 302, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 4, code: OTHER, attributes: [white, []] } }, { id: 303, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 304, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 305, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: product_categories } }, { id: 306, fieldDefinitionIdentifier: field_64369cb9130a7, languageCode: eng-GB, fieldTypeIdentifier: ibexa_seo, fieldValue: '' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/67/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/67/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-12T14:06:25+00:00', publishedDate: '2023-04-12T11:59:17+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/67/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml }, created_at: 1681308385, updated_at: 1681308385, AttributesList: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: white }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null }], Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '160.00', base_amount: '160.00', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true }, money: '16000', base_money: '16000' } }, { _media-type: application/vnd.ibexa.api.Product+json, code: ERGO, isBaseProduct: false, isVariant: false, name: 'Ergo Office Desk', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: desk, name: Desk, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: null } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/66, _remoteId: 1e7449c13671b56ed3907929a2af3ad9, _id: 66, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/53 }, Name: 'Ergo Office Desk', TranslatedName: 'Ergo Office Desk', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/66/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/versions/2, VersionInfo: { id: 528, versionNo: 2, status: PUBLISHED, modificationDate: '2023-04-12T14:06:14+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-12T14:06:14+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ergo Office Desk' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/66 } }, Fields: { field: [{ id: 295, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ergo Office Desk' }, { id: 296, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 3, code: ERGO, attributes: [black, []] } }, { id: 297, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
\n", xhtml5edit: "\n
\n" } }, { id: 298, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 299, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: product_categories } }, { id: 300, fieldDefinitionIdentifier: field_64369cb9130a7, languageCode: eng-GB, fieldTypeIdentifier: ibexa_seo, fieldValue: '' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/66/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/66/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-12T14:06:14+00:00', publishedDate: '2023-04-12T11:58:00+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/66/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml }, created_at: 1681308374, updated_at: 1681308374, AttributesList: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: black }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null }], Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '99.00', base_amount: '99.00', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true }, money: '9900', base_money: '9900' } }] }, aggregations: [{ _media-type: application/vnd.ibexa.api.RangeAggregationResult+json, name: price, entries: [{ _media-type: application/vnd.ibexa.api.RangeAggregationResultEntry+json, key: { Range: { _media-type: application/vnd.ibexa.api.Range+json, from: 0, to: 10000 } }, count: 1 }] }] } + '400': + description: 'Error - the input does not match the input schema definition.' + summary: 'Filter catalog products' + description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' + parameters: + - + name: Accept + in: header + description: 'The view in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The view input in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new CatalogProductsViewController resource' + content: + application/vnd.ibexa.api.ProductViewInput+xml: + schema: + $ref: '#/components/schemas/ProductViewInput' + application/vnd.ibexa.api.ProductViewInput+json: + schema: + $ref: '#/components/schemas/ProductViewInputWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/catalog/POST/CatalogProductsViewInput.json.example' + required: false + deprecated: false + /product/catalog/currencies: + get: + operationId: api_productcatalogcurrencies_get + tags: + - 'Product Currency' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.CurrencyList+json: + schema: + $ref: '#/components/schemas/CurrencyListWrapper' + example: + CurrencyList: + _media-type: application/vnd.ibexa.api.CurrencyList+json + Currency: [{ _media-type: application/vnd.ibexa.api.Currency+json, id: 1, code: AFN, subunits: 1, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 3, code: ALL, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 4, code: DZD, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 5, code: USD, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 6, code: AOA, subunits: 2, enabled: false }] + '401': + description: 'Error - the user has no permission to read currencies.' + summary: 'Load currencies' + description: 'Loads the list of currencies.' + parameters: + - + name: Accept + in: header + description: 'CurrencyList - If set, the currency list returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_productcatalogcurrencies_post + tags: + - 'Product Currency' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Currency+json: + schema: + $ref: '#/components/schemas/CurrencyWrapper' + example: + Currency: + _media-type: application/vnd.ibexa.api.Currency+json + id: 1 + code: AFN + subunits: 1 + enabled: false + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this currency.' + '406': + description: 'Error - a currency with this code already exists.' + summary: 'Create currency' + description: 'Creates a new currency.' + parameters: + - + name: Accept + in: header + description: 'If set, the new currency is returned in JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The Currency schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new CurrencyCreateController resource' + content: + application/vnd.ibexa.api.CurrencyCreate+json: + schema: + $ref: '#/components/schemas/CurrencyCreateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/currency/POST/CurrencyCreate.json.example' + required: false + deprecated: false + /product/catalog/currencies/view: + post: + operationId: api_productcatalogcurrenciesview_post + tags: + - 'Product Currency' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.CurrencyView+xml: + schema: + $ref: '#/components/schemas/CurrencyView' + application/vnd.ibexa.api.CurrencyView+json: + schema: + $ref: '#/components/schemas/CurrencyViewWrapper' + example: + CurrencyView: + _media-type: application/vnd.ibexa.api.CurrencyView+json + identifier: TitleView + CurrencyQuery: { _media-type: application/vnd.ibexa.api.CurrencyQuery+json } + Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 179, CurrencyList: { _media-type: application/vnd.ibexa.api.CurrencyList+json, Currency: [{ _media-type: application/vnd.ibexa.api.Currency+json, id: 1, code: AFN, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 3, code: ALL, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 4, code: DZD, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 5, code: USD, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 6, code: AOA, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 7, code: XCD, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 8, code: ARS, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 9, code: AMD, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 10, code: AWG, subunits: 2, enabled: false }] } } + '400': + description: 'Error - the input does not match the input schema definition.' + summary: 'Filter currencies' + description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' + parameters: + - + name: Accept + in: header + description: 'The view in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The view input in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new CurrencyViewController resource' + content: + application/vnd.ibexa.api.CurrencyViewInput+xml: + schema: + $ref: '#/components/schemas/CurrencyViewInput' + application/vnd.ibexa.api.CurrencyViewInput+json: + schema: + $ref: '#/components/schemas/CurrencyViewInputWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/currency/POST/CurrencyViewInput.json.example' + required: false + deprecated: false + '/product/catalog/currencies/{id}': + get: + operationId: api_productcatalogcurrencies_id_get + tags: + - 'Product Currency' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Currency+json: + schema: + $ref: '#/components/schemas/CurrencyWrapper' + example: + Currency: + _media-type: application/vnd.ibexa.api.Currency+json + id: 1 + code: AFN + subunits: 1 + enabled: false + '401': + description: 'Error - the user has no permission to read currencies.' + '404': + description: 'Error - the currency does not exist.' + summary: 'Load currency' + description: 'Loads a currency.' + parameters: + - + name: Accept + in: header + description: 'Currency - If set, the currency returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_productcatalogcurrencies_id_delete + tags: + - 'Product Currency' + responses: + '200': + description: 'No content - the given currency is deleted.' + '401': + description: 'Error - the user is not authorized to delete this currency.' + summary: 'Delete currency' + description: 'Deletes the given currency.' + parameters: + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_productcatalogcurrencies_id_patch + tags: + - 'Product Currency' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Currency+json: + schema: + $ref: '#/components/schemas/CurrencyWrapper' + example: + Currency: + _media-type: application/vnd.ibexa.api.Currency+json + id: 1 + code: AFN + subunits: 1 + enabled: false + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this User.' + '403': + description: 'Error - a currency with the same ID already exists.' + '404': + description: 'Error - the currency with the given ID does not exist.' + summary: 'Update currency' + description: 'Updates a currency.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated currency is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The CurrencyUpdate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated CurrencyUpdateController resource' + content: + application/vnd.ibexa.api.CurrencyUpdate+json: + schema: + $ref: '#/components/schemas/CurrencyUpdateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/currency/currency_id/PATCH/CurrencyUpdate.json.example' + required: false + deprecated: false + /product/catalog/customer_groups: + get: + operationId: api_productcatalogcustomer_groups_get + tags: + - 'Product Customer Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.CustomerGroupList+json: + schema: + $ref: '#/components/schemas/CustomerGroupListWrapper' + example: + CustomerGroupList: + _media-type: application/vnd.ibexa.api.CustomerGroupList+json + CustomerGroup: [{ _media-type: application/vnd.ibexa.api.CustomerGroup+json, id: 1, name: Resellers, identifier: resellers, description: '', users: [], global_price_rate: '0.00' }, { _media-type: application/vnd.ibexa.api.CustomerGroup+json, id: 2, name: Contractors, identifier: contractors, description: '', users: [], global_price_rate: '-20.00' }] + '401': + description: 'Error - the user has no permission to read customer groups.' + summary: 'Load customer groups' + description: 'Returns a list of customer groups' + parameters: + - + name: Accept + in: header + description: 'If set, the customer groups list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_productcatalogcustomer_groups_post + tags: + - 'Product Customer Group' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.CustomerGroup+json: + schema: + $ref: '#/components/schemas/CustomerGroupWrapper' + example: + CustomerGroup: + _media-type: application/vnd.ibexa.api.CustomerGroup+json + id: 1 + name: 'Customer Group' + identifier: customer_group + description: '' + users: [] + global_price_rate: '1.00' + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this Customer Group.' + '403': + description: 'Error - a customer group with the same name already exists.' + summary: 'Create customer group' + description: 'Creates a new customer group.' + parameters: + - + name: Accept + in: header + description: 'If set, the new customer group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The CustomerGroupCreate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new CustomerGroupCreateController resource' + content: + application/vnd.ibexa.api.CustomerGroupCreate+json: + schema: + $ref: '#/components/schemas/CustomerGroupCreateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/customer_groups/POST/CustomerGroupCreate.json.example' + required: false + deprecated: false + /product/catalog/customer_groups/view: + post: + operationId: api_productcatalogcustomer_groupsview_post + tags: + - 'Product Customer Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.CustomerGroupView+xml: + schema: + $ref: '#/components/schemas/CustomerGroupView' + application/vnd.ibexa.api.CustomerGroupView+json: + schema: + $ref: '#/components/schemas/CustomerGroupViewWrapper' + example: + CustomerGroupView: + _media-type: application/vnd.ibexa.api.CustomerGroupView+json + identifier: TitleView + CustomerGroupQuery: { _media-type: application/vnd.ibexa.api.CustomerGroupQuery+json } + Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 1, CustomerGroupList: { _media-type: application/vnd.ibexa.api.CustomerGroupList+json, CustomerGroup: [{ _media-type: application/vnd.ibexa.api.CustomerGroup+json, id: 1, name: Business, identifier: business, description: 'Most trusted business customers, being our partners for at least 5 years.', users: [], global_price_rate: '15.00' }] } } + '400': + description: 'Error - the input does not match the input schema definition.' + summary: 'Filter customer groups' + description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' + parameters: + - + name: Accept + in: header + description: 'The view in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The view input in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new CustomerGroupViewController resource' + content: + application/vnd.ibexa.api.CustomerGroupViewInput+xml: + schema: + $ref: '#/components/schemas/CustomerGroupViewInput' + application/vnd.ibexa.api.CustomerGroupViewInput+json: + schema: + $ref: '#/components/schemas/CustomerGroupViewInputWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/customer_groups/POST/CustomerGroupViewInput.json.example' + required: false + deprecated: false + '/product/catalog/customer_groups/{identifier}': + get: + operationId: api_productcatalogcustomer_groups_identifier_get + tags: + - 'Product Customer Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.CustomerGroup+json: + schema: + $ref: '#/components/schemas/CustomerGroupWrapper' + example: + CustomerGroup: + _media-type: application/vnd.ibexa.api.CustomerGroup+json + id: 1 + name: 'Customer Group' + identifier: customer_group + description: '' + users: [] + global_price_rate: '1.00' + '401': + description: 'Error - the user has no permission to read customer groups.' + summary: 'Load customer group' + description: 'Returns a customer group' + parameters: + - + name: Accept + in: header + description: 'If set, the customer group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_productcatalogcustomer_groups_identifier_delete + tags: + - 'Product Customer Group' + responses: + '204': + description: 'No content - the given customer group is deleted.' + '401': + description: 'Error - the user is not authorized to delete this customer group.' + summary: 'Delete customer group' + description: 'Deletes the given customer group.' + parameters: + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_productcatalogcustomer_groups_identifier_patch + tags: + - 'Product Customer Group' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.CustomerGroup+json: + schema: + $ref: '#/components/schemas/CustomerGroupWrapper' + example: + CustomerGroup: + _media-type: application/vnd.ibexa.api.CustomerGroup+json + id: 1 + name: 'Customer Group' + identifier: customer_group + description: '' + users: [] + global_price_rate: '1.00' + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update a customer group.' + summary: 'Update customer group' + description: 'Updates the given customer group.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated customer group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The CustomerGroupUpdate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated CustomerGroupUpdateController resource' + content: + application/vnd.ibexa.api.CustomerGroupUpdate+json: + schema: + $ref: '#/components/schemas/CustomerGroupUpdateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/customer_groups/identifier/PATCH/CustomerGroupUpdate.json.example' + required: false + deprecated: false + '/product/catalog/customer_groups/{id}': + get: + operationId: api_productcatalogcustomer_groups_id_get + tags: + - 'Product Customer Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.CustomerGroup+json: + schema: + $ref: '#/components/schemas/CustomerGroupWrapper' + example: + CustomerGroup: + _media-type: application/vnd.ibexa.api.CustomerGroup+json + id: 1 + name: 'Customer Group' + identifier: customer_group + description: '' + users: [] + global_price_rate: '1.00' + '401': + description: 'Error - the user has no permission to read customer groups.' + summary: 'Load customer group' + description: 'Returns a customer group' + parameters: + - + name: Accept + in: header + description: 'If set, the customer group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: integer + style: simple + explode: false + allowReserved: false + deprecated: false + /product/catalog/regions: + get: + operationId: api_productcatalogregions_get + tags: + - 'Product Region' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.RegionList+xml: + schema: + $ref: '#/components/schemas/RegionList' + application/vnd.ibexa.api.RegionList+json: + schema: + $ref: '#/components/schemas/RegionListWrapper' + example: + RegionList: + _media-type: application/vnd.ibexa.api.RegionList+json + Region: [{ _media-type: application/vnd.ibexa.api.Region+json, identifier: france }, { _media-type: application/vnd.ibexa.api.Region+json, identifier: __REGION_2__ }, { _media-type: application/vnd.ibexa.api.Region+json, identifier: __REGION_1__ }, { _media-type: application/vnd.ibexa.api.Region+json, identifier: foo }, { _media-type: application/vnd.ibexa.api.Region+json, identifier: bar }] + '401': + description: 'Error - the user has no permission to read regions.' + summary: 'Load regions' + description: 'Loads the list of regions.' + parameters: + - + name: Accept + in: header + description: 'RegionList - If set, the regions list returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /product/catalog/regions/view: + post: + operationId: api_productcatalogregionsview_post + tags: + - 'Product Region' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.RegionView+xml: + schema: + $ref: '#/components/schemas/RegionView' + application/vnd.ibexa.api.RegionView+json: + schema: + $ref: '#/components/schemas/RegionViewWrapper' + example: + RegionView: + _media-type: application/vnd.ibexa.api.RegionView+json + identifier: TitleView + RegionQuery: { _media-type: application/vnd.ibexa.api.RegionQuery+json } + Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 2, RegionList: { _media-type: application/vnd.ibexa.api.RegionList+json, Region: [{ _media-type: application/vnd.ibexa.api.Region+json, identifier: region_1 }, { _media-type: application/vnd.ibexa.api.Region+json, identifier: region_2 }] } } + '400': + description: 'Error - the input does not match the input schema definition.' + summary: 'Filter regions' + description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' + parameters: + - + name: Accept + in: header + description: 'The view in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The view input in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new RegionViewController resource' + content: + application/vnd.ibexa.api.RegionViewInput+xml: + schema: + $ref: '#/components/schemas/RegionViewInput' + application/vnd.ibexa.api.RegionViewInput+json: + schema: + $ref: '#/components/schemas/RegionViewInputWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/regions/POST/RegionViewInput.json.example' + required: false + deprecated: false + '/product/catalog/regions/{identifier}': + get: + operationId: api_productcatalogregions_identifier_get + tags: + - 'Product Region' + responses: + '200': + description: 'OK - loads region.' + content: + application/vnd.ibexa.api.Region+xml: + schema: + $ref: '#/components/schemas/Region' + application/vnd.ibexa.api.Region+json: + schema: + $ref: '#/components/schemas/RegionWrapper' + '404': + description: 'Error - the region does not exist.' + summary: 'Load region' + description: 'Loads a region by its identifier' + parameters: + - + name: Accept + in: header + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /product/catalog/product_types: + get: + operationId: api_productcatalogproduct_types_get + tags: + - 'Product Type' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ProductTypeList+xml: + schema: + $ref: '#/components/schemas/ProductTypeList' + application/vnd.ibexa.api.ProductTypeList+json: + schema: + $ref: '#/components/schemas/ProductTypeListWrapper' + example: + ProductTypeList: + _media-type: application/vnd.ibexa.api.ProductTypeList+json + ProductType: [{ _media-type: application/vnd.ibexa.api.ProductType+json, identifier: s_rope, name: 'Static ropes', AttributeAssignmentList: [] }] + '401': + description: 'Error - the user has no permission to read product type.' + summary: 'Load product types (deprecated)' + description: 'Returns a list of product types. Deprecated as of Ibexa DXP 4.3, use POST /product/catalog/product_types/view instead.' + parameters: + - + name: Accept + in: header + description: 'ProductTypeList - If set, the product type list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The ProductTypeList schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + content: + application/vnd.ibexa.api.ProductTypeListGet+xml: + schema: + $ref: '#/components/schemas/ProductTypeListGet' + application/vnd.ibexa.api.ProductTypeListGet+json: + schema: + $ref: '#/components/schemas/ProductTypeListGetWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_types/GET/ProductTypeListGet.json.example' + required: false + deprecated: false + post: + operationId: api_productcatalogproduct_types_post + tags: + - 'Product Type' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.ProductType+json: + schema: + $ref: '#/components/schemas/ProductTypeWrapper' + example: + ProductType: + _media-type: application/vnd.ibexa.api.ProductType+json + identifier: NEW + name: pt_1_updated + AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: size, name: Size, description: '', type: Integer, type_identifier: integer, value: 5, group: Hat, position: 0, options: [] } }] + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this product type.' + '403': + description: 'Error - a product type with the same name already exists.' + '404': + description: 'Error - the product type with the given ID does not exist.' + summary: 'Create product type' + description: 'Creates a new product type.' + parameters: + - + name: Accept + in: header + description: 'If set, the new product type is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The ProductType schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ProductTypeCreateController resource' + content: + application/vnd.ibexa.api.ProductTypeCreate+json: + schema: + $ref: '#/components/schemas/ProductTypeCreateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_types/POST/ProductTypeCreate.json.example' + required: false + deprecated: false + '/product/catalog/product_types/is_used/{identifier}': + get: + operationId: api_productcatalogproduct_typesis_used_identifier_get + tags: + - 'Product Type' + responses: + '200': + description: 'OK - product type usage is returned.' + content: + application/vnd.ibexa.api.ProductTypeUsage+xml: + schema: + $ref: '#/components/schemas/ProductTypeUsage' + application/vnd.ibexa.api.ProductTypeUsage+json: + schema: + $ref: '#/components/schemas/ProductTypeUsageWrapper' + '404': + description: 'Error - product type not found.' + summary: 'Check product type usage' + description: 'Checks whether the product type is in use.' + parameters: + - + name: Accept + in: header + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /product/catalog/product_types/view: + post: + operationId: api_productcatalogproduct_typesview_post + tags: + - 'Product Type' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ProductTypeView+xml: + schema: + $ref: '#/components/schemas/ProductTypeView' + application/vnd.ibexa.api.ProductTypeView+json: + schema: + $ref: '#/components/schemas/ProductTypeViewWrapper' + example: + ProductTypeView: + _media-type: application/vnd.ibexa.api.ProductTypeView+json + identifier: TitleView + ProductTypeQuery: { _media-type: application/vnd.ibexa.api.ProductTypeQuery+json } + Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 1, ProductTypeList: { _media-type: application/vnd.ibexa.api.ProductTypeList+json, ProductType: [{ _media-type: application/vnd.ibexa.api.ProductType+json, identifier: climbing_shoe, name: 'New Product Type', AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: measure, name: measure, description: '', type: Measurement, type_identifier: measurement, group: 'Test Attribute group', position: 0, options: { type: length, unit: centimeter, measurementRange: { minimum: 12, maximum: 15 }, measurementDefaultRange: { defaultRangeMinimumValue: null, defaultRangeMaximumValue: null } } } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: leather_color, name: 'leather color', description: '', type: Color, type_identifier: color, value: '#000000', group: 'Test Attribute group', position: 0, options: [] } }] }] } } + '400': + description: 'Error - the input does not match the input schema definition.' + summary: 'Filter product types' + description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' + parameters: + - + name: Accept + in: header + description: 'The view in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The view input in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ProductTypeViewController resource' + content: + application/vnd.ibexa.api.ProductTypeViewInput+xml: + schema: + $ref: '#/components/schemas/ProductTypeViewInput' + application/vnd.ibexa.api.ProductTypeViewInput+json: + schema: + $ref: '#/components/schemas/ProductTypeViewInputWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_types/POST/ProductTypeViewInput.json.example' + required: false + deprecated: false + '/product/catalog/product_types/{identifier}': + get: + operationId: api_productcatalogproduct_types_identifier_get + tags: + - 'Product Type' + responses: + '200': + description: 'OK - load the product type' + content: + application/vnd.ibexa.api.ProductTypeUsage+xml: + schema: + $ref: '#/components/schemas/ProductTypeUsage' + application/vnd.ibexa.api.ProductTypeUsage+json: + schema: + $ref: '#/components/schemas/ProductTypeUsageWrapper' + '401': + description: 'Error - the user has no permission to read product type.' + '404': + description: 'Error - product type not found.' + summary: 'Load product type' + description: 'Returns the given product type.' + parameters: + - + name: Accept + in: header + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/product/catalog/product_types/{id}': + delete: + operationId: api_productcatalogproduct_types_id_delete + tags: + - 'Product Type' + responses: + '204': + description: 'No content - the given product type is deleted.' + '401': + description: 'Error - the user is not authorized to delete this product type.' + summary: 'Delete product type' + description: 'Deletes the given product type.' + parameters: + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_productcatalogproduct_types_id_patch + tags: + - 'Product Type' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.ProductType+json: + schema: + $ref: '#/components/schemas/ProductTypeWrapper' + example: + ProductType: + _media-type: application/vnd.ibexa.api.ProductType+json + identifier: NEW + name: pt_1_updated + AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: size, name: Size, description: '', type: Integer, type_identifier: integer, value: 5, group: Hat, position: 0, options: [] } }] + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this product type.' + '404': + description: 'Error - the product type with the given ID does not exist.' + summary: 'Update product type' + description: 'Updates product type.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated product type is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'If set, the updated product type is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated ProductTypeUpdateController resource' + content: + application/vnd.ibexa.api.ProductTypeUpdate+json: + schema: + $ref: '#/components/schemas/ProductTypeUpdateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_types/id/PATCH/ProductTypeUpdate.json.example' + required: false + deprecated: false + '/product/catalog/product_variant/{code}': + get: + operationId: api_productcatalogproduct_variant_code_get + tags: + - 'Product Variant' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ProductVariant+json: + schema: + $ref: '#/components/schemas/ProductVariantWrapper' + example: + ProductVariant: + _media-type: application/vnd.ibexa.api.ProductVariant+json + code: test + name: 'Macbook Air ' + Product: { _media-type: application/vnd.ibexa.api.Product+json, code: mac_air, name: 'Macbook Air', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: laptop, name: Laptop, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: number, name: number, description: '', type: Float, type_identifier: float, value: 1.5, group: test, position: 0, options: { min: 4, max: 5 } } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: testattr, name: testAttr, description: '', type: Integer, type_identifier: integer, value: 5, group: test, position: 0, options: { min: 4, max: 5 } } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/152, _remoteId: 2d61ff8d0043eb299ca8c29c74f25441, _id: 152, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/56 }, Name: 'Macbook Air', TranslatedName: 'Macbook Air', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/152/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/versions/1, VersionInfo: { id: 635, versionNo: 1, status: PUBLISHED, modificationDate: '2022-07-21T15:17:18+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-07-21T15:17:18+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Macbook Air' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/152 } }, Fields: { field: [{ id: 716, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Macbook Air' }, { id: 717, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 89, code: mac_air, attributes: [] } }, { id: 718, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
test
\n", xhtml5edit: "\n

test

\n" } }, { id: 719, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 720, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/152/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/152/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-07-21T15:17:18+02:00', publishedDate: '2022-07-21T15:17:18+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/152/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml }, created_at: 1658409438, updated_at: 1658409438, AttributesList: [] } + DiscriminatorAttributesList: [] + '401': + description: 'Error - the user is not authorized to view this product variant.' + '404': + description: 'Error - no product variant with the given code exists.' + summary: 'Load product variant' + description: 'Loads the given product variant.' + parameters: + - + name: Accept + in: header + description: 'If set, the product variant is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: code + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/product/catalog/product_variants/generate/{baseProductCode}': + post: + operationId: api_productcatalogproduct_variantsgenerate_baseProductCode_post + tags: + - 'Product Variant' + responses: + '201': + description: 'No content - product variants are generated.' + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this product variant.' + '403': + description: 'Error - a product variant with the same name already exists.' + '404': + description: 'Error - no base product with the given code exists.' + summary: 'Generate product variants' + description: 'Generates new product variants based on selected (discriminator) attributes.' + parameters: + - + name: Accept + in: header + description: 'If set, the new product variant is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The product variant schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: baseProductCode + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ProductVariantGenereateController resource' + content: + application/vnd.ibexa.api.ProductVariantGenerate+json: + schema: + $ref: '#/components/schemas/ProductVariantGenerateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_variants/POST/ProductVariantGenerate.json.example' + required: false + deprecated: false + '/product/catalog/product_variants/view/{baseProductCode}': + post: + operationId: api_productcatalogproduct_variantsview_baseProductCode_post + tags: + - 'Product Variant' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ProductVariantView+xml: + schema: + $ref: '#/components/schemas/ProductVariantView' + application/vnd.ibexa.api.ProductVariantView+json: + schema: + $ref: '#/components/schemas/ProductVariantViewWrapper' + example: + ProductVariantView: + _media-type: application/vnd.ibexa.api.ProductVariantView+json + identifier: TitleView + ProductVariantQuery: { _media-type: application/vnd.ibexa.api.ProductVariantQuery+json } + Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 2, ProductVariantList: { _media-type: application/vnd.ibexa.api.ProductVariantList+json, ProductVariant: [{ _media-type: application/vnd.ibexa.api.ProductVariant+json, code: test, name: 'Macbook Air 2/10', Product: { _media-type: application/vnd.ibexa.api.Product+json, code: mac_air, name: 'Macbook Air', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: laptop, name: Laptop, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: number, name: number, description: '', type: Float, type_identifier: float, value: 1.5, group: test, position: 0, options: { min: 4, max: 5 } } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: testattr, name: testAttr, description: '', type: Integer, type_identifier: integer, value: 5, group: test, position: 0, options: { min: 4, max: 5 } } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/152, _remoteId: 2d61ff8d0043eb299ca8c29c74f25441, _id: 152, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/56 }, Name: 'Macbook Air', TranslatedName: 'Macbook Air', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/152/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/versions/1, VersionInfo: { id: 635, versionNo: 1, status: PUBLISHED, modificationDate: '2022-07-21T15:17:18+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-07-21T15:17:18+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Macbook Air' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/152 } }, Fields: { field: [{ id: 716, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Macbook Air' }, { id: 717, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 89, code: mac_air, attributes: [] } }, { id: 718, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
test
\n", xhtml5edit: "\n

test

\n" } }, { id: 719, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 720, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/152/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/152/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-07-21T15:17:18+02:00', publishedDate: '2022-07-21T15:17:18+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/152/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml }, created_at: 1658409438, updated_at: 1658409438, AttributesList: [] }, DiscriminatorAttributesList: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: number, name: number, description: '', type: Float, type_identifier: float, value: 1.5, group: test, position: 0, options: { min: 4, max: 5 } }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: testattr, name: testAttr, description: '', type: Integer, type_identifier: integer, value: 5, group: test, position: 0, options: { min: 4, max: 5 } }] }, { _media-type: application/vnd.ibexa.api.ProductVariant+json, code: fdsfds, name: 'Macbook Air 32/232', Product: { _media-type: application/vnd.ibexa.api.Product+json, code: mac_air, name: 'Macbook Air', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: laptop, name: Laptop, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: number, name: number, description: '', type: Float, type_identifier: float, value: 1.5, group: test, position: 0, options: { min: 4, max: 5 } } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: testattr, name: testAttr, description: '', type: Integer, type_identifier: integer, value: 5, group: test, position: 0, options: { min: 4, max: 5 } } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/152, _remoteId: 2d61ff8d0043eb299ca8c29c74f25441, _id: 152, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/56 }, Name: 'Macbook Air', TranslatedName: 'Macbook Air', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/152/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/versions/1, VersionInfo: { id: 635, versionNo: 1, status: PUBLISHED, modificationDate: '2022-07-21T15:17:18+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-07-21T15:17:18+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Macbook Air' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/152 } }, Fields: { field: [{ id: 716, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Macbook Air' }, { id: 717, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 89, code: mac_air, attributes: [] } }, { id: 718, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
test
\n", xhtml5edit: "\n

test

\n" } }, { id: 719, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 720, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/152/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/152/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-07-21T15:17:18+02:00', publishedDate: '2022-07-21T15:17:18+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/152/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml }, created_at: 1658409438, updated_at: 1658409438, AttributesList: [] }, DiscriminatorAttributesList: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: number, name: number, description: '', type: Float, type_identifier: float, value: 1.5, group: test, position: 0, options: { min: 4, max: 5 } }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: testattr, name: testAttr, description: '', type: Integer, type_identifier: integer, value: 5, group: test, position: 0, options: { min: 4, max: 5 } }] }] } } + '400': + description: 'Error - the input does not match the input schema definition.' + '404': + description: 'Error - the base product does not exist.' + summary: 'Filter product variants' + description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' + parameters: + - + name: Accept + in: header + description: 'The view in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The view input in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: baseProductCode + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ProductVariantViewController resource' + content: + application/vnd.ibexa.api.ProductVariantViewInput+xml: + schema: + $ref: '#/components/schemas/ProductVariantViewInput' + application/vnd.ibexa.api.ProductVariantViewInput+json: + schema: + $ref: '#/components/schemas/ProductVariantViewInputWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_variants/POST/ProductVariantViewInput.json.example' + required: false + deprecated: false + '/product/catalog/product_variants/{baseProductCode}': + post: + operationId: api_productcatalogproduct_variants_baseProductCode_post + tags: + - 'Product Variant' + responses: + '201': + description: 'No content - product variant is created.' + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this product variant.' + '403': + description: 'Error - a product variant with the same name already exists.' + '404': + description: 'Error - no base product with the given code exists.' + summary: 'Create product variant' + description: 'Creates a new product variant.' + parameters: + - + name: Accept + in: header + description: 'If set, the new product variant is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The product variant schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: baseProductCode + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ProductVariantCreateController resource' + content: + application/vnd.ibexa.api.ProductVariantCreate+json: + schema: + $ref: '#/components/schemas/ProductVariantCreateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_variants/POST/ProductVariantCreate.json.example' + required: false + deprecated: false + '/product/catalog/product_variants/{code}': + delete: + operationId: api_productcatalogproduct_variants_code_delete + tags: + - 'Product Variant' + responses: + '204': + description: 'No content - product variant is deleted.' + '401': + description: 'Error - the user is not authorized to delete this product variant.' + summary: 'Delete product variant' + description: 'Deletes the given product variant.' + parameters: + - + name: code + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_productcatalogproduct_variants_code_patch + tags: + - 'Product Variant' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.ProductVariant+json: + schema: + $ref: '#/components/schemas/ProductVariantWrapper' + example: + ProductVariant: + _media-type: application/vnd.ibexa.api.ProductVariant+json + code: test + name: 'Macbook Air ' + Product: { _media-type: application/vnd.ibexa.api.Product+json, code: mac_air, name: 'Macbook Air', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: laptop, name: Laptop, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: number, name: number, description: '', type: Float, type_identifier: float, value: 1.5, group: test, position: 0, options: { min: 4, max: 5 } } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: testattr, name: testAttr, description: '', type: Integer, type_identifier: integer, value: 5, group: test, position: 0, options: { min: 4, max: 5 } } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/152, _remoteId: 2d61ff8d0043eb299ca8c29c74f25441, _id: 152, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/56 }, Name: 'Macbook Air', TranslatedName: 'Macbook Air', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/152/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/versions/1, VersionInfo: { id: 635, versionNo: 1, status: PUBLISHED, modificationDate: '2022-07-21T15:17:18+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-07-21T15:17:18+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Macbook Air' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/152 } }, Fields: { field: [{ id: 716, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Macbook Air' }, { id: 717, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 89, code: mac_air, attributes: [] } }, { id: 718, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "\n
test
\n", xhtml5edit: "\n

test

\n" } }, { id: 719, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 720, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/152/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/152/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-07-21T15:17:18+02:00', publishedDate: '2022-07-21T15:17:18+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/152/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml }, created_at: 1658409438, updated_at: 1658409438, AttributesList: [] } + DiscriminatorAttributesList: [] + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update this product variant.' + '403': + description: 'Error - a product variant with the same code already exists.' + '404': + description: 'Error - no product variant with the given code exists.' + summary: 'Update product variant' + description: 'Updates product variant.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated product variant is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The product variant update schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: code + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated ProductVariantUpdateController resource' + content: + application/vnd.ibexa.api.ProductVariantUpdate+json: + schema: + $ref: '#/components/schemas/ProductVariantUpdateWrapper' + x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_variants/code/PATCH/ProductVariantUpdate.json.example' + required: false + deprecated: false + '/product/catalog/vat/{region}': + get: + operationId: api_productcatalogvat_region_get + tags: + - 'Product Vat' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.VatCategoryList+json: + schema: + $ref: '#/components/schemas/VatCategoryListWrapper' + example: + VatCategoryList: + _media-type: application/vnd.ibexa.api.VatCategoryList+json + VatCategory: [{ _media-type: application/vnd.ibexa.api.VatCategory+json, identifier: standard, region: region_1, vatValue: 18 }, { _media-type: application/vnd.ibexa.api.VatCategory+json, identifier: reduced, region: region_1, vatValue: 6 }, { _media-type: application/vnd.ibexa.api.VatCategory+json, identifier: none, region: region_1, vatValue: null }] + '401': + description: 'Error - the user is not authorized to read this object.' + '404': + description: 'Error - the VAT category region does not exist.' + summary: 'Load VAT region' + description: 'Loads a VAT category for the given region.' + parameters: + - + name: Accept + in: header + description: 'If set, the VAT category list returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: region + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/product/catalog/vat/{region}/{identifier}': + get: + operationId: api_productcatalogvat_region_identifier_get + tags: + - 'Product Vat' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.VatCategory+json: + schema: + $ref: '#/components/schemas/VatCategoryWrapper' + example: + VatCategory: + _media-type: application/vnd.ibexa.api.VatCategory+json + identifier: standard + region: region_1 + vatValue: 18 + '401': + description: 'Error - the user is not authorized to read this object.' + '404': + description: 'Error - the VAT category for the given identifier not exists.' + summary: 'Load VAT specific region' + description: 'Loads a VAT category for the given identifier.' + parameters: + - + name: Accept + in: header + description: 'If set, the VAT category list returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: region + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /content/sections: + get: + operationId: api_contentsections_get + tags: + - Section + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.SectionList+xml: + schema: + $ref: '#/components/schemas/SectionList' + example: | + + +
+ 1 + standard + Standard +
+
+ 2 + users + Users +
+
+ 3 + media + Media +
+
+ 6 + form + Form +
+
+ 7 + template + Template +
+
+ 8 + restricted + Restricted +
+
+ application/vnd.ibexa.api.SectionList+json: + schema: + $ref: '#/components/schemas/SectionListWrapper' + example: + SectionList: + _media-type: application/vnd.ibexa.api.SectionList+json + _href: /api/ibexa/v2/content/sections + Section: [{ _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1, sectionId: 1, identifier: standard, name: Standard }, { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2, sectionId: 2, identifier: users, name: Users }, { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/3, sectionId: 3, identifier: media, name: Media }, { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/6, sectionId: 6, identifier: form, name: Form }, { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/7, sectionId: 7, identifier: template, name: Template }, { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/8, sectionId: 8, identifier: restricted, name: Restricted }] + '401': + description: 'Error - The user has no permission to read the Section.' + summary: 'Get Sections' + description: 'Returns a list of all Sections.' + parameters: + - + name: Accept + in: header + description: 'If set, the Section list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_contentsections_post + tags: + - Section + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.Section+xml: + schema: + $ref: '#/components/schemas/Section' + example: | + +
+ 7 + template + Template +
+ application/vnd.ibexa.api.Section+json: + schema: + $ref: '#/components/schemas/SectionWrapper' + example: + Section: + _media-type: application/vnd.ibexa.api.Section+json + _href: /api/ibexa/v2/content/sections/7 + sectionId: 7 + identifier: template + name: Template + summary: 'Create new Section' + description: 'Creates a new Section.' + parameters: + - + name: Accept + in: header + description: 'If set, the new Section is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The Section input schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new SectionCreateController resource' + content: + application/vnd.ibexa.api.SectionInput+xml: + schema: + $ref: '#/components/schemas/SectionInput' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/sections/POST/SectionInput.xml.example' + application/vnd.ibexa.api.SectionInput+json: + schema: + $ref: '#/components/schemas/SectionInputWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/sections/POST/SectionInput.json.example' + required: false + deprecated: false + '/content/sections/{sectionId}': + get: + operationId: api_contentsections_sectionId_get + tags: + - Section + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Section+xml: + schema: + $ref: '#/components/schemas/Section' + example: | + +
+ 7 + template + Template +
+ application/vnd.ibexa.api.Section+json: + schema: + $ref: '#/components/schemas/SectionWrapper' + example: + Section: + _media-type: application/vnd.ibexa.api.Section+json + _href: /api/ibexa/v2/content/sections/7 + sectionId: 7 + identifier: template + name: Template + '401': + description: 'Error - The user is not authorized to read this Section.' + '404': + description: 'Error - The Section does not exist.' + summary: 'Get Section' + description: 'Returns the Section by given Section ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the Section is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: sectionId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_contentsections_sectionId_delete + tags: + - Section + responses: + '204': + description: 'No Content - given Section is deleted.' + '401': + description: 'Error - the user is not authorized to delete this Section.' + '404': + description: 'Error - the Section does not exist.' + summary: 'Delete Section' + description: 'The given Section is deleted.' + parameters: + - + name: sectionId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_contentsections_sectionId_patch + tags: + - Section + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Section+xml: + schema: + $ref: '#/components/schemas/Section' + example: | + +
+ 7 + template + Template +
+ application/vnd.ibexa.api.Section+json: + schema: + $ref: '#/components/schemas/SectionWrapper' + example: + Section: + _media-type: application/vnd.ibexa.api.Section+json + _href: /api/ibexa/v2/content/sections/7 + sectionId: 7 + identifier: template + name: Template + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this Section.' + '403': + description: 'Error - a Section with the given identifier already exists.' + '412': + description: 'Error - the current ETag does not match with the one provided in the If-Match header.' + summary: 'Update a Section' + description: 'Updates a Section. PATCH or POST with header X-HTTP-Method-Override PATCH.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated Section is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The Section input schema encoded in XML or JSON.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: sectionId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated SectionUpdateController resource' + content: + application/vnd.ibexa.api.SectionInput+xml: + schema: + $ref: '#/components/schemas/SectionInput' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/sections/POST/SectionInput.xml.example' + application/vnd.ibexa.api.SectionInput+json: + schema: + $ref: '#/components/schemas/SectionInputWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/sections/POST/SectionInput.json.example' + required: false + deprecated: false + /segment_groups: + get: + operationId: api_segment_groups_get + tags: + - Segmentation + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.SegmentGroupList+xml: + schema: + $ref: '#/components/schemas/SegmentGroupList' + example: | + + + + 1 + corporate_accounts + Corporate Accounts + + + application/vnd.ibexa.api.SegmentGroupList+json: + schema: + $ref: '#/components/schemas/SegmentGroupListWrapper' + example: + SegmentGroupList: + _media-type: application/vnd.ibexa.api.SegmentGroupList+json + _href: /api/ibexa/v2/segment_groups + SegmentGroup: [{ _media-type: application/vnd.ibexa.api.SegmentGroup+json, _href: /api/ibexa/v2/segment_groups/corporate_accounts, id: 1, identifier: corporate_accounts, name: 'Corporate Accounts' }] + '401': + description: 'Error - the user is not authorized to list segment groups.' + content: + application/vnd.ibexa.api.ErrorMessage+xml: + schema: + $ref: '#/components/schemas/ErrorMessage' + application/vnd.ibexa.api.ErrorMessage+json: + schema: + $ref: '#/components/schemas/ErrorMessage' + summary: 'List segment groups' + description: 'Lists segment groups.' + parameters: + - + name: Accept + in: header + description: 'If set, the list of segment groups is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + '/segment_groups/{identifier}': + get: + operationId: api_segment_groups_identifier_get + tags: + - Segmentation + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.SegmentGroup+xml: + schema: + $ref: '#/components/schemas/SegmentGroup' + example: | + + + 1 + corporate_accounts + Corporate Accounts + + application/vnd.ibexa.api.SegmentGroup+json: + schema: + $ref: '#/components/schemas/SegmentGroupWrapper' + example: + SegmentGroup: + _media-type: application/vnd.ibexa.api.SegmentGroup+json + _href: /api/ibexa/v2/segment_groups/corporate_accounts + id: 1 + identifier: corporate_accounts + name: 'Corporate Accounts' + '401': + description: 'Error - the user is not authorized to load this segment group.' + '404': + description: "Error - the identifier doesn't match any segment group." + summary: 'Load segment group' + description: 'Loads segment group.' + parameters: + - + name: Accept + in: header + description: 'If set, the segment group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + '/segment_groups/{identifier}/segments': + get: + operationId: api_segment_groups_identifiersegments_get + tags: + - Segmentation + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.SegmentList+xml: + schema: + $ref: '#/components/schemas/SegmentList' + example: | + + + application/vnd.ibexa.api.SegmentList+json: + schema: + $ref: '#/components/schemas/SegmentListWrapper' + example: + SegmentList: + _media-type: application/vnd.ibexa.api.SegmentList+json + _href: /api/ibexa/v2/segment_groups/corporate_accounts/segments + Segment: [] + '401': + description: "Error - the user is not authorized to load this group's segments." + '404': + description: "Error - the identifier doesn't match any segment group." + summary: "List segment group's segments" + description: "Lists segment group's segments." + parameters: + - + name: Accept + in: header + description: 'If set, the segment group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + '/segments/{identifier}': + get: + operationId: api_segments_identifier_get + tags: + - Segmentation + responses: + '200': + description: 'OK - Return the segment.' + content: + application/vnd.ibexa.api.Segment+xml: + schema: + $ref: '#/components/schemas/Segment' + application/vnd.ibexa.api.Segment+json: + schema: + $ref: '#/components/schemas/SegmentWrapper' + '401': + description: "Error - the user is not authorized to load this group's segments." + '404': + description: "Error - the identifier doesn't match any segment group." + summary: 'Load segment' + description: 'Loads the identified segment.' + parameters: + - + name: Accept + in: header + description: 'If set, the segment is returned in XML or JSON' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Experience + color: '#D3822B' + - + name: Commerce + color: '#A32768' + position: after + /shipments: + get: + operationId: api_shipments_get + tags: + - Shipping + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ShipmentRefList+xml: + schema: + $ref: '#/components/schemas/ShipmentRefList' + example: | + + + + + + + + application/vnd.ibexa.api.ShipmentRefList+json: + schema: + $ref: '#/components/schemas/ShipmentRefListWrapper' + example: + ShipmentRefList: + _media-type: application/vnd.ibexa.api.ShipmentRefList+json + _href: /api/ibexa/v2/shipments + shipmentRefList: [{ _media-type: application/vnd.ibexa.api.Shipment+json, _href: /api/ibexa/v2/shipments/foo }, { _media-type: application/vnd.ibexa.api.Shipment+json, _href: /api/ibexa/v2/shipments/bar }, { _media-type: application/vnd.ibexa.api.Shipment+json, _href: /api/ibexa/v2/shipments/baz }, { _media-type: application/vnd.ibexa.api.Shipment+json, _href: /api/ibexa/v2/shipments/qux }] + '401': + description: 'Error - the user has no permission to read shipment lists.' + '404': + description: 'Error - the shipment does not exist.' + summary: 'Load shipments' + description: 'Loads a list of shipments.' + parameters: + - + name: Accept + in: header + description: 'If set, the shipments are returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/shipments/{identifier}': + get: + operationId: api_shipments_identifier_get + tags: + - Shipping + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Shipment+xml: + schema: + $ref: '#/components/schemas/Shipment' + example: | + + + 1 + new_identifier + prepared + + send-to-carrier + cancel + + + + 2257 + EUR + + 2023-06-26T15:40:28+02:00 + 2023-06-26T15:40:28+02:00 + + + + application/vnd.ibexa.api.Shipment+json: + schema: + $ref: '#/components/schemas/ShipmentWrapper' + example: + Shipment: + _media-type: application/vnd.ibexa.api.Shipment+json + _href: /api/ibexa/v2/shipments/new_identifier + id: 1 + identifier: new_identifier + status: prepared + transitions: { transitionList: [send-to-carrier, cancel] } + Order: { _media-type: application/vnd.ibexa.api.Order+json, _href: /api/ibexa/v2/orders/order/33f6db52-478f-41f1-afbe-6d38f6a4704f } + Amount: { value: '2257', currency: EUR } + createdAt: '2023-06-26T15:40:28+02:00' + updatedAt: '2023-06-26T15:40:28+02:00' + Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + Method: { _media-type: application/vnd.ibexa.api.ShippingMethod+json, _href: /api/ibexa/v2/shipping/methods/parcel_locker_delivery } + '401': + description: 'Error - the user has no permission to read shipments.' + '404': + description: 'Error - the shipment does not exist.' + summary: 'Load a single shipment based on its identifier' + description: 'Loads a single shipment based on its identifier.' + parameters: + - + name: Accept + in: header + description: 'If set, the shipment is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + delete: + operationId: api_shipments_identifier_delete + tags: + - Shipping + responses: + '204': + description: 'No content - shipment is deleted.' + '401': + description: 'Error - the user is not authorized to delete this shipment.' + '404': + description: 'Error - the shipment with the given ID does not exist.' + summary: 'Delete shipment' + description: 'Deletes a shipment.' + parameters: + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + patch: + operationId: api_shipments_identifier_patch + tags: + - Shipping + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Shipment+xml: + schema: + $ref: '#/components/schemas/Shipment' + example: | + + + 1 + new_identifier + prepared + + send-to-carrier + cancel + + + + 2257 + EUR + + 2023-06-26T15:40:28+02:00 + 2023-06-26T15:40:28+02:00 + + + + application/vnd.ibexa.api.Shipment+json: + schema: + $ref: '#/components/schemas/ShipmentWrapper' + example: + Shipment: + _media-type: application/vnd.ibexa.api.Shipment+json + _href: /api/ibexa/v2/shipments/new_identifier + id: 1 + identifier: new_identifier + status: prepared + transitions: { transitionList: [send-to-carrier, cancel] } + Order: { _media-type: application/vnd.ibexa.api.Order+json, _href: /api/ibexa/v2/orders/order/33f6db52-478f-41f1-afbe-6d38f6a4704f } + Amount: { value: '2257', currency: EUR } + createdAt: '2023-06-26T15:40:28+02:00' + updatedAt: '2023-06-26T15:40:28+02:00' + Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + Method: { _media-type: application/vnd.ibexa.api.ShippingMethod+json, _href: /api/ibexa/v2/shipping/methods/parcel_locker_delivery } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update this shipment.' + '404': + description: 'Error - the shipment with the given ID does not exist.' + '406': + description: 'Error - the shipment cannot be cancelled due to not-allowed workflow transition' + summary: 'Update shipment' + description: 'Updates a shipment.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated shipment is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The ShipmentUpdate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated ShipmentUpdateController resource' + content: + application/vnd.ibexa.api.ShipmentUpdate+xml: + schema: + $ref: '#/components/schemas/ShipmentUpdate' + x-ibexa-example-file: '@IbexaShippingBundle/Resources/api_platform/examples/shipments/identifier/PATCH/ShipmentUpdate.xml.example' + application/vnd.ibexa.api.ShipmentUpdate+json: + schema: + $ref: '#/components/schemas/ShipmentUpdateWrapper' + x-ibexa-example-file: '@IbexaShippingBundle/Resources/api_platform/examples/shipments/identifier/PATCH/ShipmentUpdate.json.example' + required: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + /shipping/method-types: + get: + operationId: api_shippingmethod-types_get + tags: + - Shipping + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ShippingMethodTypesList+xml: + schema: + $ref: '#/components/schemas/ShippingMethodTypesList' + example: | + + + + flat_rate + Flat rate + + + free + Free shipping + + + application/vnd.ibexa.api.ShippingMethodTypesList+json: + schema: + $ref: '#/components/schemas/ShippingMethodTypesListWrapper' + example: + ShippingMethodTypesList: + _media-type: application/vnd.ibexa.api.ShippingMethodTypesList+json + _href: /api/ibexa/v2/shipping/method-types + ShippingMethodTypes: [{ _media-type: application/vnd.ibexa.api.ShippingMethodType+json, _href: /api/ibexa/v2/shipping/method-types/flat_rate, identifier: flat_rate, name: 'Flat rate' }, { _media-type: application/vnd.ibexa.api.ShippingMethodType+json, _href: /api/ibexa/v2/shipping/method-types/free, identifier: free, name: 'Free shipping' }] + '401': + description: 'Error - the user has no permission to read shipping methods types.' + '404': + description: 'Error - the shipping method type does not exist.' + summary: 'Load shipping methods types' + description: 'Loads shipping methods types.' + parameters: + - + name: Accept + in: header + description: 'Shipping method type reference - if set, the shipping method is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/shipping/method-types/{identifier}': + get: + operationId: api_shippingmethod-types_identifier_get + tags: + - Shipping + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ShippingMethodType+xml: + schema: + $ref: '#/components/schemas/ShippingMethodType' + example: | + + + flat_rate + Flat rate + + application/vnd.ibexa.api.ShippingMethodType+json: + schema: + $ref: '#/components/schemas/ShippingMethodTypeWrapper' + example: + ShippingMethodType: + _media-type: application/vnd.ibexa.api.ShippingMethodType+json + _href: /api/ibexa/v2/shipping/method-types/flat_rate + identifier: flat_rate + name: 'Flat rate' + '401': + description: 'Error - the user has no permission to read shipping methods.' + '404': + description: 'Error - the shipping method type does not exist.' + summary: 'Load shipping method type based on its identifier' + description: 'Loads shipping methods type based on their identifiers.' + parameters: + - + name: Accept + in: header + description: 'Shipping method type - if set, the shipping method is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + /shipping/methods: + get: + operationId: api_shippingmethods_get + tags: + - Shipping + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ShippingMethodRefList+xml: + schema: + $ref: '#/components/schemas/ShippingMethodRefList' + example: | + + + + + + application/vnd.ibexa.api.ShippingMethodRefList+json: + schema: + $ref: '#/components/schemas/ShippingMethodRefListWrapper' + example: + ShippingMethodRefList: + _media-type: application/vnd.ibexa.api.ShippingMethodRefList+json + _href: /api/ibexa/v2/shipping/methods + ShippingMethodRefs: [{ _media-type: application/vnd.ibexa.api.ShippingMethod+json, _href: /api/ibexa/v2/shipping/methods/parcel_delivery }, { _media-type: application/vnd.ibexa.api.ShippingMethod+json, _href: /api/ibexa/v2/shipping/methods/parcel_locker_delivery }] + '401': + description: 'Error - the user has no permission to read shipping methods.' + summary: 'Load shipping methods' + description: 'Loads shipping methods.' + parameters: + - + name: Accept + in: header + description: 'Shipping method reference - if set, the shipping method is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/shipping/methods/{identifier}': + get: + operationId: api_shippingmethods_identifier_get + tags: + - Shipping + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ShippingMethod+xml: + schema: + $ref: '#/components/schemas/ShippingMethod' + example: | + + + method1 + AmE Method 1 + + AmE Method 1 + BrE Method 1 + + AmE Description of Method 1 + + AmE Description of Method 1 + BrE Description of Method 1 + + true + + 20.0000 + EUR + + + + + + + application/vnd.ibexa.api.ShippingMethod+json: + schema: + $ref: '#/components/schemas/ShippingMethodWrapper' + example: + ShippingMethod: + _media-type: application/vnd.ibexa.api.ShippingMethod+json + _href: /api/ibexa/v2/shipping/methods/method1 + identifier: method1 + name: 'AmE Method 1' + names: { value: [{ _languageCode: eng-US, '#text': 'AmE Method 1' }, { _languageCode: eng-GB, '#text': 'BrE Method 1' }] } + description: 'AmE Description of Method 1' + descriptions: { value: [{ _languageCode: eng-US, '#text': 'AmE Description of Method 1' }, { _languageCode: eng-GB, '#text': 'BrE Description of Method 1' }] } + enabled: true + options: { option: [{ _key: price, '#text': '20.0000' }, { _key: currency, '#text': EUR }] } + regions: { RegionRefList: [{ _media-type: application/vnd.ibexa.api.Region+json, _href: /api/ibexa/v2/product/catalog/regions/default }] } + type: { _media-type: application/vnd.ibexa.api.ShippingMethodType+json, _href: /api/ibexa/v2/shipping/method-types/flat_rate } + '401': + description: 'Error - the user has no permission to read shipping methods.' + '404': + description: 'Error - the shipping method does not exist.' + summary: 'Load shipping method based on its identifier' + description: 'Loads shipping method based on its identifier.' + parameters: + - + name: Accept + in: header + description: 'Shipping method - if set, the shipping method is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + x-badges: + - + name: Commerce + color: '#A32768' + position: after + '/taxonomy/{taxonomyName}/entries': + delete: + operationId: api_taxonomy_taxonomyNameentries_delete + tags: + - Taxonomy + responses: + '204': + description: 'No Content - The entries have been deleted.' + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - The user is not authorized to delete some of the entries.' + summary: 'Delete Entries' + description: 'Bulk removes several taxonomy entries.' + parameters: + - + name: Content-Type + in: header + description: 'Target Entries schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: taxonomyName + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + content: + application/vnd.ibexa.api.TaxonomyEntryBulkRemove+xml: + schema: + $ref: '#/components/schemas/TaxonomyEntryBulkRemove' + application/vnd.ibexa.api.TaxonomyEntryBulkRemove+json: + schema: + $ref: '#/components/schemas/TaxonomyEntryBulkRemoveWrapper' + x-ibexa-example-file: '@IbexaTaxonomyBundle/Resources/api_platform/examples/taxonomy/entries/DELETE/TaxonomyEntryBulkRemove.json.example' + required: false + deprecated: false + '/taxonomy/{taxonomyName}/entries/move': + post: + operationId: api_taxonomy_taxonomyNameentriesmove_post + tags: + - Taxonomy + responses: + '204': + description: 'No Content - The entries have been moved.' + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - The user is not authorized to move some of the entries.' + '404': + description: 'Error - Some to-be-moved or sibling entries do not exist.' + summary: 'Move Entries' + description: 'Bulk move several taxonomy entries relative to sibling.' + parameters: + - + name: Content-Type + in: header + description: 'The Entry moves schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: taxonomyName + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new TaxonomyEntryBulkMoveController resource' + content: + application/vnd.ibexa.api.TaxonomyEntryBulkMove+xml: + schema: + $ref: '#/components/schemas/TaxonomyEntryBulkMove' + application/vnd.ibexa.api.TaxonomyEntryBulkMove+json: + schema: + $ref: '#/components/schemas/TaxonomyEntryBulkMoveWrapper' + x-ibexa-example-file: '@IbexaTaxonomyBundle/Resources/api_platform/examples/taxonomy/entries/move/POST/TaxonomyEntryBulkMove.json.example' + required: false + deprecated: false + '/taxonomy/{taxonomyName}/entry-assignment/{id}': + get: + operationId: api_taxonomy_taxonomyNameentry-assignment_id_get + tags: + - Taxonomy + responses: + '200': + description: 'OK - returns the taxonomy entry Assignment.' + content: + application/vnd.ibexa.api.TaxonomyEntryAssignment+xml: + schema: + $ref: '#/components/schemas/TaxonomyEntryAssignment' + application/vnd.ibexa.api.TaxonomyEntryAssignment+json: + schema: + $ref: '#/components/schemas/TaxonomyEntryAssignmentWrapper' + '404': + description: 'Error - the assignment does not exist.' + summary: 'Get Assignment by ID' + description: 'Gets taxonomy entry Assignment by its ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the Assignment is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: taxonomyName + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/taxonomy/{taxonomyName}/entry-assignments/assign-to-content': + post: + operationId: api_taxonomy_taxonomyNameentry-assignmentsassign-to-content_post + tags: + - Taxonomy + responses: + '201': + description: 'No Content.' + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to assign this Entry.' + summary: 'Assign entry' + description: 'Assigns taxonomy entry to a content item.' + parameters: + - + name: Content-Type + in: header + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: taxonomyName + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new TaxonomyEntryAssignmentAssignController resource' + content: + application/vnd.ibexa.api.TaxonomyEntryAssignToContent+json: + schema: + $ref: '#/components/schemas/TaxonomyEntryAssignToContentWrapper' + x-ibexa-example-file: '@IbexaTaxonomyBundle/Resources/api_platform/examples/taxonomy/POST/TaxonomyEntryAssignToContent.json.example' + required: false + deprecated: false + '/taxonomy/{taxonomyName}/entry-assignments/content-id/{contentId}': + get: + operationId: api_taxonomy_taxonomyNameentry-assignmentscontent-id_contentId_get + tags: + - Taxonomy + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.EntryAssignmentCollection+xml: + schema: + $ref: '#/components/schemas/EntryAssignmentCollection' + example: |- + + + + + + Ibexa Platform + Ibexa Platform + + +
+ + + 2023-01-01T00:00:00+00:00 + 2015-11-30T13:10:46+00:00 + eng-GB + 10 + true + false + PUBLISHED + + + + + 1 + + + + Ibexa Platform + Ibexa Platform + + +
+ + + 2023-01-01T00:00:00+00:00 + 2015-11-30T13:10:46+00:00 + eng-GB + 10 + true + false + PUBLISHED + + + + + + 3 + example + Example + 65 + + tags + + + + + application/vnd.ibexa.api.EntryAssignmentCollection+json: + schema: + $ref: '#/components/schemas/EntryAssignmentCollectionWrapper' + example: + EntryAssignmentCollection: + _media-type: application/vnd.ibexa.api.EntryAssignmentCollection+json + content: { _media-type: application/vnd.ibexa.api.Content+json, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/1, _remoteId: 9459d3c29e15006e45197295722c7ade, _id: 1, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1 }, Name: 'Ibexa Platform', TranslatedName: 'Ibexa Platform', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/1/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/1/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/1/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-01-01T00:00:00+00:00', publishedDate: '2015-11-30T13:10:46+00:00', mainLanguageCode: eng-GB, currentVersionNo: 10, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/1/objectstates } } } + assignments: [{ _media-type: application/vnd.ibexa.api.TaxonomyEntryAssignment+json, id: 1, content: { _media-type: application/vnd.ibexa.api.Content+json, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/1, _remoteId: 9459d3c29e15006e45197295722c7ade, _id: 1, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1 }, Name: 'Ibexa Platform', TranslatedName: 'Ibexa Platform', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/1/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/1/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/1/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-01-01T00:00:00+00:00', publishedDate: '2015-11-30T13:10:46+00:00', mainLanguageCode: eng-GB, currentVersionNo: 10, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/1/objectstates } } }, entry: { _media-type: application/vnd.ibexa.api.TaxonomyEntry+json, TaxonomyEntry: { _media-type: application/vnd.ibexa.api.TaxonomyEntry+json, id: 3, identifier: example, name: Example, contentId: 65, content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/65 }, taxonomy: tags } } }] + '404': + description: 'Error - the Content does not exists.' + summary: 'Get Assignments to a Content' + description: 'Gets taxonomy entries assigned to a content item by its ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the assignments are returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: taxonomyName + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/taxonomy/{taxonomyName}/entry-assignments/unassign-from-content': + post: + operationId: api_taxonomy_taxonomyNameentry-assignmentsunassign-from-content_post + tags: + - Taxonomy + responses: + '201': + description: 'No Content.' + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to unassign this entry.' + summary: 'Unassign entry' + description: 'Unassigns taxonomy entry from a content item.' + parameters: + - + name: Content-Type + in: header + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: taxonomyName + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new TaxonomyEntryAssignmentUnassignController resource' + content: + application/vnd.ibexa.api.TaxonomyEntryUnassignFromContent+json: + schema: + $ref: '#/components/schemas/TaxonomyEntryUnassignFromContentWrapper' + x-ibexa-example-file: '@IbexaTaxonomyBundle/Resources/api_platform/examples/taxonomy/POST/TaxonomyEntryUnassignFromContent.json.example' + required: false + deprecated: false + '/taxonomy/{taxonomyName}/entry/content-id/{contentId}': + get: + operationId: api_taxonomy_taxonomyNameentrycontent-id_contentId_get + tags: + - Taxonomy + responses: + '200': + description: 'OK - returns the taxonomy Entry.' + content: + application/vnd.ibexa.api.TaxonomyEntry+xml: + schema: + $ref: '#/components/schemas/TaxonomyEntry' + application/vnd.ibexa.api.TaxonomyEntry+json: + schema: + $ref: '#/components/schemas/TaxonomyEntryWrapper' + '401': + description: 'Error - the user is not authorized to read this Entry.' + '404': + description: 'Error - the Entry does not exists.' + summary: 'Get Entry by Content ID' + description: 'Loads taxonomy Entry by its Content ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the Taxonomy Entry is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: taxonomyName + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/taxonomy/{taxonomyName}/entry/identifier/{identifier}': + get: + operationId: api_taxonomy_taxonomyNameentryidentifier_identifier_get + tags: + - Taxonomy + responses: + '200': + description: 'OK - returns the taxonomy Entry.' + content: + application/vnd.ibexa.api.TaxonomyEntry+xml: + schema: + $ref: '#/components/schemas/TaxonomyEntry' + application/vnd.ibexa.api.TaxonomyEntry+json: + schema: + $ref: '#/components/schemas/TaxonomyEntryWrapper' + '401': + description: 'Error - the user is not authorized to read this Entry.' + '404': + description: 'Error - the Entry does not exists.' + summary: 'Get Entry by identifier' + description: 'Loads taxonomy Entry by its Entry identifier.' + parameters: + - + name: Accept + in: header + description: 'If set, the Taxonomy Entry is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: taxonomyName + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: identifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/taxonomy/{taxonomyName}/entry/{id}': + get: + operationId: api_taxonomy_taxonomyNameentry_id_get + tags: + - Taxonomy + responses: + '200': + description: 'OK - returns the taxonomy Entry.' + content: + application/vnd.ibexa.api.TaxonomyEntry+xml: + schema: + $ref: '#/components/schemas/TaxonomyEntry' + application/vnd.ibexa.api.TaxonomyEntry+json: + schema: + $ref: '#/components/schemas/TaxonomyEntryWrapper' + '401': + description: 'Error - the user is not authorized to read this Entry.' + '404': + description: 'Error - the Entry does not exists.' + summary: 'Get Entry by ID' + description: 'Loads taxonomy Entry by its Entry ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the Taxonomy Entry is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: taxonomyName + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /content/trash: + get: + operationId: api_contenttrash_get + tags: + - Trash + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Trash+xml: + schema: + $ref: '#/components/schemas/Trash' + example: | + + + + 58 + 0 + false + false + + /1/2/56/58/ + 3 + 0 + 59800915ad2eb8514de0bebe84f6ccba + + PATH + ASC + + + + Folder 1 + + +
+ + + 2019-02-06T09:03:09+01:00 + 2019-02-06T09:03:09+01:00 + eng-GB + 1 + true + + + + + + application/vnd.ibexa.api.Trash+json: + schema: + $ref: '#/components/schemas/TrashWrapper' + example: + Trash: + _media-type: application/vnd.ibexa.api.Trash+json + _href: /api/ibexa/v2/content/trash + TrashItem: [{ _media-type: application/vnd.ibexa.api.TrashItem+json, _href: /api/ibexa/v2/content/trash/87, id: 87, priority: 0, hidden: false, invisible: false, ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/57 }, pathString: /1/2/57/87/, depth: 3, childCount: 0, remoteId: 7cc6565354858f39a794bf64aa2c2761, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/91 }, sortField: PATH, sortOrder: ASC, ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/91, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/91, _remoteId: de906bef76f08700662bfaf1579871f0, _id: 91, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2 }, Name: test_article, TranslatedName: test_article, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/91/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/91/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/91/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/11 }, lastModificationDate: '2021-07-19T08:31:01+00:00', publishedDate: '2021-07-19T08:31:01+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: false, isHidden: false, status: TRASHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/91/objectstates } } } }, { _media-type: application/vnd.ibexa.api.TrashItem+json, _href: /api/ibexa/v2/content/trash/89, id: 89, priority: 0, hidden: false, invisible: false, ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2 }, pathString: /1/2/89/, depth: 2, childCount: 0, remoteId: 256c2e7d71e927bab32a901878827312, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/96 }, sortField: PATH, sortOrder: ASC, ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/96, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/96, _remoteId: d5bad9eb55cfe8572adf04452a2b206e, _id: 96, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1 }, Name: 'All Articles test', TranslatedName: 'All Articles test', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/96/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/96/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/96/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-07-19T12:43:02+00:00', publishedDate: '2021-07-19T12:42:47+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: TRASHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/96/objectstates } } } }] + '401': + description: 'Error - The user has no permission to read the Trash.' + summary: 'List Trash items' + description: 'Returns a list of all items in the Trash.' + parameters: + - + name: Accept + in: header + description: 'If set, the Trash item list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_contenttrash_delete + tags: + - Trash + responses: + '204': + description: 'No Content - Trash emptied.' + '401': + description: 'Error - The user is not authorized to empty all items from Trash.' + summary: 'Empty Trash' + description: 'Empties the Trash.' + parameters: [] + deprecated: false + '/content/trash/{trashItemid}': + get: + operationId: api_contenttrash_trashItemid_get + tags: + - Trash + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.TrashItem+xml: + schema: + $ref: '#/components/schemas/TrashItem' + example: | + + + 81 + 0 + false + false + + /1/2/42/81/ + 3 + 0 + 135e8a84b61848a67be36e9552d2724d + + PATH + ASC + + + + Folder 1 + + +
+ + + 2019-04-25T12:45:58+02:00 + 2019-04-25T12:45:58+02:00 + eng-GB + 1 + true + TRASHED + + + + + application/vnd.ibexa.api.TrashItem+json: + schema: + $ref: '#/components/schemas/TrashItemWrapper' + example: + TrashItem: + _media-type: application/vnd.ibexa.api.TrashItem+json + _href: /api/ibexa/v2/content/trash/87 + id: 87 + priority: 0 + hidden: false + invisible: false + ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/57 } + pathString: /1/2/57/87/ + depth: 3 + childCount: 0 + remoteId: 7cc6565354858f39a794bf64aa2c2761 + Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/91 } + sortField: PATH + sortOrder: ASC + ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/91, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/91, _remoteId: de906bef76f08700662bfaf1579871f0, _id: 91, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2 }, Name: test_article, TranslatedName: test_article, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/91/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/91/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/91/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/11 }, lastModificationDate: '2021-07-19T08:31:01+00:00', publishedDate: '2021-07-19T08:31:01+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: false, isHidden: false, status: TRASHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/91/objectstates } } } + '401': + description: 'Error - The user has no permission to read the item in Trash.' + '404': + description: 'Error - An item in Trash with the provided ID does not exist.' + summary: 'Get Trash item' + description: 'Returns the item in Trash with the provided ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the item in Trash is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: trashItemid + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_contenttrash_trashItemid_delete + tags: + - Trash + responses: + '204': + description: 'No Content - item deleted.' + '401': + description: 'Error - The user is not authorized to delete the provided item.' + '404': + description: 'Error - The provided item does not exist in Trash.' + summary: 'Delete Trash item' + description: 'Deletes the provided item from Trash.' + parameters: + - + name: trashItemid + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /content/types: + get: + operationId: api_contenttypes_get + tags: + - Type + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ContentTypeInfoList+xml: + schema: + $ref: '#/components/schemas/ContentTypeInfoList' + example: | + + + + 2 + DEFINED + article + + Article + + + 2002-06-18T09:21:38+00:00 + 2004-04-20T09:56:29+00:00 + + + + + c15b600eb9198b1924063b5a68758232 + + <short_title|title> + true + eng-GB + false + PATH + ASC + + + 1 + title + ibexa_string + + 1 + true + true + false + New article + true + + Title + + + + + + 255 + + + + + 152 + short_title + ibexa_string + + 2 + true + false + false + + true + + Short title + + + + + + 255 + + + + + 153 + author + ibexa_author + + 3 + true + false + false + + false + + Author + + + + 1 + + + + + 120 + intro + ibexa_richtext + + 4 + true + true + false + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + true + + Intro + + + + + + + 121 + body + ibexa_richtext + + 5 + true + false + false + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + true + + Body + + + + + + + 123 + enable_comments + ibexa_boolean + + 6 + false + false + false + false + false + + Enable comments + + + + + + + 154 + image + ibexa_object_relation + + 7 + true + false + false + + + + true + + Image + + + + SELECTION_BROWSE + + + + + + + + + 1 + DEFINED + folder + + Folder + + + 2002-06-18T09:21:38+00:00 + 2015-11-29T21:14:32+00:00 + + + + + a3d405b81be900468eb153d774f4f0d2 + + <short_name|name> + true + eng-GB + true + PATH + ASC + + + 4 + name + ibexa_string + + 1 + true + true + false + Folder + true + + Name + + + + + + 255 + + + + + 155 + short_name + ibexa_string + + 2 + true + false + false + + true + + Short name + + + + + + 100 + + + + + 119 + short_description + ibexa_richtext + + 3 + true + false + false + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + true + + Short description + + + + + + + 156 + description + ibexa_richtext + + 4 + true + false + false + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + + <?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + + + true + + Description + + + + + + + + + 43 + DEFINED + form + + Form + + + 2018-09-17T06:46:13+00:00 + 2018-09-17T06:47:14+00:00 + + + + + 6f7f21df775a33c1e4bbc76b48c38476 + + <title> + false + eng-GB + true + PUBLISHED + DESC + + + 188 + title + ibexa_string + content + 1 + true + true + false + + true + + Title + + + + + + + + + + + 189 + form + ibexa_form + content + 2 + true + false + false + + + + + + + false + + Form + + + + + + + + + 42 + DEFINED + landing_page + + Landing page + + + + + 2015-07-03T12:00:26+00:00 + 2015-07-03T12:00:26+00:00 + + + + + 60c03e9758465eb69d56b3afb6adf18e + + <name> + true + eng-GB + true + PUBLISHED + DESC + + + 185 + name + ibexa_string + content + 10 + true + true + false + + true + + Title + + + Title + + + + + + + + + + 186 + description + ibexa_string + content + 20 + true + true + false + + true + + Description + + + Landing page description + + + + + + + + + + 187 + page + ibexa_landing_page + content + 30 + true + false + false + + default + + + default_id + default + + + + false + + Landing page + + + Landing page + + + + + page_view_mode + + + + + + + application/vnd.ibexa.api.ContentTypeInfoList+json: + schema: + $ref: '#/components/schemas/ContentTypeInfoListWrapper' + example: + ContentTypeList: + _media-type: application/vnd.ibexa.api.ContentTypeList+json + _href: /api/ibexa/v2/content/typegroups/1/types + ContentType: [{ _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2, id: 2, status: DEFINED, identifier: article, names: { value: [{ _languageCode: eng-GB, '#text': Article }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2004-04-20T09:56:29+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft }, remoteId: c15b600eb9198b1924063b5a68758232, urlAliasSchema: null, nameSchema: '', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: false, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/1, id: 1, identifier: title, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: 'New article', isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/152, id: 152, identifier: short_title, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short title' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/153, id: 153, identifier: author, fieldType: ibexa_author, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: [], isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Author }] }, descriptions: { value: [] }, fieldSettings: { defaultAuthor: 1 }, validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/120, id: 120, identifier: intro, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: { xml: "\n
\n", xhtml5edit: "\n
\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Intro }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/121, id: 121, identifier: body, fieldType: ibexa_richtext, fieldGroup: '', position: 5, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "\n
\n", xhtml5edit: "\n
\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Body }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/123, id: 123, identifier: enable_comments, fieldType: ibexa_boolean, fieldGroup: '', position: 6, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: false, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Enable comments' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/154, id: 154, identifier: image, fieldType: ibexa_object_relation, fieldGroup: '', position: 7, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { destinationContentId: null }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Image }] }, descriptions: { value: [] }, fieldSettings: { selectionMethod: SELECTION_BROWSE, selectionRoot: '', selectionContentTypes: [] }, validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1, id: 1, status: DEFINED, identifier: folder, names: { value: [{ _languageCode: eng-GB, '#text': Folder }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2015-11-29T21:14:32+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/1/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1/draft }, remoteId: a3d405b81be900468eb153d774f4f0d2, urlAliasSchema: null, nameSchema: '', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/4, id: 4, identifier: name, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: Folder, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Name }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/155, id: 155, identifier: short_name, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short name' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 100, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/119, id: 119, identifier: short_description, fieldType: ibexa_richtext, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "\n
\n", xhtml5edit: "\n
\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short description' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/156, id: 156, identifier: description, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "\n
\n", xhtml5edit: "\n
\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43, id: 43, status: DEFINED, identifier: form, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, creationDate: '2018-09-17T06:46:13+00:00', modificationDate: '2018-09-17T06:47:14+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/43/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43/draft }, remoteId: 6f7f21df775a33c1e4bbc76b48c38476, urlAliasSchema: '', nameSchema: '', isContainer: false, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/188, id: 188, identifier: title, fieldType: ibexa_string, fieldGroup: content, position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/189, id: 189, identifier: form, fieldType: ibexa_form, fieldGroup: content, position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { fields: [], content_id: null, content_field_id: null, language_code: null }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42, id: 42, status: DEFINED, identifier: landing_page, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] }, creationDate: '2015-07-03T12:00:26+00:00', modificationDate: '2015-07-03T12:00:26+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/42/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42/draft }, remoteId: 60c03e9758465eb69d56b3afb6adf18e, urlAliasSchema: '', nameSchema: '<name>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/185, id: 185, identifier: name, fieldType: ibexa_string, fieldGroup: content, position: 10, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': Title }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/186, id: 186, identifier: description, fieldType: ibexa_string, fieldGroup: content, position: 20, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page description' }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/187, id: 187, identifier: page, fieldType: ibexa_landing_page, fieldGroup: content, position: 30, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { layout: default, zones: [{ id: default_id, name: default, blocks: [] }] }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, fieldSettings: { availableBlocks: null, availableLayouts: null, editorMode: page_view_mode }, validatorConfiguration: [] }] } }] + application/vnd.ibexa.api.ContentTypeList+xml: + schema: + $ref: '#/components/schemas/ContentTypeList' + application/vnd.ibexa.api.ContentTypeList+json: + schema: + $ref: '#/components/schemas/ContentTypeListWrapper' + '401': + description: 'Error - The user has no permission to read the content types.' + summary: 'List content types' + description: 'Returns a list of content types.' + parameters: + - + name: Accept + in: header + description: 'If set, the list of content type info objects or content types (including Field definitions) is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/content/types/{contentTypeId}': + get: + operationId: api_contenttypes_contentTypeId_get + tags: + - Type + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ContentType+xml: + schema: + $ref: '#/components/schemas/ContentType' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14"> + <id>14</id> + <status>DEFINED</status> + <identifier>copy_of_article_14</identifier> + <names> + <value languageCode="eng-GB">Updated content type name</value> + </names> + <descriptions> + <value languageCode="eng-GB">This is an updated content type description</value> + </descriptions> + <creationDate>2019-02-06T10:56:36+01:00</creationDate> + <modificationDate>2019-02-25T12:15:51+01:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/14/groups"/> + <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14/draft"/> + <remoteId>d7ae816f22fe929e67a359a2ef6e7cde</remoteId> + <urlAliasSchema></urlAliasSchema> + <nameSchema><short_title|title></nameSchema> + <isContainer>true</isContainer> + <mainLanguageCode>eng-GB</mainLanguageCode> + <defaultAlwaysAvailable>false</defaultAlwaysAvailable> + <defaultSortField>PATH</defaultSortField> + <defaultSortOrder>ASC</defaultSortOrder> + <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/14/fieldDefinitions"> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/14/fieldDefinitions/188"> + <id>188</id> + <identifier>title</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup></fieldGroup> + <position>1</position> + <isTranslatable>true</isTranslatable> + <isRequired>true</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue>New article</defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Title</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength">255</value> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + </FieldDefinitions> + </ContentType> + application/vnd.ibexa.api.ContentType+json: + schema: + $ref: '#/components/schemas/ContentTypeWrapper' + example: + ContentType: + _media-type: application/vnd.ibexa.api.ContentType+json + _href: /api/ibexa/v2/content/types/2 + id: 2 + status: DEFINED + identifier: article + names: { value: [{ _languageCode: eng-GB, '#text': Article }] } + descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] } + creationDate: '2002-06-18T09:21:38+00:00' + modificationDate: '2021-06-28T11:31:22+00:00' + Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups } + Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft } + remoteId: c15b600eb9198b1924063b5a68758232 + urlAliasSchema: '' + nameSchema: '<short_title|title>' + isContainer: true + mainLanguageCode: eng-GB + defaultAlwaysAvailable: false + defaultSortField: PATH + defaultSortOrder: ASC + FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/1, id: 1, identifier: title, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: 'New article', isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/152, id: 152, identifier: short_title, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short title' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/153, id: 153, identifier: author, fieldType: ibexa_author, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: [], isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Author }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: { defaultAuthor: 1 }, validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/120, id: 120, identifier: intro, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Intro }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/121, id: 121, identifier: body, fieldType: ibexa_richtext, fieldGroup: '', position: 5, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Body }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/123, id: 123, identifier: enable_comments, fieldType: ibexa_boolean, fieldGroup: '', position: 6, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: false, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Enable comments' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/195, id: 195, identifier: image, fieldType: ibexa_image_asset, fieldGroup: content, position: 7, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: { destinationContentId: null, alternativeText: null, source: null }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Image }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }] } + '401': + description: 'Error - The user is not authorized to read this content type.' + '404': + description: 'Error - The content type does not exist.' + summary: 'Get content type' + description: 'Returns the content type with the provided ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the content type is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_contenttypes_contentTypeId_post + tags: + - Type + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.ContentTypeInfo+xml: + schema: + $ref: '#/components/schemas/ContentTypeInfo' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <ContentTypeInfo media-type="application/vnd.ibexa.api.ContentTypeInfo+xml" href="/api/ibexa/v2/content/types/14/draft"> + <id>14</id> + <status>DRAFT</status> + <identifier>new_content_type</identifier> + <names> + <value languageCode="eng-GB">Updated content type name</value> + </names> + <descriptions> + <value languageCode="eng-GB">This is an updated content type description</value> + </descriptions> + <creationDate>2019-02-06T10:56:36+01:00</creationDate> + <modificationDate>2019-02-25T12:15:51+01:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/14/groups"/> + <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14/draft"/> + <remoteId>d7ae816f22fe929e67a359a2ef6e7cde</remoteId> + <urlAliasSchema></urlAliasSchema> + <nameSchema><short_title|title></nameSchema> + <isContainer>true</isContainer> + <mainLanguageCode>eng-GB</mainLanguageCode> + <defaultAlwaysAvailable>false</defaultAlwaysAvailable> + <defaultSortField>PATH</defaultSortField> + <defaultSortOrder>ASC</defaultSortOrder> + </ContentTypeInfo> + application/vnd.ibexa.api.ContentTypeInfo+json: + schema: + $ref: '#/components/schemas/ContentTypeInfoWrapper' + example: + ContentTypeInfo: + _media-type: application/vnd.ibexa.api.ContentTypeInfo+json + _href: /api/ibexa/v2/content/types/2/draft + id: 2 + status: DRAFT + identifier: article + names: { value: [{ _languageCode: eng-GB, '#text': 'Updated content type name' }] } + descriptions: { value: [{ _languageCode: eng-GB, '#text': 'This is an updated content type description' }] } + creationDate: '2002-06-18T09:21:38+00:00' + modificationDate: '2021-08-11T11:58:24+00:00' + Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups } + Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft } + remoteId: c15b600eb9198b1924063b5a68758232 + urlAliasSchema: null + nameSchema: '<short_title|title>' + isContainer: true + mainLanguageCode: eng-GB + defaultAlwaysAvailable: true + defaultSortField: PATH + defaultSortOrder: ASC + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - The user is not authorized to create the draft.' + '403': + description: 'Error - A content type with the given new identifier already exists. A draft already exists.' + summary: 'Create Draft' + description: 'Creates a draft and updates it with the given data.' + parameters: + - + name: Accept + in: header + description: 'If set, the new content type draft is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The content type Update schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ContentTypeDraftCreateController resource' + content: + application/vnd.ibexa.api.ContentTypeUpdate+xml: + schema: + $ref: '#/components/schemas/ContentTypeUpdate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/types/content_type_id/POST/ContentTypeUpdate.xml.example' + application/vnd.ibexa.api.ContentTypeUpdate+json: + schema: + $ref: '#/components/schemas/ContentTypeUpdateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/types/content_type_id/POST/ContentTypeUpdate.json.example' + required: false + deprecated: false + delete: + operationId: api_contenttypes_contentTypeId_delete + tags: + - Type + responses: + '204': + description: 'No Content - content type deleted.' + '401': + description: 'Error - The user is not authorized to delete this content type.' + '403': + description: 'Error - There are object instances of this content type.' + '404': + description: 'Error - The content type does not exist.' + summary: 'Delete content type' + description: 'Deletes the provided content type.' + parameters: + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/content/types/{contentTypeId}/draft': + get: + operationId: api_contenttypes_contentTypeIddraft_get + tags: + - Type + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ContentType+xml: + schema: + $ref: '#/components/schemas/ContentType' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14"> + <id>14</id> + <status>DEFINED</status> + <identifier>copy_of_article_14</identifier> + <names> + <value languageCode="eng-GB">Updated content type name</value> + </names> + <descriptions> + <value languageCode="eng-GB">This is an updated content type description</value> + </descriptions> + <creationDate>2019-02-06T10:56:36+01:00</creationDate> + <modificationDate>2019-02-25T12:15:51+01:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/14/groups"/> + <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14/draft"/> + <remoteId>d7ae816f22fe929e67a359a2ef6e7cde</remoteId> + <urlAliasSchema></urlAliasSchema> + <nameSchema><short_title|title></nameSchema> + <isContainer>true</isContainer> + <mainLanguageCode>eng-GB</mainLanguageCode> + <defaultAlwaysAvailable>false</defaultAlwaysAvailable> + <defaultSortField>PATH</defaultSortField> + <defaultSortOrder>ASC</defaultSortOrder> + <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/14/fieldDefinitions"> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/14/fieldDefinitions/188"> + <id>188</id> + <identifier>title</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup></fieldGroup> + <position>1</position> + <isTranslatable>true</isTranslatable> + <isRequired>true</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue>New article</defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Title</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength">255</value> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + </FieldDefinitions> + </ContentType> + application/vnd.ibexa.api.ContentType+json: + schema: + $ref: '#/components/schemas/ContentTypeWrapper' + example: + ContentType: + _media-type: application/vnd.ibexa.api.ContentType+json + _href: /api/ibexa/v2/content/types/2 + id: 2 + status: DEFINED + identifier: article + names: { value: [{ _languageCode: eng-GB, '#text': Article }] } + descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] } + creationDate: '2002-06-18T09:21:38+00:00' + modificationDate: '2021-06-28T11:31:22+00:00' + Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups } + Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft } + remoteId: c15b600eb9198b1924063b5a68758232 + urlAliasSchema: '' + nameSchema: '<short_title|title>' + isContainer: true + mainLanguageCode: eng-GB + defaultAlwaysAvailable: false + defaultSortField: PATH + defaultSortOrder: ASC + FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/1, id: 1, identifier: title, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: 'New article', isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/152, id: 152, identifier: short_title, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short title' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/153, id: 153, identifier: author, fieldType: ibexa_author, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: [], isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Author }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: { defaultAuthor: 1 }, validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/120, id: 120, identifier: intro, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Intro }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/121, id: 121, identifier: body, fieldType: ibexa_richtext, fieldGroup: '', position: 5, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Body }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/123, id: 123, identifier: enable_comments, fieldType: ibexa_boolean, fieldGroup: '', position: 6, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: false, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Enable comments' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/195, id: 195, identifier: image, fieldType: ibexa_image_asset, fieldGroup: content, position: 7, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: { destinationContentId: null, alternativeText: null, source: null }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Image }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }] } + '401': + description: 'Error - The user is not authorized to read this content type.' + '404': + description: 'Error - The content type does not exist or does not have a draft.' + summary: 'Get content type draft' + description: 'Returns the draft of the content type with the provided ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the content type is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_contenttypes_contentTypeIddraft_delete + tags: + - Type + responses: + '204': + description: 'No Content - content type draft deleted.' + '401': + description: 'Error - The user is not authorized to delete this content type draft.' + '404': + description: 'Error - The content type draft does not exist.' + summary: 'Delete content type draft' + description: 'Deletes the provided content type draft.' + parameters: + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_contenttypes_contentTypeIddraft_patch + tags: + - Type + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ContentTypeInfo+xml: + schema: + $ref: '#/components/schemas/ContentTypeInfo' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <ContentTypeInfo media-type="application/vnd.ibexa.api.ContentTypeInfo+xml" href="/api/ibexa/v2/content/types/14/draft"> + <id>14</id> + <status>DRAFT</status> + <identifier>new_content_type</identifier> + <names> + <value languageCode="eng-GB">Updated content type name</value> + </names> + <descriptions> + <value languageCode="eng-GB">This is an updated content type description</value> + </descriptions> + <creationDate>2019-02-06T10:56:36+01:00</creationDate> + <modificationDate>2019-02-25T12:15:51+01:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/14/groups"/> + <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14/draft"/> + <remoteId>d7ae816f22fe929e67a359a2ef6e7cde</remoteId> + <urlAliasSchema></urlAliasSchema> + <nameSchema><short_title|title></nameSchema> + <isContainer>true</isContainer> + <mainLanguageCode>eng-GB</mainLanguageCode> + <defaultAlwaysAvailable>false</defaultAlwaysAvailable> + <defaultSortField>PATH</defaultSortField> + <defaultSortOrder>ASC</defaultSortOrder> + </ContentTypeInfo> + application/vnd.ibexa.api.ContentTypeInfo+json: + schema: + $ref: '#/components/schemas/ContentTypeInfoWrapper' + example: + ContentTypeInfo: + _media-type: application/vnd.ibexa.api.ContentTypeInfo+json + _href: /api/ibexa/v2/content/types/2/draft + id: 2 + status: DRAFT + identifier: article + names: { value: [{ _languageCode: eng-GB, '#text': 'Updated content type name' }] } + descriptions: { value: [{ _languageCode: eng-GB, '#text': 'This is an updated content type description' }] } + creationDate: '2002-06-18T09:21:38+00:00' + modificationDate: '2021-08-11T11:58:24+00:00' + Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups } + Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft } + remoteId: c15b600eb9198b1924063b5a68758232 + urlAliasSchema: null + nameSchema: '<short_title|title>' + isContainer: true + mainLanguageCode: eng-GB + defaultAlwaysAvailable: true + defaultSortField: PATH + defaultSortOrder: ASC + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - The user is not authorized to update the draft.' + '403': + description: 'Error - A content type with the given new identifier already exists.' + '404': + description: 'Error - There is no draft for this content type.' + summary: 'Update content type draft' + description: 'Updates metadata of a draft. This method does not handle Field definitions. PATCH or POST with header X-HTTP-Method-Override PATCH.' + parameters: + - + name: Accept + in: header + description: 'If set, the new content type draft is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The content type update schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated ContentTypeDraftUpdateController resource' + content: + application/vnd.ibexa.api.ContentTypeUpdate+xml: + schema: + $ref: '#/components/schemas/ContentTypeUpdate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/types/content_type_id/POST/ContentTypeUpdate.xml.example' + application/vnd.ibexa.api.ContentTypeUpdate+json: + schema: + $ref: '#/components/schemas/ContentTypeUpdateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/types/content_type_id/POST/ContentTypeUpdate.json.example' + required: false + deprecated: false + '/content/types/{contentTypeId}/draft/fieldDefinitions': + get: + operationId: api_contenttypes_contentTypeIddraftfieldDefinitions_get + tags: + - Type + responses: + '200': + description: 'OK - return a list of Field definitions.' + content: + application/vnd.ibexa.api.FieldDefinitionList+xml: + schema: + $ref: '#/components/schemas/FieldDefinitions' + application/vnd.ibexa.api.FieldDefinitionList+json: + schema: + $ref: '#/components/schemas/FieldDefinitionsWrapper' + '404': + description: 'Error - The content type draft does not exist.' + summary: 'Get Draft Field definition list' + description: 'Returns all Field definitions of the provided content type Draft.' + parameters: + - + name: Accept + in: header + description: 'If set, the Field definitions are returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_contenttypes_contentTypeIddraftfieldDefinitions_post + tags: + - Type + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.FieldDefinition+xml: + schema: + $ref: '#/components/schemas/FieldDefinition' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/195"> + <id>195</id> + <identifier>image</identifier> + <fieldType>ibexa_image_asset</fieldType> + <fieldGroup>content</fieldGroup> + <position>7</position> + <isTranslatable>false</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="destinationContentId"/> + <value key="alternativeText"/> + <value key="source"/> + </defaultValue> + <isSearchable>false</isSearchable> + <names> + <value languageCode="eng-GB">Image</value> + </names> + <descriptions> + <value languageCode="eng-GB"></value> + </descriptions> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + application/vnd.ibexa.api.FieldDefinition+json: + schema: + $ref: '#/components/schemas/FieldDefinitionWrapper' + example: + FieldDefinition: + _media-type: application/vnd.ibexa.api.FieldDefinition+json + _href: /api/ibexa/v2/content/types/2/fieldDefinitions/195 + id: 195 + identifier: image + fieldType: ibexa_image_asset + fieldGroup: content + position: 7 + isTranslatable: false + isRequired: false + isInfoCollector: false + defaultValue: { destinationContentId: null, alternativeText: null, source: null } + isSearchable: false + names: { value: [{ _languageCode: eng-GB, '#text': Image }] } + descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] } + fieldSettings: [] + validatorConfiguration: [] + '400': + description: 'Error - The input does not match the input schema definition or validation on the Field definition fails.' + '401': + description: 'Error - The user is not authorized to add a Field definition.' + '403': + description: "Error - A Field definition with the same identifier already exists in the given content type. The Field definition is of singular type, already existing in the given content type. The Field definition you want to add is of a type that can't be added to a content type that already has content instances." + summary: 'Add content type Draft Field definition' + description: 'Creates a new Field definition for the given content type.' + parameters: + - + name: Accept + in: header + description: 'If set, the new Field definition is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The Field Definition Create schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ContentTypeDraftFieldDefinitionAddController resource' + content: + application/vnd.ibexa.api.FieldDefinitionCreate+xml: + schema: + $ref: '#/components/schemas/FieldDefinitionCreate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/types/content_type_id/draft/field_definitions/POST/FieldDefinitionCreate.xml.example' + application/vnd.ibexa.api.FieldDefinitionCreate+json: + schema: + $ref: '#/components/schemas/FieldDefinitionCreateWrapper' + required: false + deprecated: false + '/content/types/{contentTypeId}/draft/fieldDefinitions/{fieldDefinitionId}': + get: + operationId: api_contenttypes_contentTypeIddraftfieldDefinitions_fieldDefinitionId_get + tags: + - Type + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.FieldDefinition+xml: + schema: + $ref: '#/components/schemas/FieldDefinition' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/195"> + <id>195</id> + <identifier>image</identifier> + <fieldType>ibexa_image_asset</fieldType> + <fieldGroup>content</fieldGroup> + <position>7</position> + <isTranslatable>false</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="destinationContentId"/> + <value key="alternativeText"/> + <value key="source"/> + </defaultValue> + <isSearchable>false</isSearchable> + <names> + <value languageCode="eng-GB">Image</value> + </names> + <descriptions> + <value languageCode="eng-GB"></value> + </descriptions> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + application/vnd.ibexa.api.FieldDefinition+json: + schema: + $ref: '#/components/schemas/FieldDefinitionWrapper' + example: + FieldDefinition: + _media-type: application/vnd.ibexa.api.FieldDefinition+json + _href: /api/ibexa/v2/content/types/2/fieldDefinitions/195 + id: 195 + identifier: image + fieldType: ibexa_image_asset + fieldGroup: content + position: 7 + isTranslatable: false + isRequired: false + isInfoCollector: false + defaultValue: { destinationContentId: null, alternativeText: null, source: null } + isSearchable: false + names: { value: [{ _languageCode: eng-GB, '#text': Image }] } + descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] } + fieldSettings: [] + validatorConfiguration: [] + '401': + description: 'Error - The user is not authorized to read the content type draft.' + '404': + description: 'Error - The content type or draft does not exist.' + summary: 'Get content type Draft Field definition' + description: 'Returns the Field definition by the given ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the Field definition is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: fieldDefinitionId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_contenttypes_contentTypeIddraftfieldDefinitions_fieldDefinitionId_delete + tags: + - Type + responses: + '204': + description: 'No Content - Field definition deleted.' + '401': + description: 'Error - The user is not authorized to delete this content type.' + '403': + description: 'Error - There is no draft of the content type assigned to the authenticated user.' + summary: 'Delete content type Draft Field definition' + description: 'Deletes the provided Field definition.' + parameters: + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: fieldDefinitionId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_contenttypes_contentTypeIddraftfieldDefinitions_fieldDefinitionId_patch + tags: + - Type + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.FieldDefinition+xml: + schema: + $ref: '#/components/schemas/FieldDefinition' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/195"> + <id>195</id> + <identifier>image</identifier> + <fieldType>ibexa_image_asset</fieldType> + <fieldGroup>content</fieldGroup> + <position>7</position> + <isTranslatable>false</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="destinationContentId"/> + <value key="alternativeText"/> + <value key="source"/> + </defaultValue> + <isSearchable>false</isSearchable> + <names> + <value languageCode="eng-GB">Image</value> + </names> + <descriptions> + <value languageCode="eng-GB"></value> + </descriptions> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + application/vnd.ibexa.api.FieldDefinition+json: + schema: + $ref: '#/components/schemas/FieldDefinitionWrapper' + example: + FieldDefinition: + _media-type: application/vnd.ibexa.api.FieldDefinition+json + _href: /api/ibexa/v2/content/types/2/fieldDefinitions/195 + id: 195 + identifier: image + fieldType: ibexa_image_asset + fieldGroup: content + position: 7 + isTranslatable: false + isRequired: false + isInfoCollector: false + defaultValue: { destinationContentId: null, alternativeText: null, source: null } + isSearchable: false + names: { value: [{ _languageCode: eng-GB, '#text': Image }] } + descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] } + fieldSettings: [] + validatorConfiguration: [] + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - The user is not authorized to update the Field definition.' + '403': + description: 'Error - A Field definition with the given identifier already exists in the given content type.' + summary: 'Update content type Draft Field definition' + description: 'Updates the attributes of a Field definition.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated Field definition is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The Field definition update schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: fieldDefinitionId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated ContentTypeDraftFieldDefinitionUpdateController resource' + content: + application/vnd.ibexa.api.FieldDefinitionUpdate+xml: + schema: + $ref: '#/components/schemas/FieldDefinitionUpdate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/types/content_type_id/draft/field_definitions/field_definition_id/PATCH/FieldDefinitionUpdate.xml.example' + application/vnd.ibexa.api.FieldDefinitionUpdate+json: + schema: + $ref: '#/components/schemas/FieldDefinitionUpdateWrapper' + required: false + deprecated: false + '/content/types/{contentTypeId}/fieldDefinitions': + get: + operationId: api_contenttypes_contentTypeIdfieldDefinitions_get + tags: + - Type + responses: + '200': + description: 'OK - return a list of Field definitions.' + content: + application/vnd.ibexa.api.FieldDefinitionList+xml: + schema: + $ref: '#/components/schemas/FieldDefinitions' + application/vnd.ibexa.api.FieldDefinitionList+json: + schema: + $ref: '#/components/schemas/FieldDefinitionsWrapper' + '404': + description: 'Error - The content type does not exist.' + summary: 'Get Field definition list' + description: 'Returns all Field definitions of the provided content type.' + parameters: + - + name: Accept + in: header + description: 'If set, the Field definitions are returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/content/types/{contentTypeId}/fieldDefinitions/{fieldDefinitionId}': + get: + operationId: api_contenttypes_contentTypeIdfieldDefinitions_fieldDefinitionId_get + tags: + - Type + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.FieldDefinition+xml: + schema: + $ref: '#/components/schemas/FieldDefinition' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/195"> + <id>195</id> + <identifier>image</identifier> + <fieldType>ibexa_image_asset</fieldType> + <fieldGroup>content</fieldGroup> + <position>7</position> + <isTranslatable>false</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="destinationContentId"/> + <value key="alternativeText"/> + <value key="source"/> + </defaultValue> + <isSearchable>false</isSearchable> + <names> + <value languageCode="eng-GB">Image</value> + </names> + <descriptions> + <value languageCode="eng-GB"></value> + </descriptions> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + application/vnd.ibexa.api.FieldDefinition+json: + schema: + $ref: '#/components/schemas/FieldDefinitionWrapper' + example: + FieldDefinition: + _media-type: application/vnd.ibexa.api.FieldDefinition+json + _href: /api/ibexa/v2/content/types/2/fieldDefinitions/195 + id: 195 + identifier: image + fieldType: ibexa_image_asset + fieldGroup: content + position: 7 + isTranslatable: false + isRequired: false + isInfoCollector: false + defaultValue: { destinationContentId: null, alternativeText: null, source: null } + isSearchable: false + names: { value: [{ _languageCode: eng-GB, '#text': Image }] } + descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] } + fieldSettings: [] + validatorConfiguration: [] + '401': + description: 'Error - The user is not authorized to read the content type.' + '404': + description: 'Error - The content type does not exist.' + summary: 'Get Field definition' + description: 'Returns the Field definition by the given ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the Field definition is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: fieldDefinitionId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/content/types/{contentTypeId}/groups': + get: + operationId: api_contenttypes_contentTypeIdgroups_get + tags: + - Type + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ContentTypeGroupRefList+xml: + schema: + $ref: '#/components/schemas/ContentTypeGroupRefList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <ContentTypeGroupRefList media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/typegroups/15/types"> + <ContentTypeGroupRef media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/1"> + <unlink href="/api/ibexa/v2/content/types/15/groups/1" method="DELETE"/> + </ContentTypeGroupRef> + <ContentTypeGroupRef media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/2"> + <unlink href="/api/ibexa/v2/content/types/15/groups/2" method="DELETE"/> + </ContentTypeGroupRef> + </ContentTypeGroupRefList> + application/vnd.ibexa.api.ContentTypeGroupRefList+json: + schema: + $ref: '#/components/schemas/ContentTypeGroupRefListWrapper' + example: + ContentTypeGroupRefList: + _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json + _href: /api/ibexa/v2/content/typegroups/2/types + ContentTypeGroupRef: [{ _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/1, unlink: { _href: /api/ibexa/v2/content/types/2/groups/1, _method: DELETE } }, { _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/2, unlink: { _href: /api/ibexa/v2/content/types/2/groups/2, _method: DELETE } }] + '401': + description: 'Error - The user is not authorized to read this content type.' + '404': + description: 'Error - The content type does not exist.' + summary: 'Get groups of content type' + description: 'Returns the content type group to which content type belongs to.' + parameters: + - + name: Accept + in: header + description: 'If set, the content type group list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_contenttypes_contentTypeIdgroups_post + tags: + - Type + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ContentTypeGroupRefList+xml: + schema: + $ref: '#/components/schemas/ContentTypeGroupRefList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <ContentTypeGroupRefList media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/typegroups/15/types"> + <ContentTypeGroupRef media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/1"> + <unlink href="/api/ibexa/v2/content/types/15/groups/1" method="DELETE"/> + </ContentTypeGroupRef> + <ContentTypeGroupRef media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/2"> + <unlink href="/api/ibexa/v2/content/types/15/groups/2" method="DELETE"/> + </ContentTypeGroupRef> + </ContentTypeGroupRefList> + application/vnd.ibexa.api.ContentTypeGroupRefList+json: + schema: + $ref: '#/components/schemas/ContentTypeGroupRefListWrapper' + example: + ContentTypeGroupRefList: + _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json + _href: /api/ibexa/v2/content/typegroups/2/types + ContentTypeGroupRef: [{ _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/1, unlink: { _href: /api/ibexa/v2/content/types/2/groups/1, _method: DELETE } }, { _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/2, unlink: { _href: /api/ibexa/v2/content/types/2/groups/2, _method: DELETE } }] + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - The user is not authorized to add a group.' + '403': + description: 'Error - The content type is already assigned to the group.' + summary: 'Link group to content type' + description: 'Links a content type group to the content type and returns the updated group list.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated content type group list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ContentTypeLinkToGroupController resource' + content: { } + required: false + deprecated: false + '/content/types/{contentTypeId}/groups/{id}': + delete: + operationId: api_contenttypes_contentTypeIdgroups_id_delete + tags: + - Type + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ContentTypeGroupRefList+xml: + schema: + $ref: '#/components/schemas/ContentTypeGroupRefList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <ContentTypeGroupRefList media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/typegroups/15/types"> + <ContentTypeGroupRef media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/1"> + <unlink href="/api/ibexa/v2/content/types/15/groups/1" method="DELETE"/> + </ContentTypeGroupRef> + <ContentTypeGroupRef media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/2"> + <unlink href="/api/ibexa/v2/content/types/15/groups/2" method="DELETE"/> + </ContentTypeGroupRef> + </ContentTypeGroupRefList> + application/vnd.ibexa.api.ContentTypeGroupRefList+json: + schema: + $ref: '#/components/schemas/ContentTypeGroupRefListWrapper' + example: + ContentTypeGroupRefList: + _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json + _href: /api/ibexa/v2/content/typegroups/2/types + ContentTypeGroupRef: [{ _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/1, unlink: { _href: /api/ibexa/v2/content/types/2/groups/1, _method: DELETE } }, { _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/2, unlink: { _href: /api/ibexa/v2/content/types/2/groups/2, _method: DELETE } }] + '401': + description: 'Error - The user is not authorized to delete this content type.' + '403': + description: 'Error - content type cannot be unlinked from the only remaining group.' + '404': + description: 'Error - The resource does not exist.' + '204': + description: 'ContentTypeUnlinkFromGroupController resource deleted' + summary: 'Unlink group from content type' + description: 'Removes the given group from the content type and returns the updated group list.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated content type group list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /content/typegroups: + get: + operationId: api_contenttypegroups_get + tags: + - 'Type Groups' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ContentTypeGroupList+xml: + schema: + $ref: '#/components/schemas/ContentTypeGroupList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <ContentTypeGroupList media-type="application/vnd.ibexa.api.ContentTypeGroupList+xml" href="/api/ibexa/v2/content/typegroups"> + <ContentTypeGroup media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/1"> + <id>1</id> + <identifier>Content</identifier> + <created>2002-09-05T11:08:48+02:00</created> + <modified>2002-10-06T18:35:06+02:00</modified> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <ContentTypes media-type="application/vnd.ibexa.api.ContentTypeInfoList+xml" href="/api/ibexa/v2/content/typegroups/1/types"/> + </ContentTypeGroup> + <ContentTypeGroup media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/2"> + <id>2</id> + <identifier>Users</identifier> + <created>2002-09-05T11:09:01+02:00</created> + <modified>2002-10-06T18:35:13+02:00</modified> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <ContentTypes media-type="application/vnd.ibexa.api.ContentTypeInfoList+xml" href="/api/ibexa/v2/content/typegroups/2/types"/> + </ContentTypeGroup> + <ContentTypeGroup media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/3"> + <id>3</id> + <identifier>Media</identifier> + <created>2002-09-14T15:22:23+02:00</created> + <modified>2002-10-06T18:35:20+02:00</modified> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <ContentTypes media-type="application/vnd.ibexa.api.ContentTypeInfoList+xml" href="/api/ibexa/v2/content/typegroups/3/types"/> + </ContentTypeGroup> + </ContentTypeGroupList> + application/vnd.ibexa.api.ContentTypeGroupList+json: + schema: + $ref: '#/components/schemas/ContentTypeGroupListWrapper' + example: + ContentTypeGroupList: + _media-type: application/vnd.ibexa.api.ContentTypeGroupList+json + _href: /api/ibexa/v2/content/typegroups + ContentTypeGroup: [{ _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/1, id: 1, identifier: Content, created: '2002-09-05T09:08:48+00:00', modified: '2002-10-06T16:35:06+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, ContentTypes: { _media-type: application/vnd.ibexa.api.ContentTypeInfoList+json, _href: /api/ibexa/v2/content/typegroups/1/types } }, { _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/2, id: 2, identifier: Users, created: '2002-09-05T09:09:01+00:00', modified: '2002-10-06T16:35:13+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, ContentTypes: { _media-type: application/vnd.ibexa.api.ContentTypeInfoList+json, _href: /api/ibexa/v2/content/typegroups/2/types } }, { _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/3, id: 3, identifier: Media, created: '2002-09-14T13:22:23+00:00', modified: '2002-10-06T16:35:20+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, ContentTypes: { _media-type: application/vnd.ibexa.api.ContentTypeInfoList+json, _href: /api/ibexa/v2/content/typegroups/3/types } }] + '307': + description: 'Temporary redirect.' + '401': + description: 'Error - The user has no permission to read content types.' + '404': + description: 'Error - The content type group with the given identifier does not exist.' + summary: 'Get content type groups' + description: 'Returns a list of all content type groups. If an identifier is provided, loads the content type group for this identifier.' + parameters: + - + name: Accept + in: header + description: 'If set, the content type group list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_contenttypegroups_post + tags: + - 'Type Groups' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.ContentTypeGroup+xml: + schema: + $ref: '#/components/schemas/ContentTypeGroup' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <ContentTypeGroup href="/content/typesgroups/7" media-type="application/vnd.ibexa.api.ContentTypeGroup+xml"> + <id>7</id> + <identifier>newContentTypeGroup</identifier> + <created>2012-02-31T12:45:00</created> + <modified>2012-02-31T12:45:00</modified> + <Creator href="/user/users/13" media-type="application/vnd.ibexa.api.User+xml"/> + <Modifier href="/user/users/13" media-type="application/vnd.ibexa.api.User+xml"/> + <ContentTypes href="/content/typegroups/7/types" media-type="application/vnd.ibexa.api.ContentTypeList+xml"/> + </ContentTypeGroup> + application/vnd.ibexa.api.ContentTypeGroup+json: + schema: + $ref: '#/components/schemas/ContentTypeGroupWrapper' + example: + ContentTypeGroup: + _media-type: application/vnd.ibexa.api.ContentTypeGroup+json + _href: /api/ibexa/v2/content/typegroups/4 + id: 4 + identifier: updatedIdentifer + created: '2021-08-11T09:44:18+00:00' + modified: '2021-08-11T10:10:04+00:00' + Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + ContentTypes: { _media-type: application/vnd.ibexa.api.ContentTypeInfoList+json, _href: /api/ibexa/v2/content/typegroups/6/types } + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - The user is not authorized to create this content type group.' + '403': + description: 'Error - A content type group with the same identifier already exists.' + summary: 'Create content type group' + description: 'Creates a new content type group.' + parameters: + - + name: Accept + in: header + description: 'If set, the new content type group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The content type group input schema encoded in XML or JSON.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ContentTypeGroupCreateController resource' + content: + application/vnd.ibexa.api.ContentTypeGroupInput+xml: + schema: + $ref: '#/components/schemas/ContentTypeGroupInput' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/typegroups/POST/ContentTypeGroupInput.xml.example' + application/vnd.ibexa.api.ContentTypeGroupInput+json: + schema: + $ref: '#/components/schemas/ContentTypeGroupInputWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/typegroups/POST/ContentTypeGroupInput.json.example' + required: false + deprecated: false + '/content/typegroups/{contentTypeGroupId}': + get: + operationId: api_contenttypegroups_contentTypeGroupId_get + tags: + - 'Type Groups' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ContentTypeGroup+xml: + schema: + $ref: '#/components/schemas/ContentTypeList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <ContentTypeList media-type="application/vnd.ibexa.api.ContentTypeList+xml" href="/api/ibexa/v2/content/typegroups/1/types"> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2"> + <id>2</id> + <status>DEFINED</status> + <identifier>article</identifier> + <names> + <value languageCode="eng-GB">Article</value> + </names> + <descriptions/> + <creationDate>2002-06-18T09:21:38+00:00</creationDate> + <modificationDate>2004-04-20T09:56:29+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/2/groups"/> + <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2/draft"/> + <remoteId>c15b600eb9198b1924063b5a68758232</remoteId> + <urlAliasSchema></urlAliasSchema> + <nameSchema><short_title|title></nameSchema> + <isContainer>true</isContainer> + <mainLanguageCode>eng-GB</mainLanguageCode> + <defaultAlwaysAvailable>false</defaultAlwaysAvailable> + <defaultSortField>PATH</defaultSortField> + <defaultSortOrder>ASC</defaultSortOrder> + <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions"> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/1"> + <id>1</id> + <identifier>title</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup></fieldGroup> + <position>1</position> + <isTranslatable>true</isTranslatable> + <isRequired>true</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue>New article</defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Title</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength">255</value> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/152"> + <id>152</id> + <identifier>short_title</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup></fieldGroup> + <position>2</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue/> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Short title</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength">255</value> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/153"> + <id>153</id> + <identifier>author</identifier> + <fieldType>ibexa_author</fieldType> + <fieldGroup></fieldGroup> + <position>3</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue/> + <isSearchable>false</isSearchable> + <names> + <value languageCode="eng-GB">Author</value> + </names> + <descriptions/> + <fieldSettings> + <value key="defaultAuthor">1</value> + </fieldSettings> + <validatorConfiguration/> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/120"> + <id>120</id> + <identifier>intro</identifier> + <fieldType>ibexa_richtext</fieldType> + <fieldGroup></fieldGroup> + <position>4</position> + <isTranslatable>true</isTranslatable> + <isRequired>true</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="xml"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + </value> + <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + </value> + </defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Intro</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/121"> + <id>121</id> + <identifier>body</identifier> + <fieldType>ibexa_richtext</fieldType> + <fieldGroup></fieldGroup> + <position>5</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="xml"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + </value> + <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + </value> + </defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Body</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/123"> + <id>123</id> + <identifier>enable_comments</identifier> + <fieldType>ibexa_boolean</fieldType> + <fieldGroup></fieldGroup> + <position>6</position> + <isTranslatable>false</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue>false</defaultValue> + <isSearchable>false</isSearchable> + <names> + <value languageCode="eng-GB">Enable comments</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/154"> + <id>154</id> + <identifier>image</identifier> + <fieldType>ibexa_object_relation</fieldType> + <fieldGroup></fieldGroup> + <position>7</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="destinationContentId"/> + </defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Image</value> + </names> + <descriptions/> + <fieldSettings> + <value key="selectionMethod">SELECTION_BROWSE</value> + <value key="selectionRoot"></value> + <value key="selectionContentTypes"/> + </fieldSettings> + <validatorConfiguration/> + </FieldDefinition> + </FieldDefinitions> + </ContentType> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1"> + <id>1</id> + <status>DEFINED</status> + <identifier>folder</identifier> + <names> + <value languageCode="eng-GB">Folder</value> + </names> + <descriptions/> + <creationDate>2002-06-18T09:21:38+00:00</creationDate> + <modificationDate>2015-11-29T21:14:32+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/1/groups"/> + <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1/draft"/> + <remoteId>a3d405b81be900468eb153d774f4f0d2</remoteId> + <urlAliasSchema></urlAliasSchema> + <nameSchema><short_name|name></nameSchema> + <isContainer>true</isContainer> + <mainLanguageCode>eng-GB</mainLanguageCode> + <defaultAlwaysAvailable>true</defaultAlwaysAvailable> + <defaultSortField>PATH</defaultSortField> + <defaultSortOrder>ASC</defaultSortOrder> + <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions"> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/4"> + <id>4</id> + <identifier>name</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup></fieldGroup> + <position>1</position> + <isTranslatable>true</isTranslatable> + <isRequired>true</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue>Folder</defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Name</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength">255</value> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/155"> + <id>155</id> + <identifier>short_name</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup></fieldGroup> + <position>2</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue/> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Short name</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength">100</value> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/119"> + <id>119</id> + <identifier>short_description</identifier> + <fieldType>ibexa_richtext</fieldType> + <fieldGroup></fieldGroup> + <position>3</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="xml"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + </value> + <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + </value> + </defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Short description</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/156"> + <id>156</id> + <identifier>description</identifier> + <fieldType>ibexa_richtext</fieldType> + <fieldGroup></fieldGroup> + <position>4</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="xml"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + </value> + <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + </value> + </defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Description</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + </FieldDefinitions> + </ContentType> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/43"> + <id>43</id> + <status>DEFINED</status> + <identifier>form</identifier> + <names> + <value languageCode="eng-GB">Form</value> + </names> + <descriptions/> + <creationDate>2018-09-17T06:46:13+00:00</creationDate> + <modificationDate>2018-09-17T06:47:14+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/43/groups"/> + <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/43/draft"/> + <remoteId>6f7f21df775a33c1e4bbc76b48c38476</remoteId> + <urlAliasSchema></urlAliasSchema> + <nameSchema><title></nameSchema> + <isContainer>false</isContainer> + <mainLanguageCode>eng-GB</mainLanguageCode> + <defaultAlwaysAvailable>true</defaultAlwaysAvailable> + <defaultSortField>PUBLISHED</defaultSortField> + <defaultSortOrder>DESC</defaultSortOrder> + <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/43/fieldDefinitions"> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/43/fieldDefinitions/188"> + <id>188</id> + <identifier>title</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup>content</fieldGroup> + <position>1</position> + <isTranslatable>true</isTranslatable> + <isRequired>true</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue/> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Title</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength"/> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/43/fieldDefinitions/189"> + <id>189</id> + <identifier>form</identifier> + <fieldType>ibexa_form</fieldType> + <fieldGroup>content</fieldGroup> + <position>2</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="fields"/> + <value key="content_id"/> + <value key="content_field_id"/> + <value key="language_code"/> + </defaultValue> + <isSearchable>false</isSearchable> + <names> + <value languageCode="eng-GB">Form</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + </FieldDefinitions> + </ContentType> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/42"> + <id>42</id> + <status>DEFINED</status> + <identifier>landing_page</identifier> + <names> + <value languageCode="eng-GB">Landing page</value> + </names> + <descriptions> + <value languageCode="eng-GB"></value> + </descriptions> + <creationDate>2015-07-03T12:00:26+00:00</creationDate> + <modificationDate>2015-07-03T12:00:26+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/42/groups"/> + <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/42/draft"/> + <remoteId>60c03e9758465eb69d56b3afb6adf18e</remoteId> + <urlAliasSchema></urlAliasSchema> + <nameSchema><name></nameSchema> + <isContainer>true</isContainer> + <mainLanguageCode>eng-GB</mainLanguageCode> + <defaultAlwaysAvailable>true</defaultAlwaysAvailable> + <defaultSortField>PUBLISHED</defaultSortField> + <defaultSortOrder>DESC</defaultSortOrder> + <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions"> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions/185"> + <id>185</id> + <identifier>name</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup>content</fieldGroup> + <position>10</position> + <isTranslatable>true</isTranslatable> + <isRequired>true</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue/> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Title</value> + </names> + <descriptions> + <value languageCode="eng-GB">Title</value> + </descriptions> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength"/> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions/186"> + <id>186</id> + <identifier>description</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup>content</fieldGroup> + <position>20</position> + <isTranslatable>true</isTranslatable> + <isRequired>true</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue/> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Description</value> + </names> + <descriptions> + <value languageCode="eng-GB">Landing page description</value> + </descriptions> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength"/> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions/187"> + <id>187</id> + <identifier>page</identifier> + <fieldType>ibexa_landing_page</fieldType> + <fieldGroup>content</fieldGroup> + <position>30</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="layout">default</value> + <value key="zones"> + <value> + <value key="id">default_id</value> + <value key="name">default</value> + <value key="blocks"/></value> + </value> + </defaultValue> + <isSearchable>false</isSearchable> + <names> + <value languageCode="eng-GB">Landing page</value> + </names> + <descriptions> + <value languageCode="eng-GB">Landing page</value> + </descriptions> + <fieldSettings> + <value key="availableBlocks"/> + <value key="availableLayouts"/> + <value key="editorMode">page_view_mode</value> + </fieldSettings> + <validatorConfiguration/> + </FieldDefinition> + </FieldDefinitions> + </ContentType> + </ContentTypeList> + application/vnd.ibexa.api.ContentTypeGroup+json: + schema: + $ref: '#/components/schemas/ContentTypeListWrapper' + example: + ContentTypeList: + _media-type: application/vnd.ibexa.api.ContentTypeList+json + _href: /api/ibexa/v2/content/typegroups/1/types + ContentType: [{ _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2, id: 2, status: DEFINED, identifier: article, names: { value: [{ _languageCode: eng-GB, '#text': Article }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2004-04-20T09:56:29+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft }, remoteId: c15b600eb9198b1924063b5a68758232, urlAliasSchema: null, nameSchema: '<short_title|title>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: false, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/1, id: 1, identifier: title, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: 'New article', isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/152, id: 152, identifier: short_title, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short title' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/153, id: 153, identifier: author, fieldType: ibexa_author, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: [], isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Author }] }, descriptions: { value: [] }, fieldSettings: { defaultAuthor: 1 }, validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/120, id: 120, identifier: intro, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Intro }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/121, id: 121, identifier: body, fieldType: ibexa_richtext, fieldGroup: '', position: 5, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Body }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/123, id: 123, identifier: enable_comments, fieldType: ibexa_boolean, fieldGroup: '', position: 6, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: false, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Enable comments' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/154, id: 154, identifier: image, fieldType: ibexa_object_relation, fieldGroup: '', position: 7, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { destinationContentId: null }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Image }] }, descriptions: { value: [] }, fieldSettings: { selectionMethod: SELECTION_BROWSE, selectionRoot: '', selectionContentTypes: [] }, validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1, id: 1, status: DEFINED, identifier: folder, names: { value: [{ _languageCode: eng-GB, '#text': Folder }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2015-11-29T21:14:32+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/1/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1/draft }, remoteId: a3d405b81be900468eb153d774f4f0d2, urlAliasSchema: null, nameSchema: '<short_name|name>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/4, id: 4, identifier: name, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: Folder, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Name }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/155, id: 155, identifier: short_name, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short name' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 100, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/119, id: 119, identifier: short_description, fieldType: ibexa_richtext, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short description' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/156, id: 156, identifier: description, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43, id: 43, status: DEFINED, identifier: form, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, creationDate: '2018-09-17T06:46:13+00:00', modificationDate: '2018-09-17T06:47:14+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/43/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43/draft }, remoteId: 6f7f21df775a33c1e4bbc76b48c38476, urlAliasSchema: '', nameSchema: '<title>', isContainer: false, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/188, id: 188, identifier: title, fieldType: ibexa_string, fieldGroup: content, position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/189, id: 189, identifier: form, fieldType: ibexa_form, fieldGroup: content, position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { fields: [], content_id: null, content_field_id: null, language_code: null }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42, id: 42, status: DEFINED, identifier: landing_page, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] }, creationDate: '2015-07-03T12:00:26+00:00', modificationDate: '2015-07-03T12:00:26+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/42/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42/draft }, remoteId: 60c03e9758465eb69d56b3afb6adf18e, urlAliasSchema: '', nameSchema: '<name>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/185, id: 185, identifier: name, fieldType: ibexa_string, fieldGroup: content, position: 10, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': Title }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/186, id: 186, identifier: description, fieldType: ibexa_string, fieldGroup: content, position: 20, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page description' }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/187, id: 187, identifier: page, fieldType: ibexa_landing_page, fieldGroup: content, position: 30, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { layout: default, zones: [{ id: default_id, name: default, blocks: [] }] }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, fieldSettings: { availableBlocks: null, availableLayouts: null, editorMode: page_view_mode }, validatorConfiguration: [] }] } }] + '401': + description: 'Error - The user is not authorized to read this content type group.' + '404': + description: 'Error - The content type group does not exist.' + summary: 'Get content type group' + description: 'Returns the content type group with provided ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the content type group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeGroupId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_contenttypegroups_contentTypeGroupId_delete + tags: + - 'Type Groups' + responses: + '204': + description: 'No Content - content type group deleted.' + '401': + description: 'Error - The user is not authorized to delete this content type group.' + '403': + description: 'Error - The content type group is not empty.' + '404': + description: 'Error - The content type group does not exist.' + summary: 'Delete content type group' + description: 'Deletes the provided content type group.' + parameters: + - + name: contentTypeGroupId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_contenttypegroups_contentTypeGroupId_patch + tags: + - 'Type Groups' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ContentTypeGroup+xml: + schema: + $ref: '#/components/schemas/ContentTypeGroup' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <ContentTypeGroup href="/content/typesgroups/7" media-type="application/vnd.ibexa.api.ContentTypeGroup+xml"> + <id>7</id> + <identifier>newContentTypeGroup</identifier> + <created>2012-02-31T12:45:00</created> + <modified>2012-02-31T12:45:00</modified> + <Creator href="/user/users/13" media-type="application/vnd.ibexa.api.User+xml"/> + <Modifier href="/user/users/13" media-type="application/vnd.ibexa.api.User+xml"/> + <ContentTypes href="/content/typegroups/7/types" media-type="application/vnd.ibexa.api.ContentTypeList+xml"/> + </ContentTypeGroup> + application/vnd.ibexa.api.ContentTypeGroup+json: + schema: + $ref: '#/components/schemas/ContentTypeGroupWrapper' + example: + ContentTypeGroup: + _media-type: application/vnd.ibexa.api.ContentTypeGroup+json + _href: /api/ibexa/v2/content/typegroups/4 + id: 4 + identifier: updatedIdentifer + created: '2021-08-11T09:44:18+00:00' + modified: '2021-08-11T10:10:04+00:00' + Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + ContentTypes: { _media-type: application/vnd.ibexa.api.ContentTypeInfoList+json, _href: /api/ibexa/v2/content/typegroups/6/types } + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - The user is not authorized to create this content type group.' + '403': + description: 'Error - A content type group with the given identifier already exists.' + '412': + description: 'Error - The current ETag does not match the one provided in the If-Match header.' + summary: 'Update content type group' + description: 'Updates a content type group. PATCH or POST with header X-HTTP-Method-Override PATCH.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated content type group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The content type group input schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-Match + in: header + description: 'ETag causes patching only if the specified ETag is the current one. Otherwise a 412 is returned.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeGroupId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated ContentTypeGroupUpdateController resource' + content: + application/vnd.ibexa.api.ContentTypeGroupInput+xml: + schema: + $ref: '#/components/schemas/ContentTypeGroupInput' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/typegroups/POST/ContentTypeGroupInput.xml.example' + application/vnd.ibexa.api.ContentTypeGroupInput+json: + schema: + $ref: '#/components/schemas/ContentTypeGroupInputWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/typegroups/POST/ContentTypeGroupInput.json.example' + required: false + deprecated: false + '/content/typegroups/{contentTypeGroupId}/types': + get: + operationId: api_contenttypegroups_contentTypeGroupIdtypes_get + tags: + - 'Type Groups' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.ContentTypeInfoList+xml: + schema: + $ref: '#/components/schemas/ContentTypeInfoList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <ContentTypeInfoList media-type="application/vnd.ibexa.api.ContentTypeInfoList+xml" href="/api/ibexa/v2/content/typegroups/1/types"> + <ContentTypeInfo media-type="application/vnd.ibexa.api.ContentTypeInfo+xml" href="/api/ibexa/v2/content/types/2"> + <id>2</id> + <status>DEFINED</status> + <identifier>article</identifier> + <names> + <value languageCode="eng-GB">Article</value> + </names> + <descriptions/> + <creationDate>2002-06-18T11:21:38+02:00</creationDate> + <modificationDate>2004-04-20T11:56:29+02:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/2/groups"/> + <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2/draft"/> + <remoteId>c15b600eb9198b1924063b5a68758232</remoteId> + <urlAliasSchema></urlAliasSchema> + <nameSchema><short_title|title></nameSchema> + <isContainer>true</isContainer> + <mainLanguageCode>eng-GB</mainLanguageCode> + <defaultAlwaysAvailable>false</defaultAlwaysAvailable> + <defaultSortField>PATH</defaultSortField> + <defaultSortOrder>ASC</defaultSortOrder> + </ContentTypeInfo> + <ContentTypeInfo media-type="application/vnd.ibexa.api.ContentTypeInfo+xml" href="/api/ibexa/v2/content/types/1"> + <id>1</id> + <status>DEFINED</status> + <identifier>folder</identifier> + <names> + <value languageCode="eng-GB">Folder</value> + </names> + <descriptions/> + <creationDate>2002-06-18T11:21:38+02:00</creationDate> + <modificationDate>2015-11-29T22:14:32+01:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/1/groups"/> + <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1/draft"/> + <remoteId>a3d405b81be900468eb153d774f4f0d2</remoteId> + <urlAliasSchema></urlAliasSchema> + <nameSchema><short_name|name></nameSchema> + <isContainer>true</isContainer> + <mainLanguageCode>eng-GB</mainLanguageCode> + <defaultAlwaysAvailable>true</defaultAlwaysAvailable> + <defaultSortField>PATH</defaultSortField> + <defaultSortOrder>ASC</defaultSortOrder> + </ContentTypeInfo> + </ContentTypeInfoList> + application/vnd.ibexa.api.ContentTypeInfoList+json: + schema: + $ref: '#/components/schemas/ContentTypeInfoListWrapper' + example: + ContentTypeList: + _media-type: application/vnd.ibexa.api.ContentTypeList+json + _href: /api/ibexa/v2/content/typegroups/1/types + ContentType: [{ _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2, id: 2, status: DEFINED, identifier: article, names: { value: [{ _languageCode: eng-GB, '#text': Article }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2004-04-20T09:56:29+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft }, remoteId: c15b600eb9198b1924063b5a68758232, urlAliasSchema: null, nameSchema: '<short_title|title>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: false, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/1, id: 1, identifier: title, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: 'New article', isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/152, id: 152, identifier: short_title, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short title' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/153, id: 153, identifier: author, fieldType: ibexa_author, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: [], isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Author }] }, descriptions: { value: [] }, fieldSettings: { defaultAuthor: 1 }, validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/120, id: 120, identifier: intro, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Intro }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/121, id: 121, identifier: body, fieldType: ibexa_richtext, fieldGroup: '', position: 5, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Body }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/123, id: 123, identifier: enable_comments, fieldType: ibexa_boolean, fieldGroup: '', position: 6, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: false, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Enable comments' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/154, id: 154, identifier: image, fieldType: ibexa_object_relation, fieldGroup: '', position: 7, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { destinationContentId: null }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Image }] }, descriptions: { value: [] }, fieldSettings: { selectionMethod: SELECTION_BROWSE, selectionRoot: '', selectionContentTypes: [] }, validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1, id: 1, status: DEFINED, identifier: folder, names: { value: [{ _languageCode: eng-GB, '#text': Folder }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2015-11-29T21:14:32+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/1/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1/draft }, remoteId: a3d405b81be900468eb153d774f4f0d2, urlAliasSchema: null, nameSchema: '<short_name|name>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/4, id: 4, identifier: name, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: Folder, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Name }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/155, id: 155, identifier: short_name, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short name' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 100, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/119, id: 119, identifier: short_description, fieldType: ibexa_richtext, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short description' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/156, id: 156, identifier: description, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43, id: 43, status: DEFINED, identifier: form, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, creationDate: '2018-09-17T06:46:13+00:00', modificationDate: '2018-09-17T06:47:14+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/43/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43/draft }, remoteId: 6f7f21df775a33c1e4bbc76b48c38476, urlAliasSchema: '', nameSchema: '<title>', isContainer: false, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/188, id: 188, identifier: title, fieldType: ibexa_string, fieldGroup: content, position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/189, id: 189, identifier: form, fieldType: ibexa_form, fieldGroup: content, position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { fields: [], content_id: null, content_field_id: null, language_code: null }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42, id: 42, status: DEFINED, identifier: landing_page, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] }, creationDate: '2015-07-03T12:00:26+00:00', modificationDate: '2015-07-03T12:00:26+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/42/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42/draft }, remoteId: 60c03e9758465eb69d56b3afb6adf18e, urlAliasSchema: '', nameSchema: '<name>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/185, id: 185, identifier: name, fieldType: ibexa_string, fieldGroup: content, position: 10, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': Title }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/186, id: 186, identifier: description, fieldType: ibexa_string, fieldGroup: content, position: 20, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page description' }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/187, id: 187, identifier: page, fieldType: ibexa_landing_page, fieldGroup: content, position: 30, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { layout: default, zones: [{ id: default_id, name: default, blocks: [] }] }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, fieldSettings: { availableBlocks: null, availableLayouts: null, editorMode: page_view_mode }, validatorConfiguration: [] }] } }] + application/vnd.ibexa.api.ContentTypeList+xml: + schema: + $ref: '#/components/schemas/ContentTypeList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <ContentTypeList media-type="application/vnd.ibexa.api.ContentTypeList+xml" href="/api/ibexa/v2/content/typegroups/1/types"> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2"> + <id>2</id> + <status>DEFINED</status> + <identifier>article</identifier> + <names> + <value languageCode="eng-GB">Article</value> + </names> + <descriptions/> + <creationDate>2002-06-18T09:21:38+00:00</creationDate> + <modificationDate>2004-04-20T09:56:29+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/2/groups"/> + <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2/draft"/> + <remoteId>c15b600eb9198b1924063b5a68758232</remoteId> + <urlAliasSchema></urlAliasSchema> + <nameSchema><short_title|title></nameSchema> + <isContainer>true</isContainer> + <mainLanguageCode>eng-GB</mainLanguageCode> + <defaultAlwaysAvailable>false</defaultAlwaysAvailable> + <defaultSortField>PATH</defaultSortField> + <defaultSortOrder>ASC</defaultSortOrder> + <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions"> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/1"> + <id>1</id> + <identifier>title</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup></fieldGroup> + <position>1</position> + <isTranslatable>true</isTranslatable> + <isRequired>true</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue>New article</defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Title</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength">255</value> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/152"> + <id>152</id> + <identifier>short_title</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup></fieldGroup> + <position>2</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue/> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Short title</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength">255</value> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/153"> + <id>153</id> + <identifier>author</identifier> + <fieldType>ibexa_author</fieldType> + <fieldGroup></fieldGroup> + <position>3</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue/> + <isSearchable>false</isSearchable> + <names> + <value languageCode="eng-GB">Author</value> + </names> + <descriptions/> + <fieldSettings> + <value key="defaultAuthor">1</value> + </fieldSettings> + <validatorConfiguration/> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/120"> + <id>120</id> + <identifier>intro</identifier> + <fieldType>ibexa_richtext</fieldType> + <fieldGroup></fieldGroup> + <position>4</position> + <isTranslatable>true</isTranslatable> + <isRequired>true</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="xml"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + </value> + <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + </value> + </defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Intro</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/121"> + <id>121</id> + <identifier>body</identifier> + <fieldType>ibexa_richtext</fieldType> + <fieldGroup></fieldGroup> + <position>5</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="xml"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + </value> + <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + </value> + </defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Body</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/123"> + <id>123</id> + <identifier>enable_comments</identifier> + <fieldType>ibexa_boolean</fieldType> + <fieldGroup></fieldGroup> + <position>6</position> + <isTranslatable>false</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue>false</defaultValue> + <isSearchable>false</isSearchable> + <names> + <value languageCode="eng-GB">Enable comments</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/154"> + <id>154</id> + <identifier>image</identifier> + <fieldType>ibexa_object_relation</fieldType> + <fieldGroup></fieldGroup> + <position>7</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="destinationContentId"/> + </defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Image</value> + </names> + <descriptions/> + <fieldSettings> + <value key="selectionMethod">SELECTION_BROWSE</value> + <value key="selectionRoot"></value> + <value key="selectionContentTypes"/> + </fieldSettings> + <validatorConfiguration/> + </FieldDefinition> + </FieldDefinitions> + </ContentType> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1"> + <id>1</id> + <status>DEFINED</status> + <identifier>folder</identifier> + <names> + <value languageCode="eng-GB">Folder</value> + </names> + <descriptions/> + <creationDate>2002-06-18T09:21:38+00:00</creationDate> + <modificationDate>2015-11-29T21:14:32+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/1/groups"/> + <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1/draft"/> + <remoteId>a3d405b81be900468eb153d774f4f0d2</remoteId> + <urlAliasSchema></urlAliasSchema> + <nameSchema><short_name|name></nameSchema> + <isContainer>true</isContainer> + <mainLanguageCode>eng-GB</mainLanguageCode> + <defaultAlwaysAvailable>true</defaultAlwaysAvailable> + <defaultSortField>PATH</defaultSortField> + <defaultSortOrder>ASC</defaultSortOrder> + <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions"> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/4"> + <id>4</id> + <identifier>name</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup></fieldGroup> + <position>1</position> + <isTranslatable>true</isTranslatable> + <isRequired>true</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue>Folder</defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Name</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength">255</value> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/155"> + <id>155</id> + <identifier>short_name</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup></fieldGroup> + <position>2</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue/> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Short name</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength">100</value> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/119"> + <id>119</id> + <identifier>short_description</identifier> + <fieldType>ibexa_richtext</fieldType> + <fieldGroup></fieldGroup> + <position>3</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="xml"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + </value> + <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + </value> + </defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Short description</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/156"> + <id>156</id> + <identifier>description</identifier> + <fieldType>ibexa_richtext</fieldType> + <fieldGroup></fieldGroup> + <position>4</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="xml"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> + </value> + <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> + <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> + </value> + </defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Description</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + </FieldDefinitions> + </ContentType> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/43"> + <id>43</id> + <status>DEFINED</status> + <identifier>form</identifier> + <names> + <value languageCode="eng-GB">Form</value> + </names> + <descriptions/> + <creationDate>2018-09-17T06:46:13+00:00</creationDate> + <modificationDate>2018-09-17T06:47:14+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/43/groups"/> + <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/43/draft"/> + <remoteId>6f7f21df775a33c1e4bbc76b48c38476</remoteId> + <urlAliasSchema></urlAliasSchema> + <nameSchema><title></nameSchema> + <isContainer>false</isContainer> + <mainLanguageCode>eng-GB</mainLanguageCode> + <defaultAlwaysAvailable>true</defaultAlwaysAvailable> + <defaultSortField>PUBLISHED</defaultSortField> + <defaultSortOrder>DESC</defaultSortOrder> + <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/43/fieldDefinitions"> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/43/fieldDefinitions/188"> + <id>188</id> + <identifier>title</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup>content</fieldGroup> + <position>1</position> + <isTranslatable>true</isTranslatable> + <isRequired>true</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue/> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Title</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength"/> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/43/fieldDefinitions/189"> + <id>189</id> + <identifier>form</identifier> + <fieldType>ibexa_form</fieldType> + <fieldGroup>content</fieldGroup> + <position>2</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="fields"/> + <value key="content_id"/> + <value key="content_field_id"/> + <value key="language_code"/> + </defaultValue> + <isSearchable>false</isSearchable> + <names> + <value languageCode="eng-GB">Form</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration/> + </FieldDefinition> + </FieldDefinitions> + </ContentType> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/42"> + <id>42</id> + <status>DEFINED</status> + <identifier>landing_page</identifier> + <names> + <value languageCode="eng-GB">Landing page</value> + </names> + <descriptions> + <value languageCode="eng-GB"></value> + </descriptions> + <creationDate>2015-07-03T12:00:26+00:00</creationDate> + <modificationDate>2015-07-03T12:00:26+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/42/groups"/> + <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/42/draft"/> + <remoteId>60c03e9758465eb69d56b3afb6adf18e</remoteId> + <urlAliasSchema></urlAliasSchema> + <nameSchema><name></nameSchema> + <isContainer>true</isContainer> + <mainLanguageCode>eng-GB</mainLanguageCode> + <defaultAlwaysAvailable>true</defaultAlwaysAvailable> + <defaultSortField>PUBLISHED</defaultSortField> + <defaultSortOrder>DESC</defaultSortOrder> + <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions"> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions/185"> + <id>185</id> + <identifier>name</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup>content</fieldGroup> + <position>10</position> + <isTranslatable>true</isTranslatable> + <isRequired>true</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue/> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Title</value> + </names> + <descriptions> + <value languageCode="eng-GB">Title</value> + </descriptions> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength"/> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions/186"> + <id>186</id> + <identifier>description</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup>content</fieldGroup> + <position>20</position> + <isTranslatable>true</isTranslatable> + <isRequired>true</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue/> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Description</value> + </names> + <descriptions> + <value languageCode="eng-GB">Landing page description</value> + </descriptions> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength"/> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions/187"> + <id>187</id> + <identifier>page</identifier> + <fieldType>ibexa_landing_page</fieldType> + <fieldGroup>content</fieldGroup> + <position>30</position> + <isTranslatable>true</isTranslatable> + <isRequired>false</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue> + <value key="layout">default</value> + <value key="zones"> + <value> + <value key="id">default_id</value> + <value key="name">default</value> + <value key="blocks"/></value> + </value> + </defaultValue> + <isSearchable>false</isSearchable> + <names> + <value languageCode="eng-GB">Landing page</value> + </names> + <descriptions> + <value languageCode="eng-GB">Landing page</value> + </descriptions> + <fieldSettings> + <value key="availableBlocks"/> + <value key="availableLayouts"/> + <value key="editorMode">page_view_mode</value> + </fieldSettings> + <validatorConfiguration/> + </FieldDefinition> + </FieldDefinitions> + </ContentType> + </ContentTypeList> + application/vnd.ibexa.api.ContentTypeList+json: + schema: + $ref: '#/components/schemas/ContentTypeListWrapper' + example: + ContentTypeList: + _media-type: application/vnd.ibexa.api.ContentTypeList+json + _href: /api/ibexa/v2/content/typegroups/1/types + ContentType: [{ _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2, id: 2, status: DEFINED, identifier: article, names: { value: [{ _languageCode: eng-GB, '#text': Article }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2004-04-20T09:56:29+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft }, remoteId: c15b600eb9198b1924063b5a68758232, urlAliasSchema: null, nameSchema: '<short_title|title>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: false, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/1, id: 1, identifier: title, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: 'New article', isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/152, id: 152, identifier: short_title, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short title' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/153, id: 153, identifier: author, fieldType: ibexa_author, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: [], isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Author }] }, descriptions: { value: [] }, fieldSettings: { defaultAuthor: 1 }, validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/120, id: 120, identifier: intro, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Intro }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/121, id: 121, identifier: body, fieldType: ibexa_richtext, fieldGroup: '', position: 5, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Body }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/123, id: 123, identifier: enable_comments, fieldType: ibexa_boolean, fieldGroup: '', position: 6, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: false, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Enable comments' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/154, id: 154, identifier: image, fieldType: ibexa_object_relation, fieldGroup: '', position: 7, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { destinationContentId: null }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Image }] }, descriptions: { value: [] }, fieldSettings: { selectionMethod: SELECTION_BROWSE, selectionRoot: '', selectionContentTypes: [] }, validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1, id: 1, status: DEFINED, identifier: folder, names: { value: [{ _languageCode: eng-GB, '#text': Folder }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2015-11-29T21:14:32+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/1/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1/draft }, remoteId: a3d405b81be900468eb153d774f4f0d2, urlAliasSchema: null, nameSchema: '<short_name|name>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/4, id: 4, identifier: name, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: Folder, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Name }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/155, id: 155, identifier: short_name, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short name' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 100, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/119, id: 119, identifier: short_description, fieldType: ibexa_richtext, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short description' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/156, id: 156, identifier: description, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43, id: 43, status: DEFINED, identifier: form, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, creationDate: '2018-09-17T06:46:13+00:00', modificationDate: '2018-09-17T06:47:14+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/43/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43/draft }, remoteId: 6f7f21df775a33c1e4bbc76b48c38476, urlAliasSchema: '', nameSchema: '<title>', isContainer: false, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/188, id: 188, identifier: title, fieldType: ibexa_string, fieldGroup: content, position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/189, id: 189, identifier: form, fieldType: ibexa_form, fieldGroup: content, position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { fields: [], content_id: null, content_field_id: null, language_code: null }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42, id: 42, status: DEFINED, identifier: landing_page, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] }, creationDate: '2015-07-03T12:00:26+00:00', modificationDate: '2015-07-03T12:00:26+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/42/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42/draft }, remoteId: 60c03e9758465eb69d56b3afb6adf18e, urlAliasSchema: '', nameSchema: '<name>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/185, id: 185, identifier: name, fieldType: ibexa_string, fieldGroup: content, position: 10, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': Title }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/186, id: 186, identifier: description, fieldType: ibexa_string, fieldGroup: content, position: 20, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page description' }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/187, id: 187, identifier: page, fieldType: ibexa_landing_page, fieldGroup: content, position: 30, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { layout: default, zones: [{ id: default_id, name: default, blocks: [] }] }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, fieldSettings: { availableBlocks: null, availableLayouts: null, editorMode: page_view_mode }, validatorConfiguration: [] }] } }] + '401': + description: 'Error - The user has no permission to read the content types.' + summary: 'List content types for group' + description: 'Returns a list of content types in the provided group.' + parameters: + - + name: Accept + in: header + description: 'If set, the list of content type info objects or content types (including Field definitions) is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeGroupId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_contenttypegroups_contentTypeGroupIdtypes_post + tags: + - 'Type Groups' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.ContentType+xml: + schema: + $ref: '#/components/schemas/ContentType' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14"> + <id>14</id> + <status>DEFINED</status> + <identifier>copy_of_article_14</identifier> + <names> + <value languageCode="eng-GB">Updated content type name</value> + </names> + <descriptions> + <value languageCode="eng-GB">This is an updated content type description</value> + </descriptions> + <creationDate>2019-02-06T10:56:36+01:00</creationDate> + <modificationDate>2019-02-25T12:15:51+01:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/14/groups"/> + <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14/draft"/> + <remoteId>d7ae816f22fe929e67a359a2ef6e7cde</remoteId> + <urlAliasSchema></urlAliasSchema> + <nameSchema><short_title|title></nameSchema> + <isContainer>true</isContainer> + <mainLanguageCode>eng-GB</mainLanguageCode> + <defaultAlwaysAvailable>false</defaultAlwaysAvailable> + <defaultSortField>PATH</defaultSortField> + <defaultSortOrder>ASC</defaultSortOrder> + <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/14/fieldDefinitions"> + <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/14/fieldDefinitions/188"> + <id>188</id> + <identifier>title</identifier> + <fieldType>ibexa_string</fieldType> + <fieldGroup></fieldGroup> + <position>1</position> + <isTranslatable>true</isTranslatable> + <isRequired>true</isRequired> + <isInfoCollector>false</isInfoCollector> + <defaultValue>New article</defaultValue> + <isSearchable>true</isSearchable> + <names> + <value languageCode="eng-GB">Title</value> + </names> + <descriptions/> + <fieldSettings/> + <validatorConfiguration> + <value key="StringLengthValidator"> + <value key="maxStringLength">255</value> + <value key="minStringLength"/></value> + </validatorConfiguration> + </FieldDefinition> + </FieldDefinitions> + </ContentType> + application/vnd.ibexa.api.ContentType+json: + schema: + $ref: '#/components/schemas/ContentTypeWrapper' + '400': + description: 'Error - The input does not match the input schema definition. Validation on a Field definition fails. Validation of the content type fails, e.g. multiple Fields of a same singular Field Type are provided. Publish is set to true and the input is not complete e.g. no Field definitions are provided.' + '401': + description: 'Error - The user is not authorized to create this content type.' + '403': + description: 'Error - A content type with same identifier already exists.' + summary: 'Create content type' + description: 'Creates a new content type draft in the given content type group.' + parameters: + - + name: Accept + in: header + description: 'If set, the new content type or draft is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The content type Create schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: contentTypeGroupId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new ContentTypeCreateController resource' + content: + application/vnd.ibexa.api.ContentTypeCreate+xml: + schema: + $ref: '#/components/schemas/ContentTypeCreate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/typegroups/content_type_group_id/types/POST/ContentTypeCreate.xml.example' + application/vnd.ibexa.api.ContentTypeCreate+json: + schema: + $ref: '#/components/schemas/ContentTypeCreateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/typegroups/content_type_group_id/types/POST/ContentTypeCreate.json.example' + required: false + deprecated: false + /content/urlaliases: + get: + operationId: api_contenturlaliases_get + tags: + - 'Url Alias' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.UrlAliasRefList+xml: + schema: + $ref: '#/components/schemas/UrlAliasRefList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UrlAliasRefList media-type="application/vnd.ibexa.api.UrlAliasRefList+xml" href="/api/ibexa/v2/content/urlaliases"> + <UrlAlias media-type="application/vnd.ibexa.api.UrlAlias+xml" href="/api/ibexa/v2/content/urlaliases/0-2cecdff5f90b8595d76b68c417b09f36" /> + </UrlAliasRefList> + application/vnd.ibexa.api.UrlAliasRefList+json: + schema: + $ref: '#/components/schemas/UrlAliasRefListWrapper' + example: + UrlAliasRefList: + _media-type: application/vnd.ibexa.api.UrlAliasRefList+json + _href: /api/ibexa/v2/content/urlaliases + UrlAlias: [{ _media-type: application/vnd.ibexa.api.UrlAlias+json, _href: /api/ibexa/v2/content/urlaliases/0-2cecdff5f90b8595d76b68c417b09f36 }] + '401': + description: 'Error - The user has no permission to read URL aliases.' + summary: 'List global URL aliases' + description: 'Returns the list of global URL aliases.' + parameters: + - + name: Accept + in: header + description: 'If set, the URL alias list contains only references and is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_contenturlaliases_post + tags: + - 'Url Alias' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.UrlAlias+xml: + schema: + $ref: '#/components/schemas/UrlAlias' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UrlAlias media-type="application/vnd.ibexa.api.UrlAlias+xml" href="/api/ibexa/v2/content/urlaliases/0-2cecdff5f90b8595d76b68c417b09f36" id="0-2cecdff5f90b8595d76b68c417b09f36" type="RESOURCE"> + <resource>content/view/full</resource> + <path>/example-global</path> + <languageCodes>eng-GB</languageCodes> + <alwaysAvailable>true</alwaysAvailable> + <isHistory>false</isHistory> + <forward>true</forward> + <custom>true</custom> + </UrlAlias> + application/vnd.ibexa.api.UrlAlias+json: + schema: + $ref: '#/components/schemas/UrlAliasWrapper' + example: + UrlAlias: + _media-type: application/vnd.ibexa.api.UrlAlias+json + _href: /api/ibexa/v2/content/urlaliases/0-2cecdff5f90b8595d76b68c417b09f36 + _id: 0-2cecdff5f90b8595d76b68c417b09f36 + _type: RESOURCE + resource: content/view/full + path: /example-global + languageCodes: eng-GB + alwaysAvailable: true + isHistory: false + forward: true + custom: true + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - The user is not authorized to create a URL alias.' + '403': + description: 'Error - A URL alias with the same identifier already exists.' + summary: 'Create URL alias' + description: 'Creates a URL alias.' + parameters: + - + name: Accept + in: header + description: 'If set, the created URL alias is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The URL alias input schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new URLAliasCreateController resource' + content: + application/vnd.ibexa.api.UrlAliasCreate+xml: + schema: + $ref: '#/components/schemas/UrlAliasCreate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/urlaliases/POST/UrlAliasCreate.xml.example' + application/vnd.ibexa.api.UrlAliasCreate+json: + schema: + $ref: '#/components/schemas/UrlAliasCreateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/urlaliases/POST/UrlAliasCreate.json.example' + required: false + deprecated: false + '/content/urlaliases/{urlAliasId}': + get: + operationId: api_contenturlaliases_urlAliasId_get + tags: + - 'Url Alias' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.UrlAlias+xml: + schema: + $ref: '#/components/schemas/UrlAlias' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UrlAlias media-type="application/vnd.ibexa.api.UrlAlias+xml" href="/api/ibexa/v2/content/urlaliases/0-2cecdff5f90b8595d76b68c417b09f36" id="0-2cecdff5f90b8595d76b68c417b09f36" type="RESOURCE"> + <resource>content/view/full</resource> + <path>/example-global</path> + <languageCodes>eng-GB</languageCodes> + <alwaysAvailable>true</alwaysAvailable> + <isHistory>false</isHistory> + <forward>true</forward> + <custom>true</custom> + </UrlAlias> + application/vnd.ibexa.api.UrlAlias+json: + schema: + $ref: '#/components/schemas/UrlAliasWrapper' + example: + UrlAlias: + _media-type: application/vnd.ibexa.api.UrlAlias+json + _href: /api/ibexa/v2/content/urlaliases/0-2cecdff5f90b8595d76b68c417b09f36 + _id: 0-2cecdff5f90b8595d76b68c417b09f36 + _type: RESOURCE + resource: content/view/full + path: /example-global + languageCodes: eng-GB + alwaysAvailable: true + isHistory: false + forward: true + custom: true + '401': + description: 'Error - The user is not authorized to read URL aliases.' + '404': + description: 'Error - The URL alias does not exist.' + summary: 'Get URL alias' + description: 'Returns the URL alias with the given ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the URL alias is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: urlAliasId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_contenturlaliases_urlAliasId_delete + tags: + - 'Url Alias' + responses: + '204': + description: 'No Content - URL alias deleted.' + '401': + description: 'Error - The user is not authorized to delete a URL alias.' + '404': + description: 'Error - The URL alias does not exist.' + summary: 'Delete URL alias' + description: 'Deletes the provided URL alias.' + parameters: + - + name: urlAliasId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /content/urlwildcards: + get: + operationId: api_contenturlwildcards_get + tags: + - 'Url Wildcard' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.UrlWildcardList+xml: + schema: + $ref: '#/components/schemas/UrlWildcardList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UrlWildcardList media-type="application/vnd.ibexa.api.UrlWildcardList+xml" href="/api/ibexa/v2/content/urlwildcards"> + <UrlWildcard media-type="application/vnd.ibexa.api.UrlWildcard+xml" href="/api/ibexa/v2/content/urlwildcards/1" id="1"> + <sourceUrl>/api/ibexa/v2/content/location/2</sourceUrl> + <destinationUrl>/api/ibexa/v2/content/location/59</destinationUrl> + <forward>true</forward> + </UrlWildcard> + </UrlWildcardList> + application/vnd.ibexa.api.UrlWildcardList+json: + schema: + $ref: '#/components/schemas/UrlWildcardListWrapper' + example: + UrlWildcardList: + _media-type: application/vnd.ibexa.api.UrlWildcardList+json + _href: /api/ibexa/v2/content/urlwildcards + UrlWildcard: [{ _media-type: application/vnd.ibexa.api.UrlWildcard+json, _href: /api/ibexa/v2/content/urlwildcards/1, _id: 1, sourceUrl: /api/ibexa/v2/content/location/2, destinationUrl: /api/ibexa/v2/content/location/59, forward: true }] + '401': + description: 'Error - The user has no permission to read URL wildcards.' + summary: 'List URL wildcards' + description: 'Returns a list of URL wildcards.' + parameters: + - + name: Accept + in: header + description: 'If set, the URL wildcard is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_contenturlwildcards_post + tags: + - 'Url Wildcard' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.UrlWildcard+xml: + schema: + $ref: '#/components/schemas/UrlWildcard' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UrlWildcard media-type="application/vnd.ibexa.api.UrlWildcard+xml" href="/api/ibexa/v2/content/urlwildcards/4" id="4"> + <sourceUrl>/api/ibexa/v2/content/location/2</sourceUrl> + <destinationUrl>/api/ibexa/v2/content/location/59</destinationUrl> + <forward>true</forward> + </UrlWildcard> + application/vnd.ibexa.api.UrlWildcard+json: + schema: + $ref: '#/components/schemas/UrlWildcardWrapper' + example: + UrlWildcard: + _media-type: application/vnd.ibexa.api.UrlWildcard+json + _href: /api/ibexa/v2/content/urlwildcards/4 + _id: 4 + sourceUrl: /api/ibexa/v2/content/location/2 + destinationUrl: /api/ibexa/v2/content/location/59 + forward: true + '400': + description: 'Error - The input does not match the input schema definition.' + '401': + description: 'Error - The user is not authorized to create a URL wildcard.' + '403': + description: 'Error - A URL wildcard with the same identifier already exists.' + summary: 'Create URL wildcard' + description: 'Creates a new URL wildcard.' + parameters: + - + name: Accept + in: header + description: 'If set, the new URL wildcard is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The URL Wildcard input schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new URLWildcardCreateController resource' + content: + application/vnd.ibexa.api.UrlWildcardCreate+xml: + schema: + $ref: '#/components/schemas/UrlWildcardCreate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/urlwildcards/POST/UrlWildcardCreate.xml.example' + application/vnd.ibexa.api.UrlWildcardCreate+json: + schema: + $ref: '#/components/schemas/UrlWildcardCreateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/urlwildcards/POST/UrlWildcardCreate.json.example' + required: false + deprecated: false + '/content/urlwildcards/{wildcardId}': + get: + operationId: api_contenturlwildcards_wildcardId_get + tags: + - 'Url Wildcard' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.UrlWildcard+xml: + schema: + $ref: '#/components/schemas/UrlWildcard' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UrlWildcard media-type="application/vnd.ibexa.api.UrlWildcard+xml" href="/api/ibexa/v2/content/urlwildcards/4" id="4"> + <sourceUrl>/api/ibexa/v2/content/location/2</sourceUrl> + <destinationUrl>/api/ibexa/v2/content/location/59</destinationUrl> + <forward>true</forward> + </UrlWildcard> + application/vnd.ibexa.api.UrlWildcard+json: + schema: + $ref: '#/components/schemas/UrlWildcardWrapper' + example: + UrlWildcard: + _media-type: application/vnd.ibexa.api.UrlWildcard+json + _href: /api/ibexa/v2/content/urlwildcards/4 + _id: 4 + sourceUrl: /api/ibexa/v2/content/location/2 + destinationUrl: /api/ibexa/v2/content/location/59 + forward: true + '401': + description: 'Error - The user is not authorized to read URL wildcards.' + '404': + description: 'Error - The URL wildcard does not exist.' + summary: 'Get URL wildcard' + description: 'Returns the URL wildcard with the given ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the URL wildcard is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: wildcardId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_contenturlwildcards_wildcardId_delete + tags: + - 'Url Wildcard' + responses: + '204': + description: 'No Content - URL wildcard deleted.' + '401': + description: 'Error - The user is not authorized to delete a URL wildcard.' + '404': + description: 'Error - The URL wildcard does not exist.' + summary: 'Delete URL wildcard' + description: 'Deletes the given URL wildcard.' + parameters: + - + name: wildcardId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /user/current: + get: + operationId: api_usercurrent_get + tags: + - User + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.User+xml: + schema: + $ref: '#/components/schemas/UserList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserList media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/users"> + <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/79" id="79" remoteId="bcf0764b417f05af21852a1f03fb1f13"> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/> + <name>Jose Vargas</name> + <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/79/versions"/> + <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> + <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/12/79"/> + <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/79/locations"/> + <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/79/groups"/> + <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> + <publishDate>2021-06-29T08:23:42+00:00</publishDate> + <lastModificationDate>2021-06-29T08:23:42+00:00</lastModificationDate> + <mainLanguageCode>eng-GB</mainLanguageCode> + <alwaysAvailable>true</alwaysAvailable> + <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/79/versions/1"> + <VersionInfo> + <id>547</id> + <versionNo>1</versionNo> + <status>PUBLISHED</status> + <modificationDate>2021-06-29T08:23:42+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> + <creationDate>2021-06-29T08:23:42+00:00</creationDate> + <initialLanguageCode>eng-GB</initialLanguageCode> + <languageCodes>eng-GB</languageCodes> + <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> + <Language> + <languageCode>eng-GB</languageCode> + </Language> + </VersionTranslationInfo> + <names> + <value languageCode="eng-GB">Jose Vargas</value> + </names> + <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/79"/> + </VersionInfo> + <Fields> + <field> + <id>342</id> + <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>Jose</fieldValue> + </field> + <field> + <id>343</id> + <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>Vargas</fieldValue> + </field> + <field> + <id>344</id> + <fieldDefinitionIdentifier>user_account</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> + <fieldValue> + <value key="hasStoredLogin">true</value> + <value key="contentId">79</value> + <value key="login">josevargas</value> + <value key="email">aa@bb.cc</value> + <value key="passwordUpdatedAt">1624955022</value> + <value key="enabled">true</value> + <value key="maxLogin">0</value> + <value key="plainPassword"/> + </fieldValue> + </field> + <field> + <id>345</id> + <fieldDefinitionIdentifier>signature</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_text</fieldTypeIdentifier> + <fieldValue/> + </field> + <field> + <id>346</id> + <fieldDefinitionIdentifier>image</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_image</fieldTypeIdentifier> + <fieldValue/> + </field> + </Fields> + <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/79/versions/1/relations"/> + <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> + <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user</resource> + <width></width> + <height></height> + <mimeType>image/svg+xml</mimeType> + </Thumbnail> + </Version> + <login>josevargas</login> + <email>aa@bb.cc</email> + <enabled>true</enabled> + <UserGroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/users/79/groups"/> + <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/79/roles"/> + </User> + </UserList> + application/vnd.ibexa.api.User+json: + schema: + $ref: '#/components/schemas/UserListWrapper' + example: + UserList: + _media-type: application/vnd.ibexa.api.UserList+json + _href: /api/ibexa/v2/user/users + User: [{ _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/79, _id: 79, _remoteId: bcf0764b417f05af21852a1f03fb1f13, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 }, name: 'Jose Vargas', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/79/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/12/79 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/79/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/79/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 }, publishDate: '2021-06-29T08:23:42+00:00', lastModificationDate: '2021-06-29T08:23:42+00:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/79/versions/1, VersionInfo: { id: 547, versionNo: 1, status: PUBLISHED, modificationDate: '2021-06-29T08:23:42+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 }, creationDate: '2021-06-29T08:23:42+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jose Vargas' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/79 } }, Fields: { field: [{ id: 342, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jose }, { id: 343, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Vargas }, { id: 344, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 79, login: josevargas, email: aa@bb.cc, passwordUpdatedAt: 1624955022, enabled: true, maxLogin: 0, plainPassword: null } }, { id: 345, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 346, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/79/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user', width: null, height: null, mimeType: image/svg+xml } }, login: josevargas, email: aa@bb.cc, enabled: true, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/79/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/79/roles } }] + '401': + description: "Error - the user has no permission to read Users. For example, Anonymous user can't load oneself." + summary: 'Load current User' + description: 'Loads the current user.' + parameters: + - + name: Accept + in: header + description: 'If set, the User is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /user/users: + get: + operationId: api_userusers_get + tags: + - User + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.UserList+xml: + schema: + $ref: '#/components/schemas/UserList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserList media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/users"> + <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/79" id="79" remoteId="bcf0764b417f05af21852a1f03fb1f13"> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/> + <name>Jose Vargas</name> + <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/79/versions"/> + <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> + <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/12/79"/> + <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/79/locations"/> + <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/79/groups"/> + <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> + <publishDate>2021-06-29T08:23:42+00:00</publishDate> + <lastModificationDate>2021-06-29T08:23:42+00:00</lastModificationDate> + <mainLanguageCode>eng-GB</mainLanguageCode> + <alwaysAvailable>true</alwaysAvailable> + <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/79/versions/1"> + <VersionInfo> + <id>547</id> + <versionNo>1</versionNo> + <status>PUBLISHED</status> + <modificationDate>2021-06-29T08:23:42+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> + <creationDate>2021-06-29T08:23:42+00:00</creationDate> + <initialLanguageCode>eng-GB</initialLanguageCode> + <languageCodes>eng-GB</languageCodes> + <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> + <Language> + <languageCode>eng-GB</languageCode> + </Language> + </VersionTranslationInfo> + <names> + <value languageCode="eng-GB">Jose Vargas</value> + </names> + <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/79"/> + </VersionInfo> + <Fields> + <field> + <id>342</id> + <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>Jose</fieldValue> + </field> + <field> + <id>343</id> + <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>Vargas</fieldValue> + </field> + <field> + <id>344</id> + <fieldDefinitionIdentifier>user_account</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> + <fieldValue> + <value key="hasStoredLogin">true</value> + <value key="contentId">79</value> + <value key="login">josevargas</value> + <value key="email">aa@bb.cc</value> + <value key="passwordUpdatedAt">1624955022</value> + <value key="enabled">true</value> + <value key="maxLogin">0</value> + <value key="plainPassword"/> + </fieldValue> + </field> + <field> + <id>345</id> + <fieldDefinitionIdentifier>signature</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_text</fieldTypeIdentifier> + <fieldValue/> + </field> + <field> + <id>346</id> + <fieldDefinitionIdentifier>image</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_image</fieldTypeIdentifier> + <fieldValue/> + </field> + </Fields> + <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/79/versions/1/relations"/> + <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> + <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user</resource> + <width></width> + <height></height> + <mimeType>image/svg+xml</mimeType> + </Thumbnail> + </Version> + <login>josevargas</login> + <email>aa@bb.cc</email> + <enabled>true</enabled> + <UserGroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/users/79/groups"/> + <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/79/roles"/> + </User> + </UserList> + application/vnd.ibexa.api.UserList+json: + schema: + $ref: '#/components/schemas/UserListWrapper' + example: + UserList: + _media-type: application/vnd.ibexa.api.UserList+json + _href: /api/ibexa/v2/user/users + User: [{ _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/79, _id: 79, _remoteId: bcf0764b417f05af21852a1f03fb1f13, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 }, name: 'Jose Vargas', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/79/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/12/79 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/79/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/79/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 }, publishDate: '2021-06-29T08:23:42+00:00', lastModificationDate: '2021-06-29T08:23:42+00:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/79/versions/1, VersionInfo: { id: 547, versionNo: 1, status: PUBLISHED, modificationDate: '2021-06-29T08:23:42+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 }, creationDate: '2021-06-29T08:23:42+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jose Vargas' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/79 } }, Fields: { field: [{ id: 342, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jose }, { id: 343, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Vargas }, { id: 344, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 79, login: josevargas, email: aa@bb.cc, passwordUpdatedAt: 1624955022, enabled: true, maxLogin: 0, plainPassword: null } }, { id: 345, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 346, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/79/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user', width: null, height: null, mimeType: image/svg+xml } }, login: josevargas, email: aa@bb.cc, enabled: true, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/79/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/79/roles } }] + application/vnd.ibexa.api.UserRefList+xml: + schema: + $ref: '#/components/schemas/UserRefList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserRefList media-type="application/vnd.ibexa.api.UserRefList+xml" href="/api/ibexa/v2/user/users"> + <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + </UserRefList> + application/vnd.ibexa.api.UserRefList+json: + schema: + $ref: '#/components/schemas/UserRefListWrapper' + '404': + description: 'If there are no visible Users matching the filter.' + summary: 'List Users' + description: 'Load Users either for a given remote ID or Role.' + parameters: + - + name: Accept + in: header + description: 'UserList - If set, the User list is returned in XML or JSON format. UserRefList - If set, the link list of Users is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + head: + operationId: api_userusers_head + tags: + - User + responses: + '200': + description: 'OK - verifies if there are Users matching the given filter.' + '404': + description: 'Error - there are no visible Users matching the filter.' + summary: 'Verify Users' + description: 'Verifies if there are Users matching given filter.' + parameters: [] + deprecated: false + '/user/users/{userId}': + get: + operationId: api_userusers_userId_get + tags: + - User + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.User+xml: + schema: + $ref: '#/components/schemas/UserList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserList media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/users"> + <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/79" id="79" remoteId="bcf0764b417f05af21852a1f03fb1f13"> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/> + <name>Jose Vargas</name> + <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/79/versions"/> + <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> + <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/12/79"/> + <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/79/locations"/> + <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/79/groups"/> + <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> + <publishDate>2021-06-29T08:23:42+00:00</publishDate> + <lastModificationDate>2021-06-29T08:23:42+00:00</lastModificationDate> + <mainLanguageCode>eng-GB</mainLanguageCode> + <alwaysAvailable>true</alwaysAvailable> + <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/79/versions/1"> + <VersionInfo> + <id>547</id> + <versionNo>1</versionNo> + <status>PUBLISHED</status> + <modificationDate>2021-06-29T08:23:42+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> + <creationDate>2021-06-29T08:23:42+00:00</creationDate> + <initialLanguageCode>eng-GB</initialLanguageCode> + <languageCodes>eng-GB</languageCodes> + <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> + <Language> + <languageCode>eng-GB</languageCode> + </Language> + </VersionTranslationInfo> + <names> + <value languageCode="eng-GB">Jose Vargas</value> + </names> + <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/79"/> + </VersionInfo> + <Fields> + <field> + <id>342</id> + <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>Jose</fieldValue> + </field> + <field> + <id>343</id> + <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>Vargas</fieldValue> + </field> + <field> + <id>344</id> + <fieldDefinitionIdentifier>user_account</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> + <fieldValue> + <value key="hasStoredLogin">true</value> + <value key="contentId">79</value> + <value key="login">josevargas</value> + <value key="email">aa@bb.cc</value> + <value key="passwordUpdatedAt">1624955022</value> + <value key="enabled">true</value> + <value key="maxLogin">0</value> + <value key="plainPassword"/> + </fieldValue> + </field> + <field> + <id>345</id> + <fieldDefinitionIdentifier>signature</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_text</fieldTypeIdentifier> + <fieldValue/> + </field> + <field> + <id>346</id> + <fieldDefinitionIdentifier>image</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_image</fieldTypeIdentifier> + <fieldValue/> + </field> + </Fields> + <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/79/versions/1/relations"/> + <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> + <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user</resource> + <width></width> + <height></height> + <mimeType>image/svg+xml</mimeType> + </Thumbnail> + </Version> + <login>josevargas</login> + <email>aa@bb.cc</email> + <enabled>true</enabled> + <UserGroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/users/79/groups"/> + <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/79/roles"/> + </User> + </UserList> + application/vnd.ibexa.api.User+json: + schema: + $ref: '#/components/schemas/UserListWrapper' + example: + UserList: + _media-type: application/vnd.ibexa.api.UserList+json + _href: /api/ibexa/v2/user/users + User: [{ _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/79, _id: 79, _remoteId: bcf0764b417f05af21852a1f03fb1f13, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 }, name: 'Jose Vargas', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/79/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/12/79 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/79/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/79/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 }, publishDate: '2021-06-29T08:23:42+00:00', lastModificationDate: '2021-06-29T08:23:42+00:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/79/versions/1, VersionInfo: { id: 547, versionNo: 1, status: PUBLISHED, modificationDate: '2021-06-29T08:23:42+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 }, creationDate: '2021-06-29T08:23:42+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jose Vargas' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/79 } }, Fields: { field: [{ id: 342, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jose }, { id: 343, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Vargas }, { id: 344, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 79, login: josevargas, email: aa@bb.cc, passwordUpdatedAt: 1624955022, enabled: true, maxLogin: 0, plainPassword: null } }, { id: 345, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 346, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/79/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user', width: null, height: null, mimeType: image/svg+xml } }, login: josevargas, email: aa@bb.cc, enabled: true, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/79/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/79/roles } }] + '401': + description: 'Error - the user has no permission to read Users.' + '404': + description: 'Error - the User does not exist.' + summary: 'Load User' + description: 'Loads User with the given ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the User is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: userId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_userusers_userId_delete + tags: + - User + responses: + '204': + description: 'No Content.' + '401': + description: 'Error - the user is not authorized to delete this User.' + '403': + description: 'Error - the user is the same as the authenticated User.' + '404': + description: 'Error - the User does not exist.' + summary: 'Delete User' + description: 'Deletes the given User.' + parameters: + - + name: userId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_userusers_userId_patch + tags: + - User + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.User+xml: + schema: + $ref: '#/components/schemas/User' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/79" id="79" remoteId="bcf0764b417f05af21852a1f03fb1f13"> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/> + <name>Jose Vargas</name> + <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/79/versions"/> + <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> + <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/12/79"/> + <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/79/locations"/> + <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/79/groups"/> + <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> + <publishDate>2021-06-29T08:23:42+00:00</publishDate> + <lastModificationDate>2021-07-29T11:45:07+00:00</lastModificationDate> + <mainLanguageCode>eng-GB</mainLanguageCode> + <alwaysAvailable>true</alwaysAvailable> + <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/79/versions/6"> + <VersionInfo> + <id>609</id> + <versionNo>6</versionNo> + <status>PUBLISHED</status> + <modificationDate>2021-07-29T11:45:07+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <creationDate>2021-07-29T11:45:07+00:00</creationDate> + <initialLanguageCode>eng-GB</initialLanguageCode> + <languageCodes>eng-GB</languageCodes> + <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> + <Language> + <languageCode>eng-GB</languageCode> + </Language> + </VersionTranslationInfo> + <names> + <value languageCode="eng-GB">Jose Vargas</value> + </names> + <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/79"/> + </VersionInfo> + <Fields> + <field> + <id>342</id> + <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>Jose</fieldValue> + </field> + <field> + <id>343</id> + <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>Vargas</fieldValue> + </field> + <field> + <id>344</id> + <fieldDefinitionIdentifier>user_account</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> + <fieldValue> + <value key="hasStoredLogin">true</value> + <value key="contentId">79</value> + <value key="login">josevargas</value> + <value key="email">aa@bb.cc</value> + <value key="passwordUpdatedAt"/> + <value key="enabled">false</value> + <value key="maxLogin">0</value> + <value key="plainPassword"/> + </fieldValue> + </field> + <field> + <id>345</id> + <fieldDefinitionIdentifier>signature</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_text</fieldTypeIdentifier> + <fieldValue/> + </field> + <field> + <id>346</id> + <fieldDefinitionIdentifier>image</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_image</fieldTypeIdentifier> + <fieldValue/> + </field> + </Fields> + <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/79/versions/6/relations"/> + <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> + <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user</resource> + <width></width> + <height></height> + <mimeType>image/svg+xml</mimeType> + </Thumbnail> + </Version> + <login>josevargas</login> + <email>aa@bb.cc</email> + <enabled>false</enabled> + <UserGroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/users/79/groups"/> + <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/79/roles"/> + </User> + application/vnd.ibexa.api.User+json: + schema: + $ref: '#/components/schemas/UserWrapper' + example: + User: + _media-type: application/vnd.ibexa.api.User+json + _href: /api/ibexa/v2/user/users/79 + _id: 79 + _remoteId: bcf0764b417f05af21852a1f03fb1f13 + ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 } + name: 'Jose Vargas' + Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/79/versions } + Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 } + MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/12/79 } + Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/79/locations } + Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/79/groups } + Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 } + publishDate: '2021-06-29T08:23:42+00:00' + lastModificationDate: '2021-07-29T12:00:24+00:00' + mainLanguageCode: eng-GB + alwaysAvailable: true + Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/79/versions/11, VersionInfo: { id: 614, versionNo: 11, status: PUBLISHED, modificationDate: '2021-07-29T12:00:24+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-07-29T12:00:24+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jose Vargas' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/79 } }, Fields: { field: [{ id: 342, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jose }, { id: 343, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Vargas }, { id: 344, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 79, login: josevargas, email: aa@bb.cc, passwordUpdatedAt: null, enabled: false, maxLogin: 0, plainPassword: null } }, { id: 345, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 346, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/79/versions/11/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user', width: null, height: null, mimeType: image/svg+xml } } + login: josevargas + email: aa@bb.cc + enabled: false + UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/79/groups } + Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/79/roles } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update the User.' + '404': + description: 'Error - the User does not exist.' + '412': + description: 'Error - the current ETag does not match with the provided one in the If-Match header.' + summary: 'Update User' + description: 'Updates a User.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated User is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The UserUpdate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-Match + in: header + description: 'Performs a PATCH only if the specified ETag is the current one.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: userId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated UserUpdateController resource' + content: + application/vnd.ibexa.api.UserUpdate+xml: + schema: + $ref: '#/components/schemas/UserUpdate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/users/user_id/PATCH/UserUpdate.xml.example' + application/vnd.ibexa.api.UserUpdate+json: + schema: + $ref: '#/components/schemas/UserUpdateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/users/user_id/PATCH/UserUpdate.json.example' + required: false + deprecated: false + '/user/users/{userId}/drafts': + get: + operationId: api_userusers_userIddrafts_get + tags: + - User + responses: + '200': + description: 'OK - List the draft versions' + content: + application/vnd.ibexa.api.VersionList+xml: + schema: + $ref: '#/components/schemas/VersionList' + application/vnd.ibexa.api.VersionList+json: + schema: + $ref: '#/components/schemas/VersionListWrapper' + '401': + description: 'Error - the current user is not authorized to list the drafts of the given user.' + summary: 'Load user drafts' + description: "Loads user's drafts" + parameters: + - + name: Accept + in: header + description: 'If set, the version list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: userId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/user/users/{userId}/groups': + get: + operationId: api_userusers_userIdgroups_get + tags: + - User + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.UserGroupRefList+xml: + schema: + $ref: '#/components/schemas/UserGroupRefList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserGroupRefList media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/115/groups"> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/12"> + <unassign href="/api/ibexa/v2/user/users/79/groups/12" method="DELETE"/> + </UserGroup> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13"> + <unassign href="/api/ibexa/v2/user/users/115/groups/13" method="DELETE"/> + </UserGroup> + </UserGroupRefList> + application/vnd.ibexa.api.UserGroupRefList+json: + schema: + $ref: '#/components/schemas/UserGroupRefListWrapper' + example: + UserGroupRefList: + _media-type: application/vnd.ibexa.api.UserGroupRefList+json + _href: /api/ibexa/v2/user/users/57/groups + UserGroup: [{ _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13 }] + '401': + description: 'Error - the user has no permission to read User Groups.' + '404': + description: 'Error - the user does not exist.' + summary: 'Load Groups of User' + description: 'Returns a list of User Groups the User belongs to. The returned list includes the resources for unassigning a User Group if the User is in multiple groups.' + parameters: + - + name: Accept + in: header + description: 'If set, the link list of User Groups is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: userId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_userusers_userIdgroups_post + tags: + - User + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.UserGroupRefList+xml: + schema: + $ref: '#/components/schemas/UserGroupRefList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserGroupRefList media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/115/groups"> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/12"> + <unassign href="/api/ibexa/v2/user/users/79/groups/12" method="DELETE"/> + </UserGroup> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13"> + <unassign href="/api/ibexa/v2/user/users/115/groups/13" method="DELETE"/> + </UserGroup> + </UserGroupRefList> + application/vnd.ibexa.api.UserGroupRefList+json: + schema: + $ref: '#/components/schemas/UserGroupRefListWrapper' + example: + UserGroupRefList: + _media-type: application/vnd.ibexa.api.UserGroupRefList+json + _href: /api/ibexa/v2/user/users/57/groups + UserGroup: [{ _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13 }] + '401': + description: 'Error - the user is not authorized to assign User Groups.' + '403': + description: 'Error - the new User Group does not exist or the User is already in this group.' + '404': + description: 'Error - the User does not exist.' + summary: 'Assign User Group' + description: 'Assigns the User to a User Group.' + parameters: + - + name: Accept + in: header + description: 'If set, the link list of User Groups is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: userId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new UserAssignToUserGroupController resource' + content: { } + required: false + deprecated: false + '/user/users/{userId}/groups/{groupId}': + delete: + operationId: api_userusers_userIdgroups_groupId_delete + tags: + - User + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.UserGroupRefList+xml: + schema: + $ref: '#/components/schemas/UserGroupRefList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserGroupRefList media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/115/groups"> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/12"> + <unassign href="/api/ibexa/v2/user/users/79/groups/12" method="DELETE"/> + </UserGroup> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13"> + <unassign href="/api/ibexa/v2/user/users/115/groups/13" method="DELETE"/> + </UserGroup> + </UserGroupRefList> + application/vnd.ibexa.api.UserGroupRefList+json: + schema: + $ref: '#/components/schemas/UserGroupRefListWrapper' + example: + UserGroupRefList: + _media-type: application/vnd.ibexa.api.UserGroupRefList+json + _href: /api/ibexa/v2/user/users/57/groups + UserGroup: [{ _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13 }] + '401': + description: 'Error - the user is not authorized to unassign User Groups.' + '403': + description: 'Error - the User is not in the given group.' + '404': + description: 'Error - the User does not exist.' + '204': + description: 'UserUnassignFromUserGroupController resource deleted' + summary: 'Unassign User Group' + description: 'Unassigns the User from a User Group.' + parameters: + - + name: Accept + in: header + description: 'If set, the link list of User Groups is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: userId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: groupId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/user/users/{userId}/roles': + get: + operationId: api_userusers_userIdroles_get + tags: + - User + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.RoleAssignmentList+xml: + schema: + $ref: '#/components/schemas/RoleAssignmentList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <RoleAssignmentList media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/115/roles"> + <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/115/roles/2"> + <limitation identifier="Section"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="1"/> + </values> + </limitation> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/2"/> + </RoleAssignment> + <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/115/roles/2"> + <limitation identifier="Section"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="2"/> + </values> + </limitation> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/2"/> + </RoleAssignment> + </RoleAssignmentList> + application/vnd.ibexa.api.RoleAssignmentList+json: + schema: + $ref: '#/components/schemas/RoleAssignmentListWrapper' + example: + RoleAssignmentList: + _media-type: application/vnd.ibexa.api.RoleAssignmentList+json + _href: /api/ibexa/v2/user/users/57/roles + RoleAssignment: [{ _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/1, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/1 } }, { _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/2, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/2 } }] + '400': + description: 'Error - the user has no permission to read Roles.' + summary: 'Load Roles for User' + description: 'Returns a list of all Roles assigned to the given User.' + parameters: + - + name: Accept + in: header + description: 'If set, the Role assignment list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: userId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_userusers_userIdroles_post + tags: + - User + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.RoleAssignmentList+xml: + schema: + $ref: '#/components/schemas/RoleAssignmentList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <RoleAssignmentList media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/115/roles"> + <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/115/roles/2"> + <limitation identifier="Section"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="1"/> + </values> + </limitation> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/2"/> + </RoleAssignment> + <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/115/roles/2"> + <limitation identifier="Section"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="2"/> + </values> + </limitation> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/2"/> + </RoleAssignment> + </RoleAssignmentList> + application/vnd.ibexa.api.RoleAssignmentList+json: + schema: + $ref: '#/components/schemas/RoleAssignmentListWrapper' + example: + RoleAssignmentList: + _media-type: application/vnd.ibexa.api.RoleAssignmentList+json + _href: /api/ibexa/v2/user/users/57/roles + RoleAssignment: [{ _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/1, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/1 } }, { _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/2, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/2 } }] + '400': + description: 'Error - validation of limitation in RoleAssignInput fails.' + '401': + description: 'Error - the user is not authorized to assign this Role.' + summary: 'Assign Role to User' + description: 'Assigns a Role to a user.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated Role assignment list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The RoleAssignInput schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: userId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new RoleAssignToUserController resource' + content: + application/vnd.ibexa.api.RoleAssignInput+xml: + schema: + $ref: '#/components/schemas/RoleAssignInput' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/users/user_id/roles/POST/RoleAssignInput.xml.example' + application/vnd.ibexa.api.RoleAssignInput+json: + schema: + $ref: '#/components/schemas/RoleAssignInputWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/users/user_id/roles/POST/RoleAssignInput.json.example' + required: false + deprecated: false + '/user/users/{userId}/roles/{roleId}': + get: + operationId: api_userusers_userIdroles_roleId_get + tags: + - User + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.RoleAssignment+xml: + schema: + $ref: '#/components/schemas/RoleAssignment' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/113/roles/3"> + <limitation identifier="Section"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="6"/> + </values> + </limitation> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/3"/> + </RoleAssignment> + application/vnd.ibexa.api.RoleAssignment+json: + schema: + $ref: '#/components/schemas/RoleAssignmentWrapper' + example: + RoleAssignment: + _media-type: application/vnd.ibexa.api.RoleAssignment+json + _href: /api/ibexa/v2/user/users/113/roles/3 + limitation: { _identifier: Section, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '6' }] } } + Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/3 } + '401': + description: 'Error - the user has no permission to read Roles.' + summary: 'Load User Role Assignment' + description: 'Returns a Role assignment to the given User.' + parameters: + - + name: Accept + in: header + description: 'If set, the Role assignment list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: userId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: roleId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_userusers_userIdroles_roleId_delete + tags: + - User + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.RoleAssignmentList+xml: + schema: + $ref: '#/components/schemas/RoleAssignmentList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <RoleAssignmentList media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/115/roles"> + <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/115/roles/2"> + <limitation identifier="Section"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="1"/> + </values> + </limitation> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/2"/> + </RoleAssignment> + <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/115/roles/2"> + <limitation identifier="Section"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="2"/> + </values> + </limitation> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/2"/> + </RoleAssignment> + </RoleAssignmentList> + application/vnd.ibexa.api.RoleAssignmentList+json: + schema: + $ref: '#/components/schemas/RoleAssignmentListWrapper' + example: + RoleAssignmentList: + _media-type: application/vnd.ibexa.api.RoleAssignmentList+json + _href: /api/ibexa/v2/user/users/57/roles + RoleAssignment: [{ _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/1, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/1 } }, { _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/2, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/2 } }] + '401': + description: 'Error - the user is not authorized to delete this content type.' + summary: 'Unassign Role from User' + description: 'The given Role is removed from the user.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated Role assignment list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: userId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: roleId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/user/users/{userId}/segments': + get: + operationId: api_userusers_userIdsegments_get + tags: + - User + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.UserSegmentList+xml: + schema: + $ref: '#/components/schemas/UserSegmentList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserSegmentList media-type="application/vnd.ibexa.api.UserSegmentList+xml" href="/api/ibexa/v2/user/users/14/segments"> + <UserSegment media-type="application/vnd.ibexa.api.UserSegment+xml"> + <id>1</id> + <identifier>corporate_account</identifier> + <name>Corporate Account</name> + <SegmentGroup media-type="application/vnd.ibexa.api.SegmentGroup+xml" href="/api/ibexa/v2/segment_groups/corporate_accounts"/> + <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/1234"/> + </UserSegment> + </UserSegmentList> + application/vnd.ibexa.api.UserSegmentList+json: + schema: + $ref: '#/components/schemas/UserSegmentListWrapper' + example: + UserSegmentList: + _media-type: application/vnd.ibexa.api.UserSegmentList+json + _href: /api/ibexa/v2/user/users/14/segments + UserSegment: [{ _media-type: application/vnd.ibexa.api.UserSegment+json, id: 1, identifier: corporate_account, name: 'Corporate Account', SegmentGroup: { _media-type: application/vnd.ibexa.api.SegmentGroup+json, _href: /api/ibexa/v2/segment_groups/corporate_accounts }, User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } }] + '404': + description: "Error - the user doesn't exist." + summary: 'View user segments' + description: "Return user's segment list." + parameters: + - + name: Accept + in: header + description: "If set, the user's segment list is returned in XML or JSON format." + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: userId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_userusers_userIdsegments_post + tags: + - User + responses: + '204': + description: 'No Content - segments assigned to user' + '401': + description: 'Error - the requesting user is not authorized to assign this segment to the given user.' + '404': + description: "Error - the user doesn't exist." + summary: 'Assign Segments to User' + description: 'Assigns Segments from payload to User given by ID.' + parameters: + - + name: Content-Type + in: header + description: 'The UserSegmentAssignInput schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: userId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new UserSegmentAssignController resource' + content: + application/vnd.ibexa.api.UserSegmentAssignInput+xml: + schema: + $ref: '#/components/schemas/UserSegmentAssignInput' + x-ibexa-example-file: '@IbexaSegmentationBundle/Resources/api_platform/examples/user/users/user_id/segments/UserSegmentAssignInput.xml.example' + application/vnd.ibexa.api.UserSegmentAssignInput+json: + schema: + $ref: '#/components/schemas/UserSegmentAssignInputWrapper' + x-ibexa-example-file: '@IbexaSegmentationBundle/Resources/api_platform/examples/user/users/user_id/segments/UserSegmentAssignInput.json.example' + required: false + deprecated: false + '/user/users/{userId}/segments/{segmentIdentifier}': + delete: + operationId: api_userusers_userIdsegments_segmentIdentifier_delete + tags: + - User + responses: + '204': + description: 'No Content - segments unassigned from user' + '401': + description: 'Error - the requesting user is not authorized to unassign this segment from the given user.' + '404': + description: "Error - the segment or the user doesn't exist." + summary: 'Unassign Segment from User' + description: 'The Segment designated by its identifier is unassigned from the User given by ID.' + parameters: + - + name: userId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: segmentIdentifier + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /user/groups: + get: + operationId: api_usergroups_get + tags: + - 'User Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.UserGroupList+xml: + schema: + $ref: '#/components/schemas/UserGroupList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserGroupList media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups"> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13/15" id="14" remoteId="1bb4fe25487f05527efa8bfd394cecc7"> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/> + <name>Administrator User</name> + <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/14/versions"/> + <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> + <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/13/15"/> + <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/14/locations"/> + <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <publishDate>2002-10-06T16:13:50+00:00</publishDate> + <lastModificationDate>2011-03-25T14:07:04+00:00</lastModificationDate> + <mainLanguageCode>eng-GB</mainLanguageCode> + <alwaysAvailable>true</alwaysAvailable> + <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/14/versions/3"> + <VersionInfo> + <id>499</id> + <versionNo>3</versionNo> + <status>PUBLISHED</status> + <modificationDate>2011-03-25T14:07:04+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <creationDate>2011-03-25T14:03:03+00:00</creationDate> + <initialLanguageCode>eng-GB</initialLanguageCode> + <languageCodes>eng-GB</languageCodes> + <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> + <Language> + <languageCode>eng-GB</languageCode> + </Language> + </VersionTranslationInfo> + <names> + <value languageCode="eng-GB">Administrator User</value> + </names> + <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/14"/> + </VersionInfo> + <Fields> + <field> + <id>28</id> + <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>Administrator</fieldValue> + </field> + <field> + <id>29</id> + <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>User</fieldValue> + </field> + <field> + <id>30</id> + <fieldDefinitionIdentifier>user_account</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> + <fieldValue> + <value key="hasStoredLogin">true</value> + <value key="contentId">14</value> + <value key="login">admin</value> + <value key="email">admin@link.invalid</value> + <value key="passwordUpdatedAt"/> + <value key="enabled">true</value> + <value key="maxLogin">10</value> + <value key="plainPassword"/> + </fieldValue> + </field> + <field> + <id>178</id> + <fieldDefinitionIdentifier>signature</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_text</fieldTypeIdentifier> + <fieldValue/> + </field> + <field> + <id>180</id> + <fieldDefinitionIdentifier>image</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_image</fieldTypeIdentifier> + <fieldValue/> + </field> + </Fields> + <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/14/versions/3/relations"/> + <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> + <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user</resource> + <width></width> + <height></height> + <mimeType>image/svg+xml</mimeType> + </Thumbnail> + </Version> + <ParentUserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13"/> + <Subgroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups/1/5/13/15/subgroups"/> + <Users media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/groups/1/5/13/15/users"/> + <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/groups/1/5/13/15/roles"/> + </UserGroup> + </UserGroupList> + application/vnd.ibexa.api.UserGroupList+json: + schema: + $ref: '#/components/schemas/UserGroupListWrapper' + example: + UserGroupList: + _media-type: application/vnd.ibexa.api.UserGroupList+json + _href: /api/ibexa/v2/user/groups + UserGroup: [{ _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13/15, _id: 14, _remoteId: 1bb4fe25487f05527efa8bfd394cecc7, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 }, name: 'Administrator User', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/14/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/13/15 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/14/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, publishDate: '2002-10-06T16:13:50+00:00', lastModificationDate: '2011-03-25T14:07:04+00:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/14/versions/3, VersionInfo: { id: 499, versionNo: 3, status: PUBLISHED, modificationDate: '2011-03-25T14:07:04+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2011-03-25T14:03:03+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Administrator User' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/14 } }, Fields: { field: [{ id: 28, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Administrator }, { id: 29, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: User }, { id: 30, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 14, login: admin, email: admin@link.invalid, passwordUpdatedAt: null, enabled: true, maxLogin: 10, plainPassword: null } }, { id: 178, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 180, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/14/versions/3/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user', width: null, height: null, mimeType: image/svg+xml } }, ParentUserGroup: { _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13 }, Subgroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/groups/1/5/13/15/subgroups }, Users: { _media-type: application/vnd.ibexa.api.UserList+json, _href: /api/ibexa/v2/user/groups/1/5/13/15/users }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/groups/1/5/13/15/roles } }] + application/vnd.ibexa.api.UserGroupRefList+xml: + schema: + $ref: '#/components/schemas/UserGroupRefList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserGroupRefList media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/115/groups"> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/12"> + <unassign href="/api/ibexa/v2/user/users/79/groups/12" method="DELETE"/> + </UserGroup> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13"> + <unassign href="/api/ibexa/v2/user/users/115/groups/13" method="DELETE"/> + </UserGroup> + </UserGroupRefList> + application/vnd.ibexa.api.UserGroupRefList+json: + schema: + $ref: '#/components/schemas/UserGroupRefListWrapper' + example: + UserGroupRefList: + _media-type: application/vnd.ibexa.api.UserGroupRefList+json + _href: /api/ibexa/v2/user/users/57/groups + UserGroup: [{ _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13 }] + '401': + description: 'Error - the user has no permission to read User Groups.' + summary: 'Load User Groups' + description: 'Loads User Groups for either an an ID or a remote ID or a Role.' + parameters: + - + name: Accept + in: header + description: 'UserGroupList - If set, the User Group List is returned in XML or JSON format. UserGroupRefList - If set, the link list of User Group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /user/groups/root: + get: + operationId: api_usergroupsroot_get + tags: + - 'User Group' + responses: + '301': + description: 'Moved permanently.' + summary: 'Get root User Group' + description: 'Redirects to the root User Group.' + parameters: [] + deprecated: false + /user/groups/subgroups: + post: + operationId: api_usergroupssubgroups_post + tags: + - 'User Group' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.UserGroup+xml: + schema: + $ref: '#/components/schemas/UserGroup' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/79" id="85" remoteId="remoteId-qwert098"> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/3"/> + <name>UserGroup2</name> + <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/85/versions"/> + <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> + <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/79"/> + <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/85/locations"/> + <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <publishDate>2021-08-09T09:03:35+00:00</publishDate> + <lastModificationDate>2021-08-09T09:03:35+00:00</lastModificationDate> + <mainLanguageCode>eng-GB</mainLanguageCode> + <alwaysAvailable>true</alwaysAvailable> + <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/85/versions/1"> + <VersionInfo> + <id>576</id> + <versionNo>1</versionNo> + <status>PUBLISHED</status> + <modificationDate>2021-08-09T09:03:35+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <creationDate>2021-08-09T09:03:35+00:00</creationDate> + <initialLanguageCode>eng-GB</initialLanguageCode> + <languageCodes>eng-GB</languageCodes> + <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> + <Language> + <languageCode>eng-GB</languageCode> + </Language> + </VersionTranslationInfo> + <names> + <value languageCode="eng-GB">UserGroup2</value> + </names> + <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/85"/> + </VersionInfo> + <Fields> + <field> + <id>380</id> + <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>UserGroup2</fieldValue> + </field> + <field> + <id>381</id> + <fieldDefinitionIdentifier>description</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>This is the description of the user group</fieldValue> + </field> + </Fields> + <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/85/versions/1/relations"/> + <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> + <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user_group</resource> + <width></width> + <height></height> + <mimeType>image/svg+xml</mimeType> + </Thumbnail> + </Version> + <ParentUserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5"/> + <Subgroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups/1/5/79/subgroups"/> + <Users media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/groups/1/5/79/users"/> + <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/groups/1/5/79/roles"/> + </UserGroup> + application/vnd.ibexa.api.UserGroup+json: + schema: + $ref: '#/components/schemas/UserGroupWrapper' + example: + UserGroup: + _media-type: application/vnd.ibexa.api.UserGroup+json + _href: /api/ibexa/v2/user/groups/1/5/81 + _id: 87 + _remoteId: remoteId-qwert098 + ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/3 } + name: UserGroup2 + Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/87/versions } + Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 } + MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/81 } + Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/87/locations } + Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + publishDate: '2021-08-09T09:06:49+00:00' + lastModificationDate: '2021-08-09T09:06:49+00:00' + mainLanguageCode: eng-GB + alwaysAvailable: true + Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/87/versions/1, VersionInfo: { id: 578, versionNo: 1, status: PUBLISHED, modificationDate: '2021-08-09T09:06:49+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-08-09T09:06:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': UserGroup2 }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/87 } }, Fields: { field: [{ id: 384, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: UserGroup2 }, { id: 385, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'This is the description of the user group' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/87/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user_group', width: null, height: null, mimeType: image/svg+xml } } + ParentUserGroup: { _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5 } + Subgroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/groups/1/5/81/subgroups } + Users: { _media-type: application/vnd.ibexa.api.UserList+json, _href: /api/ibexa/v2/user/groups/1/5/81/users } + Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/groups/1/5/81/roles } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this User Group.' + summary: 'Create a top level User Group' + description: "Creates a top level User Group under the root. To create a child group under a parent group use '/user/groups/{path}/subgroups'." + parameters: + - + name: Accept + in: header + description: 'If set, the new User Group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The UserGroupCreate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new UserGroupCreateController resource' + content: + application/vnd.ibexa.api.UserGroupCreate+xml: + schema: + $ref: '#/components/schemas/UserGroupCreate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/subgroups/POST/UserGroupCreate.xml.example' + application/vnd.ibexa.api.UserGroupCreate+json: + schema: + $ref: '#/components/schemas/UserGroupCreateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/subgroups/POST/UserGroupCreate.json.example' + required: false + deprecated: false + '/user/groups/{path}': + get: + operationId: api_usergroups_path_get + tags: + - 'User Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.UserGroup+xml: + schema: + $ref: '#/components/schemas/UserGroup' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/79" id="85" remoteId="remoteId-qwert098"> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/3"/> + <name>UserGroup2</name> + <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/85/versions"/> + <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> + <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/79"/> + <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/85/locations"/> + <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <publishDate>2021-08-09T09:03:35+00:00</publishDate> + <lastModificationDate>2021-08-09T09:03:35+00:00</lastModificationDate> + <mainLanguageCode>eng-GB</mainLanguageCode> + <alwaysAvailable>true</alwaysAvailable> + <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/85/versions/1"> + <VersionInfo> + <id>576</id> + <versionNo>1</versionNo> + <status>PUBLISHED</status> + <modificationDate>2021-08-09T09:03:35+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <creationDate>2021-08-09T09:03:35+00:00</creationDate> + <initialLanguageCode>eng-GB</initialLanguageCode> + <languageCodes>eng-GB</languageCodes> + <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> + <Language> + <languageCode>eng-GB</languageCode> + </Language> + </VersionTranslationInfo> + <names> + <value languageCode="eng-GB">UserGroup2</value> + </names> + <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/85"/> + </VersionInfo> + <Fields> + <field> + <id>380</id> + <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>UserGroup2</fieldValue> + </field> + <field> + <id>381</id> + <fieldDefinitionIdentifier>description</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>This is the description of the user group</fieldValue> + </field> + </Fields> + <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/85/versions/1/relations"/> + <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> + <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user_group</resource> + <width></width> + <height></height> + <mimeType>image/svg+xml</mimeType> + </Thumbnail> + </Version> + <ParentUserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5"/> + <Subgroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups/1/5/79/subgroups"/> + <Users media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/groups/1/5/79/users"/> + <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/groups/1/5/79/roles"/> + </UserGroup> + application/vnd.ibexa.api.UserGroup+json: + schema: + $ref: '#/components/schemas/UserGroupWrapper' + example: + UserGroup: + _media-type: application/vnd.ibexa.api.UserGroup+json + _href: /api/ibexa/v2/user/groups/1/5/81 + _id: 87 + _remoteId: remoteId-qwert098 + ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/3 } + name: UserGroup2 + Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/87/versions } + Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 } + MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/81 } + Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/87/locations } + Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + publishDate: '2021-08-09T09:06:49+00:00' + lastModificationDate: '2021-08-09T09:06:49+00:00' + mainLanguageCode: eng-GB + alwaysAvailable: true + Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/87/versions/1, VersionInfo: { id: 578, versionNo: 1, status: PUBLISHED, modificationDate: '2021-08-09T09:06:49+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-08-09T09:06:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': UserGroup2 }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/87 } }, Fields: { field: [{ id: 384, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: UserGroup2 }, { id: 385, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'This is the description of the user group' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/87/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user_group', width: null, height: null, mimeType: image/svg+xml } } + ParentUserGroup: { _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5 } + Subgroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/groups/1/5/81/subgroups } + Users: { _media-type: application/vnd.ibexa.api.UserList+json, _href: /api/ibexa/v2/user/groups/1/5/81/users } + Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/groups/1/5/81/roles } + '401': + description: 'Error - the user has no permission to read User Groups.' + '404': + description: 'Error - the User Group does not exist.' + summary: 'Load User Group' + description: 'Loads User Groups for the given {path}.' + parameters: + - + name: Accept + in: header + description: 'If set, the new User Group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_usergroups_path_delete + tags: + - 'User Group' + responses: + '204': + description: 'No content - the given User Group is deleted.' + '401': + description: 'Error - the user is not authorized to delete this content type.' + '403': + description: 'Error - the User Group is not empty.' + summary: 'Delete User Group' + description: 'The given User Group is deleted.' + parameters: + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_usergroups_path_patch + tags: + - 'User Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.UserGroup+xml: + schema: + $ref: '#/components/schemas/UserGroup' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/79" id="85" remoteId="remoteId-qwert098"> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/3"/> + <name>UserGroup2</name> + <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/85/versions"/> + <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> + <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/79"/> + <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/85/locations"/> + <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <publishDate>2021-08-09T09:03:35+00:00</publishDate> + <lastModificationDate>2021-08-09T09:03:35+00:00</lastModificationDate> + <mainLanguageCode>eng-GB</mainLanguageCode> + <alwaysAvailable>true</alwaysAvailable> + <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/85/versions/1"> + <VersionInfo> + <id>576</id> + <versionNo>1</versionNo> + <status>PUBLISHED</status> + <modificationDate>2021-08-09T09:03:35+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <creationDate>2021-08-09T09:03:35+00:00</creationDate> + <initialLanguageCode>eng-GB</initialLanguageCode> + <languageCodes>eng-GB</languageCodes> + <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> + <Language> + <languageCode>eng-GB</languageCode> + </Language> + </VersionTranslationInfo> + <names> + <value languageCode="eng-GB">UserGroup2</value> + </names> + <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/85"/> + </VersionInfo> + <Fields> + <field> + <id>380</id> + <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>UserGroup2</fieldValue> + </field> + <field> + <id>381</id> + <fieldDefinitionIdentifier>description</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>This is the description of the user group</fieldValue> + </field> + </Fields> + <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/85/versions/1/relations"/> + <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> + <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user_group</resource> + <width></width> + <height></height> + <mimeType>image/svg+xml</mimeType> + </Thumbnail> + </Version> + <ParentUserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5"/> + <Subgroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups/1/5/79/subgroups"/> + <Users media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/groups/1/5/79/users"/> + <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/groups/1/5/79/roles"/> + </UserGroup> + application/vnd.ibexa.api.UserGroup+json: + schema: + $ref: '#/components/schemas/UserGroupWrapper' + example: + UserGroup: + _media-type: application/vnd.ibexa.api.UserGroup+json + _href: /api/ibexa/v2/user/groups/1/5/81 + _id: 87 + _remoteId: remoteId-qwert098 + ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/3 } + name: UserGroup2 + Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/87/versions } + Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 } + MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/81 } + Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/87/locations } + Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + publishDate: '2021-08-09T09:06:49+00:00' + lastModificationDate: '2021-08-09T09:06:49+00:00' + mainLanguageCode: eng-GB + alwaysAvailable: true + Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/87/versions/1, VersionInfo: { id: 578, versionNo: 1, status: PUBLISHED, modificationDate: '2021-08-09T09:06:49+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-08-09T09:06:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': UserGroup2 }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/87 } }, Fields: { field: [{ id: 384, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: UserGroup2 }, { id: 385, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'This is the description of the user group' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/87/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user_group', width: null, height: null, mimeType: image/svg+xml } } + ParentUserGroup: { _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5 } + Subgroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/groups/1/5/81/subgroups } + Users: { _media-type: application/vnd.ibexa.api.UserList+json, _href: /api/ibexa/v2/user/groups/1/5/81/users } + Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/groups/1/5/81/roles } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update the User Group.' + '412': + description: "Error -\tif the current ETag does not match with the one provided in the If-Match header." + summary: 'Update User Group' + description: 'Updates a User Group. PATCH or POST with header X-HTTP-Method-Override PATCH.' + parameters: + - + name: Accept + in: header + description: 'If set, the new User Group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The UserGroupUpdate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-Match + in: header + description: 'Performs the PATCH only if the specified ETag is the current one. Otherwise a 412 is returned.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated UserGroupUpdateController resource' + content: + application/vnd.ibexa.api.UserGroupUpdate+xml: + schema: + $ref: '#/components/schemas/UserGroupUpdate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/PATCH/UserGroupUpdate.xml.example' + application/vnd.ibexa.api.UserGroupUpdate+json: + schema: + $ref: '#/components/schemas/UserGroupUpdateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/PATCH/UserGroupUpdate.json.example' + required: false + deprecated: false + '/user/groups/{path}/roles': + get: + operationId: api_usergroups_pathroles_get + tags: + - 'User Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.RoleAssignmentList+xml: + schema: + $ref: '#/components/schemas/RoleAssignmentList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/113/roles/3"> + <limitation identifier="Section"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="6"/> + </values> + </limitation> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/3"/> + </RoleAssignment> + application/vnd.ibexa.api.RoleAssignmentList+json: + schema: + $ref: '#/components/schemas/RoleAssignmentListWrapper' + example: + RoleAssignmentList: + _media-type: application/vnd.ibexa.api.RoleAssignmentList+json + _href: /api/ibexa/v2/user/users/57/roles + RoleAssignment: [{ _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/1, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/1 } }, { _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/2, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/2 } }] + '400': + description: 'Error - the user has no permission to read Roles.' + summary: 'Load Roles for User Group' + description: 'Returns a list of all Roles assigned to the given User Group.' + parameters: + - + name: Accept + in: header + description: 'If set, the Role assignment list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_usergroups_pathroles_post + tags: + - 'User Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.RoleAssignmentList+xml: + schema: + $ref: '#/components/schemas/RoleAssignmentList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/113/roles/3"> + <limitation identifier="Section"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="6"/> + </values> + </limitation> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/3"/> + </RoleAssignment> + application/vnd.ibexa.api.RoleAssignmentList+json: + schema: + $ref: '#/components/schemas/RoleAssignmentListWrapper' + example: + RoleAssignmentList: + _media-type: application/vnd.ibexa.api.RoleAssignmentList+json + _href: /api/ibexa/v2/user/users/57/roles + RoleAssignment: [{ _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/1, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/1 } }, { _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/2, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/2 } }] + '400': + description: 'Error - validation of limitation in RoleAssignInput fails.' + '401': + description: 'Error - the user is not authorized to assign this Role.' + summary: 'Assign Role to User Group' + description: 'Assigns a Role to a User Group.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated Role assignment list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The RoleAssignInput schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new RoleAssignToUserGroupController resource' + content: + application/vnd.ibexa.api.RoleAssignInput+xml: + schema: + $ref: '#/components/schemas/RoleAssignInput' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/roles/POST/RoleAssignInput.xml.example' + application/vnd.ibexa.api.RoleAssignInput+json: + schema: + $ref: '#/components/schemas/RoleAssignInputWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/users/user_id/roles/POST/RoleAssignInput.json.example' + required: false + deprecated: false + '/user/groups/{path}/roles/{roleId}': + get: + operationId: api_usergroups_pathroles_roleId_get + tags: + - 'User Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.RoleAssignment+xml: + schema: + $ref: '#/components/schemas/RoleAssignment' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/113/roles/3"> + <limitation identifier="Section"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="6"/> + </values> + </limitation> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/3"/> + </RoleAssignment> + application/vnd.ibexa.api.RoleAssignment+json: + schema: + $ref: '#/components/schemas/RoleAssignmentWrapper' + example: + RoleAssignment: + _media-type: application/vnd.ibexa.api.RoleAssignment+json + _href: /api/ibexa/v2/user/users/113/roles/3 + limitation: { _identifier: Section, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '6' }] } } + Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/3 } + '401': + description: 'Error - the user has no permission to read Roles.' + summary: 'Load User Group Role Assignment' + description: 'Returns a Role assignment of the given User Group.' + parameters: + - + name: Accept + in: header + description: 'If set, the Role assignment list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: roleId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_usergroups_pathroles_roleId_delete + tags: + - 'User Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.RoleAssignmentList+xml: + schema: + $ref: '#/components/schemas/RoleAssignmentList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/113/roles/3"> + <limitation identifier="Section"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="6"/> + </values> + </limitation> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/3"/> + </RoleAssignment> + application/vnd.ibexa.api.RoleAssignmentList+json: + schema: + $ref: '#/components/schemas/RoleAssignmentListWrapper' + example: + RoleAssignmentList: + _media-type: application/vnd.ibexa.api.RoleAssignmentList+json + _href: /api/ibexa/v2/user/users/57/roles + RoleAssignment: [{ _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/1, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/1 } }, { _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/2, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/2 } }] + '401': + description: 'Error - the user is not authorized to delete this Role assignment.' + summary: 'Unassign Role from User Group' + description: 'The given Role is removed from the User or User Group.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated Role assignment list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: roleId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/user/groups/{path}/subgroups': + get: + operationId: api_usergroups_pathsubgroups_get + tags: + - 'User Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.UserGroupList+xml: + schema: + $ref: '#/components/schemas/UserGroupList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserGroupList media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups"> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13/15" id="14" remoteId="1bb4fe25487f05527efa8bfd394cecc7"> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/> + <name>Administrator User</name> + <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/14/versions"/> + <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> + <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/13/15"/> + <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/14/locations"/> + <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <publishDate>2002-10-06T16:13:50+00:00</publishDate> + <lastModificationDate>2011-03-25T14:07:04+00:00</lastModificationDate> + <mainLanguageCode>eng-GB</mainLanguageCode> + <alwaysAvailable>true</alwaysAvailable> + <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/14/versions/3"> + <VersionInfo> + <id>499</id> + <versionNo>3</versionNo> + <status>PUBLISHED</status> + <modificationDate>2011-03-25T14:07:04+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <creationDate>2011-03-25T14:03:03+00:00</creationDate> + <initialLanguageCode>eng-GB</initialLanguageCode> + <languageCodes>eng-GB</languageCodes> + <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> + <Language> + <languageCode>eng-GB</languageCode> + </Language> + </VersionTranslationInfo> + <names> + <value languageCode="eng-GB">Administrator User</value> + </names> + <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/14"/> + </VersionInfo> + <Fields> + <field> + <id>28</id> + <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>Administrator</fieldValue> + </field> + <field> + <id>29</id> + <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>User</fieldValue> + </field> + <field> + <id>30</id> + <fieldDefinitionIdentifier>user_account</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> + <fieldValue> + <value key="hasStoredLogin">true</value> + <value key="contentId">14</value> + <value key="login">admin</value> + <value key="email">admin@link.invalid</value> + <value key="passwordUpdatedAt"/> + <value key="enabled">true</value> + <value key="maxLogin">10</value> + <value key="plainPassword"/> + </fieldValue> + </field> + <field> + <id>178</id> + <fieldDefinitionIdentifier>signature</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_text</fieldTypeIdentifier> + <fieldValue/> + </field> + <field> + <id>180</id> + <fieldDefinitionIdentifier>image</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_image</fieldTypeIdentifier> + <fieldValue/> + </field> + </Fields> + <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/14/versions/3/relations"/> + <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> + <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user</resource> + <width></width> + <height></height> + <mimeType>image/svg+xml</mimeType> + </Thumbnail> + </Version> + <ParentUserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13"/> + <Subgroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups/1/5/13/15/subgroups"/> + <Users media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/groups/1/5/13/15/users"/> + <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/groups/1/5/13/15/roles"/> + </UserGroup> + </UserGroupList> + application/vnd.ibexa.api.UserGroupList+json: + schema: + $ref: '#/components/schemas/UserGroupListWrapper' + example: + UserGroupList: + _media-type: application/vnd.ibexa.api.UserGroupList+json + _href: /api/ibexa/v2/user/groups + UserGroup: [{ _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13/15, _id: 14, _remoteId: 1bb4fe25487f05527efa8bfd394cecc7, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 }, name: 'Administrator User', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/14/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/13/15 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/14/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, publishDate: '2002-10-06T16:13:50+00:00', lastModificationDate: '2011-03-25T14:07:04+00:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/14/versions/3, VersionInfo: { id: 499, versionNo: 3, status: PUBLISHED, modificationDate: '2011-03-25T14:07:04+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2011-03-25T14:03:03+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Administrator User' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/14 } }, Fields: { field: [{ id: 28, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Administrator }, { id: 29, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: User }, { id: 30, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 14, login: admin, email: admin@link.invalid, passwordUpdatedAt: null, enabled: true, maxLogin: 10, plainPassword: null } }, { id: 178, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 180, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/14/versions/3/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user', width: null, height: null, mimeType: image/svg+xml } }, ParentUserGroup: { _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13 }, Subgroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/groups/1/5/13/15/subgroups }, Users: { _media-type: application/vnd.ibexa.api.UserList+json, _href: /api/ibexa/v2/user/groups/1/5/13/15/users }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/groups/1/5/13/15/roles } }] + application/vnd.ibexa.api.UserGroupRefList+xml: + schema: + $ref: '#/components/schemas/UserGroupRefList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserGroupRefList media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/115/groups"> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/12"> + <unassign href="/api/ibexa/v2/user/users/79/groups/12" method="DELETE"/> + </UserGroup> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13"> + <unassign href="/api/ibexa/v2/user/users/115/groups/13" method="DELETE"/> + </UserGroup> + </UserGroupRefList> + application/vnd.ibexa.api.UserGroupRefList+json: + schema: + $ref: '#/components/schemas/UserGroupRefListWrapper' + example: + UserGroupRefList: + _media-type: application/vnd.ibexa.api.UserGroupRefList+json + _href: /api/ibexa/v2/user/users/57/groups + UserGroup: [{ _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13 }] + '401': + description: 'Error - the user has no permission to read User Groups.' + '404': + description: 'Error - the User Group does not exist.' + summary: 'Load subgroups' + description: 'Returns a list of the subgroups.' + parameters: + - + name: Accept + in: header + description: 'UserGroupList - If set, the User Group list is returned in XML or JSON format. UserGroupRefList - If set, the link list of User Groups is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_usergroups_pathsubgroups_post + tags: + - 'User Group' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.UserGroup+xml: + schema: + $ref: '#/components/schemas/UserGroup' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/79" id="85" remoteId="remoteId-qwert098"> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/3"/> + <name>UserGroup2</name> + <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/85/versions"/> + <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> + <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/79"/> + <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/85/locations"/> + <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <publishDate>2021-08-09T09:03:35+00:00</publishDate> + <lastModificationDate>2021-08-09T09:03:35+00:00</lastModificationDate> + <mainLanguageCode>eng-GB</mainLanguageCode> + <alwaysAvailable>true</alwaysAvailable> + <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/85/versions/1"> + <VersionInfo> + <id>576</id> + <versionNo>1</versionNo> + <status>PUBLISHED</status> + <modificationDate>2021-08-09T09:03:35+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <creationDate>2021-08-09T09:03:35+00:00</creationDate> + <initialLanguageCode>eng-GB</initialLanguageCode> + <languageCodes>eng-GB</languageCodes> + <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> + <Language> + <languageCode>eng-GB</languageCode> + </Language> + </VersionTranslationInfo> + <names> + <value languageCode="eng-GB">UserGroup2</value> + </names> + <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/85"/> + </VersionInfo> + <Fields> + <field> + <id>380</id> + <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>UserGroup2</fieldValue> + </field> + <field> + <id>381</id> + <fieldDefinitionIdentifier>description</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>This is the description of the user group</fieldValue> + </field> + </Fields> + <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/85/versions/1/relations"/> + <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> + <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user_group</resource> + <width></width> + <height></height> + <mimeType>image/svg+xml</mimeType> + </Thumbnail> + </Version> + <ParentUserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5"/> + <Subgroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups/1/5/79/subgroups"/> + <Users media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/groups/1/5/79/users"/> + <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/groups/1/5/79/roles"/> + </UserGroup> + application/vnd.ibexa.api.UserGroup+json: + schema: + $ref: '#/components/schemas/UserGroupWrapper' + example: + UserGroup: + _media-type: application/vnd.ibexa.api.UserGroup+json + _href: /api/ibexa/v2/user/groups/1/5/81 + _id: 87 + _remoteId: remoteId-qwert098 + ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/3 } + name: UserGroup2 + Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/87/versions } + Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 } + MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/81 } + Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/87/locations } + Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } + publishDate: '2021-08-09T09:06:49+00:00' + lastModificationDate: '2021-08-09T09:06:49+00:00' + mainLanguageCode: eng-GB + alwaysAvailable: true + Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/87/versions/1, VersionInfo: { id: 578, versionNo: 1, status: PUBLISHED, modificationDate: '2021-08-09T09:06:49+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-08-09T09:06:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': UserGroup2 }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/87 } }, Fields: { field: [{ id: 384, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: UserGroup2 }, { id: 385, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'This is the description of the user group' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/87/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user_group', width: null, height: null, mimeType: image/svg+xml } } + ParentUserGroup: { _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5 } + Subgroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/groups/1/5/81/subgroups } + Users: { _media-type: application/vnd.ibexa.api.UserList+json, _href: /api/ibexa/v2/user/groups/1/5/81/users } + Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/groups/1/5/81/roles } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this User Group.' + summary: 'Create User Group' + description: "Creates a new User Group under the given parent. To create a top level group use '/user/groups/subgroups'." + parameters: + - + name: Accept + in: header + description: 'If set, the new User Group is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The UserGroupCreate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new UserGroupCreateController resource' + content: + application/vnd.ibexa.api.UserGroupCreate+xml: + schema: + $ref: '#/components/schemas/UserGroupCreate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/subgroups/POST/UserGroupCreate.xml.example' + application/vnd.ibexa.api.UserGroupCreate+json: + schema: + $ref: '#/components/schemas/UserGroupCreateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/subgroups/POST/UserGroupCreate.json.example' + required: false + deprecated: false + '/user/groups/{path}/users': + get: + operationId: api_usergroups_pathusers_get + tags: + - 'User Group' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.UserList+xml: + schema: + $ref: '#/components/schemas/UserList' + application/vnd.ibexa.api.UserList+json: + schema: + $ref: '#/components/schemas/UserList' + application/vnd.ibexa.api.UserRefList+xml: + schema: + $ref: '#/components/schemas/UserRefList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <UserRefList media-type="application/vnd.ibexa.api.UserRefList+xml" href="/api/ibexa/v2/user/users"> + <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + </UserRefList> + application/vnd.ibexa.api.UserRefList+json: + schema: + $ref: '#/components/schemas/UserRefListWrapper' + example: + UserRefList: + _media-type: application/vnd.ibexa.api.UserRefList+json + _href: /api/ibexa/v2/user/groups/13/users + User: [{ _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/113 }, { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }] + '401': + description: 'Error - the user has no permission to read User Groups.' + '404': + description: 'Error - the User Group does not exist.' + summary: 'Load Users of Group' + description: 'Loads the Users of the Group with the given ID.' + parameters: + - + name: Accept + in: header + description: 'UserList - If set, the User list returned in XML or JSON format. UserRefList - If set, the link list of Users returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_usergroups_pathusers_post + tags: + - 'User Group' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.User+xml: + schema: + $ref: '#/components/schemas/User' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/79" id="79" remoteId="bcf0764b417f05af21852a1f03fb1f13"> + <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/> + <name>Jose Vargas</name> + <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/79/versions"/> + <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> + <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/12/79"/> + <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/79/locations"/> + <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/79/groups"/> + <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> + <publishDate>2021-06-29T08:23:42+00:00</publishDate> + <lastModificationDate>2021-07-29T11:45:07+00:00</lastModificationDate> + <mainLanguageCode>eng-GB</mainLanguageCode> + <alwaysAvailable>true</alwaysAvailable> + <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/79/versions/6"> + <VersionInfo> + <id>609</id> + <versionNo>6</versionNo> + <status>PUBLISHED</status> + <modificationDate>2021-07-29T11:45:07+00:00</modificationDate> + <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + <creationDate>2021-07-29T11:45:07+00:00</creationDate> + <initialLanguageCode>eng-GB</initialLanguageCode> + <languageCodes>eng-GB</languageCodes> + <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> + <Language> + <languageCode>eng-GB</languageCode> + </Language> + </VersionTranslationInfo> + <names> + <value languageCode="eng-GB">Jose Vargas</value> + </names> + <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/79"/> + </VersionInfo> + <Fields> + <field> + <id>342</id> + <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>Jose</fieldValue> + </field> + <field> + <id>343</id> + <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> + <fieldValue>Vargas</fieldValue> + </field> + <field> + <id>344</id> + <fieldDefinitionIdentifier>user_account</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> + <fieldValue> + <value key="hasStoredLogin">true</value> + <value key="contentId">79</value> + <value key="login">josevargas</value> + <value key="email">aa@bb.cc</value> + <value key="passwordUpdatedAt"/> + <value key="enabled">false</value> + <value key="maxLogin">0</value> + <value key="plainPassword"/> + </fieldValue> + </field> + <field> + <id>345</id> + <fieldDefinitionIdentifier>signature</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_text</fieldTypeIdentifier> + <fieldValue/> + </field> + <field> + <id>346</id> + <fieldDefinitionIdentifier>image</fieldDefinitionIdentifier> + <languageCode>eng-GB</languageCode> + <fieldTypeIdentifier>ibexa_image</fieldTypeIdentifier> + <fieldValue/> + </field> + </Fields> + <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/79/versions/6/relations"/> + <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> + <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user</resource> + <width></width> + <height></height> + <mimeType>image/svg+xml</mimeType> + </Thumbnail> + </Version> + <login>josevargas</login> + <email>aa@bb.cc</email> + <enabled>false</enabled> + <UserGroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/users/79/groups"/> + <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/79/roles"/> + </User> + application/vnd.ibexa.api.User+json: + schema: + $ref: '#/components/schemas/UserWrapper' + example: + User: + _media-type: application/vnd.ibexa.api.User+json + _href: /api/ibexa/v2/user/users/79 + _id: 79 + _remoteId: bcf0764b417f05af21852a1f03fb1f13 + ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 } + name: 'Jose Vargas' + Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/79/versions } + Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 } + MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/12/79 } + Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/79/locations } + Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/79/groups } + Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 } + publishDate: '2021-06-29T08:23:42+00:00' + lastModificationDate: '2021-07-29T12:00:24+00:00' + mainLanguageCode: eng-GB + alwaysAvailable: true + Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/79/versions/11, VersionInfo: { id: 614, versionNo: 11, status: PUBLISHED, modificationDate: '2021-07-29T12:00:24+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-07-29T12:00:24+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jose Vargas' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/79 } }, Fields: { field: [{ id: 342, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jose }, { id: 343, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Vargas }, { id: 344, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 79, login: josevargas, email: aa@bb.cc, passwordUpdatedAt: null, enabled: false, maxLogin: 0, plainPassword: null } }, { id: 345, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 346, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/79/versions/11/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user', width: null, height: null, mimeType: image/svg+xml } } + login: josevargas + email: aa@bb.cc + enabled: false + UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/79/groups } + Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/79/roles } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create this User.' + '403': + description: 'Error - a User with the same login already exists.' + '404': + description: 'Error - the Group with the given ID does not exist.' + summary: 'Create User' + description: 'Creates a new User in the given Group.' + parameters: + - + name: Accept + in: header + description: 'If set, the new User is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The UserCreate schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: path + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new UserCreateController resource' + content: + application/vnd.ibexa.api.UserCreate+xml: + schema: + $ref: '#/components/schemas/UserCreate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/users/POST/UserCreate.xml.example' + application/vnd.ibexa.api.UserCreate+json: + schema: + $ref: '#/components/schemas/UserCreateWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/users/POST/UserCreate.json.example' + required: false + deprecated: false + /user/policies: + get: + operationId: api_userpolicies_get + tags: + - 'User Policy' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.PolicyList+xml: + schema: + $ref: '#/components/schemas/PolicyList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <PolicyList media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/1/policies"> + <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/349"> + <id>349</id> + <module>content</module> + <function>read</function> + <limitations> + <limitation identifier="Section"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="1"/> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="3"/> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="6"/> + </values> + </limitation> + </limitations> + </Policy> + <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/350"> + <id>350</id> + <module>user</module> + <function>login</function> + <limitations> + <limitation identifier="SiteAccess"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="2282622326"/> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="1766001124"/> + </values> + </limitation> + </limitations> + </Policy> + <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/351"> + <id>351</id> + <module>content</module> + <function>view_embed</function> + <limitations> + <limitation identifier="Class"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="5"/> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="12"/> + </values> + </limitation> + </limitations> + </Policy> + <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/352"> + <id>352</id> + <module>user</module> + <function>register</function> + </Policy> + <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/353"> + <id>353</id> + <module>user</module> + <function>password</function> + </Policy> + </PolicyList> + application/vnd.ibexa.api.PolicyList+json: + schema: + $ref: '#/components/schemas/PolicyListWrapper' + example: + PolicyList: + _media-type: application/vnd.ibexa.api.PolicyList+json + _href: /api/ibexa/v2/user/roles/1/policies + Policy: [{ _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/349, id: 349, module: content, function: read, limitations: { limitation: [{ _identifier: Section, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '1' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '3' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '6' }] } }] } }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/350, id: 350, module: user, function: login, limitations: { limitation: [{ _identifier: SiteAccess, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '2282622326' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '1766001124' }] } }] } }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/351, id: 351, module: content, function: view_embed, limitations: { limitation: [{ _identifier: Class, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '5' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '12' }] } }] } }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/352, id: 352, module: user, function: register }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/353, id: 353, module: user, function: password }] + '401': + description: 'Error - the user has no permission to read Roles.' + summary: 'List Policies for User' + description: 'Search all Policies which are applied to a given User.' + parameters: + - + name: Accept + in: header + description: 'If set, the Policy list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + /user/roles: + get: + operationId: api_userroles_get + tags: + - 'User Role' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.RoleList+xml: + schema: + $ref: '#/components/schemas/RoleList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <RoleList media-type="application/vnd.ibexa.api.RoleList+xml" href="/api/ibexa/v2/user/roles"> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/1"> + <identifier>Anonymous</identifier> + <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/1/policies"/> + </Role> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/2"> + <identifier>Administrator</identifier> + <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/2/policies"/> + </Role> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/3"> + <identifier>Editor</identifier> + <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/3/policies"/> + </Role> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/4"> + <identifier>Member</identifier> + <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/4/policies"/> + </Role> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/10"> + <identifier>NewRole</identifier> + <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/10/policies"/> + </Role> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/14"> + <identifier>NewRole5</identifier> + <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/14/policies"/> + </Role> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/15"> + <identifier>NewRole7</identifier> + <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/15/policies"/> + </Role> + </RoleList> + application/vnd.ibexa.api.RoleList+json: + schema: + $ref: '#/components/schemas/RoleListWrapper' + example: + RoleList: + _media-type: application/vnd.ibexa.api.RoleList+json + _href: /api/ibexa/v2/user/roles + Role: [{ _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/1, identifier: Anonymous, Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/1/policies } }, { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/2, identifier: Administrator, Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/2/policies } }, { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/3, identifier: Editor, Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/3/policies } }, { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/4, identifier: Member, Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/4/policies } }, { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/10, identifier: NewRole, Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/10/policies } }, { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/14, identifier: NewRole5, Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/14/policies } }, { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/15, identifier: NewRole7, Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/15/policies } }] + '401': + description: 'Error - the user has no permission to read Roles.' + summary: 'Load Roles' + description: 'Returns a list of all Roles.' + parameters: + - + name: Accept + in: header + description: 'If set, the user list returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_userroles_post + tags: + - 'User Role' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.Role+xml: + schema: + $ref: '#/components/schemas/Role' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/9"> + <identifier>UpdatedIdentifier</identifier> + <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/9/policies"/> + </Role> + application/vnd.ibexa.api.Role+json: + schema: + $ref: '#/components/schemas/RoleWrapper' + example: + Role: + _media-type: application/vnd.ibexa.api.Role+json + _href: /api/ibexa/v2/user/roles/6 + identifier: UpdatedIdentifier + Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/6/policies } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to create a Role or a Role draft.' + summary: 'Create Role or Role draft' + description: 'Creates a new Role or Role draft.' + parameters: + - + name: Accept + in: header + description: 'If set, the new user is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The RoleInput schema encoded in XML or JSON.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new RoleCreateController resource' + content: + application/vnd.ibexa.api.RoleInput+xml: + schema: + $ref: '#/components/schemas/RoleInput' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/POST/RoleInput.xml.example' + application/vnd.ibexa.api.RoleInput+json: + schema: + $ref: '#/components/schemas/RoleInputWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/POST/RoleInput.json.example' + required: false + deprecated: false + '/user/roles/{id}': + get: + operationId: api_userroles_id_get + tags: + - 'User Role' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Role+xml: + schema: + $ref: '#/components/schemas/Role' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/9"> + <identifier>UpdatedIdentifier</identifier> + <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/9/policies"/> + </Role> + application/vnd.ibexa.api.Role+json: + schema: + $ref: '#/components/schemas/RoleWrapper' + example: + Role: + _media-type: application/vnd.ibexa.api.Role+json + _href: /api/ibexa/v2/user/roles/6 + identifier: UpdatedIdentifier + Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/6/policies } + '401': + description: 'Error - the user has no permission to read Roles.' + '404': + description: 'Error - the Role does not exist.' + summary: 'Load Role' + description: 'Loads a Role for the given ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the user list returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_userroles_id_post + tags: + - 'User Role' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.RoleDraft+xml: + schema: + $ref: '#/components/schemas/RoleDraft' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <Role href="/user/roles/11" media-type="application/vnd.ibexa.api.RoleDraft+xml"> + <identifier>MyRole</identifier> + <Policies href="/user/roles/11/policies" media-type="application/vnd.ibexa.api.PolicyList+xml"/> + </Role> + application/vnd.ibexa.api.RoleDraft+json: + schema: + $ref: '#/components/schemas/RoleDraftWrapper' + example: + Role: + _media-type: application/vnd.ibexa.api.Role+json + _href: /api/ibexa/v2/user/roles/6 + identifier: UpdatedIdentifier + Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/6/policies } + '401': + description: 'Error - the user is not authorized to create a Role or a Role draft' + summary: 'Create Role Draft' + description: 'Creates a new Role draft from an existing Role.' + parameters: + - + name: Accept + in: header + description: 'If set, the new user is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The RoleInput schema encoded in XML or JSON.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new RoleDraftCreateController resource' + content: { } + required: false + deprecated: false + delete: + operationId: api_userroles_id_delete + tags: + - 'User Role' + responses: + '204': + description: 'No Content.' + '401': + description: 'Error - the User is not authorized to delete this Role.' + summary: 'Delete Role' + description: 'The given Role and all assignments to Users or User Groups are deleted.' + parameters: + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_userroles_id_patch + tags: + - 'User Role' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Role+xml: + schema: + $ref: '#/components/schemas/Role' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/9"> + <identifier>UpdatedIdentifier</identifier> + <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/9/policies"/> + </Role> + application/vnd.ibexa.api.Role+json: + schema: + $ref: '#/components/schemas/RoleWrapper' + example: + Role: + _media-type: application/vnd.ibexa.api.Role+json + _href: /api/ibexa/v2/user/roles/6 + identifier: UpdatedIdentifier + Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/6/policies } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update the Role.' + '412': + description: 'Error - the current ETag does not match with the provided one in the If-Match header.' + summary: 'Update Role' + description: 'Updates a Role. PATCH or POST with header X-HTTP-Method-Override PATCH' + parameters: + - + name: Accept + in: header + description: 'If set, the new user is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The RoleInput schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-Match + in: header + description: 'ETag Causes to patch only if the specified ETag is the current one. Otherwise a 412 is returned.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated RoleUpdateController resource' + content: + application/vnd.ibexa.api.RoleInput+xml: + schema: + $ref: '#/components/schemas/RoleInput' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/POST/RoleInput.xml.example' + application/vnd.ibexa.api.RoleInput+json: + schema: + $ref: '#/components/schemas/RoleInputWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/POST/RoleInput.json.example' + required: false + deprecated: false + '/user/roles/{id}/draft': + get: + operationId: api_userroles_iddraft_get + tags: + - 'User Role' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Role+xml: + schema: + $ref: '#/components/schemas/Role' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/9"> + <identifier>UpdatedIdentifier</identifier> + <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/9/policies"/> + </Role> + application/vnd.ibexa.api.Role+json: + schema: + $ref: '#/components/schemas/RoleWrapper' + example: + Role: + _media-type: application/vnd.ibexa.api.Role+json + _href: /api/ibexa/v2/user/roles/6 + identifier: UpdatedIdentifier + Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/6/policies } + '401': + description: 'Error - the user has no permission to read Roles.' + '404': + description: 'Error - there is no draft or Role with the given ID.' + summary: 'Load Role draft' + description: 'Loads a Role draft by original Role ID.' + parameters: + - + name: Accept + in: header + description: 'If set, the User list returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_userroles_iddraft_delete + tags: + - 'User Role' + responses: + '204': + description: 'No Content.' + '401': + description: 'Error - the user is not authorized to delete this Role.' + summary: 'Delete Role draft' + description: 'The given Role draft is deleted.' + parameters: + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_userroles_iddraft_patch + tags: + - 'User Role' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Role+xml: + schema: + $ref: '#/components/schemas/Role' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/9"> + <identifier>UpdatedIdentifier</identifier> + <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/9/policies"/> + </Role> + application/vnd.ibexa.api.Role+json: + schema: + $ref: '#/components/schemas/RoleWrapper' + example: + Role: + _media-type: application/vnd.ibexa.api.Role+json + _href: /api/ibexa/v2/user/roles/6 + identifier: UpdatedIdentifier + Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/6/policies } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the user is not authorized to update the Role.' + '404': + description: 'Error - there is no draft or Role with the given ID.' + '412': + description: 'Error - the current ETag does not match with the one provided in the If-Match header.' + summary: 'Update Role draft' + description: 'Updates a Role draft. PATCH or POST with header X-HTTP-Method-Override PATCH.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated Role is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The RoleInput schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-Match + in: header + description: 'Performs a PATCH only if the specified ETag is the current one. Otherwise a 412 is returned.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated RoleDraftUpdateController resource' + content: + application/vnd.ibexa.api.RoleInput+xml: + schema: + $ref: '#/components/schemas/RoleInput' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/POST/RoleInput.xml.example' + application/vnd.ibexa.api.RoleInput+json: + schema: + $ref: '#/components/schemas/RoleInputWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/POST/RoleInput.json.example' + required: false + deprecated: false + '/user/roles/{id}/policies': + get: + operationId: api_userroles_idpolicies_get + tags: + - 'User Role' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.PolicyList+xml: + schema: + $ref: '#/components/schemas/PolicyList' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <PolicyList media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/1/policies"> + <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/349"> + <id>349</id> + <module>content</module> + <function>read</function> + <limitations> + <limitation identifier="Section"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="1"/> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="3"/> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="6"/> + </values> + </limitation> + </limitations> + </Policy> + <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/350"> + <id>350</id> + <module>user</module> + <function>login</function> + <limitations> + <limitation identifier="SiteAccess"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="2282622326"/> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="1766001124"/> + </values> + </limitation> + </limitations> + </Policy> + <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/351"> + <id>351</id> + <module>content</module> + <function>view_embed</function> + <limitations> + <limitation identifier="Class"> + <values> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="5"/> + <ref media-type="application/vnd.ibexa.api.ref+xml" href="12"/> + </values> + </limitation> + </limitations> + </Policy> + <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/352"> + <id>352</id> + <module>user</module> + <function>register</function> + </Policy> + <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/353"> + <id>353</id> + <module>user</module> + <function>password</function> + </Policy> + </PolicyList> + application/vnd.ibexa.api.PolicyList+json: + schema: + $ref: '#/components/schemas/PolicyListWrapper' + example: + PolicyList: + _media-type: application/vnd.ibexa.api.PolicyList+json + _href: /api/ibexa/v2/user/roles/1/policies + Policy: [{ _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/349, id: 349, module: content, function: read, limitations: { limitation: [{ _identifier: Section, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '1' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '3' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '6' }] } }] } }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/350, id: 350, module: user, function: login, limitations: { limitation: [{ _identifier: SiteAccess, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '2282622326' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '1766001124' }] } }] } }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/351, id: 351, module: content, function: view_embed, limitations: { limitation: [{ _identifier: Class, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '5' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '12' }] } }] } }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/352, id: 352, module: user, function: register }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/353, id: 353, module: user, function: password }] + '401': + description: 'Error - the user has no permission to read Roles.' + '404': + description: 'Error - the Role does not exist.' + summary: 'Load Policies' + description: 'Loads Policies for the given Role.' + parameters: + - + name: Accept + in: header + description: 'If set, the Policy list is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + post: + operationId: api_userroles_idpolicies_post + tags: + - 'User Role' + responses: + '201': + description: '201' + content: + application/vnd.ibexa.api.Policy+xml: + schema: + $ref: '#/components/schemas/Policy' + example: | + <Policy href="/user/roles/11/policies/55" media-type="application/vnd.ibexa.api.Policy+xml"> + <id>55</id> + <module>content</module> + <function>create</function> + <limitations> + <limitation identifier="Class"> + <values> + <ref href="/content/types/14"/> + </values> + </limitation> + <limitation identifier="ParentClass"> + <values> + <ref href="/content/types/10"/> + </values> + </limitation> + </limitations> + </Policy> + application/vnd.ibexa.api.Policy+json: + schema: + $ref: '#/components/schemas/PolicyWrapper' + example: + Policy: + _media-type: application/vnd.ibexa.api.Policy+json + _href: /api/ibexa/v2/user/roles/1/policies/352 + id: 352 + module: user + function: register + '400': + description: 'Error - the input does not match the input schema definition or validation of limitation in PolicyCreate fails.' + '401': + description: 'Error - the user is not authorized to create the Policy.' + '404': + description: 'Error - the Role does not exist.' + summary: 'Create Policy' + description: 'Creates a Policy' + parameters: + - + name: Accept + in: header + description: 'If set, the updated Policy is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'If set, the updated Policy is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new RolePolicyCreateController resource' + content: + application/vnd.ibexa.api.PolicyCreate+xml: + schema: + $ref: '#/components/schemas/PolicyCreate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/id/policies/POST/PolicyCreate.xml.example' + application/vnd.ibexa.api.PolicyCreate+json: + schema: + $ref: '#/components/schemas/PolicyCreateWrapper' + required: false + deprecated: false + delete: + operationId: api_userroles_idpolicies_delete + tags: + - 'User Role' + responses: + '204': + description: 'No Content - all Policies of the given Role are deleted.' + '401': + description: 'Error - the user is not authorized to delete this content type.' + summary: 'Delete Policies' + description: 'All Policies of the given Role are deleted.' + parameters: + - + name: id + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/user/roles/{roleId}/policies/{policyId}': + get: + operationId: api_userroles_roleIdpolicies_policyId_get + tags: + - 'User Role' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Policy+xml: + schema: + $ref: '#/components/schemas/Policy' + example: | + <Policy href="/user/roles/11/policies/55" media-type="application/vnd.ibexa.api.Policy+xml"> + <id>55</id> + <module>content</module> + <function>create</function> + <limitations> + <limitation identifier="Class"> + <values> + <ref href="/content/types/14"/> + </values> + </limitation> + <limitation identifier="ParentClass"> + <values> + <ref href="/content/types/10"/> + </values> + </limitation> + </limitations> + </Policy> + application/vnd.ibexa.api.Policy+json: + schema: + $ref: '#/components/schemas/PolicyWrapper' + example: + Policy: + _media-type: application/vnd.ibexa.api.Policy+json + _href: /api/ibexa/v2/user/roles/1/policies/352 + id: 352 + module: user + function: register + '401': + description: 'Error - the user has no permission to read Roles.' + '404': + description: 'Error - the Role or Policy does not exist.' + summary: 'Load Policy' + description: 'Loads a Policy for the given module and function.' + parameters: + - + name: Accept + in: header + description: 'If set, the Policy is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-None-Match + in: header + description: ETag + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: policyId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: roleId + in: path + description: 'RolePolicyLoadByIdController identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + delete: + operationId: api_userroles_roleIdpolicies_policyId_delete + tags: + - 'User Role' + responses: + '204': + description: 'No Content - the given Policy is deleted.' + '401': + description: 'Error - the user is not authorized to delete this content type.' + '404': + description: 'Error - the Role or Policy does not exist.' + summary: 'Delete Policy' + description: 'Deletes given Policy.' + parameters: + - + name: policyId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: roleId + in: path + description: 'RolePolicyDeleteController identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + patch: + operationId: api_userroles_roleIdpolicies_policyId_patch + tags: + - 'User Role' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Policy+xml: + schema: + $ref: '#/components/schemas/Policy' + example: | + <Policy href="/user/roles/11/policies/55" media-type="application/vnd.ibexa.api.Policy+xml"> + <id>55</id> + <module>content</module> + <function>create</function> + <limitations> + <limitation identifier="Class"> + <values> + <ref href="/content/types/14"/> + </values> + </limitation> + <limitation identifier="ParentClass"> + <values> + <ref href="/content/types/10"/> + </values> + </limitation> + </limitations> + </Policy> + application/vnd.ibexa.api.Policy+json: + schema: + $ref: '#/components/schemas/PolicyWrapper' + example: + Policy: + _media-type: application/vnd.ibexa.api.Policy+json + _href: /api/ibexa/v2/user/roles/1/policies/352 + id: 352 + module: user + function: register + '400': + description: 'Error - the input does not match the input schema definition or validation of limitation in PolicyUpdate fails.' + '401': + description: 'Error - the user is not authorized to update the Policy.' + '404': + description: 'Error - the Role does not exist.' + '412': + description: 'Error - the current ETag does not match with the one provided in the If-Match header.' + summary: 'Update Policy' + description: 'Updates a Policy. PATCH or POST with header X-HTTP-Method-Override PATCH.' + parameters: + - + name: Accept + in: header + description: 'If set, the updated Policy is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'If set, the updated Policy is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: If-Match + in: header + description: 'Causes to patch only if the specified ETag is the current one. Otherwise a 412 is returned.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: policyId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: roleId + in: path + description: 'RolePolicyUpdateController identifier' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The updated RolePolicyUpdateController resource' + content: + application/vnd.ibexa.api.PolicyUpdate+xml: + schema: + $ref: '#/components/schemas/PolicyUpdate' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/id/policies/id/PATCH/PolicyUpdate.xml.example' + application/vnd.ibexa.api.PolicyUpdate+json: + schema: + $ref: '#/components/schemas/PolicyUpdateWrapper' + required: false + deprecated: false + /user/sessions: + post: + operationId: api_usersessions_post + tags: + - 'User Session' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Session+xml: + schema: + $ref: '#/components/schemas/Session' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <Session media-type="application/vnd.ibexa.api.Session+xml" href="/api/ibexa/v2/user/sessions/ABCDEFGHIJKLMNOPQRSTUVWXYZ"> + <name>IBX_SESSION_ID0123456789ABCDEFGHIJKLMNOPQRSTUV</name> + <identifier>ABCDEFGHIJKLMNOPQRSTUVWXYZ</identifier> + <csrfToken>0123456789ABCDEF.GHIJKLMNOP_QRSTUVWXYZabcdefghijklmnopqrstuv.wxyz0123456-789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq</csrfToken> + <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + </Session> + application/vnd.ibexa.api.Session+json: + schema: + $ref: '#/components/schemas/SessionWrapper' + example: + Session: + _media-type: application/vnd.ibexa.api.Session + name: eZSSID + identifier: go327ij2cirpo59pb6rrv2a4el2 + csrfToken: 23lkneri34ijajedfw39orj3j93 + User: { _href: /user/users/14, _media-type: application/vnd.ibexa.api.User+json } + '201': + description: '201' + content: + application/vnd.ibexa.api.Session+xml: + schema: + $ref: '#/components/schemas/Session' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <Session media-type="application/vnd.ibexa.api.Session+xml" href="/api/ibexa/v2/user/sessions/ABCDEFGHIJKLMNOPQRSTUVWXYZ"> + <name>IBX_SESSION_ID0123456789ABCDEFGHIJKLMNOPQRSTUV</name> + <identifier>ABCDEFGHIJKLMNOPQRSTUVWXYZ</identifier> + <csrfToken>0123456789ABCDEF.GHIJKLMNOP_QRSTUVWXYZabcdefghijklmnopqrstuv.wxyz0123456-789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq</csrfToken> + <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + </Session> + application/vnd.ibexa.api.Session+json: + schema: + $ref: '#/components/schemas/SessionWrapper' + example: + Session: + _media-type: application/vnd.ibexa.api.Session + name: eZSSID + identifier: go327ij2cirpo59pb6rrv2a4el2 + csrfToken: 23lkneri34ijajedfw39orj3j93 + User: { _href: /user/users/14, _media-type: application/vnd.ibexa.api.User+json } + '400': + description: 'Error - the input does not match the input schema definition.' + '401': + description: 'Error - the authorization failed.' + '409': + description: 'Error - header contained a session cookie but different user was authorized.' + summary: 'Create session (login a User)' + description: 'Performs a login for the user or checks if session exists and returns the session and session cookie. The client will need to remember both session name/ID and CSRF token as this is for security reasons not exposed via GET.' + parameters: + - + name: Accept + in: header + description: 'If set, the session is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The SessionInput schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Cookie + in: header + description: "Only needed for session's checking {sessionName}={sessionID}." + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: X-CSRF-Token + in: header + description: "Only needed for session's checking. The {csrfToken} needed on all unsafe HTTP methods with session." + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new SessionCreateController resource' + content: + application/vnd.ibexa.api.SessionInput+xml: + schema: + $ref: '#/components/schemas/SessionInput' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/sessions/POST/SessionInput.xml.example' + application/vnd.ibexa.api.SessionInput+json: + schema: + $ref: '#/components/schemas/SessionInputWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/sessions/POST/SessionInput.json.example' + required: false + deprecated: false + /user/sessions/current: + get: + operationId: api_usersessionscurrent_get + tags: + - 'User Session' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Session+xml: + schema: + $ref: '#/components/schemas/Session' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <Session media-type="application/vnd.ibexa.api.Session+xml" href="/api/ibexa/v2/user/sessions/ABCDEFGHIJKLMNOPQRSTUVWXYZ"> + <name>IBX_SESSION_ID0123456789ABCDEFGHIJKLMNOPQRSTUV</name> + <identifier>ABCDEFGHIJKLMNOPQRSTUVWXYZ</identifier> + <csrfToken>0123456789ABCDEF.GHIJKLMNOP_QRSTUVWXYZabcdefghijklmnopqrstuv.wxyz0123456-789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq</csrfToken> + <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + </Session> + application/vnd.ibexa.api.Session+json: + schema: + $ref: '#/components/schemas/SessionWrapper' + example: + Session: + _media-type: application/vnd.ibexa.api.Session + name: eZSSID + identifier: go327ij2cirpo59pb6rrv2a4el2 + csrfToken: 23lkneri34ijajedfw39orj3j93 + User: { _href: /user/users/14, _media-type: application/vnd.ibexa.api.User+json } + '404': + description: 'User does not have a valid session, or it has expired.' + summary: 'Get current session' + description: 'Get current user session, if any.' + parameters: + - + name: Cookie + in: header + description: "Only needed for session's checking {sessionName}={sessionID}." + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Accept + in: header + description: 'If set, the session is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/user/sessions/{sessionId}': + delete: + operationId: api_usersessions_sessionId_delete + tags: + - 'User Session' + responses: + '204': + description: 'OK - session deleted.' + '404': + description: 'Error - the session does not exist.' + summary: 'Delete session (logout a User)' + description: 'The user session is removed i.e. the user is logged out.' + parameters: + - + name: Cookie + in: header + description: '{sessionName}={sessionID}' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: X-CSRF-Token + in: header + description: 'The {csrfToken} needed on all unsafe HTTP methods with session.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: sessionId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + deprecated: false + '/user/sessions/{sessionId}/refresh': + post: + operationId: api_usersessions_sessionIdrefresh_post + tags: + - 'User Session' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.Session+xml: + schema: + $ref: '#/components/schemas/Session' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <Session media-type="application/vnd.ibexa.api.Session+xml" href="/api/ibexa/v2/user/sessions/ABCDEFGHIJKLMNOPQRSTUVWXYZ"> + <name>IBX_SESSION_ID0123456789ABCDEFGHIJKLMNOPQRSTUV</name> + <identifier>ABCDEFGHIJKLMNOPQRSTUVWXYZ</identifier> + <csrfToken>0123456789ABCDEF.GHIJKLMNOP_QRSTUVWXYZabcdefghijklmnopqrstuv.wxyz0123456-789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq</csrfToken> + <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> + </Session> + application/vnd.ibexa.api.Session+json: + schema: + $ref: '#/components/schemas/SessionWrapper' + example: + Session: + _media-type: application/vnd.ibexa.api.Session + name: eZSSID + identifier: go327ij2cirpo59pb6rrv2a4el2 + csrfToken: 23lkneri34ijajedfw39orj3j93 + User: { _href: /user/users/14, _media-type: application/vnd.ibexa.api.User+json } + '404': + description: 'Error - the session does not exist.' + summary: 'Refresh session (deprecated)' + description: "Get the session's User information. Deprecated as of Ibexa DXP 4.6, use GET /user/sessions/current instead." + parameters: + - + name: Cookie + in: header + description: '{sessionName}={sessionID}' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: X-CSRF-Token + in: header + description: 'The {csrfToken} needed on all unsafe HTTP methods with session.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Accept + in: header + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: sessionId + in: path + description: '' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new SessionRefreshController resource' + content: { } + required: false + deprecated: false + /user/token/jwt: + post: + operationId: api_usertokenjwt_post + tags: + - 'User Token' + responses: + '200': + description: '200' + content: + application/vnd.ibexa.api.JWT+xml: + schema: + $ref: '#/components/schemas/JWT' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <JWT media-type="application/vnd.ibexa.api.JWT+xml" token="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MDI4NDA3NjEsImV4cCI6MTYwMjg0NDM2MSwicm9sZXMiOlsiUk9MRV9VU0VSIl0sInVzZXJuYW1lIjoiYWRtaW4ifQ.LsmdVjad7wMwVQUo4vSftT0zHbJyArOMd23b417E2jI"> + <token>eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MDI4NDA3NjEsImV4cCI6MTYwMjg0NDM2MSwicm9sZXMiOlsiUk9MRV9VU0VSIl0sInVzZXJuYW1lIjoiYWRtaW4ifQ.LsmdVjad7wMwVQUo4vSftT0zHbJyArOMd23b417E2jI</token> + </JWT> + application/vnd.ibexa.api.JWT+json: + schema: + $ref: '#/components/schemas/JWTWrapper' + example: + JWT: + _media-type: application/vnd.ibexa.api.JWT+json + _token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MDI4NDA3ODAsImV4cCI6MTYwMjg0NDM4MCwicm9sZXMiOlsiUk9MRV9VU0VSIl0sInVzZXJuYW1lIjoiYWRtaW4ifQ.0LHa799HwSwwfDBZd2V0q2xHwGt86PpyZamKnXHQyYI + token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MDI4NDA3ODAsImV4cCI6MTYwMjg0NDM4MCwicm9sZXMiOlsiUk9MRV9VU0VSIl0sInVzZXJuYW1lIjoiYWRtaW4ifQ.0LHa799HwSwwfDBZd2V0q2xHwGt86PpyZamKnXHQyYI + '401': + description: 'Error - Unauthorized' + summary: 'Create JWT token' + description: 'Creates JWT authentication token.' + parameters: + - + name: Accept + in: header + description: 'If set, the token is returned in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The SessionInput schema encoded in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new JWT resource' + content: + application/vnd.ibexa.api.JWTInput+xml: + schema: + $ref: '#/components/schemas/JWTInput' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/token/jwt/POST/JWTInput.xml.example' + application/vnd.ibexa.api.JWTInput+json: + schema: + $ref: '#/components/schemas/JWTInputWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/token/jwt/POST/JWTInput.json.example' + required: false + deprecated: false + /views: + post: + operationId: api_views_post + tags: + - Views + responses: + '200': + description: '200' + content: + 'application/vnd.ibexa.api.View+xml; version=1.1': + schema: + $ref: '#/components/schemas/View' + example: | + <?xml version="1.0" encoding="UTF-8"?> + <View href="/views/TitleView" media-type="application/vnd.ibexa.api.View+xml; version=1.1"> + <identifier>TitleView</identifier> + <User href="/user/users/14" media-type="vnd.ibexa.api.User+xml"/> + <public>false</public> + <LocationQuery> + <Filter> + <ParentLocationIdCriterion>2</ParentLocationIdCriterion> + </Filter> + <limit>10</limit> + <offset>0</offset> + <SortClauses> + <ContentName>ascending</ContentName> + </SortClauses> + <FacetBuilders> + <contentTypeFacetBuilder/> + </FacetBuilders> + </LocationQuery> + <Result href="/content/views/view1234/results" + media-type="application/vnd.ibexa.api.ViewResult+xml" count="34" time="31" maxScore="1.0"> + <searchHits> + <searchHit score="1.0" index="installid1234567890"> + <hightlight/> + <value> + <Location media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2"> + <id>2</id> + <priority>0</priority> + <hidden>false</hidden> + <invisible>false</invisible> + <ParentLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1"/> + <pathString>/1/2/</pathString> + <depth>1</depth> + <childCount>8</childCount> + <remoteId>f3e90596361e31d496d4026eb624c983</remoteId> + <Children media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/locations/1/2/children"/> + <Content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/57"/> + <sortField>PRIORITY</sortField> + <sortOrder>ASC</sortOrder> + <UrlAliases media-type="application/vnd.ibexa.api.UrlAliasRefList+xml" href="/api/ibexa/v2/content/locations/1/2/urlaliases"/> + </Location> + + </value> + </searchHit> + <!-- ... --> + </searchHits> + <facets> + <contentTypeFacet> + <contentTypeFacetEntry> + <contentType href="/content/types/1" media-type="application/vnd.ibexa.api.ContentType+xml"/> + <count>3</count> + </contentTypeFacetEntry> + <contentTypeFacetEntry> + <contentType href="/content/types/7" media-type="application/vnd.ibexa.api.ContentType+xml"/> + <count>9</count> + </contentTypeFacetEntry> + <contentTypeFacetEntry> + <contentType href="/content/types/11" media-type="application/vnd.ibexa.api.ContentType+xml"/> + <count>1</count> + </contentTypeFacetEntry> + <contentTypeFacetEntry> + <contentType href="/content/types/15" media-type="application/vnd.ibexa.api.ContentType+xml"/> + <count>8</count> + </contentTypeFacetEntry> + </contentTypeFacet> + </facets> + </Result> + </View> + '400': + description: 'Error - the input does not match the input schema definition.' + summary: 'Search content' + description: |- + Executes a query and returns a View including the results. + View input reflects the criteria model of the public PHP API. + Refer to [Search Criteria Reference](/en/latest/search/criteria_reference/search_criteria_reference/) + parameters: + - + name: Accept + in: header + description: 'The view in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + - + name: Content-Type + in: header + description: 'The view input in XML or JSON format.' + required: true + deprecated: false + allowEmptyValue: false + schema: + type: string + style: simple + explode: false + allowReserved: false + requestBody: + description: 'The new Views resource' + content: + application/vnd.ibexa.api.ViewInput+xml: + schema: + $ref: '#/components/schemas/ViewInput' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/views/POST/ViewInput.xml.example' + application/vnd.ibexa.api.ViewInput+json: + schema: + $ref: '#/components/schemas/ViewInputWrapper' + x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/views/POST/ViewInput.json.example' + required: false + deprecated: false +components: + schemas: + BaseObject: + type: object + required: + - _media-type + properties: + _media-type: + xml: + attribute: true + name: media-type + type: string + _href: + xml: + attribute: true + name: href + type: string + Ref: + $ref: '#/components/schemas/BaseObject' + UnixTimestamp: + type: integer + Href: + type: object + required: + - _href + properties: + _href: + xml: + attribute: true + name: href + type: string + Target: + description: 'Struct that stores extra target information for a SortClause object.' + type: object + SortClause: + description: 'This class is the base for SortClause classes, used to set sorting of content queries.' + type: object + required: + - direction + - target + - targetData + properties: + direction: + description: 'Sort direction. One of Query::SORT_ASC or Query::SORT_DESC.' + type: string + target: + description: 'Sort target, high level: section_identifier, attribute_value, etc.' + type: string + targetData: + description: 'Extra target data, required by some sort clauses, field for instance.' + $ref: '#/components/schemas/Target' + ErrorMessage: + description: 'Represents an error response. Might contain additional properties depending on an error type.' + type: object + required: + - errorCode + - errorMessage + - errorDescription + properties: + errorCode: + type: integer + errorMessage: + type: string + errorDescription: + type: string + Value: + description: 'Struct that stores extra value information for a Criterion object.' + type: object + required: + - _languageCode + - '#text' + properties: + _languageCode: + description: 'Language code.' + type: string + '#text': + description: 'Content type description.' + type: + - string + - 'null' + ValueObject: + type: object + required: + - value + properties: + value: + type: array + items: + $ref: '#/components/schemas/Value' + ValueArray: + type: object + required: + - value + properties: + value: + type: array + items: + $ref: '#/components/schemas/Value' + MultilingualValue: + description: 'Object that represents a multilingual (translated) value.' + type: object + required: + - _languageCode + - '#text' + properties: + _languageCode: + description: 'Language code.' + type: string + '#text': + description: 'Translation contents.' + type: + - string + - 'null' + KeyValue: + description: 'Key-value structure' + type: object + required: + - _key + - '#text' + properties: + _key: + type: string + '#text': + type: + - string + - 'null' + DateRange: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'Representation of date range.' + type: object + required: + - startDate + - endDate + properties: + startDate: + type: string + endDate: + type: string + BookmarkList: + description: 'List of bookmarked Locations.' + type: object + required: + - count + - items + properties: + count: + description: 'The total number of bookmarks.' + type: integer + items: + description: 'List of bookmarked Locations.' + type: array + items: + type: object + required: + - Location + - _media-type + - __href + properties: + Location: + $ref: '#/components/schemas/Location' + _media-type: + type: string + __href: + type: string + BookmarkListWrapper: + type: object + required: + - BookmarkList + properties: + BookmarkList: + $ref: '#/components/schemas/BookmarkList' + SummaryEntry: + type: object + required: + - identifier + - id + - names + - quantity + - Price + - PriceInclVat + - SubtotalPrice + - SubtotalPriceInclVat + - VatCategory + - Product + properties: + identifier: + type: string + id: + type: integer + names: + $ref: '#/components/schemas/SummaryEntryNames' + quantity: + type: integer + Price: + $ref: '#/components/schemas/RestPriceWrapper' + PriceInclVat: + $ref: '#/components/schemas/RestPriceWrapper' + SubtotalPrice: + $ref: '#/components/schemas/RestPriceWrapper' + SubtotalPriceInclVat: + $ref: '#/components/schemas/RestPriceWrapper' + VatCategory: + $ref: '#/components/schemas/VatCategory' + Product: + $ref: '#/components/schemas/Product' + SummaryEntryNames: + $ref: '#/components/schemas/ValueObject' + Location: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a Location in the Repository.' + type: object + required: + - id + - priority + - hidden + - invisible + - remoteId + - ContentInfo + - ParentLocation + - pathString + - depth + - childCount + - sortField + - sortOrder + - Content + properties: + id: + description: 'The ID of the Location.' + type: integer + priority: + description: 'Location priority. Position of the Location among its siblings when sorted using priority sort order.' + type: integer + hidden: + description: 'Indicates that the Location entity has been explicitly marked as hidden.' + type: boolean + invisible: + description: 'Indicates that the Location is implicitly marked as hidden by a parent Location.' + type: boolean + remoteId: + description: 'Remote ID, universally unique identifier.' + type: string + ContentInfo: + description: 'This class provides all version independent information of the content item.' + $ref: '#/components/schemas/ContentInfo' + ParentLocation: + description: 'Parent Location.' + Children: + description: 'Children Location.' + pathString: + description: 'The materialized path of the Location entry e.g. /1/2/.' + type: string + depth: + description: 'Depth Location has in the Location tree.' + type: integer + childCount: + description: 'Depth Location has in the Location tree.' + type: integer + sortField: + description: 'Specifies which property the child Locations should be sorted on. Map for Location sort fields to their respective SortClauses - class name/identifier and modified subnode. One of the fallowing values: PATH.' + enum: + - PATH + - PUBLISHED + - MODIFIED + - SECTION + - DEPTH + - CLASS_IDENTIFIER + - CLASS_NAME + - PRIORITY + - NAME + - MODIFIED_SUBNODE + - NODE_ID + - CONTENTOBJECT_ID + type: string + sortOrder: + description: 'Specifies whether the sort order should be ascending or descending. Map for Location sort order to their respective Query SORT constants. One of the fallowing values: const SORT_ORDER_DESC = 0; const SORT_ORDER_ASC = 1.' + enum: + - ASC + - DESC + type: string + Content: + description: 'Represents a content item in a specific version.' + UrlAliases: + description: 'This class represents URL aliases.' + LocationWrapper: + type: object + required: + - Location + properties: + Location: + $ref: '#/components/schemas/Location' + LocationCreate: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + type: object + required: + - ParentLocation + - priority + - hidden + - sortField + - sortOrder + properties: + ParentLocation: + type: object + required: + - _href + properties: + _href: + xml: { attribute: true, name: href } + type: string + priority: + type: string + hidden: + type: + - string + - boolean + sortField: + type: string + sortOrder: + type: string + LocationCreateWrapper: + type: object + required: + - LocationCreate + properties: + LocationCreate: + $ref: '#/components/schemas/LocationCreate' + LocationUpdateStruct: + description: 'This class is used for updating Location meta data.' + type: object + required: + - priority + - remoteId + - hidden + - sortField + - sortOrder + properties: + priority: + description: 'If set the Location priority is changed to the new value.' + type: string + remoteId: + description: 'If set the Location gets a new remoteId. Needs to be a unique Location->remoteId string value.' + type: string + hidden: + type: boolean + sortField: + description: 'If set the sortField is changed. The sort field specifies which property the child Locations should be sorted on. Valid values are found at {@link Location::SORT_FIELD_*}.' + enum: + - PATH + - PUBLISHED + - MODIFIED + - SECTION + - DEPTH + - CLASS_IDENTIFIER + - CLASS_NAME + - PRIORITY + - NAME + - MODIFIED_SUBNODE + - NODE_ID + - CONTENTOBJECT_ID + type: string + sortOrder: + description: 'If set the sortOrder is changed. The sort order specifies whether the sort order should be ascending or descending. Valid values are {@link Location::SORT_ORDER_*}.' + enum: + - ASC + - DESC + type: string + LocationUpdateStructWrapper: + type: object + required: + - LocationUpdate + properties: + LocationUpdate: + $ref: '#/components/schemas/LocationUpdateStruct' + LocationList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a queried Location list holding a totalCount and a partial list of Locations (by offset/limit parameters and permission filters).' + type: object + required: + - Location + properties: + Location: + description: 'The partial list of Locations controlled by offset/limit.' + type: array + items: + $ref: '#/components/schemas/Ref' + LocationListWrapper: + type: object + required: + - LocationList + properties: + LocationList: + $ref: '#/components/schemas/LocationList' + Content: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'Content ID matcher class.' + type: object + required: + - _remoteId + - _id + - ContentType + - Name + - Versions + - CurrentVersion + - Section + - Locations + - Owner + - mainLanguageCode + - currentVersionNo + - alwaysAvailable + - status + - ObjectStates + properties: + _remoteId: + description: 'Remote ID of the content type.' + xml: + attribute: true + name: remoteId + type: string + _id: + description: 'Unique ID of the content type.' + xml: + attribute: true + name: id + type: integer + ContentType: + description: 'Content type.' + $ref: '#/components/schemas/BaseObject' + Name: + description: 'Name of the domain object in a given language.' + type: string + Versions: + description: 'Returns the VersionInfo for this version.' + $ref: '#/components/schemas/BaseObject' + CurrentVersion: + description: 'Current version.' + $ref: '#/components/schemas/BaseObject' + Section: + description: 'The Section to which the content item is assigned to.' + $ref: '#/components/schemas/BaseObject' + Locations: + description: 'Location of the content item.' + $ref: '#/components/schemas/BaseObject' + Owner: + description: 'The owner of the content item.' + $ref: '#/components/schemas/BaseObject' + lastModificationDate: + description: 'Content item modification date.' + type: string + format: date-time + publishedDate: + description: 'Content item publication date.' + type: string + format: date-time + mainLanguageCode: + description: 'The main language code of the content item.' + type: string + currentVersionNo: + description: 'Current version number is the version number of the published version or the version number of a newly created draft (which is 1).' + type: integer + alwaysAvailable: + description: "Indicates if the content item is shown in the main language if it's not present in an other requested language." + type: boolean + status: + description: 'Status of the content. Possible values: const STATUS_DRAFT = 0;const STATUS_PUBLISHED = 1; const STATUS_TRASHED = 2.' + type: string + ObjectStates: + description: 'Object states.' + $ref: '#/components/schemas/BaseObject' + ContentWrapper: + type: object + required: + - Content + properties: + Content: + $ref: '#/components/schemas/Content' + ContentCreate: + description: 'This class is used for creating a new content item.' + type: object + required: + - ContentType + - mainLanguageCode + - LocationCreate + - fields + properties: + ContentType: + description: 'The content type for which the new content item is created.' + oneOf: + - + $ref: '#/components/schemas/Content' + - + $ref: '#/components/schemas/Href' + Section: + description: 'The Section the content item is assigned to. If not set the Section of the parent is used or a default Section.' + $ref: '#/components/schemas/Href' + User: + description: 'The owner of the content. If not given the current authenticated User is set as owner.' + type: integer + alwaysAvailable: + description: "Indicates if the content item is shown in the main language if it's not present in an other requested language." + type: string + remoteId: + description: 'Remote identifier used as a custom identifier for the content item. Needs to be a unique Content->remoteId string value.' + type: string + mainLanguageCode: + description: 'The main language code for the content. This language will also be used for as initial language for the first created version. It is also used as default language for added fields.' + type: string + modificationDate: + description: 'Modification date. If not given, the current integer is used.' + type: string + format: date-time + LocationCreate: + type: object + fields: + type: object + required: + - field + properties: + field: + type: array + items: + type: object + ContentCreateWrapper: + type: object + required: + - ContentCreate + properties: + ContentCreate: + $ref: '#/components/schemas/ContentCreate' + ContentUpdate: + description: 'This class is used to update a Content.' + type: object + required: + - mainLanguageCode + - Section + - MainLocation + - Owner + - alwaysAvailable + - remoteId + properties: + mainLanguageCode: + type: string + Section: + $ref: '#/components/schemas/Section' + MainLocation: + $ref: '#/components/schemas/Location' + Owner: + $ref: '#/components/schemas/User' + alwaysAvailable: + type: boolean + remoteId: + type: string + ContentInfo: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class provides all version independent information of the content item.' + type: object + required: + - Content + properties: + Content: + description: 'Content ID matcher class.' + $ref: '#/components/schemas/Content' + ContentInfoWrapper: + type: object + required: + - ContentInfo + properties: + ContentInfo: + $ref: '#/components/schemas/ContentInfo' + ContentMetadataUpdate: + description: 'This class is used to update a Content metadata.' + type: object + required: + - ownerId + - publishedDate + - modificationDate + - mainLanguageCode + - alwaysAvailable + - remoteId + - mainLocationId + - name + properties: + ownerId: + type: [] + publishedDate: + type: string + format: date-time + modificationDate: + type: string + format: date-time + mainLanguageCode: + type: string + alwaysAvailable: + type: boolean + remoteId: + type: string + mainLocationId: + type: [] + name: + type: string + ContentCreateContentType: + type: object + required: + - _href + - FieldDefinitions + properties: + _href: + xml: + attribute: true + name: href + type: string + FieldDefinitions: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + type: object + properties: + FieldDefinitions: + type: array + items: { $ref: '#/components/schemas/FieldDefinition' } + ContentObjectStates: + description: 'Represents a list of object states.' + type: object + required: + - ObjectState + properties: + ObjectState: + description: 'List of object state values.' + type: array + items: + $ref: '#/components/schemas/Href' + ContentObjectStatesWrapper: + type: object + required: + - ContentObjectStates + properties: + ContentObjectStates: + $ref: '#/components/schemas/ContentObjectStates' + VersionInfo: + description: 'This class holds version information data. It also contains the corresponding {@link Content} to which the version belongs to.' + type: object + required: + - id + - versionNo + - status + - modificationDate + - Creator + - creationDate + - initialLanguageCode + - languageCodes + - VersionTranslationInfo + - names + - Content + properties: + id: + description: 'Version ID.' + type: integer + versionNo: + description: 'Version number. In contrast to {@link $id}, this is the version number, which only increments in scope of a single content item.' + type: integer + status: + description: 'One of: VersionInfo::STATUS_DRAFT=0, VersionInfo::STATUS_PUBLISHED=1, VersionInfo::STATUS_ARCHIVED=3.' + enum: + - DRAFT + - PUBLISHED + - ARCHIVED + type: string + modificationDate: + description: 'The last modified date of this version.' + type: string + format: date-time + Creator: + description: 'Creator of the version, in the search API this is referred to as the modifier of the published content.' + $ref: '#/components/schemas/BaseObject' + creationDate: + description: 'Content creation date.' + type: string + format: date-time + initialLanguageCode: + description: 'The language code which is used for labeling a translation.' + type: string + languageCodes: + description: 'List of languages in this version. Reflects which languages fields exists in for this version.' + type: string + VersionTranslationInfo: + description: 'Translation information.' + names: + description: Names. + $ref: '#/components/schemas/ValueArray' + Content: + description: 'Represents a content item in a specific version.' + $ref: '#/components/schemas/BaseObject' + Version: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'Returns the VersionInfo for this version.' + type: object + required: + - VersionInfo + - Fields + - Relations + properties: + VersionInfo: + description: 'VersionInfo for this version.' + Fields: + type: object + required: + - field + properties: + field: + description: 'Fields of a Company content item.' + type: array + items: { $ref: '#/components/schemas/Field' } + Relations: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'Relations of the user.' + type: object + required: [Relation] + properties: { Relation: { type: array, items: { $ref: '#/components/schemas/Relation' } } } + VersionWrapper: + type: object + required: + - Version + properties: + Version: + $ref: '#/components/schemas/Version' + VersionUpdate: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class is used to update a content version.' + type: object + required: + - modificationDate + - initialLanguageCode + - fields + properties: + modificationDate: + type: string + format: date-time + initialLanguageCode: + type: string + fields: + type: array + items: + $ref: '#/components/schemas/Field' + VersionUpdateWrapper: + type: object + required: + - VersionUpdate + properties: + VersionUpdate: + $ref: '#/components/schemas/VersionUpdate' + VersionList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'List of all versions of the content.' + type: object + required: + - VersionItem + properties: + VersionItem: + type: array + items: + $ref: '#/components/schemas/VersionItem' + VersionListWrapper: + type: object + required: + - VersionList + properties: + VersionList: + $ref: '#/components/schemas/VersionList' + VersionItem: + description: 'Version of content.' + type: object + required: + - Version + - VersionInfo + properties: + Version: + description: 'Returns the VersionInfo for this version.' + $ref: '#/components/schemas/BaseObject' + VersionInfo: + $ref: '#/components/schemas/VersionInfo' + VersionTranslationInfo: + description: 'Translation information.' + type: object + required: + - _media-type + - Language + properties: + _media-type: + type: string + Language: + type: array + items: + $ref: '#/components/schemas/LanguageCode' + LanguageCode: + description: 'Language code.' + type: object + required: + - languageCode + properties: + languageCode: + type: string + Relation: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'Class representing a relation between content.' + type: object + required: + - SourceContent + - DestinationContent + - RelationType + properties: + SourceContent: + description: 'The content of the source content of the relation.' + $ref: '#/components/schemas/Ref' + DestinationContent: + description: 'The content of the destination content of the relation.' + $ref: '#/components/schemas/Ref' + RelationType: + description: 'The relation type bitmask. Relations: Relation::COMMON = 1, Relation::EMBED = 2, Relation::LINK = 4, Relation::FIELD = 8, Relation::ASSET = 16' + type: string + RelationWrapper: + type: object + required: + - Relation + properties: + Relation: + $ref: '#/components/schemas/Relation' + RelationCreate: + type: object + required: + - Destination + properties: + Destination: + $ref: '#/components/schemas/Href' + RelationCreateWrapper: + type: object + required: + - RelationCreate + properties: + RelationCreate: + $ref: '#/components/schemas/RelationCreate' + RelationList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'Class representing a list of relations between content.' + type: object + required: + - Relation + properties: + Relation: + type: array + items: + $ref: '#/components/schemas/Relation' + RelationListWrapper: + type: object + required: + - Relations + properties: + Relations: + $ref: '#/components/schemas/RelationList' + Fields: + type: object + required: + - field + properties: + field: + type: array + items: + $ref: '#/components/schemas/Field' + Section: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a Section.' + type: object + required: + - sectionId + - identifier + - name + properties: + sectionId: + description: 'ID of the Section.' + type: integer + identifier: + description: 'Unique identifier of the Section.' + type: string + name: + description: 'Name of the Section.' + type: string + SectionWrapper: + type: object + required: + - Section + properties: + Section: + $ref: '#/components/schemas/Section' + SectionInput: + type: object + required: + - identifier + - name + properties: + identifier: + type: string + name: + type: string + SectionInputWrapper: + type: object + required: + - SectionInput + properties: + SectionInput: + $ref: '#/components/schemas/SectionInput' + SectionList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a Section list.' + type: object + required: + - Section + properties: + Section: + type: array + items: + $ref: '#/components/schemas/Section' + SectionListWrapper: + type: object + required: + - SectionList + properties: + SectionList: + $ref: '#/components/schemas/SectionList' + Trash: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + type: object + required: + - TrashItem + properties: + TrashItem: + type: array + items: + $ref: '#/components/schemas/TrashItem' + TrashWrapper: + type: object + required: + - Trash + properties: + Trash: + $ref: '#/components/schemas/Trash' + TrashItem: + description: 'This class represents a trash item, which is actually a trashed Location.' + $ref: '#/components/schemas/Location' + TrashItemWrapper: + type: object + required: + - TrashItem + properties: + TrashItem: + $ref: '#/components/schemas/TrashItem' + ContentTypeGroup: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a content type group value.' + type: object + required: + - id + - identifier + - created + - modified + - Creator + - Modifier + - ContentTypes + properties: + id: + description: 'Primary key.' + type: integer + identifier: + description: 'Readable string identifier of a group.' + type: string + created: + description: 'Created date (integer).' + type: string + format: date-time + modified: + description: 'Modified date (integer).' + type: string + format: date-time + Creator: + description: 'Creator User ID.' + $ref: '#/components/schemas/BaseObject' + Modifier: + description: 'Modifier User ID.' + $ref: '#/components/schemas/BaseObject' + ContentTypes: + description: 'Content types.' + $ref: '#/components/schemas/BaseObject' + ContentTypeGroupWrapper: + type: object + required: + - ContentTypeGroup + properties: + ContentTypeGroup: + $ref: '#/components/schemas/ContentTypeGroup' + ContentTypeGroupInput: + type: object + ContentTypeGroupInputWrapper: + type: object + required: + - ContentTypeGroupInput + properties: + ContentTypeGroupInput: + $ref: '#/components/schemas/ContentTypeGroupInput' + ContentTypeGroupListWrapper: + type: object + required: + - ContentTypeGroupList + properties: + ContentTypeGroupList: + $ref: '#/components/schemas/ContentTypeGroupList' + ContentTypeGroupRef: + description: 'Content type group reference.' + type: array + items: + allOf: + - + $ref: '#/components/schemas/BaseObject' + type: object + properties: + unlink: + $ref: '#/components/schemas/Unlink' + ContentTypeGroupRefList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'List of content type groups references.' + type: object + required: + - ContentTypeGroupRef + properties: + ContentTypeGroupRef: + $ref: '#/components/schemas/ContentTypeGroupRef' + ContentTypeGroupList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'List of content type groups.' + type: object + required: + - ContentTypeGroup + properties: + ContentTypeGroup: + type: array + items: + $ref: '#/components/schemas/ContentTypeGroup' + ContentTypeGroupRefListWrapper: + type: object + required: + - ContentTypeGroupRefList + properties: + ContentTypeGroupRefList: + $ref: '#/components/schemas/ContentTypeGroupRefList' + ContentType: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a content type.' + type: object + required: + - id + - status + - identifier + - names + - descriptions + - creationDate + - modificationDate + - Creator + - Modifier + - Groups + - Draft + - remoteId + - urlAliasSchema + - nameSchema + - isContainer + - defaultAlwaysAvailable + - defaultSortField + - defaultSortOrder + - FieldDefinitions + properties: + id: + description: 'Content type ID.' + type: integer + status: + description: 'The status of the content type. Possible values: const STATUS_DEFINED = 0; Status constant for defined (aka published) Type, const STATUS_DRAFT = 1; Status constant for draft (aka temporary) Type; const STATUS_MODIFIED = 2; Status constant for modified (aka deferred for publishing) Type.' + enum: + - DEFINED + - DRAFT + - MODIFIED + - PUBLISHED + type: string + identifier: + description: 'String identifier of a content type.' + type: string + names: + description: 'Name of a content type.' + descriptions: + description: 'Description of a content type.' + creationDate: + description: 'Creation date of the content type.' + type: string + format: date-time + modificationDate: + description: 'Modification date of the content type.' + type: string + format: date-time + Creator: + description: 'Creator User of the content type.' + $ref: '#/components/schemas/BaseObject' + Modifier: + description: 'Modifier User of the content type.' + $ref: '#/components/schemas/BaseObject' + Groups: + description: 'Group User of the content type.' + $ref: '#/components/schemas/BaseObject' + Draft: + description: 'Draft of the content type.' + $ref: '#/components/schemas/BaseObject' + remoteId: + description: 'Unique remote ID of the content type.' + type: string + urlAliasSchema: + description: 'URL alias schema. If nothing is provided, $nameSchema will be used instead.' + type: + - string + - 'null' + nameSchema: + description: 'Name schema. Can be composed of FieldDefinition identifier place holders.' + type: string + isContainer: + description: 'A flag used to hint if content of this type may have children or not. It is highly recommended to respect this flag and not create/move content below non-containers. But this flag is not considered as part of the content model and the API will not in any way enforce this flag to be respected.' + type: boolean + defaultAlwaysAvailable: + description: 'If an instance of a content type is created the always available flag is set by default to this value.' + type: boolean + defaultSortField: + description: 'Specifies which property the child Locations should be sorted on by default when created. Map for Location sort fields to their respective SortClauses - class name/identifier and modified subnode. One of the fallowing values: const SORT_FIELD_PATH = 1; const SORT_FIELD_PUBLISHED = 2; const SORT_FIELD_MODIFIED = 3; const SORT_FIELD_SECTION = 4; const SORT_FIELD_DEPTH = 5; const SORT_FIELD_PRIORITY = 8; const SORT_FIELD_NAME = 9; const SORT_FIELD_NODE_ID = 11; const SORT_FIELD_CONTENTOBJECT_ID = 12.' + enum: + - PATH + - PUBLISHED + - MODIFIED + - SECTION + - DEPTH + - PRIORITY + - NAME + - NODE_ID + - CONTENTOBJECT_ID + type: string + defaultSortOrder: + description: 'Specifies whether the sort order should be ascending or descending by default when created. Map for Location sort order to their respective Query SORT constants. Possible values: const SORT_ORDER_DESC = 0; const SORT_ORDER_ASC = 1.' + enum: + - ASC + - DESC + type: string + FieldDefinitions: + description: 'This method returns the content type Field definitions from this type.' + ContentTypeWrapper: + type: object + required: + - ContentType + properties: + ContentType: + $ref: '#/components/schemas/ContentType' + ContentTypeCreate: + description: 'This class is used to create a content type.' + type: object + required: + - identifier + - mainLanguageCode + - remoteId + - urlAliasSchema + - nameSchema + - isContainer + - defaultSortField + - defaultSortOrder + - defaultAlwaysAvailable + - names + - descriptions + properties: + identifier: + type: string + mainLanguageCode: + type: string + remoteId: + type: string + urlAliasSchema: + type: string + nameSchema: + type: string + isContainer: + type: boolean + defaultSortField: + description: 'Specifies which property the child Locations should be sorted on by default when created.' + defaultSortOrder: + description: 'Specifies whether the sort order should be ascending or descending by default when created.' + defaultAlwaysAvailable: + type: boolean + names: + $ref: '#/components/schemas/ValueObject' + descriptions: + $ref: '#/components/schemas/ValueObject' + FieldDefinition: + $ref: '#/components/schemas/FieldDefinition' + creatorId: + description: 'If set, this value overrides the current user as creator.' + creationDate: + type: string + format: date-time + ContentTypeCreateWrapper: + type: object + required: + - ContentTypeCreate + properties: + ContentTypeCreate: + $ref: '#/components/schemas/ContentTypeCreate' + ContentTypeUpdateStruct: + description: 'This class is used for updating a content type.' + type: object + properties: + identifier: + description: 'If set the unique identifier of a type is changed to this value.' + type: string + remoteId: + description: 'If set the remote ID is changed to this value.' + type: string + urlAliasSchema: + description: 'If set the URL alias schema is changed to this value.' + type: string + nameSchema: + description: 'f set the name schema is changed to this value.' + type: string + isContainer: + description: 'If set the container flag is set to this value.' + type: boolean + mainLanguageCode: + description: 'If set the main language is changed to this value.' + type: string + defaultSortField: + description: 'If set the default sort field is changed to this value.' + enum: + - PATH + - PUBLISHED + - MODIFIED + - SECTION + - DEPTH + - PRIORITY + - NAME + - NODE_ID + - CONTENTOBJECT_ID + type: string + defaultSortOrder: + description: 'If set the default sort order is set to this value.' + enum: + - ASC + - DESC + type: string + defaultAlwaysAvailable: + description: 'If set the default always available flag is set to this value.' + type: boolean + modifierId: + description: 'If set this value overrides the current User as creator.' + type: integer + modificationDate: + description: 'If set this value overrides the current time for creation.' + type: string + format: date-time + names: + description: 'If set this array of names with languageCode keys replace the complete name collection.' + descriptions: + description: 'If set this array of descriptions with languageCode keys replace the complete description collection.' + ContentTypeUpdate: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class is used to update a content type.' + type: object + properties: + identifier: + type: string + mainLanguageCode: + type: string + remoteId: + type: string + urlAliasSchema: + type: + - string + - 'null' + nameSchema: + type: string + isContainer: + type: boolean + defaultSortField: + description: 'Specifies which property the child Locations should be sorted on by default when updated.' + defaultSortOrder: + description: 'Specifies whether the sort order should be ascending or descending by default when updated.' + defaultAlwaysAvailable: + type: + - string + - boolean + names: + $ref: '#/components/schemas/ValueObject' + descriptions: + $ref: '#/components/schemas/ValueObject' + modifierId: + description: 'If set, this value overrides the current user as creator.' + modificationDate: + type: string + format: date-time + ContentTypeUpdateWrapper: + type: object + required: + - ContentTypeUpdate + properties: + ContentTypeUpdate: + $ref: '#/components/schemas/ContentTypeUpdate' + ContentTypeList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'List of content types.' + type: object + required: + - ContentType + properties: + ContentType: + type: array + items: + $ref: '#/components/schemas/ContentType' + ContentTypeListWrapper: + type: object + required: + - ContentTypeList + properties: + ContentTypeList: + $ref: '#/components/schemas/ContentTypeList' + ContentTypeInfo: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class stores content type information.' + type: object + required: + - id + - status + - identifier + - names + - descriptions + - creationDate + - modificationDate + - Creator + - Modifier + - Groups + - Draft + - remoteId + - urlAliasSchema + - nameSchema + - isContainer + - mainLanguageCode + - defaultAlwaysAvailable + - defaultSortField + - defaultSortOrder + properties: + id: + description: 'Content type ID.' + type: integer + status: + description: 'The status of the content type. Possible values: const STATUS_DEFINED = 0; Status constant for defined (aka published) Type, const STATUS_DRAFT = 1; Status constant for draft (aka temporary) Type; const STATUS_MODIFIED = 2; Status constant for modified (aka deferred for publishing) Type.' + enum: + - DEFINED + - DRAFT + - MODIFIED + - PUBLISHED + type: string + identifier: + description: 'String identifier of a content type.' + type: string + names: + description: 'Name of a content type.' + descriptions: + description: 'Description of a content type.' + creationDate: + description: 'Creation date of the content type.' + type: string + format: date-time + modificationDate: + description: 'Modification date of the content type.' + type: string + format: date-time + Creator: + description: 'Creator User of the content type.' + $ref: '#/components/schemas/BaseObject' + Modifier: + description: 'Modifier User of the content type.' + $ref: '#/components/schemas/BaseObject' + Groups: + description: 'Group User of the content type.' + $ref: '#/components/schemas/BaseObject' + Draft: + description: 'Draft of the content type.' + $ref: '#/components/schemas/BaseObject' + remoteId: + description: 'Unique remote ID of the content type.' + type: string + urlAliasSchema: + description: 'URL alias schema. If nothing is provided, $nameSchema will be used instead.' + type: + - string + - 'null' + nameSchema: + description: 'Name schema. Can be composed of FieldDefinition identifier place holders.' + type: string + isContainer: + description: 'A flag used to hint if content of this type may have children or not. It is highly recommended to respect this flag and not create/move content below non-containers. But this flag is not considered as part of the content model and the API will not in any way enforce this flag to be respected.' + type: boolean + mainLanguageCode: + description: 'Main language code.' + type: string + defaultAlwaysAvailable: + description: 'If an instance of a content type is created the always available flag is set by default to this value.' + type: boolean + defaultSortField: + description: 'Specifies which property the child Locations should be sorted on by default when created. Map for Location sort fields to their respective SortClauses - class name/identifier and modified subnode. One of the fallowing values: const SORT_FIELD_PATH = 1; const SORT_FIELD_PUBLISHED = 2; const SORT_FIELD_MODIFIED = 3; const SORT_FIELD_SECTION = 4; const SORT_FIELD_DEPTH = 5; const SORT_FIELD_PRIORITY = 8; const SORT_FIELD_NAME = 9; const SORT_FIELD_NODE_ID = 11; const SORT_FIELD_CONTENTOBJECT_ID = 12.' + enum: + - PATH + - PUBLISHED + - MODIFIED + - SECTION + - DEPTH + - PRIORITY + - NAME + - NODE_ID + - CONTENTOBJECT_ID + type: string + defaultSortOrder: + description: 'Specifies whether the sort order should be ascending or descending by default when created. Map for Location sort order to their respective Query SORT constants. Possible values: const SORT_ORDER_DESC = 0; const SORT_ORDER_ASC = 1.' + enum: + - ASC + - DESC + type: string + ContentTypeInfoWrapper: + type: object + required: + - ContentTypeInfo + properties: + ContentTypeInfo: + $ref: '#/components/schemas/ContentTypeInfo' + ContentTypeInfoList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'List of content type information.' + type: object + required: + - ContentType + properties: + ContentType: + description: 'This class stores content type information.' + type: array + items: + $ref: '#/components/schemas/ContentTypeInfo' + ContentTypeInfoListWrapper: + type: object + required: + - ContentTypeList + properties: + ContentTypeList: + $ref: '#/components/schemas/ContentTypeInfoList' + Field: + description: 'This class represents a field of a content item.' + type: object + required: + - fieldDefinitionIdentifier + - fieldValue + properties: + id: + description: 'The field ID.' + type: integer + fieldDefinitionIdentifier: + description: 'The Field definition identifier.' + type: string + languageCode: + description: 'The language code.' + type: string + fieldTypeIdentifier: + description: 'Field Type identifier.' + type: string + fieldValue: + description: 'A Field Type value or a value type which can be converted by the corresponding field type.' + FieldDefinition: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a Field definition.' + type: object + required: + - id + - identifier + - fieldType + - fieldGroup + - position + - isTranslatable + - isRequired + - isInfoCollector + - defaultValue + - isSearchable + - names + - descriptions + - fieldSettings + - validatorConfiguration + properties: + id: + description: 'The unique ID of this Field definition.' + type: integer + identifier: + description: 'Readable string identifier of a Field definition.' + type: string + fieldType: + description: 'String identifier of the field type.' + type: string + fieldGroup: + description: 'Field group name.' + type: string + position: + description: 'The position of the Field definition in the content type.' + type: integer + isTranslatable: + description: 'If the field is translatable.' + type: boolean + isRequired: + description: 'Is the field required.' + type: boolean + isInfoCollector: + description: 'The flag if this field is used for information collection.' + type: boolean + defaultValue: + description: 'Default value of the field.' + isSearchable: + description: 'Indicates if th the content is searchable by this attribute.' + type: boolean + names: + description: 'Names of content types.' + descriptions: + description: 'Descriptions of content types.' + fieldSettings: + description: 'Settings for the Field definition supported by the field type.' + validatorConfiguration: + description: 'Validator configuration of this Field definition supported by the field type.' + oneOf: + - + $ref: '#/components/schemas/StringLengthValidator' + - + $ref: '#/components/schemas/StringLengthValidatorWrapper' + - + type: array + FieldDefinitionWrapper: + type: object + required: + - FieldDefinition + properties: + FieldDefinition: + $ref: '#/components/schemas/FieldDefinition' + FieldDefinitionCreate: + $ref: '#/components/schemas/BaseObject' + FieldDefinitionCreateWrapper: + type: object + required: + - FieldDefinitionCreate + properties: + FieldDefinitionCreate: + $ref: '#/components/schemas/FieldDefinitionCreate' + FieldDefinitionUpdate: + $ref: '#/components/schemas/BaseObject' + FieldDefinitionUpdateWrapper: + type: object + required: + - FieldDefinitionUpdate + properties: + FieldDefinitionUpdate: + $ref: '#/components/schemas/FieldDefinitionUpdate' + FieldDefinitions: + type: object + required: + - FieldDefinition + properties: + FieldDefinition: + type: array + items: + $ref: '#/components/schemas/FieldDefinition' + FieldDefinitionsWrapper: + type: object + required: + - FieldDefinitions + properties: + FieldDefinitions: + $ref: '#/components/schemas/FieldDefinitions' + StringLengthValidator: + description: 'Validator for checking min. and max. length of strings.' + type: object + required: + - maxStringLength + - minStringLength + properties: + maxStringLength: + description: 'Maximum length of strings.' + type: + - integer + - 'null' + minStringLength: + description: 'Minimum length of strings.' + type: + - integer + - 'null' + StringLengthValidatorWrapper: + type: object + required: + - StringLengthValidator + properties: + StringLengthValidator: + $ref: '#/components/schemas/StringLengthValidator' + UrlAlias: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a URL alias in the Repository.' + type: object + required: + - _id + - _type + - resource + - path + - languageCodes + - alwaysAvailable + - isHistory + - forward + - custom + properties: + _id: + description: 'A unique identifier for the alias.' + xml: + attribute: true + name: id + type: string + _type: + description: 'The type of the URL Alias i.e. one of URLAlias::LOCATION=0, URLAlias::RESOURCE=1, URLAlias::VIRTUAL=2.' + enum: + - LOCATION + - RESOURCE + - VIRTUAL + xml: + attribute: true + name: type + type: string + resource: + description: 'If type = URLAlias::LOCATION it is a Location ID otherwise a string (e.g. /content/search).' + path: + description: 'The full path of the alias.' + type: string + languageCodes: + description: 'The languageCodes for which this path is valid.' + type: string + alwaysAvailable: + description: 'Fallback indicator for other languages.' + type: boolean + isHistory: + description: 'Indicates that this alias was autogenerated for an in the meanwhile archived version of the content.' + type: boolean + forward: + description: 'Indicates if the URL should be redirected.' + type: boolean + custom: + description: 'If false this alias was autogenerated otherwise manually created.' + type: boolean + UrlAliasWrapper: + type: object + required: + - UrlAlias + properties: + UrlAlias: + $ref: '#/components/schemas/UrlAlias' + UrlAliasCreate: + type: object + required: + - _type + properties: + _type: + type: string + location: + $ref: '#/components/schemas/Href' + resource: + type: string + languageCode: + type: string + alwaysAvailable: + type: + - string + - boolean + forward: + type: + - string + - boolean + UrlAliasCreateWrapper: + type: object + required: + - UrlAliasCreate + properties: + UrlAliasCreate: + $ref: '#/components/schemas/UrlAliasCreate' + UrlAliasRefList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'List of URL alias in the Repository.' + type: object + required: + - UrlAlias + properties: + UrlAlias: + type: array + items: + $ref: '#/components/schemas/Ref' + UrlAliasRefListWrapper: + type: object + required: + - UrlAliasRefList + properties: + UrlAliasRefList: + $ref: '#/components/schemas/UrlAliasRefList' + UrlWildcard: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a URL alias in the Repository.' + type: object + required: + - _id + - sourceUrl + - destinationUrl + - forward + properties: + _id: + description: 'The unique ID.' + xml: + attribute: true + name: id + type: integer + sourceUrl: + description: 'The source URL.' + type: string + destinationUrl: + description: 'The destination URL containing placeholders e.g. /destination/{1}.' + type: string + forward: + description: 'Indicates if the URL is redirected or not.' + type: boolean + UrlWildcardWrapper: + type: object + required: + - UrlWildcard + properties: + UrlWildcard: + $ref: '#/components/schemas/UrlWildcard' + UrlWildcardCreate: + description: 'Creates a new URL wildcard.' + type: object + required: + - sourceUrl + - destinationUrl + - forward + properties: + sourceUrl: + type: string + destinationUrl: + type: string + forward: + type: + - string + - boolean + UrlWildcardCreateWrapper: + type: object + required: + - URLWildcardCreate + properties: + URLWildcardCreate: + $ref: '#/components/schemas/UrlWildcardCreate' + UrlWildcardList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'List of URL alias in the Repository.' + type: object + required: + - UrlWildcard + properties: + UrlWildcard: + type: array + items: + $ref: '#/components/schemas/UrlWildcard' + UrlWildcardListWrapper: + type: object + required: + - UrlWildcardList + properties: + UrlWildcardList: + $ref: '#/components/schemas/UrlWildcardList' + Language: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a language in the Repository.' + type: object + required: + - languageId + - languageCode + - name + properties: + languageId: + description: 'The language ID (auto generated).' + type: + - string + - 'null' + languageCode: + description: 'The languageCode code.' + type: string + name: + description: 'Human readable name of the language.' + type: string + LanguageWrapper: + type: object + required: + - Language + properties: + Language: + $ref: '#/components/schemas/Language' + LanguageList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'List of languages.' + type: object + required: + - Language + properties: + Language: + type: array + items: + $ref: '#/components/schemas/Language' + LanguageListWrapper: + type: object + required: + - LanguageList + properties: + LanguageList: + $ref: '#/components/schemas/LanguageList' + ObjectState: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a Object state value.' + type: object + required: + - id + - identifier + - priority + - ObjectStateGroup + - languageCodes + - names + - descriptions + properties: + id: + description: 'Primary key.' + type: integer + identifier: + description: 'Readable string identifier of the Object state.' + type: string + priority: + description: 'Priority for ordering.' + type: integer + ObjectStateGroup: + description: 'The Object state group this Object state belongs to.' + $ref: '#/components/schemas/BaseObject' + languageCodes: + description: 'The available language codes for names an descriptions.' + type: string + names: + description: Names. + descriptions: + description: Descriptions. + ObjectStateWrapper: + type: object + required: + - ObjectState + properties: + ObjectState: + $ref: '#/components/schemas/ObjectState' + ObjectStateCreate: + description: 'This class represents a value for creating Object states.' + type: object + required: + - identifier + - priority + - defaultLanguageCode + - languageCodes + - names + - descriptions + properties: + identifier: + description: 'Readable unique string identifier of a group.' + type: string + priority: + description: 'Priority for ordering. If not set the Object state is created as the last one.' + type: string + defaultLanguageCode: + description: 'The default language code.' + type: string + languageCodes: + description: 'Language codes.' + type: string + names: + description: 'An array of names with languageCode keys. At least one name in the main language is required.' + type: object + required: + - value + properties: + value: + type: array + items: + $ref: '#/components/schemas/Value' + descriptions: + description: 'An array of descriptions with languageCode keys.' + type: object + required: + - value + properties: + value: + type: array + items: + $ref: '#/components/schemas/Value' + ObjectStateCreateWrapper: + type: object + required: + - ObjectStateCreate + properties: + ObjectStateCreate: + $ref: '#/components/schemas/ObjectStateCreate' + ObjectStateUpdate: + description: 'This class represents a value for updating Object states.' + type: object + properties: + identifier: + description: 'Readable unique string identifier of a group.' + type: string + defaultLanguageCode: + description: 'The default language code.' + type: string + names: + description: 'An array of names with languageCode keys.' + descriptions: + description: 'An array of descriptions with languageCode keys.' + ObjectStateUpdateWrapper: + type: object + required: + - ObjectStateUpdate + properties: + ObjectStateUpdate: + $ref: '#/components/schemas/ObjectStateUpdate' + ObjectStateList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'List of Object states.' + type: object + required: + - ObjectState + properties: + ObjectState: + type: array + items: + $ref: '#/components/schemas/ObjectState' + ObjectStateListWrapper: + type: object + required: + - ObjectStateList + properties: + ObjectStateList: + $ref: '#/components/schemas/ObjectStateList' + ObjectStateGroup: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents an Object state group value.' + type: object + required: + - id + - identifier + - defaultLanguageCode + - languageCodes + - ObjectStates + - names + - descriptions + properties: + id: + description: 'Primary key.' + type: integer + identifier: + description: 'Readable string identifier of a group.' + type: string + defaultLanguageCode: + description: 'The default language code.' + type: string + languageCodes: + description: 'The available language codes for names an descriptions.' + type: string + ObjectStates: + description: 'Object States.' + $ref: '#/components/schemas/BaseObject' + names: + description: 'List of names.' + descriptions: + description: 'List of descriptions.' + ObjectStateGroupWrapper: + type: object + required: + - ObjectStateGroup + properties: + ObjectStateGroup: + $ref: '#/components/schemas/ObjectStateGroup' + ObjectStateGroupCreate: + description: 'This class represents a value for creating Object state groups.' + type: object + required: + - identifier + - defaultLanguageCode + - names + - descriptions + properties: + identifier: + description: 'Readable unique string identifier of a group.' + type: string + defaultLanguageCode: + description: 'The default language code.' + type: string + names: + description: 'An array of names with languageCode keys. At least one name in the main language is required.' + descriptions: + description: 'An array of descriptions with languageCode keys.' + ObjectStateGroupCreateWrapper: + type: object + required: + - ObjectStateGroupCreate + properties: + ObjectStateGroupCreate: + $ref: '#/components/schemas/ObjectStateGroupCreate' + ObjectStateGroupUpdate: + description: 'This class represents a value for updating Object state groups.' + type: object + properties: + identifier: + description: 'Readable unique string identifier of a group.' + type: string + defaultLanguageCode: + description: 'The default language code.' + type: string + names: + description: 'An array of names with languageCode keys.' + descriptions: + description: 'An array of descriptions with languageCode keys.' + ObjectStateGroupUpdateWrapper: + type: object + required: + - ObjectStateGroupUpdate + properties: + ObjectStateGroupUpdate: + $ref: '#/components/schemas/ObjectStateGroupUpdate' + ObjectStateGroupList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'List of Object state groups.' + type: object + required: + - ObjectStateGroup + properties: + ObjectStateGroup: + description: 'This class represents an Object state group value.' + type: array + items: + $ref: '#/components/schemas/ObjectStateGroup' + ObjectStateGroupListWrapper: + type: object + required: + - ObjectStateGroupList + properties: + ObjectStateGroupList: + $ref: '#/components/schemas/ObjectStateGroupList' + CountryList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class is representing an ISO-3166 formatted list of world countries.' + type: object + required: + - Country + properties: + Country: + type: array + items: + $ref: '#/components/schemas/Country' + Country: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class is representing a country.' + type: object + required: + - _id + - name + - Alpha2 + - Alpha3 + - IDC + properties: + _id: + description: 'ID that represents a country name.' + xml: + attribute: true + name: id + type: string + name: + description: 'Name of the country.' + type: string + Alpha2: + description: 'Two-letter code that represents a country name.' + type: string + Alpha3: + description: 'Three-letter code that represents a country name.' + type: string + IDC: + description: IDC + type: integer + CountryListWrapper: + type: object + required: + - CountryList + properties: + CountryList: + $ref: '#/components/schemas/CountryList' + View: + description: View. + type: object + required: + - identifier + - User + - public + - LocationQuery + - Result + properties: + identifier: + description: 'Content identifier.' + type: string + User: + $ref: '#/components/schemas/User' + public: + type: boolean + LocationQuery: + $ref: '#/components/schemas/LocationQuery' + Result: + $ref: '#/components/schemas/BaseObject' + ViewInput: + description: 'This class represents a View input.' + type: object + required: + - identifier + - Query + properties: + identifier: + description: 'Content identifier.' + type: string + languageCode: + type: string + useAlwaysAvailable: + type: string + Query: + $ref: '#/components/schemas/Query' + ViewInputWrapper: + type: object + required: + - ViewInput + properties: + ViewInput: + $ref: '#/components/schemas/ViewInput' + Query: + description: 'This class is used to perform a Content query.' + type: object + properties: + Filter: + description: 'The Query filter. Can contain multiple criterion, as items of a logical one (by default AND).' + $ref: '#/components/schemas/Criterion' + Query: + description: 'The Query query. Can contain multiple criterion, as items of a logical one (by default AND).' + $ref: '#/components/schemas/Criterion' + sortClauses: + description: 'Query sorting clauses.' + type: array + items: + $ref: '#/components/schemas/SortClause' + facetBuilders: + description: "An array of facet builders. Search engines may ignore any, or given facet builders they don't support and will just return search result facets supported by the engine. API consumer should dynamically iterate over returned facets for further use." + type: array + items: + $ref: '#/components/schemas/FacetBuilder' + offset: + description: 'Query offset. Sets the offset for search hits, used for paging the results.' + type: integer + limit: + description: 'Query limit. Limit for number of search hits to return. If value is `0`, search query will not return any search hits, useful for doing a count.' + type: integer + spellcheck: + description: 'If true spellcheck suggestions are returned.' + type: boolean + performCount: + description: 'If true, search engine should perform count even if that means extra lookup.' + type: boolean + LocationQuery: + description: 'This class is used to perform a Location query.' + $ref: '#/components/schemas/Query' + Criterion: + description: 'Criterion implementations.' + type: object + properties: + operator: + description: 'The operator used by the Criterion.' + type: string + value: + description: 'The value(s) matched by the Criteria.' + type: array + items: + type: [] + target: + description: 'The target used by the Criteria (field, metadata...).' + type: string + valueData: + description: 'Additional value data, required by some Criteria, MapLocationDistance for instance.' + Specifications: + description: "Criterion description function. Returns the combination of the Criterion's supported operator/value, as an array of objects." + type: array + items: + $ref: '#/components/schemas/Specifications' + FacetBuilder: + description: 'This class is the base class for facet builders.' + type: object + required: + - name + - global + - filter + - limit + - minCount + properties: + name: + description: 'The name of the facet.' + type: string + global: + description: 'If true the facet runs in a global mode not restricted by the query.' + type: boolean + filter: + description: 'An additional facet filter that will further filter the documents the facet will be executed on.' + $ref: '#/components/schemas/Criterion' + limit: + description: 'Number of facets (terms) returned.' + type: integer + minCount: + description: 'Specifies the minimum count. Only facet groups with more or equal results are returned.' + type: integer + Specifications: + description: 'This class is used by Criteria to describe which operators they support. Instances of this class are returned in an array by the {@see Criterion::getSpecifications()} method.' + type: object + required: + - operator + - valueFormat + - valueTypes + - valueCount + properties: + operator: + description: 'Specified operator, as one of the Operator::* constants.' + type: string + valueFormat: + description: 'Format supported for the Criterion value, either {@see self::FORMAT_SINGLE} for single or {@see self::FORMAT_ARRAY} for multiple.' + type: string + valueTypes: + description: 'Accepted values types, specifying what type of variables are accepted as a value. Criterion input value type description constants: const TYPE_INTEGER = 1; const TYPE_STRING = 2; const TYPE_BOOLEAN = 4.' + type: integer + valueCount: + description: 'Limitation on the number of items as the value. Only usable if {@see $valueFormat} is {@see self::FORMAT_ARRAY}.' + type: integer + Role: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a role.' + type: object + required: + - identifier + - Policies + properties: + identifier: + description: 'Readable string identifier of a role.' + type: string + Policies: + description: 'Returns the list of policies of this role.' + $ref: '#/components/schemas/BaseObject' + RoleWrapper: + type: object + required: + - Role + properties: + Role: + $ref: '#/components/schemas/Role' + RoleDraft: + description: 'This class represents a draft of a role, extends Role.' + $ref: '#/components/schemas/Role' + RoleDraftWrapper: + type: object + required: + - Role + properties: + Role: + $ref: '#/components/schemas/RoleDraft' + RoleInput: + description: 'This class represents a Role input.' + type: object + required: + - identifier + properties: + identifier: + type: string + RoleInputWrapper: + type: object + required: + - RoleInput + properties: + RoleInput: + $ref: '#/components/schemas/RoleInput' + RoleList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a list roles.' + type: object + required: + - Role + properties: + Role: + type: array + items: + $ref: '#/components/schemas/Role' + RoleListWrapper: + type: object + required: + - RoleList + properties: + RoleList: + $ref: '#/components/schemas/RoleList' + Policy: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a policy value.' + type: object + required: + - id + - module + - function + properties: + id: + description: 'ID of the policy.' + type: integer + module: + description: 'Name of module, associated with the Policy e.g. content.' + type: string + function: + description: "Name of the module function Or all functions with '*' e.g. read." + type: string + limitations: + description: Limitations. + type: object + required: + - limitation + properties: + limitation: + type: array + items: { $ref: '#/components/schemas/Limitation' } + PolicyWrapper: + type: object + required: + - Policy + properties: + Policy: + $ref: '#/components/schemas/Policy' + Limitation: + description: 'This class represents a Limitation applied to a policy.' + type: object + required: + - _identifier + - values + properties: + _identifier: + description: 'Returns the limitation identifier (one of the defined constants) or a custom limitation. Constants: CONTENTTYPE = Class; LANGUAGE = Language; LOCATION = Node; OWNER = Owner; PARENTOWNER = ParentOwner; PARENTCONTENTTYPE = ParentClass; PARENTDEPTH = ParentDepth; SECTION = Section; NEWSECTION = NewSection; SITEACCESS = SiteAccess; STATE = State; NEWSTATE = NewState; SUBTREE = Subtree; USERGROUP = Group; PARENTUSERGROUP = ParentGroup; STATUS = Status.' + enum: + - ContentType + - Language + - Location + - Owner + - Parentowner + - ParentContentType + - ParentDepth + - Section + - NewSection + - SiteAccess + - State + - NewState + - Subtree + - UserGroup + - ParentUserGroup + - Status + - Class + xml: + attribute: true + name: identifier + type: string + values: + description: 'A read-only list of IDs or identifiers for which the limitation should be applied. The value of this property must conform to a hash, which means that it may only consist of array and scalar values, but must not contain objects or resources.' + type: object + required: + - $ref + properties: + ref: + type: array + items: + $ref: '#/components/schemas/Ref' + PolicyList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'List of policies.' + type: object + required: + - Policy + properties: + Policy: + type: array + items: + $ref: '#/components/schemas/Policy' + PolicyListWrapper: + type: object + required: + - PolicyList + properties: + PolicyList: + $ref: '#/components/schemas/PolicyList' + PolicyCreate: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class is used to create a Policy.' + type: object + required: + - module + - function + - Limitations + properties: + module: + description: 'Name of module associated with the Policy. For example, content.' + type: string + function: + description: "Name of the module function, or all functions with ''*''. For example, read." + type: string + Limitations: + type: array + items: + $ref: '#/components/schemas/Limitation' + PolicyCreateWrapper: + type: object + required: + - PolicyCreate + properties: + PolicyCreate: + $ref: '#/components/schemas/PolicyCreate' + PolicyUpdate: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class is used to update a Policy.' + type: object + required: + - Limitations + properties: + Limitations: + type: array + items: + $ref: '#/components/schemas/Limitation' + PolicyUpdateWrapper: + type: object + required: + - PolicyUpdate + properties: + PolicyUpdate: + $ref: '#/components/schemas/PolicyUpdate' + RoleAssignment: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This value object represents an assignment of a User or User group to a role including a limitation.' + type: object + required: + - Role + properties: + limitation: + description: 'Returns the limitation of the role assignment.' + Role: + description: 'Returns the role to which the User or User group is assigned to.' + $ref: '#/components/schemas/Ref' + RoleAssignmentWrapper: + type: object + required: + - RoleAssignment + properties: + RoleAssignment: + $ref: '#/components/schemas/RoleAssignment' + RoleAssignInput: + description: 'This class represents a Role assign input.' + type: object + required: + - Role + - limitation + properties: + Role: + description: 'Returns the Role to which the user or user group is assigned to.' + $ref: '#/components/schemas/Ref' + limitation: + description: 'Returns the Limitation of the Role assignment.' + $ref: '#/components/schemas/Limitation' + RoleAssignInputWrapper: + type: object + required: + - RoleAssignInput + properties: + RoleAssignInput: + $ref: '#/components/schemas/RoleAssignInput' + RoleAssignmentList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This value object represents a list of assignments of a User or User group to a role including a limitation.' + type: object + required: + - RoleAssignment + properties: + RoleAssignment: + type: array + items: + $ref: '#/components/schemas/RoleAssignment' + RoleAssignmentListWrapper: + type: object + required: + - RoleAssignmentList + properties: + RoleAssignmentList: + $ref: '#/components/schemas/RoleAssignmentList' + Session: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'Value for session.' + type: object + required: + - name + - identifier + - csrfToken + - User + properties: + name: + description: Name. + type: string + identifier: + description: Identifier. + type: string + csrfToken: + description: csrfToken. + type: string + User: + description: User. + $ref: '#/components/schemas/BaseObject' + SessionWrapper: + type: object + required: + - Session + properties: + Session: + $ref: '#/components/schemas/Session' + SessionInput: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a session input.' + type: object + required: + - login + - password + properties: + login: + type: string + password: + type: string + SessionInputWrapper: + type: object + required: + - SessionInput + properties: + SessionInput: + $ref: '#/components/schemas/SessionInput' + JWT: + description: 'This class represents the JWT authentication token' + type: object + required: + - token + properties: + token: + description: 'JWT authentication token' + type: string + JWTWrapper: + type: object + required: + - JWT + properties: + JWT: + $ref: '#/components/schemas/JWT' + JWTInput: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents the input for a JWT authentication token' + type: object + required: + - username + - password + properties: + username: + description: 'User name' + type: string + password: + description: 'User password' + type: string + JWTInputWrapper: + type: object + required: + - JWTInput + properties: + JWTInput: + $ref: '#/components/schemas/JWTInput' + UserGroup: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'Content ID matcher class.' + type: object + required: + - _remoteId + - _id + - ContentType + - name + - Versions + - Section + - MainLocation + - Locations + - Owner + - lastModificationDate + - mainLanguageCode + - alwaysAvailable + - Version + - ParentUserGroup + - Subgroups + - Users + - Roles + properties: + _remoteId: + description: 'Remote ID of the content type.' + xml: + attribute: true + name: remoteId + type: string + _id: + description: 'Unique ID of the content type.' + xml: + attribute: true + name: id + type: integer + ContentType: + description: 'Content type.' + $ref: '#/components/schemas/Ref' + name: + type: string + Versions: + description: 'Returns the VersionInfo for this version.' + $ref: '#/components/schemas/Ref' + Section: + description: 'The Section to which the content item is assigned to.' + $ref: '#/components/schemas/Ref' + MainLocation: + $ref: '#/components/schemas/Ref' + Locations: + description: 'Location of the content item.' + $ref: '#/components/schemas/Ref' + Owner: + description: 'The owner of the content item.' + $ref: '#/components/schemas/Ref' + lastModificationDate: + description: 'Content item modification date.' + type: string + format: date-time + mainLanguageCode: + description: 'The main language code of the content item.' + type: string + alwaysAvailable: + type: boolean + Version: + $ref: '#/components/schemas/Version' + ParentUserGroup: + $ref: '#/components/schemas/Ref' + Subgroups: + $ref: '#/components/schemas/Ref' + Users: + $ref: '#/components/schemas/Ref' + Roles: + $ref: '#/components/schemas/Ref' + UserGroupWrapper: + type: object + required: + - UserGroup + properties: + UserGroup: + $ref: '#/components/schemas/UserGroup' + UserGroupList: + description: 'This class represents a User Group list.' + $ref: '#/components/schemas/BaseObject' + UserGroupListWrapper: + type: object + required: + - UserGroupList + properties: + UserGroupList: + $ref: '#/components/schemas/UserGroupList' + UserGroupRefList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'Returns a list of the sub groups.' + type: object + required: + - UserGroup + properties: + UserGroup: + description: 'This class represents a User group.' + type: array + items: + $ref: '#/components/schemas/Ref' + UserGroupRefListWrapper: + type: object + required: + - UserGroupRefList + properties: + UserGroupRefList: + $ref: '#/components/schemas/UserGroupRefList' + UserGroupCreate: + description: 'This class is used to create a User Group.' + type: object + required: + - mainLanguageCode + - remoteId + - fields + properties: + mainLanguageCode: + type: string + remoteId: + type: string + fields: + $ref: '#/components/schemas/Fields' + UserGroupCreateWrapper: + type: object + required: + - UserGroupCreate + properties: + UserGroupCreate: + $ref: '#/components/schemas/UserGroupCreate' + UserGroupUpdate: + description: 'This class is used to update a User group in the Repository.' + type: object + required: + - Section + properties: + Section: + type: object + required: + - _href + properties: + _href: + xml: + attribute: true + name: href + type: string + UserGroupUpdateWrapper: + type: object + required: + - UserGroupUpdate + properties: + UserGroupUpdate: + $ref: '#/components/schemas/UserGroupUpdate' + UserGroupUnassign: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a User group.' + type: object + required: + - Unassign + properties: + Unassign: + $ref: '#/components/schemas/Unlink' + Unlink: + description: 'Unlink a content type group from a content type.' + type: object + required: + - _href + - _method + properties: + _href: + type: string + _method: + enum: + - DELETE + type: string + User: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a User value.' + type: object + required: + - _id + - _remoteId + - ContentType + - name + - Versions + - Section + - MainLocation + - Locations + - Groups + - Owner + - publishDate + - lastModificationDate + - mainLanguageCode + - alwaysAvailable + - Version + - login + - email + - enabled + - UserGroups + - Roles + properties: + _id: + description: 'Unique ID of the content type.' + xml: + attribute: true + name: id + type: integer + _remoteId: + description: 'Remote ID of the content type.' + xml: + attribute: true + name: remoteId + type: string + ContentType: + description: 'This class represents a content type.' + $ref: '#/components/schemas/BaseObject' + name: + description: 'Name of the domain object in a given language.' + type: string + Versions: + description: 'Returns the VersionInfo for this version.' + $ref: '#/components/schemas/BaseObject' + Section: + description: 'The Section to which the content item is assigned.' + $ref: '#/components/schemas/BaseObject' + MainLocation: + description: 'Main Location of the object.' + $ref: '#/components/schemas/BaseObject' + Locations: + description: 'Locations of the object.' + $ref: '#/components/schemas/BaseObject' + Groups: + description: 'Group User of the content type.' + $ref: '#/components/schemas/BaseObject' + Owner: + description: 'The owner of the content item.' + $ref: '#/components/schemas/BaseObject' + publishDate: + description: 'Content publication date.' + type: string + format: date-time + lastModificationDate: + description: 'Content modification date.' + type: string + format: date-time + mainLanguageCode: + description: 'The main language code of the content item.' + type: string + alwaysAvailable: + description: "Indicates if the content item is shown in the main language if it's not present in an other requested language." + type: boolean + Version: + description: 'Returns the VersionInfo for this version.' + login: + description: 'User login.' + type: string + email: + description: 'User email address.' + type: string + enabled: + description: 'Flag to Signal if User is enabled or not. User can not login if false.' + type: boolean + UserGroups: + description: 'User groups.' + $ref: '#/components/schemas/BaseObject' + Roles: + description: Roles. + $ref: '#/components/schemas/BaseObject' + UserWrapper: + type: object + required: + - User + properties: + User: + $ref: '#/components/schemas/User' + UserList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a list of users.' + type: object + required: + - User + properties: + User: + type: array + items: + $ref: '#/components/schemas/User' + UserListWrapper: + type: object + required: + - UserList + properties: + UserList: + $ref: '#/components/schemas/UserList' + UserRefList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'Returns a list of the users.' + type: object + required: + - User + properties: + User: + description: 'This class represents a User.' + type: array + items: + $ref: '#/components/schemas/BaseObject' + UserRefListWrapper: + type: object + required: + - UserRefList + properties: + UserRefList: + $ref: '#/components/schemas/UserRefList' + UserUpdate: + description: 'This class is used to update a User.' + type: object + required: + - login + properties: + login: + type: string + email: + type: string + password: + type: string + enabled: + type: boolean + maxLogin: + type: integer + ContentUpdate: + description: 'The update structure for the profile content.' + ContentMetadataUpdate: + description: 'The update structure for the profile metadata.' + UserUpdateWrapper: + type: object + required: + - UserUpdate + properties: + UserUpdate: + $ref: '#/components/schemas/UserUpdate' + UserCreate: + description: 'This class is used to create a User.' + type: object + required: + - mainLanguageCode + - remoteId + - login + - email + - password + properties: + mainLanguageCode: + type: string + remoteId: + type: string + login: + type: string + email: + type: string + password: + type: string + enabled: + type: boolean + UserCreateWrapper: + type: object + required: + - UserCreate + properties: + UserCreate: + $ref: '#/components/schemas/UserCreate' + Event: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'Calendar event.' + type: object + required: + - id + - datetime + - type + - name + - attributes + properties: + id: + description: 'The unique ID.' + type: string + datetime: + type: string + format: date-time + type: + description: 'Event type identifier or name.' + type: string + name: + description: 'Name of the calendar event.' + type: string + attributes: + description: 'List of event attributes.' + type: array + items: + $ref: '#/components/schemas/EventAttribute' + EventAttribute: + type: object + required: + - label + - value + properties: + label: + description: 'Label of the attribute.' + type: string + value: + description: 'Value of the attribute.' + type: string + EventList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'List of calendar events.' + type: object + required: + - _currentPage + - totalCount + - events + properties: + _currentPage: + description: 'Current page representation.' + xml: + attribute: true + name: currentPage + type: string + nextPage: + description: 'Next page representation.' + type: string + totalCount: + description: 'Total count of events.' + type: integer + events: + type: array + items: + $ref: '#/components/schemas/Event' + EventListWrapper: + type: object + required: + - EventList + properties: + EventList: + $ref: '#/components/schemas/EventList' + EventGroup: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'Event group.' + type: object + required: + - _currentPage + - totalCount + - events + properties: + _currentPage: + description: 'Current page representation.' + xml: + attribute: true + name: currentPage + type: string + nextPage: + description: 'Next page representation.' + type: string + groupKey: + $ref: '#/components/schemas/DateRange' + totalCount: + description: 'Total count of events.' + type: integer + events: + type: array + items: + $ref: '#/components/schemas/Event' + EventGroupList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'Grouped calendar event list.' + type: object + required: + - groups + properties: + groups: + type: array + items: + $ref: '#/components/schemas/EventGroup' + EventGroupListWrapper: + type: object + required: + - EventGroupList + properties: + EventGroupList: + $ref: '#/components/schemas/EventGroupList' + UnscheduleAction: + description: 'This class represents events to unschedule' + type: object + required: + - events + properties: + events: + description: 'list of events' + type: array + items: + type: string + UnscheduleActionWrapper: + type: object + required: + - UnscheduleAction + properties: + UnscheduleAction: + $ref: '#/components/schemas/UnscheduleAction' + AttributeGroup: + description: 'This class represents an attribute group.' + type: object + required: + - name + - identifier + - position + properties: + name: + type: string + identifier: + type: string + position: + type: integer + AttributeGroupWrapper: + type: object + required: + - AttributeGroup + properties: + AttributeGroup: + $ref: '#/components/schemas/AttributeGroup' + AttributeGroupCreate: + description: 'This class is used to create an attribute group.' + type: object + required: + - identifier + - names + - position + properties: + identifier: + type: string + names: + type: object + position: + type: integer + AttributeGroupCreateWrapper: + type: object + required: + - AttributeGroupCreate + properties: + AttributeGroupCreate: + $ref: '#/components/schemas/AttributeGroupCreate' + AttributeGroupUpdate: + description: 'This class is used to update an attribute group.' + type: object + required: + - identifier + - names + - position + properties: + identifier: + type: string + names: + type: object + position: + type: integer + AttributeGroupUpdateWrapper: + type: object + required: + - AttributeGroupUpdate + properties: + AttributeGroupUpdate: + $ref: '#/components/schemas/AttributeGroupUpdate' + AttributeGroupList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents an attribute group list.' + type: object + required: + - AttributeGroup + properties: + AttributeGroup: + type: array + items: + $ref: '#/components/schemas/AttributeGroup' + AttributeGroupListWrapper: + type: object + required: + - AttributeGroupList + properties: + AttributeGroupList: + $ref: '#/components/schemas/AttributeGroupList' + AttributeGroupListGet: + description: 'This class represents an attribute group list request.' + type: object + required: + - prefix + - offset + - limit + properties: + prefix: + type: string + offset: + type: integer + limit: + type: integer + AttributeGroupListGetWrapper: + type: object + required: + - AttributeGroupListGet + properties: + AttributeGroupListGet: + $ref: '#/components/schemas/AttributeGroupListGet' + AttributeGroupGet: + description: 'This class represents an attribute group query.' + type: object + required: + - languages + properties: + languages: + type: array + items: + type: string + AttributeGroupGetWrapper: + type: object + required: + - AttributeGroupGet + properties: + AttributeGroupGet: + $ref: '#/components/schemas/AttributeGroupGet' + AttributeGroupListResult: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + type: object + required: + - count + - AttributeGroupList + properties: + count: + type: integer + AttributeGroupList: + $ref: '#/components/schemas/AttributeGroupList' + AttributeGroupView: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents an attribute group view.' + type: object + required: + - identifier + - Result + properties: + identifier: + type: string + Result: + $ref: '#/components/schemas/AttributeGroupListResult' + AttributeGroupViewWrapper: + type: object + required: + - AttributeGroupView + properties: + AttributeGroupView: + $ref: '#/components/schemas/AttributeGroupView' + AttributeGroupViewInput: + description: 'This class represents an attribute group view input.' + xml: + name: ViewInput + type: object + required: + - identifier + - AttributeGroupQuery + properties: + identifier: + type: string + AttributeGroupQuery: + type: object + required: + - limit + - offset + - name_prefix + properties: + limit: + type: string + offset: + type: string + name_prefix: + type: string + AttributeGroupViewInputWrapper: + type: object + required: + - ViewInput + properties: + ViewInput: + $ref: '#/components/schemas/AttributeGroupViewInput' + AttributeType: + description: 'This class represents an attribute type.' + type: object + required: + - identifier + - name + properties: + identifier: + type: string + name: + type: string + AttributeTypeWrapper: + type: object + required: + - AttributeType + properties: + AttributeType: + $ref: '#/components/schemas/AttributeType' + AttributeTypeList: + description: 'This class represents an attribute type list.' + type: object + required: + - attributeTypes + properties: + attributeTypes: + type: array + items: + $ref: '#/components/schemas/AttributeType' + AttributeTypeListWrapper: + type: object + required: + - AttributeTypeList + properties: + AttributeTypeList: + $ref: '#/components/schemas/AttributeTypeList' + CartList: + type: object + Attribute: + description: 'This class represents an attribute.' + type: object + required: + - name + - identifier + - description + - type + - type_identifier + - value + - group + - position + - options + properties: + name: + type: string + identifier: + type: string + description: + type: string + type: + type: string + type_identifier: + type: string + value: + type: [] + group: + type: string + position: + type: integer + options: + type: + - object + - array + AttributeWrapper: + type: object + required: + - Attribute + properties: + Attribute: + $ref: '#/components/schemas/Attribute' + AttributeCreate: + description: 'This class is used to create an attribute.' + type: object + required: + - identifier + - type + - group + - names + - descriptions + - position + - options + properties: + identifier: + type: string + type: + type: string + group: + type: string + names: + type: object + descriptions: + type: object + position: + type: integer + options: + type: + - object + - array + AttributeCreateWrapper: + type: object + required: + - AttributeCreate + properties: + AttributeCreate: + $ref: '#/components/schemas/AttributeCreate' + AttributeUpdate: + description: 'This class is used to update an attribute.' + type: object + required: + - identifier + - names + - descriptions + - position + - options + properties: + identifier: + type: string + names: + type: object + descriptions: + type: object + position: + type: integer + options: + type: object + AttributeUpdateWrapper: + type: object + required: + - AttributeUpdate + properties: + AttributeUpdate: + $ref: '#/components/schemas/AttributeUpdate' + AttributeList: + description: 'This class represents an attribute list.' + type: object + required: + - Attribute + properties: + Attribute: + type: array + items: + $ref: '#/components/schemas/Attribute' + AttributeListWrapper: + type: object + required: + - AttributeList + properties: + AttributeList: + $ref: '#/components/schemas/AttributeList' + AttributeView: + description: 'This class represents an attribute view.' + type: object + required: + - identifier + - AttributeQuery + - Result + properties: + identifier: + type: string + AttributeQuery: + type: object + Result: + type: object + AttributeViewWrapper: + type: object + required: + - AttributeView + properties: + AttributeView: + $ref: '#/components/schemas/AttributeView' + AttributeViewInput: + description: 'This class represents an attribute view input.' + xml: + name: ViewInput + type: object + required: + - identifier + - AttributeQuery + properties: + identifier: + type: string + AttributeQuery: + type: object + AttributeViewInputWrapper: + type: object + required: + - ViewInput + properties: + ViewInput: + $ref: '#/components/schemas/AttributeViewInput' + AttributeAssignment: + type: object + required: + - is_required + - is_discriminator + - Attribute + properties: + is_required: + type: boolean + is_discriminator: + type: boolean + Attribute: + $ref: '#/components/schemas/Attribute' + Catalog: + description: 'This class represents a catalog.' + type: object + required: + - identifier + - name + - description + - created + - modified + - status + - User + - Criteria + properties: + identifier: + type: string + name: + type: string + description: + type: string + created: + type: integer + modified: + type: integer + status: + type: string + User: + $ref: '#/components/schemas/Ref' + Criteria: + type: array + items: + $ref: '#/components/schemas/Criterion' + CatalogWrapper: + type: object + required: + - Catalog + properties: + Catalog: + $ref: '#/components/schemas/Catalog' + CatalogCreate: + description: 'This class is used to create a catalog.' + type: object + required: + - identifier + - criteria + - names + - status + properties: + identifier: + type: string + criteria: + $ref: '#/components/schemas/Criterion' + names: + type: object + descriptions: + type: object + status: + type: string + creator_id: + type: integer + CatalogCreateWrapper: + type: object + required: + - CatalogCreate + properties: + CatalogCreate: + $ref: '#/components/schemas/CatalogCreate' + CatalogUpdate: + description: 'This class is used to update a catalog.' + type: object + required: + - identifier + - transition + - criteria + - names + - descriptions + properties: + identifier: + type: string + transition: + type: string + criteria: + $ref: '#/components/schemas/Criterion' + names: + type: object + descriptions: + type: object + CatalogUpdateWrapper: + type: object + required: + - CatalogUpdate + properties: + CatalogUpdate: + $ref: '#/components/schemas/CatalogUpdate' + CatalogCopy: + description: 'This class is used to copy a catalog.' + type: object + required: + - identifier + - creator_id + properties: + identifier: + type: string + creator_id: + description: Optional + type: integer + CatalogCopyWrapper: + type: object + required: + - CatalogCopy + properties: + CatalogCopy: + $ref: '#/components/schemas/CatalogCopy' + CatalogList: + description: 'This class represents a catalog list.' + type: object + required: + - Catalog + properties: + Catalog: + type: array + items: + $ref: '#/components/schemas/Catalog' + CatalogListViewResult: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + type: object + required: + - CatalogList + properties: + CatalogList: + $ref: '#/components/schemas/CatalogList' + CatalogView: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + type: object + required: + - identifier + - CatalogQuery + - Result + properties: + identifier: + type: string + CatalogQuery: + $ref: '#/components/schemas/Ref' + Result: + $ref: '#/components/schemas/CatalogListViewResult' + CatalogViewWrapper: + type: object + required: + - CatalogView + properties: + CatalogView: + $ref: '#/components/schemas/CatalogView' + CatalogViewInput: + description: 'This class represents a catalog view input.' + xml: + name: ViewInput + type: object + required: + - CatalogQuery + properties: + CatalogQuery: + type: object + CatalogViewInputWrapper: + type: object + required: + - ViewInput + properties: + ViewInput: + $ref: '#/components/schemas/CatalogViewInput' + Currency: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents currency.' + type: object + required: + - id + - code + - subunits + - enabled + properties: + id: + type: integer + code: + type: string + subunits: + type: integer + enabled: + type: boolean + CurrencyWrapper: + type: object + required: + - Currency + properties: + Currency: + $ref: '#/components/schemas/Currency' + CurrencyCreate: + description: 'This class is used to create currency.' + type: object + required: + - code + - subunits + - enabled + properties: + code: + type: string + subunits: + type: integer + enabled: + type: boolean + CurrencyCreateWrapper: + type: object + required: + - CurrencyCreate + properties: + CurrencyCreate: + $ref: '#/components/schemas/CurrencyCreate' + CurrencyUpdate: + description: 'This class is used to update currency.' + type: object + required: + - subunits + - enabled + properties: + subunits: + type: integer + enabled: + type: boolean + CurrencyUpdateWrapper: + type: object + required: + - CurrencyUpdate + properties: + CurrencyUpdate: + $ref: '#/components/schemas/CurrencyUpdate' + CurrencyView: + description: 'This class represents a currency view.' + type: object + required: + - identifier + - CurrencyQuery + - Result + properties: + identifier: + type: string + CurrencyQuery: + type: object + Result: + type: object + CurrencyViewWrapper: + type: object + required: + - CurrencyView + properties: + CurrencyView: + $ref: '#/components/schemas/CurrencyView' + CurrencyViewInput: + description: 'This class represents a currency view input.' + xml: + name: ViewInput + type: object + required: + - CurrencyQuery + properties: + CurrencyQuery: + type: object + CurrencyViewInputWrapper: + type: object + required: + - ViewInput + properties: + ViewInput: + $ref: '#/components/schemas/CurrencyViewInput' + CurrencyList: + description: 'This class represents a currency list.' + type: object + required: + - Currency + properties: + Currency: + type: array + items: + $ref: '#/components/schemas/Currency' + CurrencyListWrapper: + type: object + required: + - CurrencyList + properties: + CurrencyList: + $ref: '#/components/schemas/CurrencyList' + CustomerGroup: + description: 'This class represents a customer group.' + type: object + required: + - id + - name + - identifier + - description + - users + - global_price_rate + properties: + id: + type: integer + name: + type: string + identifier: + type: string + description: + type: string + users: + description: 'A list of users attached to the customer group.' + type: array + items: + $ref: '#/components/schemas/User' + global_price_rate: + description: 'A numeric string' + type: string + CustomerGroupWrapper: + type: object + required: + - CustomerGroup + properties: + CustomerGroup: + $ref: '#/components/schemas/CustomerGroup' + CustomerGroupCreate: + description: 'This class is used to create a customer group.' + type: object + required: + - identifier + - names + - descriptions + - global_price_rate + properties: + identifier: + type: string + names: + type: object + descriptions: + type: object + global_price_rate: + description: numeric-string + type: string + CustomerGroupCreateWrapper: + type: object + required: + - CustomerGroupCreate + properties: + CustomerGroupCreate: + $ref: '#/components/schemas/CustomerGroupCreate' + CustomerGroupUpdate: + description: 'This class is used to update a customer group.' + type: object + required: + - names + - identifier + - global_price_rate + properties: + names: + type: object + identifier: + type: string + global_price_rate: + type: string + descriptions: + type: array + items: + type: string + CustomerGroupUpdateWrapper: + type: object + required: + - CustomerGroupUpdate + properties: + CustomerGroupUpdate: + $ref: '#/components/schemas/CustomerGroupUpdate' + CustomerGroupList: + description: 'This class represents a customer group list.' + type: object + required: + - CustomerGroup + properties: + CustomerGroup: + type: array + items: + $ref: '#/components/schemas/CustomerGroup' + CustomerGroupListWrapper: + type: object + required: + - CustomerGroupList + properties: + CustomerGroupList: + $ref: '#/components/schemas/CustomerGroupList' + CustomerGroupListResult: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + type: object + required: + - CustomerGroupList + properties: + CustomerGroupList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + type: object + required: [CustomerGroup] + properties: { CustomerGroup: { type: array, items: { $ref: '#/components/schemas/CustomerGroup' } } } + CustomerGroupViewInput: + description: 'This class represents a customer group view input.' + xml: + name: ViewInput + type: object + required: + - CustomerGroupQuery + properties: + CustomerGroupQuery: + type: object + CustomerGroupViewInputWrapper: + type: object + required: + - ViewInput + properties: + ViewInput: + $ref: '#/components/schemas/CustomerGroupViewInput' + CustomerGroupView: + description: 'This class represents a customer group view.' + type: object + required: + - identifier + - CustomerGroupQuery + - Result + properties: + identifier: + type: string + CustomerGroupQuery: + type: object + Result: + $ref: '#/components/schemas/CustomerGroupListResult' + CustomerGroupViewWrapper: + type: object + required: + - CustomerGroupView + properties: + CustomerGroupView: + $ref: '#/components/schemas/CustomerGroupView' + Region: + description: 'This class represents a region.' + type: object + required: + - identifier + properties: + identifier: + type: string + RegionWrapper: + type: object + required: + - Region + properties: + Region: + $ref: '#/components/schemas/Region' + RegionList: + description: 'This class represents a region list.' + type: object + required: + - Region + properties: + Region: + type: array + items: + $ref: '#/components/schemas/Ref' + RegionListWrapper: + type: object + required: + - RegionList + properties: + RegionList: + $ref: '#/components/schemas/RegionList' + RegionView: + description: 'This class represents a region view.' + type: object + required: + - identifier + - RegionQuery + - Result + properties: + identifier: + type: string + RegionQuery: + type: object + Result: + type: object + RegionViewWrapper: + type: object + required: + - RegionView + properties: + RegionView: + $ref: '#/components/schemas/RegionView' + RegionViewInput: + description: 'This class represents a region view input.' + xml: + name: ViewInput + type: object + required: + - RegionQuery + properties: + RegionQuery: + type: object + RegionViewInputWrapper: + type: object + required: + - ViewInput + properties: + ViewInput: + $ref: '#/components/schemas/RegionViewInput' + ProductType: + description: 'This class represents a product type.' + type: object + required: + - identifier + - name + - AttributeAssignmentList + properties: + identifier: + type: string + name: + type: string + AttributeAssignmentList: + type: array + items: + $ref: '#/components/schemas/AttributeAssignment' + ProductTypeWrapper: + type: object + required: + - ProductType + properties: + ProductType: + $ref: '#/components/schemas/ProductType' + ProductTypeCreate: + description: 'This class is used to create a product type.' + type: object + required: + - ContentTypeCreateStruct + - main_language_code + - assigned_attributes + properties: + ContentTypeCreateStruct: + type: object + main_language_code: + type: string + assigned_attributes: + type: array + items: + $ref: '#/components/schemas/ProductTypeAssignedAttribute' + ProductTypeCreateWrapper: + type: object + required: + - ProductTypeCreate + properties: + ProductTypeCreate: + $ref: '#/components/schemas/ProductTypeCreate' + ProductTypeUpdate: + description: 'This class is used to update a product type.' + type: object + required: + - ContentTypeUpdateStruct + - assigned_attributes + properties: + ContentTypeUpdateStruct: + $ref: '#/components/schemas/ContentTypeUpdateStruct' + assigned_attributes: + type: array + items: + $ref: '#/components/schemas/ProductTypeAssignedAttribute' + ProductTypeUpdateWrapper: + type: object + required: + - ProductTypeUpdate + properties: + ProductTypeUpdate: + $ref: '#/components/schemas/ProductTypeUpdate' + ProductTypeUsage: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a product type usage.' + type: object + required: + - is_used + properties: + is_used: + type: boolean + ProductTypeUsageWrapper: + type: object + required: + - ProductTypeUsage + properties: + ProductTypeUsage: + $ref: '#/components/schemas/ProductTypeUsage' + ProductTypeView: + description: 'This class represents a product type view.' + type: object + required: + - identifier + - ProductTypeQuery + - Result + properties: + identifier: + type: string + ProductTypeQuery: + type: object + Result: + type: object + ProductTypeViewWrapper: + type: object + required: + - ProductTypeView + properties: + ProductTypeView: + $ref: '#/components/schemas/ProductTypeView' + ProductTypeList: + description: 'This class represents a product type list.' + type: object + required: + - ProductType + properties: + ProductType: + type: array + items: + $ref: '#/components/schemas/ProductType' + ProductTypeListWrapper: + type: object + required: + - ProductTypeList + properties: + ProductTypeList: + $ref: '#/components/schemas/ProductTypeList' + ProductTypeListGet: + description: 'This class represents a product type list query.' + type: object + required: + - name_prefix + - offset + - limit + properties: + name_prefix: + type: string + offset: + type: integer + limit: + type: integer + languages: + type: array + items: + type: string + ProductTypeListGetWrapper: + type: object + required: + - ProductTypeListGet + properties: + ProductTypeListGet: + $ref: '#/components/schemas/ProductTypeListGet' + ProductTypeViewInput: + description: 'This class represents a product type view input.' + xml: + name: ViewInput + type: object + required: + - ProductTypeQuery + properties: + ProductTypeQuery: + type: object + ProductTypeViewInputWrapper: + type: object + required: + - ViewInput + properties: + ViewInput: + $ref: '#/components/schemas/ProductTypeViewInput' + ProductTypeAssignedAttribute: + type: object + required: + - identifier + - is_required + - is_discriminator + properties: + identifier: + type: string + is_required: + type: boolean + is_discriminator: + type: boolean + ProductVariant: + description: 'This class represents a product variant.' + type: object + required: + - code + - name + - Product + - DiscriminatorAttributesList + properties: + code: + type: string + name: + type: string + Product: + $ref: '#/components/schemas/Product' + DiscriminatorAttributesList: + type: array + items: + $ref: '#/components/schemas/Attribute' + ProductVariantWrapper: + type: object + required: + - ProductVariant + properties: + ProductVariant: + $ref: '#/components/schemas/ProductVariant' + ProductVariantView: + description: 'This class represents a product variant view.' + type: object + required: + - identifier + - ProductVariantQuery + - Result + properties: + identifier: + type: string + ProductVariantQuery: + type: object + Result: + type: object + ProductVariantViewWrapper: + type: object + required: + - ProductVariantView + properties: + ProductVariantView: + $ref: '#/components/schemas/ProductVariantView' + ProductVariantViewInput: + description: 'This class represents a product variant view input.' + type: object + required: + - ProductVariantQuery + properties: + ProductVariantQuery: + type: object + ProductVariantViewInputWrapper: + type: object + required: + - ViewInput + properties: + ViewInput: + $ref: '#/components/schemas/ProductVariantViewInput' + ProductVariantCreate: + description: 'This class is used to create a product variant.' + type: object + required: + - code + - attributes + properties: + code: + type: string + attributes: + description: 'array<int|string,mixed>' + type: object + ProductVariantCreateWrapper: + type: object + required: + - ProductVariantCreate + properties: + ProductVariantCreate: + $ref: '#/components/schemas/ProductVariantCreate' + ProductVariantUpdate: + description: 'This class is used to update a product variant.' + type: object + required: + - code + - attributes + properties: + code: + type: string + attributes: + description: 'array<int|string,mixed>' + type: object + ProductVariantUpdateWrapper: + type: object + required: + - ProductVariantUpdate + properties: + ProductVariantUpdate: + $ref: '#/components/schemas/ProductVariantUpdate' + ProductVariantGenerate: + description: 'This class is used to generate a product variant.' + type: object + required: + - attributes + properties: + attributes: + description: 'array<int|string,mixed>' + type: object + ProductVariantGenerateWrapper: + type: object + required: + - ProductVariantGenerate + properties: + ProductVariantGenerate: + $ref: '#/components/schemas/ProductVariantGenerate' + ProductSortClause: + type: object + required: + - name + properties: + name: + type: string + ProductSortClauseList: + description: 'This class represents a product sort clause list.' + type: object + required: + - ProductSortClause + properties: + ProductSortClause: + type: array + items: + $ref: '#/components/schemas/ProductSortClause' + ProductSortClauseListWrapper: + type: object + required: + - ProductSortClauseList + properties: + ProductSortClauseList: + $ref: '#/components/schemas/ProductSortClauseList' + Product: + description: 'This class represents a product.' + type: object + required: + - code + - name + - ProductType + - AttributesList + properties: + isVariant: + type: boolean + isBaseProduct: + type: boolean + code: + type: string + name: + type: string + ProductType: + $ref: '#/components/schemas/ProductType' + Content: + $ref: '#/components/schemas/Content' + Thumbnail: + $ref: '#/components/schemas/Thumbnail' + created_at: + type: integer + updated_at: + type: integer + AttributesList: + type: array + items: + $ref: '#/components/schemas/Attribute' + ProductWrapper: + type: object + required: + - Product + properties: + Product: + $ref: '#/components/schemas/Product' + ProductCreate: + description: 'This class is used to create a product.' + type: object + required: + - ContentCreate + - code + - attributes + properties: + ContentCreate: + $ref: '#/components/schemas/ContentCreate' + code: + type: string + attributes: + type: object + ProductCreateWrapper: + type: object + required: + - ProductCreate + properties: + ProductCreate: + $ref: '#/components/schemas/ProductCreate' + ProductUpdate: + description: 'This class is used to update a product.' + type: object + required: + - ContentUpdate + - code + properties: + ContentUpdate: + $ref: '#/components/schemas/ContentUpdate' + code: + type: string + attributes: + type: array + items: + type: object + ProductUpdateWrapper: + type: object + required: + - ProductUpdate + properties: + ProductUpdate: + $ref: '#/components/schemas/ProductUpdate' + ProductContentUpdate: + type: object + required: + - __url + - fields + properties: + __url: + xml: + attribute: true + name: url + type: string + fields: + type: object + required: + - field + properties: + field: + type: array + items: + $ref: '#/components/schemas/Field' + ProductView: + description: 'This class represents a product view.' + type: object + required: + - identifier + - ProductQuery + - Result + properties: + identifier: + type: string + ProductQuery: + type: object + Result: + type: object + ProductViewWrapper: + type: object + required: + - ProductView + properties: + ProductView: + $ref: '#/components/schemas/ProductView' + ProductViewInput: + description: 'This class represents a product view input.' + xml: + name: ViewInput + type: object + required: + - ProductQuery + properties: + ProductQuery: + type: object + ProductViewInputWrapper: + type: object + required: + - ViewInput + properties: + ViewInput: + $ref: '#/components/schemas/ProductViewInput' + ProductList: + description: 'This class represents a product list.' + type: object + required: + - Product + properties: + Product: + type: array + items: + $ref: '#/components/schemas/Product' + ProductListWrapper: + type: object + required: + - ProductList + properties: + ProductList: + $ref: '#/components/schemas/ProductList' + ProductListGet: + description: 'This class represents a product list GET.' + type: object + required: + - offset + - limit + - languages + properties: + offset: + type: integer + limit: + type: integer + languages: + type: array + items: + type: string + ProductListGetWrapper: + type: object + required: + - ProductListGet + properties: + ProductListGet: + $ref: '#/components/schemas/ProductListGet' + ProductGet: + description: 'This class represents a product GET.' + type: object + required: + - languages + properties: + languages: + type: array + items: + type: string + ProductGetWrapper: + type: object + required: + - ProductGet + properties: + ProductGet: + $ref: '#/components/schemas/ProductGet' + ProductFilter: + type: object + required: + - name + properties: + name: + type: string + ProductFilterList: + description: 'This class represents a product filter list.' + type: object + required: + - ProductFilter + properties: + ProductFilter: + type: array + items: + $ref: '#/components/schemas/ProductFilter' + ProductFilterListWrapper: + type: object + required: + - ProductFilterList + properties: + ProductFilterList: + $ref: '#/components/schemas/ProductFilterList' + Price: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a price.' + type: object + required: + - amount + - Currency + properties: + amount: + type: string + base_amount: + type: string + Currency: + $ref: '#/components/schemas/Currency' + money: + type: string + base_money: + type: string + PriceWrapper: + type: object + required: + - Price + properties: + Price: + $ref: '#/components/schemas/Price' + PriceCreateStruct: + description: 'This class represents a price creation structure.' + type: object + required: + - amount + - currency + properties: + amount: + type: integer + currency: + type: string + PriceCreateStructWrapper: + type: object + required: + - PriceCreateStruct + properties: + PriceCreateStruct: + $ref: '#/components/schemas/PriceCreateStruct' + RestPrice: + type: object + required: + - Price + - formatted + properties: + Price: + $ref: '#/components/schemas/Price' + formatted: + type: string + RestPriceWrapper: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + type: object + required: + - RestPrice + properties: + RestPrice: + $ref: '#/components/schemas/RestPrice' + CustomPrice: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a custom price.' + type: object + required: + - amount + - base_amount + - Currency + - money + - base_money + - custom_money + - custom_amount + properties: + amount: + type: string + base_amount: + type: string + Currency: + $ref: '#/components/schemas/Currency' + money: + type: string + base_money: + type: string + custom_money: + type: string + custom_amount: + type: string + custom_rule: + type: + - string + - 'null' + CustomPriceWrapper: + type: object + required: + - CustomPrice + properties: + CustomPrice: + $ref: '#/components/schemas/CustomPrice' + CustomPriceCreateStruct: + description: 'This class represents a custom price creation structure.' + type: object + required: + - amount + - currency + - customAmount + - customerGroup + properties: + amount: + type: integer + currency: + type: string + customAmount: + type: integer + customerGroup: + type: string + CustomPriceCreateStructWrapper: + type: object + required: + - CustomPriceCreateStruct + properties: + CustomPriceCreateStruct: + $ref: '#/components/schemas/CustomPriceCreateStruct' + CustomPriceUpdateStruct: + description: 'This class represents a custom price updating structure.' + type: object + required: + - amount + - currency + - customAmount + properties: + amount: + type: integer + currency: + type: string + customAmount: + type: integer + CustomPriceUpdateStructWrapper: + type: object + required: + - CustomPriceUpdateStruct + properties: + CustomPriceUpdateStruct: + $ref: '#/components/schemas/CustomPriceUpdateStruct' + PriceUpdateStruct: + description: 'This class represents a price updating structure.' + type: object + required: + - amount + - currency + properties: + amount: + type: integer + currency: + type: string + PriceUpdateStructWrapper: + type: object + required: + - PriceUpdateStruct + properties: + PriceUpdateStruct: + $ref: '#/components/schemas/PriceUpdateStruct' + PriceList: + description: 'This class represents a price list.' + type: object + required: + - prices + properties: + prices: + type: array + items: + $ref: '#/components/schemas/Price' + PriceListWrapper: + type: object + required: + - PriceList + properties: + PriceList: + $ref: '#/components/schemas/PriceList' + Thumbnail: + description: 'This class represents a thumbnail that can be a target URL or a Base64 data.' + type: object + required: + - resource + - width + - height + - mimeType + properties: + resource: + type: string + width: + type: + - integer + - 'null' + height: + type: + - integer + - 'null' + mimeType: + type: string + VatCategory: + description: 'This class represents a VAT category.' + type: object + required: + - identifier + - region + - vatValue + properties: + identifier: + type: string + region: + type: string + vatValue: + type: + - number + - 'null' + VatCategoryWrapper: + type: object + required: + - VatCategory + properties: + VatCategory: + $ref: '#/components/schemas/VatCategory' + VatCategoryList: + description: 'This class represents a VAT category list.' + type: object + required: + - VatCategory + properties: + VatCategory: + type: array + items: + $ref: '#/components/schemas/VatCategory' + VatCategoryListWrapper: + type: object + required: + - VatCategoryList + properties: + VatCategoryList: + $ref: '#/components/schemas/VatCategoryList' + VatCategorySummary: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a VAT category summary.' + type: object + required: + - VatCategory + - RestPrice + properties: + VatCategory: + $ref: '#/components/schemas/VatCategory' + RestPrice: + $ref: '#/components/schemas/RestPrice' + TaxonomyEntry: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a taxonomy entry.' + type: object + required: + - id + - identifier + - name + - content + - taxonomy + properties: + id: + type: integer + identifier: + type: string + name: + type: string + content: + $ref: '#/components/schemas/Ref' + taxonomy: + type: string + TaxonomyEntryWrapper: + type: object + required: + - TaxonomyEntry + properties: + TaxonomyEntry: + $ref: '#/components/schemas/TaxonomyEntry' + TaxonomyEntryBulkRemove: + description: 'This class is used to bulk remove taxonomy entries.' + type: object + required: + - entries + properties: + entries: + type: array + items: + type: integer + TaxonomyEntryBulkRemoveWrapper: + type: object + required: + - TaxonomyEntryBulkRemove + properties: + TaxonomyEntryBulkRemove: + $ref: '#/components/schemas/TaxonomyEntryBulkRemove' + TaxonomyEntryMove: + type: object + required: + - entry + - sibling + - position + properties: + entry: + type: integer + sibling: + type: integer + position: + type: string + TaxonomyEntryBulkMove: + description: 'This class is used to bulk move taxonomy entries.' + type: object + required: + - entries + properties: + entries: + type: array + items: + $ref: '#/components/schemas/TaxonomyEntryMove' + TaxonomyEntryBulkMoveWrapper: + type: object + required: + - TaxonomyEntryBulkMove + properties: + TaxonomyEntryBulkMove: + $ref: '#/components/schemas/TaxonomyEntryBulkMove' + TaxonomyEntryAssignment: + description: 'This class represents a taxonomy entry assignment.' + type: object + required: + - id + - content + - entry + properties: + id: + type: integer + content: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + type: object + required: + - Content + properties: + Content: + $ref: '#/components/schemas/Content' + entry: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + type: object + required: + - TaxonomyEntry + properties: + TaxonomyEntry: + $ref: '#/components/schemas/TaxonomyEntry' + TaxonomyEntryAssignmentWrapper: + type: object + required: + - TaxonomyEntryAssignment + properties: + TaxonomyEntryAssignment: + $ref: '#/components/schemas/TaxonomyEntryAssignment' + TaxonomyEntryAssignToContent: + description: 'This class is used to assign taxonomy entry to content.' + type: object + required: + - content + - entries + properties: + content: + type: integer + entries: + type: array + items: + type: integer + TaxonomyEntryAssignToContentWrapper: + type: object + required: + - TaxonomyEntryAssignToContent + properties: + TaxonomyEntryAssignToContent: + $ref: '#/components/schemas/TaxonomyEntryAssignToContent' + TaxonomyEntryUnassignFromContent: + description: 'This class is used to unassign taxonomy entry from content.' + type: object + required: + - content + - entries + properties: + content: + type: integer + entries: + type: array + items: + type: integer + TaxonomyEntryUnassignFromContentWrapper: + type: object + required: + - TaxonomyEntryUnassignFromContent + properties: + TaxonomyEntryUnassignFromContent: + $ref: '#/components/schemas/TaxonomyEntryUnassignFromContent' + EntryAssignmentCollection: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a taxonomy assignment collection.' + type: object + required: + - content + - assignments + properties: + content: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + type: object + required: [Content] + properties: { Content: { $ref: '#/components/schemas/Content' } } + assignments: + type: array + items: + $ref: '#/components/schemas/TaxonomyEntryAssignment' + EntryAssignmentCollectionWrapper: + type: object + required: + - EntryAssignmentCollection + properties: + EntryAssignmentCollection: + $ref: '#/components/schemas/EntryAssignmentCollection' + Segment: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a segment.' + type: object + required: + - id + - identifier + - name + - SegmentGroup + properties: + id: + type: integer + identifier: + type: string + name: + type: string + SegmentGroup: + $ref: '#/components/schemas/SegmentGroup' + SegmentWrapper: + type: object + required: + - Segment + properties: + Segment: + $ref: '#/components/schemas/Segment' + SegmentList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class lists segments.' + type: object + required: + - Segment + properties: + Segment: + type: array + items: + $ref: '#/components/schemas/Segment' + SegmentListWrapper: + type: object + required: + - SegmentList + properties: + SegmentList: + $ref: '#/components/schemas/SegmentList' + SegmentGroup: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a segment group.' + type: object + required: + - id + - identifier + - name + properties: + id: + type: integer + identifier: + type: string + name: + type: string + SegmentGroupWrapper: + type: object + required: + - SegmentGroup + properties: + SegmentGroup: + $ref: '#/components/schemas/SegmentGroup' + SegmentGroupList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class lists segment groups.' + type: object + required: + - SegmentGroup + properties: + SegmentGroup: + type: array + items: + $ref: '#/components/schemas/SegmentGroup' + SegmentGroupListWrapper: + type: object + required: + - SegmentGroupList + properties: + SegmentGroupList: + $ref: '#/components/schemas/SegmentGroupList' + UserSegment: + description: "This class represents a segment and a user it's associate to." + type: object + properties: + id: + type: integer + identifier: + type: string + name: + type: string + SegmentGroup: + $ref: '#/components/schemas/Ref' + User: + $ref: '#/components/schemas/Ref' + UserSegmentList: + description: 'this class lists segments associated to users.' + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + type: object + properties: + UserSegment: + type: array + items: + $ref: '#/components/schemas/UserSegment' + UserSegmentListWrapper: + type: object + required: + - UserSegmentList + properties: + UserSegmentList: + $ref: '#/components/schemas/SegmentList' + UserSegmentAssignInput: + type: object + properties: + segments: + type: array + items: + type: string + UserSegmentAssignInputWrapper: + type: object + required: + - UserSegmentAssignInput + properties: + UserSegmentAssignInput: + $ref: '#/components/schemas/UserSegmentAssignInput' + CorporateAccountRoot: + description: 'This class represents Corporate Account Root resource information.' + type: object + required: + - links + properties: + links: + xml: + wrapped: false + type: array + items: + $ref: '#/components/schemas/Link' + CorporateAccountRootWrapper: + type: object + required: + - CorporateAccountRoot + properties: + CorporateAccountRoot: + $ref: '#/components/schemas/CorporateAccountRoot' + Link: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents REST resource information.' + type: object + required: + - _rel + properties: + _rel: + description: 'Unique identifier of a resource.' + xml: + attribute: true + name: rel + type: string + Company: + description: 'This class represents a company.' + type: object + required: + - id + - name + - Content + - billingAddress + - contactId + - salesRepresentativeId + - defaultAddressId + - addressBookId + - membersId + - MemberList + - Location + - locationPath + - isActive + properties: + id: + type: integer + name: + type: string + Content: + $ref: '#/components/schemas/Content' + billingAddress: + $ref: '#/components/schemas/BillingAddress' + contactId: + type: + - integer + - 'null' + salesRepresentativeId: + type: integer + defaultAddressId: + type: + - integer + - 'null' + addressBookId: + description: 'Address book Folder Content ID.' + type: integer + membersId: + description: 'Members Folder Content ID.' + type: integer + MemberList: + description: 'Reference to Members List resource.' + $ref: '#/components/schemas/BaseObject' + Location: + description: 'Reference to Location resource.' + $ref: '#/components/schemas/BaseObject' + locationPath: + description: 'Company content item Location path string.' + type: string + isActive: + type: boolean + CompanyWrapper: + type: object + required: + - Company + properties: + Company: + $ref: '#/components/schemas/Company' + CompanyCreate: + description: 'This class is used to create a company.' + type: object + required: + - fields + properties: + fields: + type: object + required: + - field + properties: + field: + description: 'Fields of a Company content item.' + type: array + items: + $ref: '#/components/schemas/Field' + CompanyCreateWrapper: + type: object + required: + - CompanyCreate + properties: + CompanyCreate: + $ref: '#/components/schemas/CompanyCreate' + CompanyUpdate: + description: 'This class is used to update a Company.' + type: object + required: + - fields + properties: + fields: + type: object + required: + - field + properties: + field: + description: 'Fields of a Company content item.' + type: array + items: + $ref: '#/components/schemas/Field' + CompanyUpdateWrapper: + type: object + required: + - CompanyUpdate + properties: + CompanyUpdate: + $ref: '#/components/schemas/CompanyUpdate' + CompanyList: + description: 'This class represents a list of companies.' + type: object + required: + - companies + properties: + companies: + type: array + items: + $ref: '#/components/schemas/Company' + CompanyListWrapper: + type: object + required: + - CompanyList + properties: + CompanyList: + $ref: '#/components/schemas/CompanyList' + Member: + description: 'This class represents a company member.' + type: object + required: + - id + - name + - Company + - User + - Role + properties: + id: + type: integer + name: + type: string + Company: + $ref: '#/components/schemas/Company' + User: + description: 'Underlying User object of a member.' + $ref: '#/components/schemas/User' + Role: + description: 'Reference to the member role in a Company resource.' + $ref: '#/components/schemas/BaseObject' + MemberWrapper: + type: object + required: + - Member + properties: + Member: + $ref: '#/components/schemas/Member' + MemberCreate: + description: 'This class is used to create a member.' + type: object + required: + - login + - email + - password + - Role + - fields + properties: + login: + type: string + email: + type: string + password: + type: string + Role: + description: 'Reference to a Role resource company member should be given.' + $ref: '#/components/schemas/BaseObject' + fields: + type: object + required: + - field + properties: + field: + description: 'Fields of a Member content item.' + type: array + items: + $ref: '#/components/schemas/Field' + MemberCreateWrapper: + type: object + required: + - MemberCreate + properties: + MemberCreate: + $ref: '#/components/schemas/MemberCreate' + MemberUpdate: + description: 'This class is used to update a member.' + type: object + required: + - email + - password + - enabled + - maxLogin + - Role + - fields + properties: + email: + type: string + password: + type: string + enabled: + type: boolean + maxLogin: + description: 'Max number of failed login attempts.' + type: integer + Role: + description: 'Reference to a Role resource company member should be given.' + $ref: '#/components/schemas/BaseObject' + fields: + type: object + required: + - field + properties: + field: + description: 'Fields of a Member content item.' + type: array + items: + $ref: '#/components/schemas/Field' + MemberUpdateWrapper: + type: object + required: + - MemberUpdate + properties: + MemberUpdate: + $ref: '#/components/schemas/MemberUpdate' + MemberList: + description: 'This class represents a list of company members.' + type: object + required: + - members + properties: + members: + type: array + items: + $ref: '#/components/schemas/Member' + MemberListWrapper: + type: object + required: + - MemberList + properties: + MemberList: + $ref: '#/components/schemas/MemberList' + SalesRepresentativesList: + allOf: + - + $ref: '#/components/schemas/BaseObject' + - + description: 'This class represents a list of sales representatives.' + type: object + required: + - users + properties: + users: + type: array + items: + $ref: '#/components/schemas/User' + SalesRepresentativesListWrapper: + type: object + required: + - SalesRepresentativesList + properties: + SalesRepresentativesList: + $ref: '#/components/schemas/SalesRepresentativesList' + BillingAddress: + type: object + required: + - name + - country + - fields + properties: + name: + type: + - string + - 'null' + country: + type: + - string + - 'null' + fields: + type: + - object + - array + ActivityLog: + description: 'This class represents an activity log entry.' + type: object + ActivityLogGroup: + type: object + required: + - user_id + - logged_at + - ActivityLogEntries + properties: + user_id: + description: 'The ID of the user performing the logged actions' + type: integer + logged_at: + description: 'Timestamp representing when the group has been logged' + type: integer + ActivityLogEntries: + description: 'Log entries from the group' + type: array + items: + $ref: '#/components/schemas/ActivityLog' + ActivityLogGroupListInput: + description: "This class represents the activity log group search query's criteria and sort clauses." + type: object + ActivityLogGroupListInputWrapper: + type: object + required: + - ActivityLogGroupListInput + properties: + ActivityLogGroupListInput: + $ref: '#/components/schemas/ActivityLogGroupListInput' + ActivityLogGroupList: + description: 'This class represents activity log context groups' + type: object + required: + - ActivityLogGroups + properties: + ActivityLogGroups: + type: array + items: + $ref: '#/components/schemas/ActivityLogGroup' + ActivityLogGroupListWrapper: + type: object + required: + - ActivityLogGroupList + properties: + ActivityLogGroupList: + $ref: '#/components/schemas/ActivityLogGroupList' + Cart: + description: 'This class represents a Cart' + type: object + required: + - id + - identifier + - owner + - Currency + - entries + properties: + id: + description: 'Cart ID' + type: integer + identifier: + description: 'Cart unique identifier' + type: string + owner: + description: 'User reference' + $ref: '#/components/schemas/Ref' + Currency: + $ref: '#/components/schemas/Currency' + entries: + type: array + items: + $ref: '#/components/schemas/CartEntry' + CartWrapper: + type: object + required: + - Cart + properties: + Cart: + $ref: '#/components/schemas/Cart' + CartCreate: + description: 'This class represents a new Cart to create' + type: object + required: + - name + - currencyCode + properties: + name: + description: 'the name of the new Cart' + type: string + currencyCode: + description: 'the currency code such as `EUR`' + type: string + context: + description: 'associative array of scalars describing additional, contextual data attached to the cart' + type: object + CartCreateWrapper: + type: object + required: + - CartCreate + properties: + CartCreate: + $ref: '#/components/schemas/CartCreate' + CartProduct: + description: 'This class represents a cart entry product' + type: object + required: + - code + properties: + code: + description: "product's code" + type: string + CartView: + description: 'This class represents a cart view.' + type: object + required: + - identifier + - Result + properties: + identifier: + type: string + Result: + $ref: '#/components/schemas/CartListViewResult' + CartViewWrapper: + type: object + required: + - CartView + properties: + CartView: + $ref: '#/components/schemas/CartView' + CartViewInput: + description: 'This class represents a cart view input.' + type: object + required: + - identifier + - CartQuery + properties: + identifier: + type: string + CartQuery: + $ref: '#/components/schemas/CartViewInput' + CartViewInputWrapper: + type: object + required: + - CartViewInput + properties: + CartViewInput: + $ref: '#/components/schemas/CartViewInput' + CartQuery: + type: object + required: + - offset + - limit + - ownerId + properties: + offset: + type: integer + limit: + type: integer + ownerId: + type: integer + CartEntry: + type: object + required: + - identifier + - id + - names + - quantity + - Price + properties: + identifier: + type: string + id: + type: integer + names: + type: array + items: + type: object + quantity: + type: integer + Price: + $ref: '#/components/schemas/Price' + CartEntryAdd: + description: 'This class represents a cart entry' + type: object + required: + - quantity + - Product + properties: + quantity: + description: 'the quantity of entry items' + type: integer + Product: + description: 'product data' + context: + description: 'associative array of scalars describing additional, contextual data attached to the cart entry' + type: object + CartEntryAddWrapper: + type: object + required: + - CartEntryAdd + properties: + CartEntryAdd: + $ref: '#/components/schemas/CartEntryAdd' + CartEntryUpdate: + type: object + required: + - quantity + properties: + quantity: + type: integer + context: + description: 'associative array of scalars describing additional, contextual data attached to the cart entry' + type: object + CartEntryUpdateWrapper: + type: object + required: + - CartEntryUpdate + properties: + CartEntryUpdate: + $ref: '#/components/schemas/CartEntryUpdate' + CartMetadataUpdate: + description: 'This class represents the update of cart metadata.' + type: object + required: + - identifier + - defaultLanguageCode + - names + - descriptions + properties: + identifier: + type: string + defaultLanguageCode: + type: string + names: + type: array + items: + $ref: '#/components/schemas/Value' + descriptions: + type: array + items: + $ref: '#/components/schemas/Value' + CartMetadataUpdateWrapper: + type: object + required: + - CartMetadataUpdate + properties: + CartMetadataUpdate: + $ref: '#/components/schemas/CartMetadataUpdate' + CartSummary: + description: 'This class represents a cart summary.' + type: object + required: + - id + - identifier + - name + - createdAt + - updatedAt + - Owner + - SummaryEntryCollection + - TotalPrice + - TotalPriceInclVat + - vatCategorySummary + - Currency + properties: + id: + type: integer + identifier: + type: string + name: + type: string + createdAt: + type: string + format: date-time + updatedAt: + type: string + format: date-time + Owner: + $ref: '#/components/schemas/Ref' + SummaryEntryCollection: + $ref: '#/components/schemas/SummaryEntryCollection' + TotalPrice: + $ref: '#/components/schemas/RestPriceWrapper' + TotalPriceInclVat: + $ref: '#/components/schemas/RestPriceWrapper' + vatCategorySummary: + type: array + items: + $ref: '#/components/schemas/VatCategorySummary' + Currency: + $ref: '#/components/schemas/Currency' + CartSummaryWrapper: + type: object + required: + - CartSummary + properties: + CartSummary: + $ref: '#/components/schemas/CartSummary' + CartListViewResult: + type: object + required: + - count + - Result + properties: + count: + type: integer + Result: + $ref: '#/components/schemas/CartList' + SummaryEntryCollection: + description: 'This class represents a summary entry collection.' + type: object + required: + - count + - SummaryEntry + properties: + count: + type: string + SummaryEntry: + type: array + items: + $ref: '#/components/schemas/SummaryEntry' + TimezoneDate: + type: object + required: + - date + - timezone_type + - timezone + properties: + date: + type: string + timezone_type: + type: integer + timezone: + type: string + Order: + description: 'This class represents order.' + type: object + required: + - id + - identifier + - created + - modified + - status + - OrderUser + - OrderCurrency + - OrderValue + - OrderItemsList + - context + properties: + id: + type: integer + identifier: + type: string + created: + $ref: '#/components/schemas/TimezoneDate' + modified: + $ref: '#/components/schemas/TimezoneDate' + status: + type: string + source: + type: string + OrderUser: + $ref: '#/components/schemas/OrderUser' + OrderCurrency: + $ref: '#/components/schemas/OrderCurrency' + OrderValue: + $ref: '#/components/schemas/OrderValue' + OrderCompany: + $ref: '#/components/schemas/OrderCompany' + OrderItemsList: + type: array + items: + $ref: '#/components/schemas/OrderItem' + context: + type: object + OrderWrapper: + type: object + required: + - Order + properties: + Order: + $ref: '#/components/schemas/Order' + OrderList: + description: 'This class represents an orders list.' + type: object + required: + - Order + properties: + Order: + type: array + items: + $ref: '#/components/schemas/Order' + OrderListWrapper: + type: object + required: + - OrderList + properties: + OrderList: + $ref: '#/components/schemas/OrderList' + OrderUser: + description: 'This class represents order user.' + type: object + required: + - id + - name + - email + properties: + id: + type: + - 'null' + - integer + name: + type: string + email: + type: string + OrderCurrency: + description: 'This class represents order currency.' + type: object + required: + - id + - code + properties: + id: + type: integer + code: + type: string + OrderValue: + description: 'This class represents order value.' + type: object + required: + - vat + - total_gross + - total_net + properties: + vat: + oneOf: + - + type: string + - + $ref: '#/components/schemas/OrderPrice' + total_gross: + oneOf: + - + type: string + - + $ref: '#/components/schemas/OrderPrice' + total_net: + oneOf: + - + type: string + - + $ref: '#/components/schemas/OrderPrice' + OrderCompany: + description: 'This class represents order company.' + type: object + required: + - id + - name + properties: + id: + type: integer + name: + type: string + OrderPrice: + type: object + required: + - amount + - currency + properties: + amount: + type: string + currency: + type: string + OrderCreate: + description: 'This class is used to create order.' + type: object + required: + - source + - OrderUser + - OrderCurrency + - OrderValue + - OrderCompany + - items + properties: + source: + type: string + OrderUser: + $ref: '#/components/schemas/OrderUser' + OrderCurrency: + $ref: '#/components/schemas/OrderCurrency' + OrderValue: + $ref: '#/components/schemas/OrderValue' + OrderCompany: + $ref: '#/components/schemas/OrderCompany' + items: + type: array + items: + $ref: '#/components/schemas/OrderItemWrapper' + OrderCreateWrapper: + type: object + required: + - OrderCreate + properties: + OrderCreate: + $ref: '#/components/schemas/OrderCreate' + OrderItem: + description: 'This class represents order item.' + type: object + required: + - OrderItemValue + - OrderItemProduct + properties: + OrderItemValue: + $ref: '#/components/schemas/OrderItemValue' + OrderItemProduct: + $ref: '#/components/schemas/OrderItemProduct' + quantity: + type: integer + context: + type: object + OrderItemWrapper: + type: object + required: + - OrderItem + properties: + OrderItem: + $ref: '#/components/schemas/OrderItem' + OrderItemValue: + description: 'This class represents order item value.' + type: object + required: + - unit_price_gross + - unit_price_net + - vat_rate + - subtotal_price_gross + - subtotal_price_net + properties: + unit_price_gross: + oneOf: + - + type: string + - + $ref: '#/components/schemas/OrderPrice' + unit_price_net: + oneOf: + - + type: string + - + $ref: '#/components/schemas/OrderPrice' + vat_rate: + type: string + subtotal_price_gross: + oneOf: + - + type: string + - + $ref: '#/components/schemas/OrderPrice' + subtotal_price_net: + oneOf: + - + type: string + - + $ref: '#/components/schemas/OrderPrice' + OrderItemProduct: + description: 'This class represents order item product.' + type: object + required: + - id + - code + - name + properties: + id: + type: integer + code: + type: string + name: + type: string + OrderUpdate: + description: 'This class is used to update order.' + type: object + required: + - status + - transition + properties: + status: + type: string + transition: + type: string + OrderUpdateWrapper: + type: object + required: + - OrderUpdate + properties: + OrderUpdate: + $ref: '#/components/schemas/OrderUpdate' + PaymentMethod: + type: object + required: + - id + - identifier + - enabled + - name + - description + properties: + id: + type: integer + identifier: + type: string + enabled: + type: boolean + name: + type: string + description: + type: string + PaymentMethodWrapper: + type: object + required: + - PaymentMethod + properties: + PaymentMethod: + $ref: '#/components/schemas/PaymentMethod' + PaymentMethodCreateStruct: + type: object + required: + - identifier + - type + - names + properties: + identifier: + type: string + type: + type: string + names: + description: 'If set this array of names with languageCode keys replace the complete name collection.' + type: object + descriptions: + description: 'An array of descriptions with languageCode keys.' + type: array + items: + type: string + enabled: + type: boolean + options: + type: object + PaymentMethodCreateStructWrapper: + type: object + required: + - PaymentMethodCreateStruct + properties: + PaymentMethodCreateStruct: + $ref: '#/components/schemas/PaymentMethodCreateStruct' + PaymentMethodUpdateStruct: + type: object + properties: + identifier: + type: string + names: + description: 'If set this array of names with languageCode keys replace the complete name collection.' + type: object + descriptions: + description: 'An array of descriptions with languageCode keys.' + type: array + items: + type: string + enabled: + type: boolean + options: + type: array + items: + type: [] + PaymentMethodUpdateStructWrapper: + type: object + required: + - PaymentMethodUpdateStructParser + properties: + PaymentMethodUpdateStructParser: + $ref: '#/components/schemas/PaymentMethodUpdateStruct' + PaymentMethodView: + type: object + required: + - identifier + - Result + properties: + identifier: + type: string + Result: + $ref: '#/components/schemas/PaymentMethodList' + PaymentMethodViewWrapper: + type: object + required: + - PaymentMethodView + properties: + PaymentMethodView: + $ref: '#/components/schemas/PaymentMethodView' + PaymentMethodViewInput: + type: object + required: + - identifier + - PaymentMethodQuery + properties: + identifier: + type: string + PaymentMethodQuery: + type: object + PaymentMethodViewInputWrapper: + type: object + required: + - PaymentMethodViewInput + properties: + PaymentMethodViewInput: + $ref: '#/components/schemas/PaymentMethodViewInput' + PaymentMethodList: + type: object + required: + - count + - PaymentMethodList + properties: + count: + type: integer + PaymentMethodList: + type: array + items: + $ref: '#/components/schemas/PaymentMethod' + Shipment: + description: 'This class represents a single shipment.' + type: object + required: + - id + - identifier + - status + - transitions + - Order + - Amount + - createdAt + - updatedAt + - Owner + - Method + properties: + id: + type: integer + identifier: + type: string + status: + type: string + transitions: + type: object + required: + - transitionList + properties: + transitionList: + description: 'Next steps available in the shipment workflow for the current status' + type: array + items: + type: string + Order: + $ref: '#/components/schemas/Ref' + Amount: + type: object + required: + - value + - currency + properties: + value: + type: string + currency: + type: string + createdAt: + type: string + format: date-time + updatedAt: + type: string + format: date-time + Owner: + $ref: '#/components/schemas/Ref' + Method: + $ref: '#/components/schemas/Ref' + ShipmentWrapper: + type: object + required: + - Shipment + properties: + Shipment: + $ref: '#/components/schemas/Shipment' + ShipmentRefList: + description: 'This class represents a list of Shipments' + type: object + required: + - shipmentRefList + properties: + shipmentRefList: + type: array + items: + $ref: '#/components/schemas/Ref' + ShipmentRefListWrapper: + type: object + required: + - ShipmentRefList + properties: + ShipmentRefList: + $ref: '#/components/schemas/ShipmentRefList' + ShipmentUpdate: + description: 'This class represents the update of a shipment.' + type: object + required: + - identifier + - transition + - Owner + - Context + properties: + identifier: + type: string + transition: + type: string + Owner: + $ref: '#/components/schemas/Ref' + Context: + type: object + ShipmentUpdateWrapper: + type: object + required: + - ShipmentUpdate + properties: + ShipmentUpdate: + $ref: '#/components/schemas/ShipmentUpdate' + ShipmentCreate: + description: 'This class represents the creation of a shipment.' + type: object + required: + - identifier + - ShippingMethod + - Owner + - Context + properties: + identifier: + type: string + ShippingMethod: + $ref: '#/components/schemas/Ref' + Owner: + $ref: '#/components/schemas/Ref' + Context: + type: object + ShipmentCreateWrapper: + type: object + required: + - ShipmentCreate + properties: + ShipmentCreate: + $ref: '#/components/schemas/ShipmentCreate' + ShippingMethod: + description: 'This class represents a shipping method.' + type: object + required: + - identifier + - name + - names + - description + - descriptions + - enabled + - options + - regions + - type + properties: + identifier: + type: string + name: + type: string + names: + type: object + required: + - value + properties: + value: + type: array + items: + $ref: '#/components/schemas/MultilingualValue' + description: + type: string + descriptions: + type: object + required: + - value + properties: + value: + type: array + items: + $ref: '#/components/schemas/MultilingualValue' + enabled: + type: boolean + options: + type: object + required: + - option + properties: + option: + type: array + items: + $ref: '#/components/schemas/KeyValue' + regions: + type: object + required: + - RegionRefList + properties: + RegionRefList: + type: array + items: + $ref: '#/components/schemas/Ref' + type: + $ref: '#/components/schemas/Ref' + ShippingMethodWrapper: + type: object + required: + - ShippingMethod + properties: + ShippingMethod: + $ref: '#/components/schemas/ShippingMethod' + ShippingMethodType: + description: 'This class represents a shipping method type.' + type: object + required: + - identifier + - name + properties: + identifier: + type: string + name: + type: string + ShippingMethodTypeWrapper: + type: object + required: + - ShippingMethodType + properties: + ShippingMethodType: + $ref: '#/components/schemas/ShippingMethodType' + ShippingMethodTypesList: + description: 'This class represents a list of shipping method types.' + type: object + required: + - ShippingMethodTypes + properties: + ShippingMethodTypes: + type: array + items: + $ref: '#/components/schemas/ShippingMethodType' + ShippingMethodTypesListWrapper: + type: object + required: + - ShippingMethodTypesList + properties: + ShippingMethodTypesList: + $ref: '#/components/schemas/ShippingMethodTypesList' + ShippingMethodRefList: + description: 'This class represents a list of shipping methods' + type: object + required: + - ShippingMethodRefs + properties: + ShippingMethodRefs: + type: array + items: + $ref: '#/components/schemas/Ref' + ShippingMethodRefListWrapper: + type: object + required: + - ShippingMethodRefList + properties: + ShippingMethodRefList: + $ref: '#/components/schemas/ShippingMethodRefList' + ActionType: + type: object + required: + - ActionType + properties: + ActionType: + type: object + required: + - _media-type + - identifier + - name + - inputIdentifier + - outputIdentifier + - options + properties: + _media-type: + type: string + enum: + - application/vnd.ibexa.api.ai.ActionType+json + - application/vnd.ibexa.api.ai.ActionType+xml + identifier: + type: string + name: + type: string + inputIdentifier: + type: string + outputIdentifier: + type: string + options: + type: object + additionalProperties: true + ActionTypeList: + type: object + required: + - _media-type + - _href + - ActionType + properties: + _media-type: + type: string + enum: + - application/vnd.ibexa.api.ai.ActionTypeList+json + - application/vnd.ibexa.api.ai.ActionTypeList+xml + _href: + type: string + enum: + - /api/ibexa/v2/ai/action-types + ActionType: + type: array + items: + $ref: '#/components/schemas/ActionType' + ActionConfiguration: + type: object + properties: + ActionConfiguration: + type: object + required: + - _media-type + - identifier + - name + - description + - enabled + - ActionType + - actionTypeOptions + - actionHandlerIdentifier + - actionHandlerOptions + - createdAt + - updatedAt + properties: + _media-type: + type: string + enum: + - application/vnd.ibexa.api.ai.ActionConfiguration+json + - application/vnd.ibexa.api.ai.ActionConfiguration+xml + identifier: + type: string + name: + type: string + description: + type: string + nullable: true + enabled: + type: boolean + ActionType: + $ref: '#/components/schemas/ActionType' + actionTypeOptions: + type: object + additionalProperties: true + actionHandlerIdentifier: + type: string + actionHandlerOptions: + type: object + additionalProperties: true + createdAt: + type: string + updatedAt: + type: string + ActionConfigurationList: + type: object + required: + - _media-type + - ActionConfiguration + properties: + _media-type: + type: string + enum: + - application/vnd.ibexa.api.ai.ActionConfigurationList+json + - application/vnd.ibexa.api.ai.ActionConfigurationList+xml + _href: + type: string + example: /api/ibexa/v2/ai/actions + ActionConfiguration: + type: array + items: + $ref: '#/components/schemas/ActionConfiguration' + ActionConfigurationListInput: + type: object + properties: + query: + type: string + action_type_identifier: + type: string + enabled: + type: boolean + limit: + type: integer + page: + type: integer + RuntimeContext: + type: object + additionalProperties: true + Text: + type: object + required: + - _media-type + - text + properties: + _media-type: + type: string + enum: + - application/vnd.ibexa.api.ai.Text+json + - application/vnd.ibexa.api.ai.Text+xml + text: + type: array + items: + type: string + RefineText: + type: object + required: + - Text + - RuntimeContext + properties: + _media-type: + type: string + enum: + - application/vnd.ibexa.api.ai.RefineText+json + - application/vnd.ibexa.api.ai.RefineText+xml + Text: + type: object + required: + - text + properties: + text: + type: array + items: + type: string + RuntimeContext: + $ref: '#/components/schemas/RuntimeContext' + GenerateAltText: + type: object + required: + - Image + - RuntimeContext + properties: + Image: + type: object + required: + - base64 + properties: + base64: + type: string + RuntimeContext: + $ref: '#/components/schemas/RuntimeContext' + AltText: + type: object + required: + - _media-type + - Text + properties: + _media-type: + type: string + enum: + - application/vnd.ibexa.api.ai.AltText+json + - application/vnd.ibexa.api.ai.AltText+xml + Text: + type: object + required: + - _media-type + - text + properties: + _media-type: + type: string + enum: + - application/vnd.ibexa.api.ai.Text+json + - application/vnd.ibexa.api.ai.Text+xml + text: + type: array + items: + type: string + DiscountList: + type: object + required: + - _media-type + - Discount + properties: + _media-type: + type: string + enum: + - application/vnd.ibexa.api.DiscountList+json + Discount: + type: array + items: + oneOf: + - + $ref: '#/components/schemas/Discount' + Discount: + type: object + required: + - id + - identifier + - name + - type + - label + - labelDescription + - priority + - isEnabled + - createdAt + - updatedAt + - startDate + - DiscountRule + - DiscountExpressionAware + - DiscountConditions + - DiscountTranslations + properties: + _media-type: + type: string + enum: + - application/vnd.ibexa.api.Discount+json + id: + type: integer + identifier: + type: string + name: + type: string + type: + type: string + required: true + label: + type: string + nullable: true + labelDescription: + type: string + nullable: true + priority: + type: integer + isEnabled: + type: boolean + createdAt: + type: string + format: date-time + updatedAt: + type: string + format: date-time + startDate: + type: string + format: date-time + endDate: + type: string + format: date-time + DiscountRule: + $ref: '#/components/schemas/DiscountRule' + DiscountExpressionAware: + $ref: '#/components/schemas/DiscountExpressionAware' + DiscountConditions: + type: array + items: + $ref: '#/components/schemas/DiscountCondition' + DiscountTranslations: + type: array + items: + $ref: '#/components/schemas/DiscountTranslation' + DiscountRule: + type: object + required: + - _media-type + - type + - expressionValues + properties: + _media-type: + type: string + type: + type: string + expressionValues: + type: object + additionalProperties: true + DiscountExpressionAware: + type: object + required: + - _media-type + - expressionValues + properties: + _media-type: + type: string + enum: + - application/vnd.ibexa.api.DiscountExpressionAware+json + expressionValues: + type: object + additionalProperties: true + DiscountCondition: + type: object + required: + - _media-type + - identifier + - expressionValues + properties: + _media-type: + type: string + identifier: + type: string + expressionValues: + type: object + additionalProperties: true + DiscountTranslation: + type: object + required: + - _media-type + - languageCode + - name + - description + - label + - labelDescription + properties: + _media-type: + type: string + enum: + - application/vnd.ibexa.api.DiscountTranslation+json + languageCode: + $ref: '#/components/schemas/Language' + name: + type: string + description: + type: object + nullable: true + label: + type: string + nullable: true + labelDescription: + type: string + nullable: true + DiscountCreate: + type: object + required: + - identifier + - type + - priority + - isEnabled + - userId + - rule + - translations + properties: + identifier: + type: string + minLength: 1 + type: + type: string + enum: + - cart + - catalog + priority: + type: integer + minimum: 1 + maximum: 10 + isEnabled: + type: boolean + userId: + type: integer + rule: + type: object + properties: + type: + type: string + required: true + enum: + - fixed_amount + - percentage + amount: + type: string + required: true + conditions: + type: array + items: + type: object + properties: + class: + type: string + required: true + description: 'The fully qualified class name, must implement \Ibexa\Contracts\Discounts\Value\DiscountConditionInterface' + parameters: + type: array + required: true + description: 'A list of arguments for the given class constructor' + items: [] + startDate: + type: string + format: date-time + endDate: + type: string + format: date-time + createdAt: + type: string + format: date-time + updatedAt: + type: string + format: date-time + translations: + type: array + minItems: 1 + items: + type: object + required: + - languageCode + - name + properties: + languageCode: + type: string + name: + type: string + description: + type: string + label: + type: string + labelDescription: + type: string + context: + type: object + additionalProperties: true + DiscountUpdate: + type: object + required: + - identifier + properties: + identifier: + type: string + minLength: 1 + priority: + type: integer + minimum: 1 + maximum: 10 + isEnabled: + type: boolean + userId: + type: integer + lastContributorId: + type: integer + rule: + type: object + required: + - type + - amount + properties: + type: + type: string + enum: + - fixed_amount + - percentage + amount: + type: string + conditions: + type: array + items: + type: object + required: + - class + - parameters + properties: + class: + type: string + description: 'The fully qualified class name, must implement \Ibexa\Contracts\Discounts\Value\DiscountConditionInterface' + parameters: + type: array + description: 'A list of arguments for the given class constructor' + items: [] + startDate: + type: string + format: date-time + endDate: + type: string + format: date-time + createdAt: + type: string + format: date-time + updatedAt: + type: string + format: date-time + translations: + type: array + minItems: 1 + items: + type: object + required: + - languageCode + - name + properties: + languageCode: + type: string + name: + type: string + description: + type: string + label: + type: string + labelDescription: + type: string + context: + type: object + additionalProperties: true + responses: { } + parameters: { } + examples: { } + requestBodies: { } + headers: { } + securitySchemes: { } +security: [] +tags: + - + name: Section + - + name: Objects + - + name: 'Type Groups' + - + name: Type + - + name: User + - + name: 'User Group' + - + name: 'User Role' + - + name: 'User Policy' + - + name: Language + - + name: Location + - + name: 'Object State Groups' + - + name: Trash + - + name: 'Url Wildcard' + - + name: 'Url Alias' + - + name: Views + description: 'Controller for Repository Views (Search, mostly).' + - + name: 'User Session' + - + name: Bookmark + - + name: 'User Token' + - + name: Calendar + - + name: 'Product Attribute' + - + name: 'Product Attribute Type' + - + name: 'Product Attribute Group' + - + name: 'Product Catalog' + - + name: 'Product Currency' + - + name: 'Product Customer Group' + - + name: Product + - + name: 'Product Type' + - + name: 'Product Variant' + - + name: 'Product Region' + - + name: 'Product Vat' + - + name: Taxonomy + - + name: Segmentation + - + name: 'Corporate Account' + - + name: 'Activity Log' + - + name: Cart + - + name: Orders + - + name: Payments + - + name: Shipping + - + name: 'Connector AI' + - + name: Discounts +webhooks: { } From 5d446be1629d95c9ddb25819044ef2ca0be90a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= <mnocon@users.noreply.github.com> Date: Tue, 23 Sep 2025 13:37:36 +0200 Subject: [PATCH 2/4] Added styling for edition badges --- tools/api_refs/redocly.hbs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tools/api_refs/redocly.hbs b/tools/api_refs/redocly.hbs index e381f94bf8..d26ca0c730 100644 --- a/tools/api_refs/redocly.hbs +++ b/tools/api_refs/redocly.hbs @@ -22,6 +22,24 @@ <script> window.addEventListener('load', () => { window.setTimeout(() => { + // Remove badges from TOC + document.querySelectorAll('.menu-content [role="menuitem"] [type="badge"]').forEach(el => el.remove()); + + // Apply badge styling + document.querySelectorAll('.api-content [data-section-id] h2 [type="primary"]').forEach(el => { + console.log(el); + const color = el.getAttribute('color'); + console.log(color); + el.style.backgroundColor = "#FFF"; + el.style.border = "1px solid " + color; + el.style.padding = "1px 8px"; + el.style.marginRight = "8px"; + el.style.color = color; + el.style.fontWeight = "initial"; + el.style.borderRadius = "0px"; + }); + + // Style logo let logo = document.querySelector('img[src$="ibexa-dxp-logo.png"]'); logo.onclick = () => { let pathParts = document.location.pathname.split('/').slice(0, 3); From 92ebe1c3b5b14f4274458b801762305b6c0a7505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= <mnocon@users.noreply.github.com> Date: Tue, 23 Sep 2025 13:38:29 +0200 Subject: [PATCH 3/4] Removed spec --- openapi.yaml | 31405 ------------------------------------------------- 1 file changed, 31405 deletions(-) delete mode 100644 openapi.yaml diff --git a/openapi.yaml b/openapi.yaml deleted file mode 100644 index c9e49fd2c4..0000000000 --- a/openapi.yaml +++ /dev/null @@ -1,31405 +0,0 @@ -openapi: 3.1.0 -info: - title: 'Ibexa DXP REST API' - description: '' - version: 5.0.2 -servers: - - - url: /api/ibexa/v2 - description: 'Current server' -paths: - /activity-log-group/list: - get: - operationId: api_activity-log-grouplist_get - tags: - - 'Activity Log' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ActivityLogGroupList+xml: - schema: - $ref: '#/components/schemas/ActivityLogGroupList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ActivityLogGroupList media-type="application/vnd.ibexa.api.ActivityLogGroupList+xml" href="/api/ibexa/v2/activity-log-group/list"> - <ActivityLogGroup media-type="application/vnd.ibexa.api.ActivityLogGroup+xml"> - <user_id>14</user_id> - <logged_at>1707478796</logged_at> - <ActivityLog media-type="application/vnd.ibexa.api.ActivityLog+xml"> - <object_id>396</object_id> - <object_class>Ibexa\Contracts\Core\Repository\Values\Content\Content</object_class> - <action>create</action> - <data/> - </ActivityLog> - <ActivityLog media-type="application/vnd.ibexa.api.ActivityLog+xml"> - <object_id>396</object_id> - <object_class>Ibexa\Contracts\Core\Repository\Values\Content\Content</object_class> - <action>publish</action> - <data/> - </ActivityLog> - </ActivityLogGroup> - <ActivityLogGroup media-type="application/vnd.ibexa.api.ActivityLogGroup+xml"> - <user_id>14</user_id> - <logged_at>1707475048</logged_at> - <ActivityLog media-type="application/vnd.ibexa.api.ActivityLog+xml"> - <object_id>395</object_id> - <object_class>Ibexa\Contracts\Core\Repository\Values\Content\Content</object_class> - <action>create</action> - <data/> - </ActivityLog> - <ActivityLog media-type="application/vnd.ibexa.api.ActivityLog+xml"> - <object_id>395</object_id> - <object_class>Ibexa\Contracts\Core\Repository\Values\Content\Content</object_class> - <action>publish</action> - <data/> - </ActivityLog> - </ActivityLogGroup> - </ActivityLogGroupList> - application/vnd.ibexa.api.ActivityLogGroupList+json: - schema: - $ref: '#/components/schemas/ActivityLogGroupListWrapper' - example: - ActivityLogGroupList: - _media-type: application/vnd.ibexa.api.ActivityLogGroupList+json - _href: /api/ibexa/v2/activity-log-group/list - ActivityLogGroups: [{ _media-type: application/vnd.ibexa.api.ActivityLogGroup+json, user_id: 14, logged_at: 1707478796, ActivityLogEntries: [{ _media-type: application/vnd.ibexa.api.ActivityLog+json, object_id: '396', object_class: Ibexa\Contracts\Core\Repository\Values\Content\Content, action: create, data: [] }, { _media-type: application/vnd.ibexa.api.ActivityLog+json, object_id: '396', object_class: Ibexa\Contracts\Core\Repository\Values\Content\Content, action: publish, data: [] }] }, { _media-type: application/vnd.ibexa.api.ActivityLogGroup+json, user_id: 14, logged_at: 1707475048, ActivityLogEntries: [{ _media-type: application/vnd.ibexa.api.ActivityLog+json, object_id: '395', object_class: Ibexa\Contracts\Core\Repository\Values\Content\Content, action: create, data: [] }, { _media-type: application/vnd.ibexa.api.ActivityLog+json, object_id: '395', object_class: Ibexa\Contracts\Core\Repository\Values\Content\Content, action: publish, data: [] }] }] - '401': - description: 'Error - the user is not authorized to list activities.' - summary: 'List of activity log groups' - description: 'Lists last activity log groups and their entries.' - parameters: - - - name: Accept - in: header - description: 'If set, the list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - /bookmark: - get: - operationId: api_bookmark_get - tags: - - Bookmark - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.BookmarkList+xml: - schema: - $ref: '#/components/schemas/BookmarkList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <BookmarkList media-type="application/vnd.ibexa.api.BookmarkList+xml"> - <count>3</count> - <Bookmark media-type="application/vnd.ibexa.api.Bookmark+xml" _href="/api/ibexa/v2/bookmark/65"> - <Location media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/57/65"> - <id>65</id> - <priority>0</priority> - <hidden>false</hidden> - <invisible>false</invisible> - <explicitlyHidden>false</explicitlyHidden> - <ParentLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/57"/> - <pathString>/1/2/57/65/</pathString> - <depth>3</depth> - <childCount>0</childCount> - <remoteId>aa538e305aea472eb221ce23d1cc4b50</remoteId> - <Children media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/locations/1/2/57/65/children"/> - <Content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/63"/> - <sortField>PATH</sortField> - <sortOrder>ASC</sortOrder> - <UrlAliases media-type="application/vnd.ibexa.api.UrlAliasRefList+xml" href="/api/ibexa/v2/content/locations/1/2/57/65/urlaliases"/> - <ContentInfo media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/63"> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/63" remoteId="211e99934c8fef5900e4813b96ec5c87" id="63"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2"/> - <Name>Art3</Name> - <TranslatedName>Art3</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/63/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/63/currentversion"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/63/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2021-06-28T11:34:17+00:00</lastModificationDate> - <publishedDate>2021-06-28T11:34:17+00:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>false</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/63/objectstates"/> - </Content> - </ContentInfo> - </Location> - </Bookmark> - <Bookmark media-type="application/vnd.ibexa.api.Bookmark+xml" _href="/api/ibexa/v2/bookmark/68"> - <Location media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/58/68"> - <id>68</id> - <priority>0</priority> - <hidden>false</hidden> - <invisible>false</invisible> - <explicitlyHidden>false</explicitlyHidden> - <ParentLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/58"/> - <pathString>/1/2/58/68/</pathString> - <depth>3</depth> - <childCount>0</childCount> - <remoteId>b8cc4627dbc3ca693c85b6b06a8f7492</remoteId> - <Children media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/locations/1/2/58/68/children"/> - <Content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/67"/> - <sortField>PUBLISHED</sortField> - <sortOrder>DESC</sortOrder> - <UrlAliases media-type="application/vnd.ibexa.api.UrlAliasRefList+xml" href="/api/ibexa/v2/content/locations/1/2/58/68/urlaliases"/> - <ContentInfo media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/67"> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/67" remoteId="180adb876af5755d65c1a362fcd619c8" id="67"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/45"/> - <Name>Tip1</Name> - <TranslatedName>Tip1</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/67/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/67/currentversion"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/67/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2021-06-28T11:36:21+00:00</lastModificationDate> - <publishedDate>2021-06-28T11:36:21+00:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>true</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/67/objectstates"/> - </Content> - </ContentInfo> - </Location> - </Bookmark> - <Bookmark media-type="application/vnd.ibexa.api.Bookmark+xml" _href="/api/ibexa/v2/bookmark/59"> - <Location media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/59"> - <id>59</id> - <priority>0</priority> - <hidden>false</hidden> - <invisible>false</invisible> - <explicitlyHidden>false</explicitlyHidden> - <ParentLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2"/> - <pathString>/1/2/59/</pathString> - <depth>2</depth> - <childCount>3</childCount> - <remoteId>fd949fc2eed1fff847d73021ff1a6ea9</remoteId> - <Children media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/locations/1/2/59/children"/> - <Content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/58"/> - <sortField>PATH</sortField> - <sortOrder>ASC</sortOrder> - <UrlAliases media-type="application/vnd.ibexa.api.UrlAliasRefList+xml" href="/api/ibexa/v2/content/locations/1/2/59/urlaliases"/> - <ContentInfo media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/58"> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/58" remoteId="00b513aae54036a16e00fb3365c4b5f3" id="58"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1"/> - <Name>Dog Breed Catalog</Name> - <TranslatedName>Dog Breed Catalog</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/58/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/58/currentversion"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/58/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2021-06-28T11:23:10+00:00</lastModificationDate> - <publishedDate>2021-06-28T11:23:10+00:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>true</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/58/objectstates"/> - </Content> - </ContentInfo> - </Location> - </Bookmark> - </BookmarkList> - application/vnd.ibexa.api.BookmarkList+json: - schema: - $ref: '#/components/schemas/BookmarkListWrapper' - example: - BookmarkList: - _media-type: application/vnd.ibexa.api.BookmarkList+json - count: 3 - items: [{ _media-type: application/vnd.ibexa.api.Bookmark+json, __href: /api/ibexa/v2/bookmark/65, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/57/65, id: 65, priority: 0, hidden: false, invisible: false, explicitlyHidden: false, ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/57 }, pathString: /1/2/57/65/, depth: 3, childCount: 0, remoteId: aa538e305aea472eb221ce23d1cc4b50, Children: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/locations/1/2/57/65/children }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/63 }, sortField: PATH, sortOrder: ASC, UrlAliases: { _media-type: application/vnd.ibexa.api.UrlAliasRefList+json, _href: /api/ibexa/v2/content/locations/1/2/57/65/urlaliases }, ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/63, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/63, _remoteId: 211e99934c8fef5900e4813b96ec5c87, _id: 63, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2 }, Name: Art3, TranslatedName: Art3, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/63/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/63/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/63/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-06-28T11:34:17+00:00', publishedDate: '2021-06-28T11:34:17+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: false, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/63/objectstates } } } } }, { _media-type: application/vnd.ibexa.api.Bookmark+json, __href: /api/ibexa/v2/bookmark/68, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/58/68, id: 68, priority: 0, hidden: false, invisible: false, explicitlyHidden: false, ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/58 }, pathString: /1/2/58/68/, depth: 3, childCount: 0, remoteId: b8cc4627dbc3ca693c85b6b06a8f7492, Children: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/locations/1/2/58/68/children }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/67 }, sortField: PUBLISHED, sortOrder: DESC, UrlAliases: { _media-type: application/vnd.ibexa.api.UrlAliasRefList+json, _href: /api/ibexa/v2/content/locations/1/2/58/68/urlaliases }, ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/67, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/67, _remoteId: 180adb876af5755d65c1a362fcd619c8, _id: 67, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/45 }, Name: Tip1, TranslatedName: Tip1, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/67/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/67/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/67/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-06-28T11:36:21+00:00', publishedDate: '2021-06-28T11:36:21+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/67/objectstates } } } } }, { _media-type: application/vnd.ibexa.api.Bookmark+json, __href: /api/ibexa/v2/bookmark/59, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/59, id: 59, priority: 0, hidden: false, invisible: false, explicitlyHidden: false, ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2 }, pathString: /1/2/59/, depth: 2, childCount: 3, remoteId: fd949fc2eed1fff847d73021ff1a6ea9, Children: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/locations/1/2/59/children }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/58 }, sortField: PATH, sortOrder: ASC, UrlAliases: { _media-type: application/vnd.ibexa.api.UrlAliasRefList+json, _href: /api/ibexa/v2/content/locations/1/2/59/urlaliases }, ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/58, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/58, _remoteId: 00b513aae54036a16e00fb3365c4b5f3, _id: 58, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1 }, Name: 'Dog Breed Catalog', TranslatedName: 'Dog Breed Catalog', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/58/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/58/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/58/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-06-28T11:23:10+00:00', publishedDate: '2021-06-28T11:23:10+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/58/objectstates } } } } }] - '401': - description: 'Error - the user is not authorized to list bookmarks.' - summary: 'List of bookmarks' - description: 'Lists bookmarked Locations for the current user.' - parameters: - - - name: Accept - in: header - description: 'If set, the list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/bookmark/{locationId}': - post: - operationId: api_bookmark_locationId_post - tags: - - Bookmark - responses: - '201': - description: Created. - '401': - description: 'Error - the user is not authorized to given Location.' - '404': - description: 'Error - the given Location does not exist.' - '409': - description: 'Error - Location is already bookmarked.' - summary: 'Create bookmark' - description: 'Add given Location to bookmarks of the current user.' - parameters: - - - name: locationId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new BookmarkCreateController resource' - content: { } - required: false - deprecated: false - delete: - operationId: api_bookmark_locationId_delete - tags: - - Bookmark - responses: - '204': - description: 'Deleted - no content.' - '401': - description: 'Error - the user is not authorized for the given Location.' - '404': - description: 'Error - the given Location does not exist / is not bookmarked.' - summary: 'Delete bookmark' - description: 'Deletes the given Location from bookmarks of the current user.' - parameters: - - - name: locationId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - head: - operationId: api_bookmark_locationId_head - tags: - - Bookmark - responses: - '200': - description: 'OK - bookmarked.' - '401': - description: 'Error - the user is not authorized for the given Location.' - '404': - description: 'Error - the given Location does not exist / is not bookmarked.' - summary: 'Check if Location is bookmarked' - description: 'Checks if the given Location is bookmarked by the current user.' - parameters: - - - name: locationId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /calendar/event: - get: - operationId: api_calendarevent_get - tags: - - Calendar - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.EventList+xml: - schema: - $ref: '#/components/schemas/EventList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <EventList media-type="application/vnd.ibexa.api.EventList+xml" currentPage="/api/ibexa/v2/calendar/event?start=1597104000&end=1598745600&count=10"> - <totalCount>5</totalCount> - </EventList> - application/vnd.ibexa.api.EventList+json: - schema: - $ref: '#/components/schemas/EventListWrapper' - example: - EventList: - _media-type: application/vnd.ibexa.api.EventList+json - _currentPage: '/api/ibexa/v2/calendar/event?start=1597104000&end=1598745600&count=10' - totalCount: 5 - events: [] - summary: 'Calendar list' - description: 'Calendar event list.' - parameters: - - - name: Accept - in: header - description: 'If set, the calendar event list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /calendar/event/grouped-by-day: - get: - operationId: api_calendareventgrouped-by-day_get - tags: - - Calendar - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.EventGroupList+xml: - schema: - $ref: '#/components/schemas/EventGroupList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <EventGroupList media-type="application/vnd.ibexa.api.EventGroupList+xml"> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1597104000&end=1597190400&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1597104000</startDate> - <endDate>1597190400</endDate> - </DateRange> - <totalCount>0</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1597190400&end=1597276800&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1597190400</startDate> - <endDate>1597276800</endDate> - </DateRange> - <totalCount>0</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1597276800&end=1597363200&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1597276800</startDate> - <endDate>1597363200</endDate> - </DateRange> - <totalCount>1</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1597363200&end=1597449600&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1597363200</startDate> - <endDate>1597449600</endDate> - </DateRange> - <totalCount>1</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1597449600&end=1597536000&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1597449600</startDate> - <endDate>1597536000</endDate> - </DateRange> - <totalCount>1</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1597536000&end=1597622400&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1597536000</startDate> - <endDate>1597622400</endDate> - </DateRange> - <totalCount>1</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1597622400&end=1597708800&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1597622400</startDate> - <endDate>1597708800</endDate> - </DateRange> - <totalCount>0</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1597708800&end=1597795200&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1597708800</startDate> - <endDate>1597795200</endDate> - </DateRange> - <totalCount>0</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1597795200&end=1597881600&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1597795200</startDate> - <endDate>1597881600</endDate> - </DateRange> - <totalCount>1</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1597881600&end=1597968000&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1597881600</startDate> - <endDate>1597968000</endDate> - </DateRange> - <totalCount>0</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1597968000&end=1598054400&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1597968000</startDate> - <endDate>1598054400</endDate> - </DateRange> - <totalCount>0</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1598054400&end=1598140800&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1598054400</startDate> - <endDate>1598140800</endDate> - </DateRange> - <totalCount>0</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1598140800&end=1598227200&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1598140800</startDate> - <endDate>1598227200</endDate> - </DateRange> - <totalCount>0</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1598227200&end=1598313600&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1598227200</startDate> - <endDate>1598313600</endDate> - </DateRange> - <totalCount>0</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1598313600&end=1598400000&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1598313600</startDate> - <endDate>1598400000</endDate> - </DateRange> - <totalCount>0</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1598400000&end=1598486400&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1598400000</startDate> - <endDate>1598486400</endDate> - </DateRange> - <totalCount>0</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1598486400&end=1598572800&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1598486400</startDate> - <endDate>1598572800</endDate> - </DateRange> - <totalCount>0</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1598572800&end=1598659200&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1598572800</startDate> - <endDate>1598659200</endDate> - </DateRange> - <totalCount>0</totalCount> - </EventGroup> - <EventGroup media-type="application/vnd.ibexa.api.EventGroup+xml" currentPage="/api/ibexa/v2/calendar/event?start=1598659200&end=1598745600&count=10"> - <DateRange media-type="application/vnd.ibexa.api.DateRange+xml"> - <startDate>1598659200</startDate> - <endDate>1598745600</endDate> - </DateRange> - <totalCount>0</totalCount> - </EventGroup> - </EventGroupList> - application/vnd.ibexa.api.EventGroupList+json: - schema: - $ref: '#/components/schemas/EventGroupListWrapper' - example: - EventGroupList: - _media-type: application/vnd.ibexa.api.EventGroupList+json - groups: [{ _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597104000&end=1597190400&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597104000', endDate: '1597190400' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597190400&end=1597276800&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597190400', endDate: '1597276800' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597276800&end=1597363200&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597276800', endDate: '1597363200' }, totalCount: 1, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597363200&end=1597449600&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597363200', endDate: '1597449600' }, totalCount: 1, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597449600&end=1597536000&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597449600', endDate: '1597536000' }, totalCount: 1, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597536000&end=1597622400&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597536000', endDate: '1597622400' }, totalCount: 1, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597622400&end=1597708800&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597622400', endDate: '1597708800' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597708800&end=1597795200&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597708800', endDate: '1597795200' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597795200&end=1597881600&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597795200', endDate: '1597881600' }, totalCount: 1, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597881600&end=1597968000&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597881600', endDate: '1597968000' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1597968000&end=1598054400&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1597968000', endDate: '1598054400' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598054400&end=1598140800&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598054400', endDate: '1598140800' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598140800&end=1598227200&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598140800', endDate: '1598227200' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598227200&end=1598313600&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598227200', endDate: '1598313600' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598313600&end=1598400000&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598313600', endDate: '1598400000' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598400000&end=1598486400&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598400000', endDate: '1598486400' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598486400&end=1598572800&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598486400', endDate: '1598572800' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598572800&end=1598659200&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598572800', endDate: '1598659200' }, totalCount: 0, events: [] }, { _media-type: application/vnd.ibexa.api.EventGroup+json, _currentPage: '/api/ibexa/v2/calendar/event?start=1598659200&end=1598745600&count=10', DateRange: { _media-type: application/vnd.ibexa.api.DateRange+json, startDate: '1598659200', endDate: '1598745600' }, totalCount: 0, events: [] }] - summary: 'Calendar list grouped by day' - description: 'Calendar event list grouped by day.' - parameters: - - - name: Accept - in: header - description: 'If set, the calendar event list grouped by day is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/calendar/event/{eventType}': - post: - operationId: api_calendarevent_eventType_post - tags: - - Calendar - responses: - '204': - description: 'No Content - the action has been unscheduled.' - summary: 'Calendar action' - description: 'A calendar action that e.g. reschedules or unschedules calendar events. The event type should always be copied from an event.' - parameters: - - - name: Content-Type - in: header - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: eventType - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new EventExecuteActionController resource' - content: - application/vnd.ibexa.api.calendar.future_publication.UnscheduleAction+json: - schema: - $ref: '#/components/schemas/UnscheduleActionWrapper' - x-ibexa-example-file: '@IbexaCalendarBundle/Resources/api_platform/examples/calendar/event/eventType/POST/future_publication.UnscheduleAction.json.example' - application/vnd.ibexa.api.calendar.future_hide.UnscheduleAction+json: - schema: - $ref: '#/components/schemas/UnscheduleActionWrapper' - x-ibexa-example-file: '@IbexaCalendarBundle/Resources/api_platform/examples/calendar/event/eventType/POST/future_publication.UnscheduleAction.json.example' - required: false - deprecated: false - /cart: - post: - operationId: api_cart_post - tags: - - Cart - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Cart+xml: - schema: - $ref: '#/components/schemas/Cart' - application/vnd.ibexa.api.Cart+json: - schema: - $ref: '#/components/schemas/CartWrapper' - example: - Cart: - _media-type: application/vnd.ibexa.api.Cart+json - id: 12 - identifier: fafccc4b-cce1-40d7-8d23-29ad41638581 - name: Default - createdAt: '2023-10-12T10:02:51+00:00' - updatedAt: '2023-10-12T10:02:51+00:00' - owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } - entries: [] - '400': - description: 'Error - The input does not match the input schema definition.' - summary: 'Create Cart' - description: 'Creates Cart from payload.' - parameters: - - - name: Content-Type - in: header - description: 'The CartCreate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Accept - in: header - description: 'If set, the created Cart is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new CartCreateController resource' - content: - application/vnd.ibexa.api.CartCreate+xml: - schema: - $ref: '#/components/schemas/CartCreate' - application/vnd.ibexa.api.CartCreate+json: - schema: - $ref: '#/components/schemas/CartCreateWrapper' - x-ibexa-example-file: '@IbexaCartBundle/Resources/api_platform/examples/cart/POST/CartCreate.json.example' - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - /cart/view: - post: - operationId: api_cartview_post - tags: - - Cart - responses: - '200': - description: 'OK - returns a view and its results' - content: - application/vnd.ibexa.api.CartView+xml: - schema: - $ref: '#/components/schemas/CartView' - application/vnd.ibexa.api.CartView+json: - schema: - $ref: '#/components/schemas/CartViewWrapper' - summary: 'Filter carts' - description: 'Executes a query and returns a View including the results.' - parameters: - - - name: Accept - in: header - description: 'The CartView schema is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The CartViewInput schema is posted in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new CartViewController resource' - content: - application/vnd.ibexa.api.CartViewInput+xml: - schema: - $ref: '#/components/schemas/CartViewInput' - application/vnd.ibexa.api.CartViewInput+json: - schema: - $ref: '#/components/schemas/CartViewInputWrapper' - x-ibexa-example-file: '@IbexaCartBundle/Resources/api_platform/examples/cart/view/CartViewInput.json.example' - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/cart/{identifier}': - get: - operationId: api_cart_identifier_get - tags: - - Cart - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Cart+xml: - schema: - $ref: '#/components/schemas/Cart' - application/vnd.ibexa.api.Cart+json: - schema: - $ref: '#/components/schemas/CartWrapper' - example: - Cart: - _media-type: application/vnd.ibexa.api.Cart+json - id: 12 - identifier: fafccc4b-cce1-40d7-8d23-29ad41638581 - name: Default - createdAt: '2023-10-12T10:02:51+00:00' - updatedAt: '2023-10-12T10:02:51+00:00' - owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } - entries: [] - '401': - description: 'Error - the user is not authorized to get this cart.' - '404': - description: 'Error - The identifier do not match any Cart.' - summary: 'Get Cart' - description: 'Gets Cart by its identifier.' - parameters: - - - name: Accept - in: header - description: 'The Cart is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - delete: - operationId: api_cart_identifier_delete - tags: - - Cart - responses: - '204': - description: 'CartDeleteController resource deleted' - summary: 'Delete Cart' - description: 'Deletes Cart by its identifier.' - parameters: - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - patch: - operationId: api_cart_identifier_patch - tags: - - Cart - responses: - '200': - description: 'OK - return the updated cart' - content: - application/vnd.ibexa.api.Cart+xml: - schema: - $ref: '#/components/schemas/Cart' - application/vnd.ibexa.api.Cart+json: - schema: - $ref: '#/components/schemas/CartWrapper' - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update this cart.' - '404': - description: 'Error - The identifier do not match any cart.' - summary: "Update Cart's metadata" - description: "Updates identified Cart's metadata from payload." - parameters: - - - name: Content-Type - in: header - description: 'The CartMetadataUpdate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Accept - in: header - description: 'If set, the updated Cart is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated CartUpdateController resource' - content: - application/vnd.ibexa.api.CartMetadataUpdate+xml: - schema: - $ref: '#/components/schemas/CartMetadataUpdate' - application/vnd.ibexa.api.CartMetadataUpdate+json: - schema: - $ref: '#/components/schemas/CartMetadataUpdateWrapper' - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/cart/{identifier}/empty': - post: - operationId: api_cart_identifierempty_post - tags: - - Cart - responses: - '204': - description: 'No Content - Cart emptied.' - '401': - description: 'Error - The user is not authorized to empty this Cart.' - '404': - description: 'Error - Cart not found.' - summary: 'Empty Cart' - description: 'Empties the given Cart.' - parameters: - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new CartEmptyController resource' - content: { } - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/cart/{identifier}/entry': - post: - operationId: api_cart_identifierentry_post - tags: - - Cart - responses: - '200': - description: 'OK - return the updated cart' - content: - application/vnd.ibexa.api.Cart+xml: - schema: - $ref: '#/components/schemas/Cart' - application/vnd.ibexa.api.Cart+json: - schema: - $ref: '#/components/schemas/CartWrapper' - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to add an entry to this cart.' - '404': - description: 'Error - The identifier do not match any cart.' - summary: 'Add Entry to Cart' - description: 'Adds an entry to the cart referenced by its identifier' - parameters: - - - name: Content-Type - in: header - description: 'The CartEntryAdd schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Accept - in: header - description: 'If set, the updated Cart is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new CartEntryCreateController resource' - content: - application/vnd.ibexa.api.CartEntryAdd+xml: - schema: - $ref: '#/components/schemas/CartEntryAdd' - application/vnd.ibexa.api.CartEntryAdd+json: - schema: - $ref: '#/components/schemas/CartEntryAddWrapper' - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/cart/{identifier}/entry/{entryId}': - delete: - operationId: api_cart_identifierentry_entryId_delete - tags: - - Cart - responses: - '200': - description: 'OK - return the updated cart' - content: - application/vnd.ibexa.api.Cart+xml: - schema: - $ref: '#/components/schemas/Cart' - application/vnd.ibexa.api.Cart+json: - schema: - $ref: '#/components/schemas/CartWrapper' - '401': - description: 'Error - the user is not authorized to remove an entry from this cart.' - '404': - description: "Error - the identifiers don't match any cart or entry." - '204': - description: 'CartEntryRemoveController resource deleted' - summary: 'Remove Entry from Cart' - description: 'Removes the given entry from the given Cart.' - parameters: - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: entryId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Accept - in: header - description: 'If set, the updated Cart is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - patch: - operationId: api_cart_identifierentry_entryId_patch - tags: - - Cart - responses: - '200': - description: 'OK - return the updated cart' - content: - application/vnd.ibexa.api.Cart+xml: - schema: - $ref: '#/components/schemas/Cart' - application/vnd.ibexa.api.Cart+json: - schema: - $ref: '#/components/schemas/CartWrapper' - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update an entry of this cart.' - '404': - description: "Error - the identifiers don't match any cart or entry." - summary: 'Update Entry from Cart' - description: 'Updates the given entry from the given Cart.' - parameters: - - - name: Content-Type - in: header - description: 'The CartEntryUpdate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: entryId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Accept - in: header - description: 'If set, the updated Cart is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated CartEntryUpdateController resource' - content: - application/vnd.ibexa.api.CartEntryUpdate+xml: - schema: - $ref: '#/components/schemas/CartEntryUpdate' - application/vnd.ibexa.api.CartEntryUpdate+json: - schema: - $ref: '#/components/schemas/CartEntryUpdateWrapper' - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/cart/{identifier}/summary': - get: - operationId: api_cart_identifiersummary_get - tags: - - Cart - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.CartSummary+xml: - schema: - $ref: '#/components/schemas/CartSummary' - application/vnd.ibexa.api.CartSummary+json: - schema: - $ref: '#/components/schemas/CartSummaryWrapper' - example: - CartSummary: - _media-type: application/vnd.ibexa.api.CartSummary+json - _href: /api/ibexa/v2/cart/fdfb2e95-b0b9-4f17-b0cc-08d4d2cfd8f1/summary - id: 1 - identifier: fdfb2e95-b0b9-4f17-b0cc-08d4d2cfd8f1 - name: Updated - createdAt: '2023-01-10T12:48:40+00:00' - updatedAt: '2023-01-10T12:49:10+00:00' - Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - SummaryEntryCollection: { _media-type: application/vnd.ibexa.api.SummaryEntryCollection+json, count: '1', SummaryEntry: [{ _media-type: application/vnd.ibexa.api.CartSummaryEntry+json, identifier: ddf3d7bf-ca17-4eff-8265-2d7e00877a91, id: 1, names: { value: [{ _languageCode: eng-GB, '#text': 'Flipper Zero' }] }, quantity: 2, Price: { _media-type: application/vnd.ibexa.api.Price+json, RestPrice: { _media-type: application/vnd.ibexa.api.RestPrice+json, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '100', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } }, formatted: €1.00 } }, PriceInclVat: { _media-type: application/vnd.ibexa.api.PriceInclVat+json, RestPrice: { _media-type: application/vnd.ibexa.api.RestPrice+json, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '12300', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } }, formatted: €123.00 } }, SubtotalPrice: { _media-type: application/vnd.ibexa.api.SubtotalPrice+json, RestPrice: { _media-type: application/vnd.ibexa.api.RestPrice+json, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '20000', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } }, formatted: €200.00 } }, SubtotalPriceInclVat: { _media-type: application/vnd.ibexa.api.SubtotalPriceInclVat+json, RestPrice: { _media-type: application/vnd.ibexa.api.RestPrice+json, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '24600', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } }, formatted: €246.00 } }, VatCategory: { _media-type: application/vnd.ibexa.api.VatCategory+json, identifier: default, region: poland, vatValue: 23 }, Product: { _media-type: application/vnd.ibexa.api.Product+json, code: '0001', name: 'Flipper Zero', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: tool, name: Tool, AttributeAssignmentList: [] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/67, _remoteId: 3a12e8a3480143ce0159a55e152533b1, _id: 67, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/50 }, Name: 'Flipper Zero', TranslatedName: 'Flipper Zero', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/67/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/67/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/67/versions/1, VersionInfo: { id: 527, versionNo: 1, status: PUBLISHED, modificationDate: '2023-01-10T12:44:41+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-01-10T12:44:41+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Flipper Zero' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/67 } }, Fields: { field: [{ id: 300, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Flipper Zero' }, { id: 301, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 1, code: '0001', attributes: [] } }, { id: 302, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 303, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 304, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [3], taxonomy: product_categories } }, { id: 305, fieldDefinitionIdentifier: field_63bd5d67f1817, languageCode: eng-GB, fieldTypeIdentifier: ibexa_seo, fieldValue: '' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/67/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/67/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-01-10T12:44:41+00:00', publishedDate: '2023-01-10T12:44:41+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/67/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml }, created_at: 1673354681, updated_at: 1673354681, AttributesList: [], Availability: { _media-type: application/vnd.ibexa.api.Availability+json, is_available: true, stock: 100, is_infinite: false }, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '100.00', base_amount: '100.00', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true }, money: '10000', base_money: '10000' } } }] } - TotalPrice: { _media-type: application/vnd.ibexa.api.Price+json, RestPrice: { _media-type: application/vnd.ibexa.api.RestPrice+json, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '20000', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } }, formatted: €200.00 } } - TotalPriceInclVat: { _media-type: application/vnd.ibexa.api.Price+json, RestPrice: { _media-type: application/vnd.ibexa.api.RestPrice+json, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '24600', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } }, formatted: €246.00 } } - vatCategorySummary: [{ _media-type: application/vnd.ibexa.api.VatCategorySummary+json, VatCategory: { _media-type: application/vnd.ibexa.api.VatCategory+json, identifier: default, region: poland, vatValue: 23 }, RestPrice: { _media-type: application/vnd.ibexa.api.RestPrice+json, Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '4600', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } }, formatted: €46.00 } }] - Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true } - '401': - description: 'Error - The user is not authorized to read this Cart.' - '404': - description: 'Error - Cart not found.' - summary: 'Cart Summary' - description: 'Gets a summary of the given Cart.' - parameters: - - - name: Accept - in: header - description: 'If set, the Cart Summary is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - /ai/action-types: - get: - operationId: api_aiaction-types_get - tags: - - 'Connector AI' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ai.ActionTypeList+json: - schema: - $ref: '#/components/schemas/ActionTypeList' - example: - ActionTypeList: - _media-type: application/vnd.ibexa.api.ai.ActionTypeList+json - _href: /api/ibexa/v2/ai/action-types - ActionType: [{ _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: generate_alt_text, name: 'Generate alternative text', inputIdentifier: image, outputIdentifier: text, options: { width: 512, height: 512, image_quality: 85 } }, { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }] - application/vnd.ibexa.api.ai.ActionTypeList+xml: - schema: - $ref: '#/components/schemas/ActionTypeList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ActionTypeList media-type="application/vnd.ibexa.api.ai.ActionTypeList+xml" href="/api/ibexa/v2/ai/action-types"> - <ActionType media-type="application/vnd.ibexa.api.ai.ActionType+xml"> - <identifier>generate_alt_text</identifier> - <name>Generate alternative text</name> - <inputIdentifier>image</inputIdentifier> - <outputIdentifier>text</outputIdentifier> - <options> - <width>512</width> - <height>512</height> - <image_quality>85</image_quality> - </options> - </ActionType> - <ActionType media-type="application/vnd.ibexa.api.ai.ActionType+xml"> - <identifier>refine_text</identifier> - <name>Refine text</name> - <inputIdentifier>text</inputIdentifier> - <outputIdentifier>text</outputIdentifier> - <options/> - </ActionType> - </ActionTypeList> - summary: 'Get action types list.' - description: 'Returns action types list.' - parameters: [] - deprecated: false - '/ai/action-types/{identifier}': - get: - operationId: api_aiaction-types_identifier_get - tags: - - 'Connector AI' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ai.ActionType+json: - schema: - $ref: '#/components/schemas/ActionType' - example: - ActionType: - _media-type: application/vnd.ibexa.api.ai.ActionType+json - identifier: generate_alt_text - name: 'Generate alternative text' - inputIdentifier: image - outputIdentifier: text - options: { width: 512, height: 512, image_quality: 85 } - application/vnd.ibexa.api.ai.ActionType+xml: - schema: - $ref: '#/components/schemas/ActionType' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ActionType media-type="application/vnd.ibexa.api.ai.ActionType+xml"> - <identifier>generate_alt_text</identifier> - <name>Generate alternative text</name> - <inputIdentifier>image</inputIdentifier> - <outputIdentifier>text</outputIdentifier> - <options> - <width>512</width> - <height>512</height> - <image_quality>85</image_quality> - </options> - </ActionType> - '406': - description: 'Error - an action type of the given unique identifier is not found.' - summary: 'Get an action type by its unique identifier.' - description: 'Returns an action type by its unique string identifier.' - parameters: - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - example: generate_alt_text - deprecated: false - /ai/actions: - get: - operationId: api_aiactions_get - tags: - - 'Connector AI' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ai.ActionConfigurationList+json: - schema: - $ref: '#/components/schemas/ActionConfigurationList' - example: - ActionConfigurationList: - _media-type: application/vnd.ibexa.api.ai.ActionConfigurationList+json - _href: /api/ibexa/v2/ai/actions - ActionConfiguration: [{ _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: rewrite_with_friendly_tone, name: 'Rewrite in friendly tone', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Rewrite text in friendly tone. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: rewrite_with_professional_tone, name: 'Rewrite in professional tone', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Rewrite text in professional tone. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: summarize_text, name: Summarize, description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Summarize text into one sentence. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: expand_text, name: 'Expand text', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Expand the given text by 25%. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: shorten_text, name: 'Shorten text', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Shorten the given text by 25%. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: proofread, name: Proofread, description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Rewrite given text to identify and fix grammatical and punctuation errors. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: improve_readability, name: 'Improve readability', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Rewrite this content to improve readability. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: gen_alt_text, name: 'Generate alternative text', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: generate_alt_text, name: 'Generate alternative text', inputIdentifier: image, outputIdentifier: text, options: { width: 512, height: 512, image_quality: 85 } }, actionTypeOptions: { max_length: 140 }, actionHandlerIdentifier: openai-image-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: '', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }] - application/vnd.ibexa.api.ai.ActionConfigurationList+xml: - schema: - $ref: '#/components/schemas/ActionConfigurationList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ActionConfigurationList media-type="application/vnd.ibexa.api.ai.ActionConfigurationList+xml" href="/api/ibexa/v2/ai/actions"> - <ActionConfiguration media-type="application/vnd.ibexa.api.ai.ActionConfiguration+xml"> - <identifier>rewrite_with_friendly_tone</identifier> - <name>Rewrite in friendly tone</name> - <description></description> - <enabled>1</enabled> - <ActionType media-type="application/vnd.ibexa.api.ai.ActionType+xml"> - <identifier>refine_text</identifier> - <name>Refine text</name> - <inputIdentifier>text</inputIdentifier> - <outputIdentifier>text</outputIdentifier> - <options/> - </ActionType> - <actionTypeOptions/> - <actionHandlerIdentifier>openai-text-to-text</actionHandlerIdentifier> - <actionHandlerOptions> - <max_tokens>4000</max_tokens> - <temperature>1</temperature> - <prompt>Rewrite text in friendly tone. Preserve meaning and crucial information.</prompt> - <model>gpt-4-turbo</model> - </actionHandlerOptions> - <createdAt>2025-08-07T13:16:47+02:00</createdAt> - <updatedAt>2025-08-07T13:16:47+02:00</updatedAt> - </ActionConfiguration> - <ActionConfiguration media-type="application/vnd.ibexa.api.ai.ActionConfiguration+xml"> - <identifier>rewrite_with_professional_tone</identifier> - <name>Rewrite in professional tone</name> - <description></description> - <enabled>1</enabled> - <ActionType media-type="application/vnd.ibexa.api.ai.ActionType+xml"> - <identifier>refine_text</identifier> - <name>Refine text</name> - <inputIdentifier>text</inputIdentifier> - <outputIdentifier>text</outputIdentifier> - <options/> - </ActionType> - <actionTypeOptions/> - <actionHandlerIdentifier>openai-text-to-text</actionHandlerIdentifier> - <actionHandlerOptions> - <max_tokens>4000</max_tokens> - <temperature>1</temperature> - <prompt>Rewrite text in professional tone. Preserve meaning and crucial information.</prompt> - <model>gpt-4-turbo</model> - </actionHandlerOptions> - <createdAt>2025-08-07T13:16:47+02:00</createdAt> - <updatedAt>2025-08-07T13:16:47+02:00</updatedAt> - </ActionConfiguration> - <ActionConfiguration media-type="application/vnd.ibexa.api.ai.ActionConfiguration+xml"> - <identifier>summarize_text</identifier> - <name>Summarize</name> - <description></description> - <enabled>1</enabled> - <ActionType media-type="application/vnd.ibexa.api.ai.ActionType+xml"> - <identifier>refine_text</identifier> - <name>Refine text</name> - <inputIdentifier>text</inputIdentifier> - <outputIdentifier>text</outputIdentifier> - <options/> - </ActionType> - <actionTypeOptions/> - <actionHandlerIdentifier>openai-text-to-text</actionHandlerIdentifier> - <actionHandlerOptions> - <max_tokens>4000</max_tokens> - <temperature>1</temperature> - <prompt>Summarize text into one sentence. Preserve meaning and crucial information.</prompt> - <model>gpt-4-turbo</model> - </actionHandlerOptions> - <createdAt>2025-08-07T13:16:47+02:00</createdAt> - <updatedAt>2025-08-07T13:16:47+02:00</updatedAt> - </ActionConfiguration> - <ActionConfiguration media-type="application/vnd.ibexa.api.ai.ActionConfiguration+xml"> - <identifier>expand_text</identifier> - <name>Expand text</name> - <description></description> - <enabled>1</enabled> - <ActionType media-type="application/vnd.ibexa.api.ai.ActionType+xml"> - <identifier>refine_text</identifier> - <name>Refine text</name> - <inputIdentifier>text</inputIdentifier> - <outputIdentifier>text</outputIdentifier> - <options/> - </ActionType> - <actionTypeOptions/> - <actionHandlerIdentifier>openai-text-to-text</actionHandlerIdentifier> - <actionHandlerOptions> - <max_tokens>4000</max_tokens> - <temperature>1</temperature> - <prompt>Expand the given text by 25%. Preserve meaning and crucial information.</prompt> - <model>gpt-4-turbo</model> - </actionHandlerOptions> - <createdAt>2025-08-07T13:16:47+02:00</createdAt> - <updatedAt>2025-08-07T13:16:47+02:00</updatedAt> - </ActionConfiguration> - <ActionConfiguration media-type="application/vnd.ibexa.api.ai.ActionConfiguration+xml"> - <identifier>shorten_text</identifier> - <name>Shorten text</name> - <description></description> - <enabled>1</enabled> - <ActionType media-type="application/vnd.ibexa.api.ai.ActionType+xml"> - <identifier>refine_text</identifier> - <name>Refine text</name> - <inputIdentifier>text</inputIdentifier> - <outputIdentifier>text</outputIdentifier> - <options/> - </ActionType> - <actionTypeOptions/> - <actionHandlerIdentifier>openai-text-to-text</actionHandlerIdentifier> - <actionHandlerOptions> - <max_tokens>4000</max_tokens> - <temperature>1</temperature> - <prompt>Shorten the given text by 25%. Preserve meaning and crucial information.</prompt> - <model>gpt-4-turbo</model> - </actionHandlerOptions> - <createdAt>2025-08-07T13:16:47+02:00</createdAt> - <updatedAt>2025-08-07T13:16:47+02:00</updatedAt> - </ActionConfiguration> - <ActionConfiguration media-type="application/vnd.ibexa.api.ai.ActionConfiguration+xml"> - <identifier>proofread</identifier> - <name>Proofread</name> - <description></description> - <enabled>1</enabled> - <ActionType media-type="application/vnd.ibexa.api.ai.ActionType+xml"> - <identifier>refine_text</identifier> - <name>Refine text</name> - <inputIdentifier>text</inputIdentifier> - <outputIdentifier>text</outputIdentifier> - <options/> - </ActionType> - <actionTypeOptions/> - <actionHandlerIdentifier>openai-text-to-text</actionHandlerIdentifier> - <actionHandlerOptions> - <max_tokens>4000</max_tokens> - <temperature>1</temperature> - <prompt>Rewrite given text to identify and fix grammatical and punctuation errors. Preserve meaning and crucial information.</prompt> - <model>gpt-4-turbo</model> - </actionHandlerOptions> - <createdAt>2025-08-07T13:16:47+02:00</createdAt> - <updatedAt>2025-08-07T13:16:47+02:00</updatedAt> - </ActionConfiguration> - <ActionConfiguration media-type="application/vnd.ibexa.api.ai.ActionConfiguration+xml"> - <identifier>improve_readability</identifier> - <name>Improve readability</name> - <description></description> - <enabled>1</enabled> - <ActionType media-type="application/vnd.ibexa.api.ai.ActionType+xml"> - <identifier>refine_text</identifier> - <name>Refine text</name> - <inputIdentifier>text</inputIdentifier> - <outputIdentifier>text</outputIdentifier> - <options/> - </ActionType> - <actionTypeOptions/> - <actionHandlerIdentifier>openai-text-to-text</actionHandlerIdentifier> - <actionHandlerOptions> - <max_tokens>4000</max_tokens> - <temperature>1</temperature> - <prompt>Rewrite this content to improve readability. Preserve meaning and crucial information.</prompt> - <model>gpt-4-turbo</model> - </actionHandlerOptions> - <createdAt>2025-08-07T13:16:47+02:00</createdAt> - <updatedAt>2025-08-07T13:16:47+02:00</updatedAt> - </ActionConfiguration> - <ActionConfiguration media-type="application/vnd.ibexa.api.ai.ActionConfiguration+xml"> - <identifier>gen_alt_text</identifier> - <name>Generate alternative text</name> - <description></description> - <enabled>1</enabled> - <ActionType media-type="application/vnd.ibexa.api.ai.ActionType+xml"> - <identifier>generate_alt_text</identifier> - <name>Generate alternative text</name> - <inputIdentifier>image</inputIdentifier> - <outputIdentifier>text</outputIdentifier> - <options> - <width>512</width> - <height>512</height> - <image_quality>85</image_quality> - </options> - </ActionType> - <actionTypeOptions> - <max_length>140</max_length> - </actionTypeOptions> - <actionHandlerIdentifier>openai-image-to-text</actionHandlerIdentifier> - <actionHandlerOptions> - <max_tokens>4000</max_tokens> - <temperature>1</temperature> - <prompt></prompt> - <model>gpt-4-turbo</model> - </actionHandlerOptions> - <createdAt>2025-08-07T13:16:47+02:00</createdAt> - <updatedAt>2025-08-07T13:16:47+02:00</updatedAt> - </ActionConfiguration> - </ActionConfigurationList> - summary: 'Get action configuration list.' - description: 'Returns action configuration list.' - parameters: [] - deprecated: false - post: - operationId: api_aiactions_post - tags: - - 'Connector AI' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ai.ActionConfigurationList+json: - schema: - $ref: '#/components/schemas/ActionConfigurationList' - example: - ActionConfigurationList: - _media-type: application/vnd.ibexa.api.ai.ActionConfigurationList+json - _href: /api/ibexa/v2/ai/actions - ActionConfiguration: [{ _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: rewrite_with_professional_tone, name: 'Rewrite in professional tone', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Rewrite text in professional tone. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }, { _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json, identifier: rewrite_with_friendly_tone, name: 'Rewrite in friendly tone', description: '', enabled: true, ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] }, actionTypeOptions: [], actionHandlerIdentifier: openai-text-to-text, actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Rewrite text in friendly tone. Preserve meaning and crucial information.', model: gpt-4-turbo }, createdAt: '2025-08-07T13:16:47+02:00', updatedAt: '2025-08-07T13:16:47+02:00' }] - application/vnd.ibexa.api.ai.ActionConfigurationList+xml: - schema: - $ref: '#/components/schemas/ActionConfigurationList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ActionConfigurationList media-type="application/vnd.ibexa.api.ai.ActionConfigurationList+xml" href="/api/ibexa/v2/ai/actions"> - <ActionConfiguration media-type="application/vnd.ibexa.api.ai.ActionConfiguration+xml"> - <identifier>rewrite_with_professional_tone</identifier> - <name>Rewrite in professional tone</name> - <description></description> - <enabled>1</enabled> - <ActionType media-type="application/vnd.ibexa.api.ai.ActionType+xml"> - <identifier>refine_text</identifier> - <name>Refine text</name> - <inputIdentifier>text</inputIdentifier> - <outputIdentifier>text</outputIdentifier> - <options/> - </ActionType> - <actionTypeOptions/> - <actionHandlerIdentifier>openai-text-to-text</actionHandlerIdentifier> - <actionHandlerOptions> - <max_tokens>4000</max_tokens> - <temperature>1</temperature> - <prompt>Rewrite text in professional tone. Preserve meaning and crucial information.</prompt> - <model>gpt-4-turbo</model> - </actionHandlerOptions> - <createdAt>2025-08-07T13:16:47+02:00</createdAt> - <updatedAt>2025-08-07T13:16:47+02:00</updatedAt> - </ActionConfiguration> - <ActionConfiguration media-type="application/vnd.ibexa.api.ai.ActionConfiguration+xml"> - <identifier>rewrite_with_friendly_tone</identifier> - <name>Rewrite in friendly tone</name> - <description></description> - <enabled>1</enabled> - <ActionType media-type="application/vnd.ibexa.api.ai.ActionType+xml"> - <identifier>refine_text</identifier> - <name>Refine text</name> - <inputIdentifier>text</inputIdentifier> - <outputIdentifier>text</outputIdentifier> - <options/> - </ActionType> - <actionTypeOptions/> - <actionHandlerIdentifier>openai-text-to-text</actionHandlerIdentifier> - <actionHandlerOptions> - <max_tokens>4000</max_tokens> - <temperature>1</temperature> - <prompt>Rewrite text in friendly tone. Preserve meaning and crucial information.</prompt> - <model>gpt-4-turbo</model> - </actionHandlerOptions> - <createdAt>2025-08-07T13:16:47+02:00</createdAt> - <updatedAt>2025-08-07T13:16:47+02:00</updatedAt> - </ActionConfiguration> - </ActionConfigurationList> - summary: 'Query action configuration list.' - description: 'Returns action configuration list based on the given query.' - parameters: - - - name: X-Csrf-Token - in: header - description: 'CSRF token obtained during the authentication.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ActionConfigurationListController resource' - content: - application/vnd.ibexa.api.ai.ActionConfigurationListInput+json: - schema: - $ref: '#/components/schemas/ActionConfigurationListInput' - x-ibexa-example-file: '@IbexaConnectorAiBundle/Resources/api_platform/examples/actions/POST/ActionConfigurationListInput.json.example' - application/vnd.ibexa.api.ai.ActionConfigurationListInput+xml: - schema: - $ref: '#/components/schemas/ActionConfigurationListInput' - x-ibexa-example-file: '@IbexaConnectorAiBundle/Resources/api_platform/examples/actions/POST/ActionConfigurationListInput.xml.example' - required: false - deprecated: false - '/ai/actions/{actionConfigurationIdentifier}/execute': - post: - operationId: api_aiactions_actionConfigurationIdentifierexecute_post - tags: - - 'Connector AI' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ai.Text+json: - schema: - $ref: '#/components/schemas/Text' - example: - Text: - _media-type: application/vnd.ibexa.api.ai.Text+json - text: ['Hello, how have you been spending your day?'] - application/vnd.ibexa.api.ai.Text+xml: - schema: - $ref: '#/components/schemas/Text' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Text media-type="application/vnd.ibexa.api.ai.Text+xml"> - <text>Hello, I hope you are well. How have you been spending your day?</text> - </Text> - application/vnd.ibexa.api.ai.AltText+json: - schema: - $ref: '#/components/schemas/AltText' - example: - AltText: - _media-type: application/vnd.ibexa.api.ai.AltText+json - Text: { _media-type: application/vnd.ibexa.api.ai.Text+json, text: ['Blurred image of an open laptop on a desk with paperwork and another laptop in the background.'] } - application/vnd.ibexa.api.ai.AltText+xml: - schema: - $ref: '#/components/schemas/AltText' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <AltText media-type="application/vnd.ibexa.api.ai.AltText+xml"> - <Text media-type="application/vnd.ibexa.api.ai.Text+xml"> - <text>Sunlit home office with an open laptop, papers, and a blurred background.</text> - </Text> - </AltText> - '400': - description: 'Error - if the provided input or action configuration is invalid or the given action cannot be performed for any reason.' - content: - application/vnd.ibexa.api.ai.ErrorMessage+json: - schema: - $ref: '#/components/schemas/ErrorMessage' - application/vnd.ibexa.api.ai.ErrorMessage+xml: - schema: - $ref: '#/components/schemas/ErrorMessage' - summary: 'Execute the given AI action' - description: 'Executes the given AI Action using configured ActionConfiguration or ActionHandler, if passed. Might consume AI agent resources.' - parameters: - - - name: actionConfigurationIdentifier - in: path - description: 'Configured action name (obtain by listing the configured actions via GET `/api/ibexa/v2/ai/actions` endpoint).' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - examples: - rewrite_with_friendly_tone: - value: rewrite_with_friendly_tone - rewrite_with_professional_tone: - value: rewrite_with_professional_tone - summarize_text: - value: summarize_text - expand_text: - value: expand_text - shorten_text: - value: shorten_text - proofread: - value: proofread - improve_readability: - value: improve_readability - gen_alt_text: - value: gen_alt_text - - - name: X-Csrf-Token - in: header - description: 'CSRF token obtained during the authentication.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'Input to execute the action. An Input type must match the action type.' - content: - application/vnd.ibexa.api.ai.RefineText+json: - schema: - $ref: '#/components/schemas/RefineText' - x-ibexa-example-file: '@IbexaConnectorAiBundle/Resources/api_platform/examples/actions/action_configuration_identifier/execute/POST/RefineText.json.example' - application/vnd.ibexa.api.ai.RefineText+xml: - schema: - $ref: '#/components/schemas/RefineText' - x-ibexa-example-file: '@IbexaConnectorAiBundle/Resources/api_platform/examples/actions/action_configuration_identifier/execute/POST/RefineText.xml.example' - application/vnd.ibexa.api.ai.GenerateAltText+json: - schema: - $ref: '#/components/schemas/GenerateAltText' - x-ibexa-example-file: '@IbexaConnectorAiBundle/Resources/api_platform/examples/actions/action_configuration_identifier/execute/POST/GenerateAltText.json.example' - application/vnd.ibexa.api.ai.GenerateAltText+xml: - schema: - $ref: '#/components/schemas/GenerateAltText' - x-ibexa-example-file: '@IbexaConnectorAiBundle/Resources/api_platform/examples/actions/action_configuration_identifier/execute/POST/GenerateAltText.xml.example' - required: false - deprecated: false - '/ai/actions/{identifier}': - get: - operationId: api_aiactions_identifier_get - tags: - - 'Connector AI' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ai.ActionConfiguration+json: - schema: - $ref: '#/components/schemas/ActionConfiguration' - example: - ActionConfiguration: - _media-type: application/vnd.ibexa.api.ai.ActionConfiguration+json - identifier: rewrite_with_friendly_tone - name: 'Rewrite in friendly tone' - description: '' - enabled: true - ActionType: { _media-type: application/vnd.ibexa.api.ai.ActionType+json, identifier: refine_text, name: 'Refine text', inputIdentifier: text, outputIdentifier: text, options: [] } - actionTypeOptions: [] - actionHandlerIdentifier: openai-text-to-text - actionHandlerOptions: { max_tokens: 4000, temperature: 1, prompt: 'Rewrite text in friendly tone. Preserve meaning and crucial information.', model: gpt-4-turbo } - createdAt: '2025-08-07T13:16:47+02:00' - updatedAt: '2025-08-07T13:18:00+02:00' - application/vnd.ibexa.api.ai.ActionConfiguration+xml: - schema: - $ref: '#/components/schemas/ActionConfiguration' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ActionConfiguration media-type="application/vnd.ibexa.api.ai.ActionConfiguration+xml"> - <identifier>rewrite_with_friendly_tone</identifier> - <name>Rewrite in friendly tone</name> - <description></description> - <enabled>1</enabled> - <ActionType media-type="application/vnd.ibexa.api.ai.ActionType+xml"> - <identifier>refine_text</identifier> - <name>Refine text</name> - <inputIdentifier>text</inputIdentifier> - <outputIdentifier>text</outputIdentifier> - <options/> - </ActionType> - <actionTypeOptions/> - <actionHandlerIdentifier>openai-text-to-text</actionHandlerIdentifier> - <actionHandlerOptions> - <max_tokens>4000</max_tokens> - <temperature>1</temperature> - <prompt>Rewrite text in friendly tone. Preserve meaning and crucial information.</prompt> - <model>gpt-4-turbo</model> - </actionHandlerOptions> - <createdAt>2025-08-07T13:16:47+02:00</createdAt> - <updatedAt>2025-08-07T13:16:47+02:00</updatedAt> - </ActionConfiguration> - '404': - description: 'Error - an action configuration of the given unique identifier is not found.' - '401': - description: "Error – the user doesn't have access to the given action configuration" - summary: 'Get an action configuration by its unique identifier.' - description: 'Returns an action configuration by its unique string identifier.' - parameters: - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - example: rewrite_with_friendly_tone - deprecated: false - /corporate: - get: - operationId: api_corporate_get - tags: - - 'Corporate Account' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.CorporateAccountRoot+xml: - schema: - $ref: '#/components/schemas/CorporateAccountRoot' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <CorporateAccountRoot media-type="application/vnd.ibexa.api.CorporateAccountRoot+xml"> - <link media-type="application/vnd.ibexa.api.CompaniesList+xml" rel="ca-companies" href="/api/ibexa/v2/corporate/companies"/> - <link media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" rel="ca-types" href="/api/ibexa/v2/content/typegroups?identifier=corporate_account"/> - <link media-type="application/vnd.ibexa.api.ContentType+xml" rel="ca-types-company" href="/api/ibexa/v2/content/types/48"/> - <link media-type="application/vnd.ibexa.api.ContentType+xml" rel="ca-types-member" href="/api/ibexa/v2/content/types/47"/> - <link media-type="application/vnd.ibexa.api.ContentType+xml" rel="ca-types-address" href="/api/ibexa/v2/content/types/49"/> - <link media-type="application/vnd.ibexa.api.SalesRepresentativesList+xml" rel="ca-sales-representatives" href="/api/ibexa/v2/corporate/sales-representatives"/> - <link media-type="application/vnd.ibexa.api.Role+xml" rel="ca-role-admin" href="/api/ibexa/v2/user/roles/14"/> - <link media-type="application/vnd.ibexa.api.Role+xml" rel="ca-role-buyer" href="/api/ibexa/v2/user/roles/15"/> - </CorporateAccountRoot> - application/vnd.ibexa.api.CorporateAccountRoot+json: - schema: - $ref: '#/components/schemas/CorporateAccountRootWrapper' - example: - CorporateAccountRoot: - _media-type: application/vnd.ibexa.api.CorporateAccountRoot+json - links: [{ _media-type: application/vnd.ibexa.api.CompaniesList+json, _rel: ca-companies, _href: /api/ibexa/v2/corporate/companies }, { _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _rel: ca-types, _href: '/api/ibexa/v2/content/typegroups?identifier=corporate_account' }, { _media-type: application/vnd.ibexa.api.ContentType+json, _rel: ca-types-company, _href: /api/ibexa/v2/content/types/48 }, { _media-type: application/vnd.ibexa.api.ContentType+json, _rel: ca-types-member, _href: /api/ibexa/v2/content/types/47 }, { _media-type: application/vnd.ibexa.api.ContentType+json, _rel: ca-types-address, _href: /api/ibexa/v2/content/types/49 }, { _media-type: application/vnd.ibexa.api.SalesRepresentativesList+json, _rel: ca-sales-representatives, _href: /api/ibexa/v2/corporate/sales-representatives }, { _media-type: application/vnd.ibexa.api.Role+json, _rel: ca-role-admin, _href: /api/ibexa/v2/user/roles/14 }, { _media-type: application/vnd.ibexa.api.Role+json, _rel: ca-role-buyer, _href: /api/ibexa/v2/user/roles/15 }] - summary: 'Root Resource' - description: 'Provides basic information about Corporate Account endpoints and configuration.' - parameters: - - - name: Accept - in: header - description: 'If set, helps to determine response format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - /corporate/companies: - get: - operationId: api_corporatecompanies_get - tags: - - 'Corporate Account' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.CompanyList+xml: - schema: - $ref: '#/components/schemas/CompanyList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <CompanyList media-type="application/vnd.ibexa.api.CompanyList+xml"> - <Company media-type="application/vnd.ibexa.api.Company+xml"> - <id>66</id> - <name>Ibexa AS</name> - <Content media-type="application/vnd.ibexa.api.Content+xml" - href="/api/ibexa/v2/content/objects/66" remoteId="9f20fb03d0ab0a6aef9930f7e6720377" - id="66"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" - href="/api/ibexa/v2/content/types/48"/> - <Name>Ibexa AS</Name> - <TranslatedName>Ibexa AS</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" - href="/api/ibexa/v2/content/objects/66/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/66/currentversion"> - <Version media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/66/versions/1"> - <VersionInfo> - <id>593</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2023-04-03T13:09:40+02:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" - href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-04-03T13:09:40+02:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo - media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Ibexa AS</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" - href="/api/ibexa/v2/content/objects/66"/> - </VersionInfo> - <Fields> - <field> - <id>295</id> - <fieldDefinitionIdentifier>active</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_boolean</fieldTypeIdentifier> - <fieldValue>true</fieldValue> - </field> - <field> - <id>296</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Ibexa AS</fieldValue> - </field> - <field> - <id>297</id> - <fieldDefinitionIdentifier>vat</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>123 456 789</fieldValue> - </field> - <field> - <id>298</id> - <fieldDefinitionIdentifier>website</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>https://ibexa.co</fieldValue> - </field> - <field> - <id>299</id> - <fieldDefinitionIdentifier>customer_group</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_customer_group</fieldTypeIdentifier> - <fieldValue> - <value key="customer_group_id">1</value> - </fieldValue> - </field> - <field> - <id>300</id> - <fieldDefinitionIdentifier>sales_rep</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">14</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/14</value> - </fieldValue> - </field> - <field> - <id>301</id> - <fieldDefinitionIdentifier>contact</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">74</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/74</value> - </fieldValue> - </field> - <field> - <id>302</id> - <fieldDefinitionIdentifier>default_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">69</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/69</value> - </fieldValue> - </field> - <field> - <id>303</id> - <fieldDefinitionIdentifier>billing_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_address</fieldTypeIdentifier> - <fieldValue> - <value key="name">HQ</value> - <value key="country">PL</value> - <value key="fields"> - <value key="region">Silesia</value> - <value key="locality">Katowice</value> - <value key="street">Gliwicka 6/5</value> - <value key="postal_code">40-079</value> - <value key="email">company@email.invalid</value> - <value key="phone_number">+48 000 000 000</value> - </value> - </fieldValue> - </field> - <field> - <id>305</id> - <fieldDefinitionIdentifier>members</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">67</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/67</value> - </fieldValue> - </field> - <field> - <id>304</id> - <fieldDefinitionIdentifier>address_book</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">68</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/68</value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" - href="/api/ibexa/v2/content/objects/66/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/placeholder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - </CurrentVersion> - <Section media-type="application/vnd.ibexa.api.Section+xml" - href="/api/ibexa/v2/content/sections/10"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/67"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" - href="/api/ibexa/v2/content/objects/66/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2023-04-03T13:09:40+02:00</lastModificationDate> - <publishedDate>2023-03-31T14:33:36+02:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>true</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" - href="/api/ibexa/v2/content/objects/66/objectstates"/> - </Content> - <billingAddress>HQ, Poland</billingAddress> - <contactId>74</contactId> - <salesRepresentativeId>14</salesRepresentativeId> - <defaultAddressId>69</defaultAddressId> - <addressBookId>68</addressBookId> - <membersId>67</membersId> - <MemberList media-type="application/vnd.ibexa.api.MemberList+xml" - href="/api/ibexa/v2/corporate/companies/66/members"/> - <Location media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/67"/> - <locationPath>/1/65/67/</locationPath> - <isActive>1</isActive> - </Company> - <Company media-type="application/vnd.ibexa.api.Company+xml"> - <id>75</id> - <name>QNTM Group AB</name> - <Content media-type="application/vnd.ibexa.api.Content+xml" - href="/api/ibexa/v2/content/objects/75" remoteId="1d7eaec5b4371f7a35f253d15ecd5258" - id="75"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" - href="/api/ibexa/v2/content/types/48"/> - <Name>QNTM Group AB</Name> - <TranslatedName>QNTM Group AB</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" - href="/api/ibexa/v2/content/objects/75/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/75/currentversion"> - <Version media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/75/versions/3"> - <VersionInfo> - <id>546</id> - <versionNo>3</versionNo> - <status>PUBLISHED</status> - <modificationDate>2023-03-31T15:24:49+02:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" - href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-03-31T15:24:49+02:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo - media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">QNTM Group AB</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" - href="/api/ibexa/v2/content/objects/75"/> - </VersionInfo> - <Fields> - <field> - <id>341</id> - <fieldDefinitionIdentifier>active</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_boolean</fieldTypeIdentifier> - <fieldValue>true</fieldValue> - </field> - <field> - <id>342</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>QNTM Group AB</fieldValue> - </field> - <field> - <id>343</id> - <fieldDefinitionIdentifier>vat</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>123 456 789</fieldValue> - </field> - <field> - <id>344</id> - <fieldDefinitionIdentifier>website</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>https://ibexa.co</fieldValue> - </field> - <field> - <id>345</id> - <fieldDefinitionIdentifier>customer_group</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_customer_group</fieldTypeIdentifier> - <fieldValue> - <value key="customer_group_id">1</value> - </fieldValue> - </field> - <field> - <id>346</id> - <fieldDefinitionIdentifier>sales_rep</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">14</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/14</value> - </fieldValue> - </field> - <field> - <id>347</id> - <fieldDefinitionIdentifier>contact</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId"/> - </fieldValue> - </field> - <field> - <id>348</id> - <fieldDefinitionIdentifier>default_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId"/> - </fieldValue> - </field> - <field> - <id>349</id> - <fieldDefinitionIdentifier>billing_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_address</fieldTypeIdentifier> - <fieldValue> - <value key="name"/> - <value key="country"/> - <value key="fields"/> - </fieldValue> - </field> - <field> - <id>351</id> - <fieldDefinitionIdentifier>members</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">76</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/76</value> - </fieldValue> - </field> - <field> - <id>350</id> - <fieldDefinitionIdentifier>address_book</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">77</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/77</value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" - href="/api/ibexa/v2/content/objects/75/versions/3/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/placeholder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - </CurrentVersion> - <Section media-type="application/vnd.ibexa.api.Section+xml" - href="/api/ibexa/v2/content/sections/10"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/76"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" - href="/api/ibexa/v2/content/objects/75/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2023-03-31T15:24:49+02:00</lastModificationDate> - <publishedDate>2023-03-31T15:24:48+02:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>3</currentVersionNo> - <alwaysAvailable>true</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" - href="/api/ibexa/v2/content/objects/75/objectstates"/> - </Content> - <billingAddress></billingAddress> - <contactId></contactId> - <salesRepresentativeId>14</salesRepresentativeId> - <defaultAddressId></defaultAddressId> - <addressBookId>77</addressBookId> - <membersId>76</membersId> - <MemberList media-type="application/vnd.ibexa.api.MemberList+xml" - href="/api/ibexa/v2/corporate/companies/75/members"/> - <Location media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/76"/> - <locationPath>/1/65/76/</locationPath> - <isActive>1</isActive> - </Company> - </CompanyList> - application/vnd.ibexa.api.CompanyList+json: - schema: - $ref: '#/components/schemas/CompanyListWrapper' - example: - CompanyList: - _media-type: application/vnd.ibexa.api.CompanyList+json - companies: [{ _media-type: application/vnd.ibexa.api.Company+json, id: 66, name: 'Ibexa AS', Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/66, _remoteId: 9f20fb03d0ab0a6aef9930f7e6720377, _id: 66, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa AS', TranslatedName: 'Ibexa AS', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/66/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/versions/1, VersionInfo: { id: 593, versionNo: 1, status: PUBLISHED, modificationDate: '2023-04-03T13:09:40+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-03T13:09:40+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa AS' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/66 } }, Fields: { field: [{ id: 295, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 296, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa AS' }, { id: 297, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 298, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 299, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 300, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 301, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 74, destinationContentHref: /api/ibexa/v2/content/objects/74 } }, { id: 302, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 69, destinationContentHref: /api/ibexa/v2/content/objects/69 } }, { id: 303, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } } }, { id: 305, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 67, destinationContentHref: /api/ibexa/v2/content/objects/67 } }, { id: 304, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 68, destinationContentHref: /api/ibexa/v2/content/objects/68 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/66/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/66/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-03T13:09:40+02:00', publishedDate: '2023-03-31T14:33:36+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/66/objectstates } }, billingAddress: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } }, contactId: 74, salesRepresentativeId: 80, defaultAddressId: 69, addressBookId: 68, membersId: 67, MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/66/members }, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 }, locationPath: /1/65/67/, isActive: true }, { _media-type: application/vnd.ibexa.api.Company+json, id: 75, name: 'QNTM Group AB', Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/75, _remoteId: 1d7eaec5b4371f7a35f253d15ecd5258, _id: 75, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'QNTM Group AB', TranslatedName: 'QNTM Group AB', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/75/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/75/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/75/versions/3, VersionInfo: { id: 546, versionNo: 3, status: PUBLISHED, modificationDate: '2023-03-31T15:24:49+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-03-31T15:24:49+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'QNTM Group AB' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/75 } }, Fields: { field: [{ id: 341, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 342, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'QNTM Group AB' }, { id: 343, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 344, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 345, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 346, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 347, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: null } }, { id: 348, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: null } }, { id: 349, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: null, country: null, fields: [] } }, { id: 351, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 76, destinationContentHref: /api/ibexa/v2/content/objects/76 } }, { id: 350, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 77, destinationContentHref: /api/ibexa/v2/content/objects/77 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/75/versions/3/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/76 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/75/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-03-31T15:24:49+02:00', publishedDate: '2023-03-31T15:24:48+02:00', mainLanguageCode: eng-GB, currentVersionNo: 3, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/75/objectstates } }, billingAddress: { name: null, country: null, fields: [] }, contactId: null, salesRepresentativeId: 14, defaultAddressId: null, addressBookId: 77, membersId: 76, MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/75/members }, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/76 }, locationPath: /1/65/76/, isActive: true }] - '400': - description: 'Returned when invalid Criterion or Sort clause is used' - content: - application/vnd.ibexa.api.ErrorMessage: - schema: - $ref: '#/components/schemas/ErrorMessage' - summary: 'Read list of companies' - description: 'Returns paginated list of available companies.' - parameters: - - - name: Accept - in: header - description: 'If set, helps to determine response format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - post: - operationId: api_corporatecompanies_post - tags: - - 'Corporate Account' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.Company+xml: - schema: - $ref: '#/components/schemas/Company' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Company media-type="application/vnd.ibexa.api.Company+xml"> - <id>66</id> - <name>Ibexa AS</name> - <Content media-type="application/vnd.ibexa.api.Content+xml" - href="/api/ibexa/v2/content/objects/66" remoteId="9f20fb03d0ab0a6aef9930f7e6720377" - id="66"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" - href="/api/ibexa/v2/content/types/48"/> - <Name>Ibexa AS</Name> - <TranslatedName>Ibexa AS</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" - href="/api/ibexa/v2/content/objects/66/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/66/currentversion"> - <Version media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/66/versions/1"> - <VersionInfo> - <id>593</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2023-04-03T13:09:40+02:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" - href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-04-03T13:09:40+02:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Ibexa AS</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" - href="/api/ibexa/v2/content/objects/66"/> - </VersionInfo> - <Fields> - <field> - <id>295</id> - <fieldDefinitionIdentifier>active</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_boolean</fieldTypeIdentifier> - <fieldValue>true</fieldValue> - </field> - <field> - <id>296</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Ibexa AS</fieldValue> - </field> - <field> - <id>297</id> - <fieldDefinitionIdentifier>vat</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>123 456 789</fieldValue> - </field> - <field> - <id>298</id> - <fieldDefinitionIdentifier>website</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>https://ibexa.co</fieldValue> - </field> - <field> - <id>299</id> - <fieldDefinitionIdentifier>customer_group</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_customer_group</fieldTypeIdentifier> - <fieldValue> - <value key="customer_group_id">1</value> - </fieldValue> - </field> - <field> - <id>300</id> - <fieldDefinitionIdentifier>sales_rep</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">14</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/14</value> - </fieldValue> - </field> - <field> - <id>301</id> - <fieldDefinitionIdentifier>contact</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">74</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/74</value> - </fieldValue> - </field> - <field> - <id>302</id> - <fieldDefinitionIdentifier>default_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">69</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/69</value> - </fieldValue> - </field> - <field> - <id>303</id> - <fieldDefinitionIdentifier>billing_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_address</fieldTypeIdentifier> - <fieldValue> - <value key="name">HQ</value> - <value key="country">PL</value> - <value key="fields"> - <value key="region">Silesia</value> - <value key="locality">Katowice</value> - <value key="street">Gliwicka 6/5</value> - <value key="postal_code">40-079</value> - <value key="email">company@email.invalid</value> - <value key="phone_number">+48 000 000 000</value> - </value> - </fieldValue> - </field> - <field> - <id>305</id> - <fieldDefinitionIdentifier>members</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">67</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/67</value> - </fieldValue> - </field> - <field> - <id>304</id> - <fieldDefinitionIdentifier>address_book</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">68</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/68</value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" - href="/api/ibexa/v2/content/objects/66/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/placeholder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - </CurrentVersion> - <Section media-type="application/vnd.ibexa.api.Section+xml" - href="/api/ibexa/v2/content/sections/10"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/67"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" - href="/api/ibexa/v2/content/objects/66/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2023-04-03T13:09:40+02:00</lastModificationDate> - <publishedDate>2023-03-31T14:33:36+02:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>true</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" - href="/api/ibexa/v2/content/objects/66/objectstates"/> - </Content> - <billingAddress>HQ, Poland</billingAddress> - <contactId>74</contactId> - <salesRepresentativeId>80</salesRepresentativeId> - <defaultAddressId>69</defaultAddressId> - <addressBookId>68</addressBookId> - <membersId>67</membersId> - <MemberList media-type="application/vnd.ibexa.api.MemberList+xml" - href="/api/ibexa/v2/corporate/companies/66/members"/> - <Location media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/67"/> - <locationPath>/1/65/67/</locationPath> - <isActive>1</isActive> - </Company> - application/vnd.ibexa.api.Company+json: - schema: - $ref: '#/components/schemas/CompanyWrapper' - example: - Company: - _media-type: application/vnd.ibexa.api.Company+json - id: 66 - name: 'Ibexa AS' - Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/66, _remoteId: 9f20fb03d0ab0a6aef9930f7e6720377, _id: 66, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa AS', TranslatedName: 'Ibexa AS', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/66/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/versions/1, VersionInfo: { id: 593, versionNo: 1, status: PUBLISHED, modificationDate: '2023-04-03T13:09:40+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-03T13:09:40+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa AS' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/66 } }, Fields: { field: [{ id: 295, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 296, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa AS' }, { id: 297, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 298, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 299, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 300, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 301, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 74, destinationContentHref: /api/ibexa/v2/content/objects/74 } }, { id: 302, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 69, destinationContentHref: /api/ibexa/v2/content/objects/69 } }, { id: 303, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } } }, { id: 305, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 67, destinationContentHref: /api/ibexa/v2/content/objects/67 } }, { id: 304, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 68, destinationContentHref: /api/ibexa/v2/content/objects/68 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/66/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/66/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-03T13:09:40+02:00', publishedDate: '2023-03-31T14:33:36+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/66/objectstates } } - billingAddress: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } } - contactId: 74 - salesRepresentativeId: 80 - defaultAddressId: 69 - addressBookId: 68 - membersId: 67 - MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/66/members } - Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 } - locationPath: /1/65/67/ - isActive: true - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this Company.' - summary: 'Create a company' - description: 'Creates a CompanyCreateController resource.' - parameters: - - - name: Accept - in: header - description: 'If set, the new company is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The CompanyCreate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new CompanyCreateController resource' - content: - application/vnd.ibexa.api.CompanyCreate+xml: - schema: - $ref: '#/components/schemas/CompanyCreate' - x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/POST/CompanyCreate.xml.example' - application/vnd.ibexa.api.CompanyCreate+json: - schema: - $ref: '#/components/schemas/CompanyCreateWrapper' - x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/POST/CompanyCreate.json.example' - required: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - '/corporate/companies/{companyId}': - get: - operationId: api_corporatecompanies_companyId_get - tags: - - 'Corporate Account' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Company+json: - schema: - $ref: '#/components/schemas/CompanyWrapper' - example: - Company: - _media-type: application/vnd.ibexa.api.Company+json - id: 66 - name: 'Ibexa AS' - Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/66, _remoteId: 9f20fb03d0ab0a6aef9930f7e6720377, _id: 66, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa AS', TranslatedName: 'Ibexa AS', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/66/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/versions/1, VersionInfo: { id: 593, versionNo: 1, status: PUBLISHED, modificationDate: '2023-04-03T13:09:40+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-03T13:09:40+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa AS' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/66 } }, Fields: { field: [{ id: 295, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 296, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa AS' }, { id: 297, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 298, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 299, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 300, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 301, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 74, destinationContentHref: /api/ibexa/v2/content/objects/74 } }, { id: 302, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 69, destinationContentHref: /api/ibexa/v2/content/objects/69 } }, { id: 303, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } } }, { id: 305, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 67, destinationContentHref: /api/ibexa/v2/content/objects/67 } }, { id: 304, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 68, destinationContentHref: /api/ibexa/v2/content/objects/68 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/66/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/66/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-03T13:09:40+02:00', publishedDate: '2023-03-31T14:33:36+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/66/objectstates } } - billingAddress: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } } - contactId: 74 - salesRepresentativeId: 80 - defaultAddressId: 69 - addressBookId: 68 - membersId: 67 - MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/66/members } - Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 } - locationPath: /1/65/67/ - isActive: true - application/vnd.ibexa.api.Company+xml: - schema: - $ref: '#/components/schemas/Company' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Company media-type="application/vnd.ibexa.api.Company+xml"> - <id>66</id> - <name>Ibexa AS</name> - <Content media-type="application/vnd.ibexa.api.Content+xml" - href="/api/ibexa/v2/content/objects/66" remoteId="9f20fb03d0ab0a6aef9930f7e6720377" - id="66"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" - href="/api/ibexa/v2/content/types/48"/> - <Name>Ibexa AS</Name> - <TranslatedName>Ibexa AS</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" - href="/api/ibexa/v2/content/objects/66/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/66/currentversion"> - <Version media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/66/versions/1"> - <VersionInfo> - <id>593</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2023-04-03T13:09:40+02:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" - href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-04-03T13:09:40+02:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Ibexa AS</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" - href="/api/ibexa/v2/content/objects/66"/> - </VersionInfo> - <Fields> - <field> - <id>295</id> - <fieldDefinitionIdentifier>active</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_boolean</fieldTypeIdentifier> - <fieldValue>true</fieldValue> - </field> - <field> - <id>296</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Ibexa AS</fieldValue> - </field> - <field> - <id>297</id> - <fieldDefinitionIdentifier>vat</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>123 456 789</fieldValue> - </field> - <field> - <id>298</id> - <fieldDefinitionIdentifier>website</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>https://ibexa.co</fieldValue> - </field> - <field> - <id>299</id> - <fieldDefinitionIdentifier>customer_group</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_customer_group</fieldTypeIdentifier> - <fieldValue> - <value key="customer_group_id">1</value> - </fieldValue> - </field> - <field> - <id>300</id> - <fieldDefinitionIdentifier>sales_rep</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">14</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/14</value> - </fieldValue> - </field> - <field> - <id>301</id> - <fieldDefinitionIdentifier>contact</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">74</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/74</value> - </fieldValue> - </field> - <field> - <id>302</id> - <fieldDefinitionIdentifier>default_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">69</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/69</value> - </fieldValue> - </field> - <field> - <id>303</id> - <fieldDefinitionIdentifier>billing_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_address</fieldTypeIdentifier> - <fieldValue> - <value key="name">HQ</value> - <value key="country">PL</value> - <value key="fields"> - <value key="region">Silesia</value> - <value key="locality">Katowice</value> - <value key="street">Gliwicka 6/5</value> - <value key="postal_code">40-079</value> - <value key="email">company@email.invalid</value> - <value key="phone_number">+48 000 000 000</value> - </value> - </fieldValue> - </field> - <field> - <id>305</id> - <fieldDefinitionIdentifier>members</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">67</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/67</value> - </fieldValue> - </field> - <field> - <id>304</id> - <fieldDefinitionIdentifier>address_book</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">68</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/68</value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" - href="/api/ibexa/v2/content/objects/66/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/placeholder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - </CurrentVersion> - <Section media-type="application/vnd.ibexa.api.Section+xml" - href="/api/ibexa/v2/content/sections/10"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/67"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" - href="/api/ibexa/v2/content/objects/66/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2023-04-03T13:09:40+02:00</lastModificationDate> - <publishedDate>2023-03-31T14:33:36+02:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>true</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" - href="/api/ibexa/v2/content/objects/66/objectstates"/> - </Content> - <billingAddress>HQ, Poland</billingAddress> - <contactId>74</contactId> - <salesRepresentativeId>80</salesRepresentativeId> - <defaultAddressId>69</defaultAddressId> - <addressBookId>68</addressBookId> - <membersId>67</membersId> - <MemberList media-type="application/vnd.ibexa.api.MemberList+xml" - href="/api/ibexa/v2/corporate/companies/66/members"/> - <Location media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/67"/> - <locationPath>/1/65/67/</locationPath> - <isActive>1</isActive> - </Company> - '401': - description: 'Error - The user is not authorized to read this company.' - '404': - description: 'Error - The company does not exist.' - summary: 'Get company' - description: 'Returns the company by given company ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the company is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: companyId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - delete: - operationId: api_corporatecompanies_companyId_delete - tags: - - 'Corporate Account' - responses: - '204': - description: 'No Content - given company is deleted.' - '401': - description: 'Error - the user is not authorized to delete this company.' - '404': - description: 'Error - the company does not exist.' - summary: 'Delete company' - description: 'The given company is deleted.' - parameters: - - - name: Accept - in: header - description: 'If set, in the case of an error the error message is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: X-CSRF-Token - in: header - description: "Only needed for session's checking. The {csrfToken} needed on all unsafe HTTP methods with session." - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: companyId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - patch: - operationId: api_corporatecompanies_companyId_patch - tags: - - 'Corporate Account' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Company+xml: - schema: - $ref: '#/components/schemas/Company' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Company media-type="application/vnd.ibexa.api.Company+xml"> - <id>66</id> - <name>Ibexa AS</name> - <Content media-type="application/vnd.ibexa.api.Content+xml" - href="/api/ibexa/v2/content/objects/66" remoteId="9f20fb03d0ab0a6aef9930f7e6720377" - id="66"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" - href="/api/ibexa/v2/content/types/48"/> - <Name>Ibexa AS</Name> - <TranslatedName>Ibexa AS</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" - href="/api/ibexa/v2/content/objects/66/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/66/currentversion"> - <Version media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/66/versions/1"> - <VersionInfo> - <id>593</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2023-04-03T13:09:40+02:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" - href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-04-03T13:09:40+02:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Ibexa AS</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" - href="/api/ibexa/v2/content/objects/66"/> - </VersionInfo> - <Fields> - <field> - <id>295</id> - <fieldDefinitionIdentifier>active</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_boolean</fieldTypeIdentifier> - <fieldValue>true</fieldValue> - </field> - <field> - <id>296</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Ibexa AS</fieldValue> - </field> - <field> - <id>297</id> - <fieldDefinitionIdentifier>vat</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>123 456 789</fieldValue> - </field> - <field> - <id>298</id> - <fieldDefinitionIdentifier>website</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>https://ibexa.co</fieldValue> - </field> - <field> - <id>299</id> - <fieldDefinitionIdentifier>customer_group</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_customer_group</fieldTypeIdentifier> - <fieldValue> - <value key="customer_group_id">1</value> - </fieldValue> - </field> - <field> - <id>300</id> - <fieldDefinitionIdentifier>sales_rep</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">14</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/14</value> - </fieldValue> - </field> - <field> - <id>301</id> - <fieldDefinitionIdentifier>contact</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">74</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/74</value> - </fieldValue> - </field> - <field> - <id>302</id> - <fieldDefinitionIdentifier>default_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">69</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/69</value> - </fieldValue> - </field> - <field> - <id>303</id> - <fieldDefinitionIdentifier>billing_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_address</fieldTypeIdentifier> - <fieldValue> - <value key="name">HQ</value> - <value key="country">PL</value> - <value key="fields"> - <value key="region">Silesia</value> - <value key="locality">Katowice</value> - <value key="street">Gliwicka 6/5</value> - <value key="postal_code">40-079</value> - <value key="email">company@email.invalid</value> - <value key="phone_number">+48 000 000 000</value> - </value> - </fieldValue> - </field> - <field> - <id>305</id> - <fieldDefinitionIdentifier>members</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">67</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/67</value> - </fieldValue> - </field> - <field> - <id>304</id> - <fieldDefinitionIdentifier>address_book</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">68</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/68</value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" - href="/api/ibexa/v2/content/objects/66/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/placeholder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - </CurrentVersion> - <Section media-type="application/vnd.ibexa.api.Section+xml" - href="/api/ibexa/v2/content/sections/10"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/67"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" - href="/api/ibexa/v2/content/objects/66/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2023-04-03T13:09:40+02:00</lastModificationDate> - <publishedDate>2023-03-31T14:33:36+02:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>true</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" - href="/api/ibexa/v2/content/objects/66/objectstates"/> - </Content> - <billingAddress>HQ, Poland</billingAddress> - <contactId>74</contactId> - <salesRepresentativeId>80</salesRepresentativeId> - <defaultAddressId>69</defaultAddressId> - <addressBookId>68</addressBookId> - <membersId>67</membersId> - <MemberList media-type="application/vnd.ibexa.api.MemberList+xml" - href="/api/ibexa/v2/corporate/companies/66/members"/> - <Location media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/67"/> - <locationPath>/1/65/67/</locationPath> - <isActive>1</isActive> - </Company> - application/vnd.ibexa.api.Company+json: - schema: - $ref: '#/components/schemas/CompanyWrapper' - example: - Company: - _media-type: application/vnd.ibexa.api.Company+json - id: 66 - name: 'Ibexa AS' - Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/66, _remoteId: 9f20fb03d0ab0a6aef9930f7e6720377, _id: 66, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa AS', TranslatedName: 'Ibexa AS', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/66/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/versions/1, VersionInfo: { id: 593, versionNo: 1, status: PUBLISHED, modificationDate: '2023-04-03T13:09:40+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-03T13:09:40+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa AS' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/66 } }, Fields: { field: [{ id: 295, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 296, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa AS' }, { id: 297, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 298, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 299, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 300, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 301, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 74, destinationContentHref: /api/ibexa/v2/content/objects/74 } }, { id: 302, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 69, destinationContentHref: /api/ibexa/v2/content/objects/69 } }, { id: 303, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } } }, { id: 305, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 67, destinationContentHref: /api/ibexa/v2/content/objects/67 } }, { id: 304, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 68, destinationContentHref: /api/ibexa/v2/content/objects/68 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/66/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/66/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-03T13:09:40+02:00', publishedDate: '2023-03-31T14:33:36+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/66/objectstates } } - billingAddress: { name: Headquarters, country: 'NO', fields: { region: 'Company HQ location region', locality: 'Company HQ location city', street: 'Company HQ location street and building', postal_code: '00000', email: company@email.invalid, phone_number: '+47 000 000 000' } } - contactId: 74 - salesRepresentativeId: 80 - defaultAddressId: 69 - addressBookId: 68 - membersId: 67 - MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/66/members } - Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/67 } - locationPath: /1/65/67/ - isActive: true - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this company.' - summary: 'Update a company' - description: 'Updates a company. PATCH or POST with header X-HTTP-Method-Override PATCH.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated company is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The company input schema encoded in XML or JSON.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: companyId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated CompanyUpdateController resource' - content: - application/vnd.ibexa.api.CompanyUpdate+xml: - schema: - $ref: '#/components/schemas/CompanyUpdate' - x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/company_id/PATCH/CompanyUpdate.xml.example' - application/vnd.ibexa.api.CompanyUpdate+json: - schema: - $ref: '#/components/schemas/CompanyUpdateWrapper' - x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/company_id/PATCH/CompanyUpdate.json.example' - required: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - '/corporate/companies/{companyId}/members': - get: - operationId: api_corporatecompanies_companyIdmembers_get - tags: - - 'Corporate Account' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.MemberList+xml: - schema: - $ref: '#/components/schemas/MemberList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <MemberList media-type="application/vnd.ibexa.api.MemberList+xml" href="/api/ibexa/v2/corporate/companies/139/members"> - <Member media-type="application/vnd.ibexa.api.Member+xml" href="/api/ibexa/v2/corporate/companies/139/members/144"> - <id>144</id> - <name>Jay Kowalski</name> - <Company media-type="application/vnd.ibexa.api.Company+xml"> - <id>139</id> - <name>Ibexa Sp. z o. o.</name> - <Content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/139" remoteId="b16d06d4c5ba7c37b26fa167b551dfc2" id="139"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/48"/> - <Name>Ibexa Sp. z o. o.</Name> - <TranslatedName>Ibexa Sp. z o. o.</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/139/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/139/currentversion"> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/139/versions/6"> - <VersionInfo> - <id>677</id> - <versionNo>6</versionNo> - <status>PUBLISHED</status> - <modificationDate>2023-04-28T16:10:13+02:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-04-28T16:10:13+02:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Ibexa Sp. z o. o.</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/139"/> - </VersionInfo> - <Fields> - <field> - <id>673</id> - <fieldDefinitionIdentifier>active</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_boolean</fieldTypeIdentifier> - <fieldValue>true</fieldValue> - </field> - <field> - <id>674</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Ibexa Sp. z o. o.</fieldValue> - </field> - <field> - <id>675</id> - <fieldDefinitionIdentifier>vat</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>123 456 789</fieldValue> - </field> - <field> - <id>676</id> - <fieldDefinitionIdentifier>website</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>https://ibexa.co</fieldValue> - </field> - <field> - <id>677</id> - <fieldDefinitionIdentifier>customer_group</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_customer_group</fieldTypeIdentifier> - <fieldValue> - <value key="customer_group_id">1</value> - </fieldValue> - </field> - <field> - <id>678</id> - <fieldDefinitionIdentifier>sales_rep</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">14</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/14</value> - </fieldValue> - </field> - <field> - <id>679</id> - <fieldDefinitionIdentifier>contact</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">144</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/144</value> - </fieldValue> - </field> - <field> - <id>680</id> - <fieldDefinitionIdentifier>default_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">142</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/142</value> - </fieldValue> - </field> - <field> - <id>681</id> - <fieldDefinitionIdentifier>billing_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_address</fieldTypeIdentifier> - <fieldValue> - <value key="name">HQ</value> - <value key="country">PL</value> - <value key="fields"> - <value key="region">Silesia</value> - <value key="locality">Katowice</value> - <value key="street">Gliwicka 6/5</value> - <value key="postal_code">40-079</value> - <value key="email">company@email.invalid</value> - <value key="phone_number">+48 000 000 000</value> - </value> - </fieldValue> - </field> - <field> - <id>683</id> - <fieldDefinitionIdentifier>members</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">140</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/140</value> - </fieldValue> - </field> - <field> - <id>682</id> - <fieldDefinitionIdentifier>address_book</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">141</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/141</value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/139/versions/6/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/placeholder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - </CurrentVersion> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/10"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/65/140"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/139/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2023-04-28T16:10:13+02:00</lastModificationDate> - <publishedDate>2023-04-28T15:44:55+02:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>6</currentVersionNo> - <alwaysAvailable>true</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/139/objectstates"/> - </Content> - <billingAddress>HQ, Poland</billingAddress> - <contactId>144</contactId> - <salesRepresentativeId>14</salesRepresentativeId> - <defaultAddressId>142</defaultAddressId> - <addressBookId>141</addressBookId> - <membersId>140</membersId> - <MemberList media-type="application/vnd.ibexa.api.MemberList+xml" href="/api/ibexa/v2/corporate/companies/139/members"/> - <Location media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/65/140"/> - <locationPath>/1/65/140/</locationPath> - <isActive>1</isActive> - </Company> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/144" id="144" remoteId="1b3938c16adfa29996f3afff0b4a0032"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/47"/> - <name>Jay Kowalski</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/144/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/10"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/65/140/141/145"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/144/locations"/> - <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/144/groups"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <publishDate>2023-04-28T16:10:03+02:00</publishDate> - <lastModificationDate>2023-04-28T16:17:07+02:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/144/versions/6"> - <VersionInfo> - <id>683</id> - <versionNo>6</versionNo> - <status>PUBLISHED</status> - <modificationDate>2023-04-28T16:17:07+02:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-04-28T16:17:06+02:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Jay Kowalski</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/144"/> - </VersionInfo> - <Fields> - <field> - <id>698</id> - <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Jay</fieldValue> - </field> - <field> - <id>699</id> - <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Kowalski</fieldValue> - </field> - <field> - <id>700</id> - <fieldDefinitionIdentifier>phone_number</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>+48 123 123 456</fieldValue> - </field> - <field> - <id>701</id> - <fieldDefinitionIdentifier>user</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> - <fieldValue> - <value key="hasStoredLogin">true</value> - <value key="contentId">144</value> - <value key="login">jay.kowalski</value> - <value key="email">jay.kowalski@email.invalid</value> - <value key="passwordUpdatedAt">1682691427</value> - <value key="enabled">false</value> - <value key="maxLogin">5</value> - <value key="plainPassword"/> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/144/versions/6/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/user/default_profile_image/initials.svg?initials=JK#profile_image</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <login>jay.kowalski</login> - <email>jay.kowalski@email.invalid</email> - <enabled>false</enabled> - <UserGroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/users/144/groups"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/144/roles"/> - </User> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/15"> - <identifier>Company Buyer</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/15/policies"/> - </Role> - </Member> - </MemberList> - application/vnd.ibexa.api.MemberList+json: - schema: - $ref: '#/components/schemas/MemberListWrapper' - example: - MemberList: - _media-type: application/vnd.ibexa.api.MemberList+json - _href: /api/ibexa/v2/corporate/companies/139/members - members: [{ _media-type: application/vnd.ibexa.api.Member+json, _href: /api/ibexa/v2/corporate/companies/139/members/144, id: 144, name: 'Jay Kowalski', Company: { _media-type: application/vnd.ibexa.api.Company+json, id: 139, name: 'Ibexa Sp. z o. o.', Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/139, _remoteId: b16d06d4c5ba7c37b26fa167b551dfc2, _id: 139, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa Sp. z o. o.', TranslatedName: 'Ibexa Sp. z o. o.', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/139/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/versions/6, VersionInfo: { id: 677, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:10:13+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:10:13+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa Sp. z o. o.' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/139 } }, Fields: { field: [{ id: 673, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 674, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa Sp. z o. o.' }, { id: 675, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 676, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 677, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 678, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 679, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 144, destinationContentHref: /api/ibexa/v2/content/objects/144 } }, { id: 680, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 142, destinationContentHref: /api/ibexa/v2/content/objects/142 } }, { id: 681, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } } }, { id: 683, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 140, destinationContentHref: /api/ibexa/v2/content/objects/140 } }, { id: 682, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 141, destinationContentHref: /api/ibexa/v2/content/objects/141 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/139/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/139/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-28T16:10:13+02:00', publishedDate: '2023-04-28T15:44:55+02:00', mainLanguageCode: eng-GB, currentVersionNo: 6, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/139/objectstates } }, billingAddress: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } }, contactId: 144, salesRepresentativeId: 14, defaultAddressId: 142, addressBookId: 141, membersId: 140, MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/139/members }, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, locationPath: /1/65/140/, isActive: true }, User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/144, _id: 144, _remoteId: 1b3938c16adfa29996f3afff0b4a0032, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/47 }, name: 'Jay Kowalski', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/144/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140/141/145 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/144/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/144/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, publishDate: '2023-04-28T16:10:03+02:00', lastModificationDate: '2023-04-28T16:17:07+02:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/144/versions/6, VersionInfo: { id: 683, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:17:07+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:17:06+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jay Kowalski' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/144 } }, Fields: { field: [{ id: 698, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jay }, { id: 699, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Kowalski }, { id: 700, fieldDefinitionIdentifier: phone_number, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '+48 123 123 456' }, { id: 701, fieldDefinitionIdentifier: user, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 144, login: jay.kowalski, email: jay.kowalski@email.invalid, passwordUpdatedAt: 1682691427, enabled: false, maxLogin: 5, plainPassword: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/144/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/user/default_profile_image/initials.svg?initials=JK#profile_image', width: null, height: null, mimeType: image/svg+xml } }, login: jay.kowalski, email: jay.kowalski@email.invalid, enabled: false, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/144/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/144/roles } }, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/15, identifier: 'Company Buyer', Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/15/policies } } }] - '400': - description: 'Returned when invalid Criterion or Sort clause is used.' - content: - application/vnd.ibexa.api.ErrorMessage: - schema: - $ref: '#/components/schemas/ErrorMessage' - '404': - description: 'Error - The identifier do not match any company.' - summary: 'Read list of company members' - description: 'Returns paginated list of a given company members.' - parameters: - - - name: Accept - in: header - description: 'If set, helps to determine response format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - enum: - - application/vnd.ibexa.api.MemberList+xml - - application/vnd.ibexa.api.MemberList+json - style: simple - explode: false - allowReserved: false - - - name: companyId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: 'filter[DateMetadataCriterion][Target]' - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: false - schema: - type: string - enum: - - created - - modified - - published - style: form - explode: false - allowReserved: false - - - name: 'filter[DateMetadataCriterion][Operator]' - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: false - schema: - type: string - enum: - - eq - - gt - - gte - - lt - - lte - style: form - explode: false - allowReserved: false - - - name: 'filter[DateMetadataCriterion][Value]' - in: query - description: 'DateTime as a UNIX timestamp' - required: false - deprecated: false - allowEmptyValue: false - schema: - type: integer - style: form - explode: false - allowReserved: false - - - name: 'sort[ContentName]' - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: false - schema: - type: string - enum: - - ascending - - descending - style: form - explode: false - allowReserved: false - - - name: 'sort[DatePublished]' - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: false - schema: - type: string - enum: - - ascending - - descending - style: form - explode: false - allowReserved: false - - - name: 'sort[DateModified]' - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: false - schema: - type: string - enum: - - ascending - - descending - style: form - explode: false - allowReserved: false - - - name: offset - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: false - schema: - type: integer - style: form - explode: false - allowReserved: false - - - name: limit - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: false - schema: - type: integer - style: form - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - post: - operationId: api_corporatecompanies_companyIdmembers_post - tags: - - 'Corporate Account' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.Member+xml: - schema: - $ref: '#/components/schemas/Member' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Member media-type="application/vnd.ibexa.api.Member+xml" - href="/api/ibexa/v2/corporate/companies/139/members/144"> - <id>144</id> - <name>Jay Kowalski</name> - <Company media-type="application/vnd.ibexa.api.Company+xml"> - <id>139</id> - <name>Ibexa Sp. z o. o.</name> - <Content media-type="application/vnd.ibexa.api.Content+xml" - href="/api/ibexa/v2/content/objects/139" remoteId="b16d06d4c5ba7c37b26fa167b551dfc2" - id="139"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" - href="/api/ibexa/v2/content/types/48"/> - <Name>Ibexa Sp. z o. o.</Name> - <TranslatedName>Ibexa Sp. z o. o.</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" - href="/api/ibexa/v2/content/objects/139/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/139/currentversion"> - <Version media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/139/versions/6"> - <VersionInfo> - <id>677</id> - <versionNo>6</versionNo> - <status>PUBLISHED</status> - <modificationDate>2023-04-28T16:10:13+02:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" - href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-04-28T16:10:13+02:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo - media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Ibexa Sp. z o. o.</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" - href="/api/ibexa/v2/content/objects/139"/> - </VersionInfo> - <Fields> - <field> - <id>673</id> - <fieldDefinitionIdentifier>active</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_boolean</fieldTypeIdentifier> - <fieldValue>true</fieldValue> - </field> - <field> - <id>674</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Ibexa Sp. z o. o.</fieldValue> - </field> - <field> - <id>675</id> - <fieldDefinitionIdentifier>vat</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>123 456 789</fieldValue> - </field> - <field> - <id>676</id> - <fieldDefinitionIdentifier>website</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>https://ibexa.co</fieldValue> - </field> - <field> - <id>677</id> - <fieldDefinitionIdentifier>customer_group</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_customer_group</fieldTypeIdentifier> - <fieldValue> - <value key="customer_group_id">1</value> - </fieldValue> - </field> - <field> - <id>678</id> - <fieldDefinitionIdentifier>sales_rep</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">14</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/14</value> - </fieldValue> - </field> - <field> - <id>679</id> - <fieldDefinitionIdentifier>contact</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">144</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/144</value> - </fieldValue> - </field> - <field> - <id>680</id> - <fieldDefinitionIdentifier>default_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">142</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/142</value> - </fieldValue> - </field> - <field> - <id>681</id> - <fieldDefinitionIdentifier>billing_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_address</fieldTypeIdentifier> - <fieldValue> - <value key="name">HQ</value> - <value key="country">PL</value> - <value key="fields"> - <value key="region">Silesia</value> - <value key="locality">Katowice</value> - <value key="street">Gliwicka 6/5</value> - <value key="postal_code">40-079</value> - <value key="email">company@email.invalid</value> - <value key="phone_number">+48 000 000 000</value> - </value> - </fieldValue> - </field> - <field> - <id>683</id> - <fieldDefinitionIdentifier>members</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">140</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/140</value> - </fieldValue> - </field> - <field> - <id>682</id> - <fieldDefinitionIdentifier>address_book</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">141</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/141</value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" - href="/api/ibexa/v2/content/objects/139/versions/6/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/placeholder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - </CurrentVersion> - <Section media-type="application/vnd.ibexa.api.Section+xml" - href="/api/ibexa/v2/content/sections/10"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/140"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" - href="/api/ibexa/v2/content/objects/139/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2023-04-28T16:10:13+02:00</lastModificationDate> - <publishedDate>2023-04-28T15:44:55+02:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>6</currentVersionNo> - <alwaysAvailable>true</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" - href="/api/ibexa/v2/content/objects/139/objectstates"/> - </Content> - <billingAddress>HQ, Poland</billingAddress> - <contactId>144</contactId> - <salesRepresentativeId>14</salesRepresentativeId> - <defaultAddressId>142</defaultAddressId> - <addressBookId>141</addressBookId> - <membersId>140</membersId> - <MemberList media-type="application/vnd.ibexa.api.MemberList+xml" - href="/api/ibexa/v2/corporate/companies/139/members"/> - <Location media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/140"/> - <locationPath>/1/65/140/</locationPath> - <isActive>1</isActive> - </Company> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/144" id="144" - remoteId="1b3938c16adfa29996f3afff0b4a0032"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" - href="/api/ibexa/v2/content/types/47"/> - <name>Jay Kowalski</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" - href="/api/ibexa/v2/content/objects/144/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" - href="/api/ibexa/v2/content/sections/10"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/140/141/145"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" - href="/api/ibexa/v2/content/objects/144/locations"/> - <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" - href="/api/ibexa/v2/user/users/144/groups"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <publishDate>2023-04-28T16:10:03+02:00</publishDate> - <lastModificationDate>2023-04-28T16:10:03+02:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/144/versions/1"> - <VersionInfo> - <id>676</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2023-04-28T16:10:03+02:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" - href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-04-28T16:10:03+02:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Jay Kowalski</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" - href="/api/ibexa/v2/content/objects/144"/> - </VersionInfo> - <Fields> - <field> - <id>698</id> - <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Jay</fieldValue> - </field> - <field> - <id>699</id> - <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Kowalski</fieldValue> - </field> - <field> - <id>700</id> - <fieldDefinitionIdentifier>phone_number</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>+48 123 123 456</fieldValue> - </field> - <field> - <id>701</id> - <fieldDefinitionIdentifier>user</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> - <fieldValue> - <value key="hasStoredLogin">true</value> - <value key="contentId">144</value> - <value key="login">jay.kowalski</value> - <value key="email">jay.kowalski@email.invalid</value> - <value key="passwordUpdatedAt">1682691003</value> - <value key="enabled">true</value> - <value key="maxLogin">0</value> - <value key="plainPassword"/> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" - href="/api/ibexa/v2/content/objects/144/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/user/default_profile_image/initials.svg?initials=JK#profile_image</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <login>jay.kowalski</login> - <email>jay.kowalski@email.invalid</email> - <enabled>true</enabled> - <UserGroups media-type="application/vnd.ibexa.api.UserGroupList+xml" - href="/api/ibexa/v2/user/users/144/groups"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" - href="/api/ibexa/v2/user/users/144/roles"/> - </User> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/14"> - <identifier>Company Admin</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" - href="/api/ibexa/v2/user/roles/14/policies"/> - </Role> - </Member> - application/vnd.ibexa.api.Member+json: - schema: - $ref: '#/components/schemas/MemberWrapper' - example: - Member: - _media-type: application/vnd.ibexa.api.Member+json - _href: /api/ibexa/v2/corporate/companies/139/members/144 - id: 144 - name: 'Jay Kowalski' - Company: { _media-type: application/vnd.ibexa.api.Company+json, id: 139, name: 'Ibexa Sp. z o. o.', Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/139, _remoteId: b16d06d4c5ba7c37b26fa167b551dfc2, _id: 139, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa Sp. z o. o.', TranslatedName: 'Ibexa Sp. z o. o.', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/139/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/versions/6, VersionInfo: { id: 677, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:10:13+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:10:13+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa Sp. z o. o.' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/139 } }, Fields: { field: [{ id: 673, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 674, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa Sp. z o. o.' }, { id: 675, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 676, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 677, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 678, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 679, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 144, destinationContentHref: /api/ibexa/v2/content/objects/144 } }, { id: 680, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 142, destinationContentHref: /api/ibexa/v2/content/objects/142 } }, { id: 681, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } } }, { id: 683, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 140, destinationContentHref: /api/ibexa/v2/content/objects/140 } }, { id: 682, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 141, destinationContentHref: /api/ibexa/v2/content/objects/141 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/139/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/139/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-28T16:10:13+02:00', publishedDate: '2023-04-28T15:44:55+02:00', mainLanguageCode: eng-GB, currentVersionNo: 6, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/139/objectstates } }, billingAddress: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } }, contactId: 144, salesRepresentativeId: 14, defaultAddressId: 142, addressBookId: 141, membersId: 140, MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/139/members }, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, locationPath: /1/65/140/, isActive: true } - User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/144, _id: 144, _remoteId: 1b3938c16adfa29996f3afff0b4a0032, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/47 }, name: 'Jay Kowalski', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/144/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140/141/145 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/144/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/144/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, publishDate: '2023-04-28T16:10:03+02:00', lastModificationDate: '2023-04-28T16:17:07+02:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/144/versions/6, VersionInfo: { id: 683, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:17:07+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:17:06+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jay Kowalski' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/144 } }, Fields: { field: [{ id: 698, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jay }, { id: 699, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Kowalski }, { id: 700, fieldDefinitionIdentifier: phone_number, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '+48 123 123 456' }, { id: 701, fieldDefinitionIdentifier: user, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 144, login: jay.kowalski, email: jay.kowalski@email.invalid, passwordUpdatedAt: 1682691427, enabled: false, maxLogin: 5, plainPassword: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/144/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/user/default_profile_image/initials.svg?initials=JK#profile_image', width: null, height: null, mimeType: image/svg+xml } }, login: jay.kowalski, email: jay.kowalski@email.invalid, enabled: false, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/144/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/144/roles } } - Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/15, identifier: 'Company Buyer', Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/15/policies } } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create a company member.' - summary: 'Create a company member' - description: 'Creates a company member.' - parameters: - - - name: Accept - in: header - description: 'If set, the new member is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The CompanyCreate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: companyId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new MemberCreateController resource' - content: - application/vnd.ibexa.api.MemberCreate+xml: - schema: - $ref: '#/components/schemas/MemberCreate' - x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/company_id/members/POST/MemberCreate.xml.example' - application/vnd.ibexa.api.MemberCreate+json: - schema: - $ref: '#/components/schemas/MemberCreateWrapper' - x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/company_id/members/POST/MemberCreate.json.example' - required: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - '/corporate/companies/{companyId}/members/{memberId}': - get: - operationId: api_corporatecompanies_companyIdmembers_memberId_get - tags: - - 'Corporate Account' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Member+xml: - schema: - $ref: '#/components/schemas/Member' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Member media-type="application/vnd.ibexa.api.Member+xml" - href="/api/ibexa/v2/corporate/companies/139/members/144"> - <id>144</id> - <name>Jay Kowalski</name> - <Company media-type="application/vnd.ibexa.api.Company+xml"> - <id>139</id> - <name>Ibexa Sp. z o. o.</name> - <Content media-type="application/vnd.ibexa.api.Content+xml" - href="/api/ibexa/v2/content/objects/139" remoteId="b16d06d4c5ba7c37b26fa167b551dfc2" - id="139"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" - href="/api/ibexa/v2/content/types/48"/> - <Name>Ibexa Sp. z o. o.</Name> - <TranslatedName>Ibexa Sp. z o. o.</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" - href="/api/ibexa/v2/content/objects/139/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/139/currentversion"> - <Version media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/139/versions/6"> - <VersionInfo> - <id>677</id> - <versionNo>6</versionNo> - <status>PUBLISHED</status> - <modificationDate>2023-04-28T16:10:13+02:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" - href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-04-28T16:10:13+02:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo - media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Ibexa Sp. z o. o.</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" - href="/api/ibexa/v2/content/objects/139"/> - </VersionInfo> - <Fields> - <field> - <id>673</id> - <fieldDefinitionIdentifier>active</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_boolean</fieldTypeIdentifier> - <fieldValue>true</fieldValue> - </field> - <field> - <id>674</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Ibexa Sp. z o. o.</fieldValue> - </field> - <field> - <id>675</id> - <fieldDefinitionIdentifier>vat</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>123 456 789</fieldValue> - </field> - <field> - <id>676</id> - <fieldDefinitionIdentifier>website</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>https://ibexa.co</fieldValue> - </field> - <field> - <id>677</id> - <fieldDefinitionIdentifier>customer_group</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_customer_group</fieldTypeIdentifier> - <fieldValue> - <value key="customer_group_id">1</value> - </fieldValue> - </field> - <field> - <id>678</id> - <fieldDefinitionIdentifier>sales_rep</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">14</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/14</value> - </fieldValue> - </field> - <field> - <id>679</id> - <fieldDefinitionIdentifier>contact</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">144</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/144</value> - </fieldValue> - </field> - <field> - <id>680</id> - <fieldDefinitionIdentifier>default_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">142</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/142</value> - </fieldValue> - </field> - <field> - <id>681</id> - <fieldDefinitionIdentifier>billing_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_address</fieldTypeIdentifier> - <fieldValue> - <value key="name">HQ</value> - <value key="country">PL</value> - <value key="fields"> - <value key="region">Silesia</value> - <value key="locality">Katowice</value> - <value key="street">Gliwicka 6/5</value> - <value key="postal_code">40-079</value> - <value key="email">company@email.invalid</value> - <value key="phone_number">+48 000 000 000</value> - </value> - </fieldValue> - </field> - <field> - <id>683</id> - <fieldDefinitionIdentifier>members</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">140</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/140</value> - </fieldValue> - </field> - <field> - <id>682</id> - <fieldDefinitionIdentifier>address_book</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">141</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/141</value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" - href="/api/ibexa/v2/content/objects/139/versions/6/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/placeholder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - </CurrentVersion> - <Section media-type="application/vnd.ibexa.api.Section+xml" - href="/api/ibexa/v2/content/sections/10"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/140"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" - href="/api/ibexa/v2/content/objects/139/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2023-04-28T16:10:13+02:00</lastModificationDate> - <publishedDate>2023-04-28T15:44:55+02:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>6</currentVersionNo> - <alwaysAvailable>true</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" - href="/api/ibexa/v2/content/objects/139/objectstates"/> - </Content> - <billingAddress>HQ, Poland</billingAddress> - <contactId>144</contactId> - <salesRepresentativeId>14</salesRepresentativeId> - <defaultAddressId>142</defaultAddressId> - <addressBookId>141</addressBookId> - <membersId>140</membersId> - <MemberList media-type="application/vnd.ibexa.api.MemberList+xml" - href="/api/ibexa/v2/corporate/companies/139/members"/> - <Location media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/140"/> - <locationPath>/1/65/140/</locationPath> - <isActive>1</isActive> - </Company> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/144" id="144" - remoteId="1b3938c16adfa29996f3afff0b4a0032"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" - href="/api/ibexa/v2/content/types/47"/> - <name>Jay Kowalski</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" - href="/api/ibexa/v2/content/objects/144/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" - href="/api/ibexa/v2/content/sections/10"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/140/141/145"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" - href="/api/ibexa/v2/content/objects/144/locations"/> - <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" - href="/api/ibexa/v2/user/users/144/groups"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <publishDate>2023-04-28T16:10:03+02:00</publishDate> - <lastModificationDate>2023-04-28T16:10:03+02:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/144/versions/1"> - <VersionInfo> - <id>676</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2023-04-28T16:10:03+02:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" - href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-04-28T16:10:03+02:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Jay Kowalski</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" - href="/api/ibexa/v2/content/objects/144"/> - </VersionInfo> - <Fields> - <field> - <id>698</id> - <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Jay</fieldValue> - </field> - <field> - <id>699</id> - <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Kowalski</fieldValue> - </field> - <field> - <id>700</id> - <fieldDefinitionIdentifier>phone_number</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>+48 123 123 456</fieldValue> - </field> - <field> - <id>701</id> - <fieldDefinitionIdentifier>user</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> - <fieldValue> - <value key="hasStoredLogin">true</value> - <value key="contentId">144</value> - <value key="login">jay.kowalski</value> - <value key="email">jay.kowalski@email.invalid</value> - <value key="passwordUpdatedAt">1682691003</value> - <value key="enabled">true</value> - <value key="maxLogin">0</value> - <value key="plainPassword"/> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" - href="/api/ibexa/v2/content/objects/144/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/user/default_profile_image/initials.svg?initials=JK#profile_image</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <login>jay.kowalski</login> - <email>jay.kowalski@email.invalid</email> - <enabled>true</enabled> - <UserGroups media-type="application/vnd.ibexa.api.UserGroupList+xml" - href="/api/ibexa/v2/user/users/144/groups"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" - href="/api/ibexa/v2/user/users/144/roles"/> - </User> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/14"> - <identifier>Company Admin</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" - href="/api/ibexa/v2/user/roles/14/policies"/> - </Role> - </Member> - application/vnd.ibexa.api.Member+json: - schema: - $ref: '#/components/schemas/MemberWrapper' - example: - Member: - _media-type: application/vnd.ibexa.api.Member+json - _href: /api/ibexa/v2/corporate/companies/139/members/144 - id: 144 - name: 'Jay Kowalski' - Company: { _media-type: application/vnd.ibexa.api.Company+json, id: 139, name: 'Ibexa Sp. z o. o.', Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/139, _remoteId: b16d06d4c5ba7c37b26fa167b551dfc2, _id: 139, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa Sp. z o. o.', TranslatedName: 'Ibexa Sp. z o. o.', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/139/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/versions/6, VersionInfo: { id: 677, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:10:13+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:10:13+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa Sp. z o. o.' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/139 } }, Fields: { field: [{ id: 673, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 674, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa Sp. z o. o.' }, { id: 675, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 676, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 677, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 678, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 679, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 144, destinationContentHref: /api/ibexa/v2/content/objects/144 } }, { id: 680, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 142, destinationContentHref: /api/ibexa/v2/content/objects/142 } }, { id: 681, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } } }, { id: 683, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 140, destinationContentHref: /api/ibexa/v2/content/objects/140 } }, { id: 682, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 141, destinationContentHref: /api/ibexa/v2/content/objects/141 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/139/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/139/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-28T16:10:13+02:00', publishedDate: '2023-04-28T15:44:55+02:00', mainLanguageCode: eng-GB, currentVersionNo: 6, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/139/objectstates } }, billingAddress: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } }, contactId: 144, salesRepresentativeId: 14, defaultAddressId: 142, addressBookId: 141, membersId: 140, MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/139/members }, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, locationPath: /1/65/140/, isActive: true } - User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/144, _id: 144, _remoteId: 1b3938c16adfa29996f3afff0b4a0032, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/47 }, name: 'Jay Kowalski', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/144/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140/141/145 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/144/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/144/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, publishDate: '2023-04-28T16:10:03+02:00', lastModificationDate: '2023-04-28T16:17:07+02:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/144/versions/6, VersionInfo: { id: 683, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:17:07+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:17:06+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jay Kowalski' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/144 } }, Fields: { field: [{ id: 698, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jay }, { id: 699, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Kowalski }, { id: 700, fieldDefinitionIdentifier: phone_number, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '+48 123 123 456' }, { id: 701, fieldDefinitionIdentifier: user, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 144, login: jay.kowalski, email: jay.kowalski@email.invalid, passwordUpdatedAt: 1682691427, enabled: false, maxLogin: 5, plainPassword: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/144/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/user/default_profile_image/initials.svg?initials=JK#profile_image', width: null, height: null, mimeType: image/svg+xml } }, login: jay.kowalski, email: jay.kowalski@email.invalid, enabled: false, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/144/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/144/roles } } - Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/15, identifier: 'Company Buyer', Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/15/policies } } - '401': - description: 'Error - The user is not authorized to read this company.' - '404': - description: 'Error - The company does not exist.' - summary: 'Get company member' - description: 'Returns the company member by given member ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the company member is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: companyId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: memberId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - delete: - operationId: api_corporatecompanies_companyIdmembers_memberId_delete - tags: - - 'Corporate Account' - responses: - '204': - description: 'No Content - given company member is deleted.' - '401': - description: 'Error - the user is not authorized to delete this company member.' - '404': - description: 'Error - the company member does not exist.' - summary: 'Delete company member' - description: 'The given company member is deleted.' - parameters: - - - name: Accept - in: header - description: 'If set, in the case of an error the error message is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: X-CSRF-Token - in: header - description: "Only needed for session's checking. The {csrfToken} needed on all unsafe HTTP methods with session." - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: companyId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: memberId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - patch: - operationId: api_corporatecompanies_companyIdmembers_memberId_patch - tags: - - 'Corporate Account' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Member+xml: - schema: - $ref: '#/components/schemas/Member' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Member media-type="application/vnd.ibexa.api.Member+xml" - href="/api/ibexa/v2/corporate/companies/139/members/144"> - <id>144</id> - <name>Jay Kowalski</name> - <Company media-type="application/vnd.ibexa.api.Company+xml"> - <id>139</id> - <name>Ibexa Sp. z o. o.</name> - <Content media-type="application/vnd.ibexa.api.Content+xml" - href="/api/ibexa/v2/content/objects/139" remoteId="b16d06d4c5ba7c37b26fa167b551dfc2" - id="139"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" - href="/api/ibexa/v2/content/types/48"/> - <Name>Ibexa Sp. z o. o.</Name> - <TranslatedName>Ibexa Sp. z o. o.</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" - href="/api/ibexa/v2/content/objects/139/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/139/currentversion"> - <Version media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/139/versions/6"> - <VersionInfo> - <id>677</id> - <versionNo>6</versionNo> - <status>PUBLISHED</status> - <modificationDate>2023-04-28T16:10:13+02:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" - href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-04-28T16:10:13+02:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo - media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Ibexa Sp. z o. o.</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" - href="/api/ibexa/v2/content/objects/139"/> - </VersionInfo> - <Fields> - <field> - <id>673</id> - <fieldDefinitionIdentifier>active</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_boolean</fieldTypeIdentifier> - <fieldValue>true</fieldValue> - </field> - <field> - <id>674</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Ibexa Sp. z o. o.</fieldValue> - </field> - <field> - <id>675</id> - <fieldDefinitionIdentifier>vat</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>123 456 789</fieldValue> - </field> - <field> - <id>676</id> - <fieldDefinitionIdentifier>website</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>https://ibexa.co</fieldValue> - </field> - <field> - <id>677</id> - <fieldDefinitionIdentifier>customer_group</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_customer_group</fieldTypeIdentifier> - <fieldValue> - <value key="customer_group_id">1</value> - </fieldValue> - </field> - <field> - <id>678</id> - <fieldDefinitionIdentifier>sales_rep</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">14</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/14</value> - </fieldValue> - </field> - <field> - <id>679</id> - <fieldDefinitionIdentifier>contact</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">144</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/144</value> - </fieldValue> - </field> - <field> - <id>680</id> - <fieldDefinitionIdentifier>default_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">142</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/142</value> - </fieldValue> - </field> - <field> - <id>681</id> - <fieldDefinitionIdentifier>billing_address</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_address</fieldTypeIdentifier> - <fieldValue> - <value key="name">HQ</value> - <value key="country">PL</value> - <value key="fields"> - <value key="region">Silesia</value> - <value key="locality">Katowice</value> - <value key="street">Gliwicka 6/5</value> - <value key="postal_code">40-079</value> - <value key="email">company@email.invalid</value> - <value key="phone_number">+48 000 000 000</value> - </value> - </fieldValue> - </field> - <field> - <id>683</id> - <fieldDefinitionIdentifier>members</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">140</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/140</value> - </fieldValue> - </field> - <field> - <id>682</id> - <fieldDefinitionIdentifier>address_book</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_object_relation</fieldTypeIdentifier> - <fieldValue> - <value key="destinationContentId">141</value> - <value key="destinationContentHref">/api/ibexa/v2/content/objects/141</value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" - href="/api/ibexa/v2/content/objects/139/versions/6/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/placeholder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - </CurrentVersion> - <Section media-type="application/vnd.ibexa.api.Section+xml" - href="/api/ibexa/v2/content/sections/10"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/140"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" - href="/api/ibexa/v2/content/objects/139/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2023-04-28T16:10:13+02:00</lastModificationDate> - <publishedDate>2023-04-28T15:44:55+02:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>6</currentVersionNo> - <alwaysAvailable>true</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" - href="/api/ibexa/v2/content/objects/139/objectstates"/> - </Content> - <billingAddress>HQ, Poland</billingAddress> - <contactId>144</contactId> - <salesRepresentativeId>14</salesRepresentativeId> - <defaultAddressId>142</defaultAddressId> - <addressBookId>141</addressBookId> - <membersId>140</membersId> - <MemberList media-type="application/vnd.ibexa.api.MemberList+xml" - href="/api/ibexa/v2/corporate/companies/139/members"/> - <Location media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/140"/> - <locationPath>/1/65/140/</locationPath> - <isActive>1</isActive> - </Company> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/144" id="144" - remoteId="1b3938c16adfa29996f3afff0b4a0032"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" - href="/api/ibexa/v2/content/types/47"/> - <name>Jay Kowalski</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" - href="/api/ibexa/v2/content/objects/144/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" - href="/api/ibexa/v2/content/sections/10"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" - href="/api/ibexa/v2/content/locations/1/65/140/141/145"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" - href="/api/ibexa/v2/content/objects/144/locations"/> - <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" - href="/api/ibexa/v2/user/users/144/groups"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <publishDate>2023-04-28T16:10:03+02:00</publishDate> - <lastModificationDate>2023-04-28T16:10:03+02:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" - href="/api/ibexa/v2/content/objects/144/versions/1"> - <VersionInfo> - <id>676</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2023-04-28T16:10:03+02:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" - href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-04-28T16:10:03+02:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Jay Kowalski</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" - href="/api/ibexa/v2/content/objects/144"/> - </VersionInfo> - <Fields> - <field> - <id>698</id> - <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Jay</fieldValue> - </field> - <field> - <id>699</id> - <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Kowalski</fieldValue> - </field> - <field> - <id>700</id> - <fieldDefinitionIdentifier>phone_number</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>+48 123 123 456</fieldValue> - </field> - <field> - <id>701</id> - <fieldDefinitionIdentifier>user</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> - <fieldValue> - <value key="hasStoredLogin">true</value> - <value key="contentId">144</value> - <value key="login">jay.kowalski</value> - <value key="email">jay.kowalski@email.invalid</value> - <value key="passwordUpdatedAt">1682691003</value> - <value key="enabled">true</value> - <value key="maxLogin">0</value> - <value key="plainPassword"/> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" - href="/api/ibexa/v2/content/objects/144/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/user/default_profile_image/initials.svg?initials=JK#profile_image</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <login>jay.kowalski</login> - <email>jay.kowalski@email.invalid</email> - <enabled>true</enabled> - <UserGroups media-type="application/vnd.ibexa.api.UserGroupList+xml" - href="/api/ibexa/v2/user/users/144/groups"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" - href="/api/ibexa/v2/user/users/144/roles"/> - </User> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/14"> - <identifier>Company Admin</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" - href="/api/ibexa/v2/user/roles/14/policies"/> - </Role> - </Member> - application/vnd.ibexa.api.Member+json: - schema: - $ref: '#/components/schemas/MemberWrapper' - example: - Member: - _media-type: application/vnd.ibexa.api.Member+json - _href: /api/ibexa/v2/corporate/companies/139/members/144 - id: 144 - name: 'Jay Kowalski' - Company: { _media-type: application/vnd.ibexa.api.Company+json, id: 139, name: 'Ibexa Sp. z o. o.', Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/139, _remoteId: b16d06d4c5ba7c37b26fa167b551dfc2, _id: 139, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/48 }, Name: 'Ibexa Sp. z o. o.', TranslatedName: 'Ibexa Sp. z o. o.', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/139/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/139/versions/6, VersionInfo: { id: 677, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:10:13+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:10:13+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ibexa Sp. z o. o.' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/139 } }, Fields: { field: [{ id: 673, fieldDefinitionIdentifier: active, languageCode: eng-GB, fieldTypeIdentifier: ibexa_boolean, fieldValue: true }, { id: 674, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ibexa Sp. z o. o.' }, { id: 675, fieldDefinitionIdentifier: vat, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '123 456 789' }, { id: 676, fieldDefinitionIdentifier: website, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'https://ibexa.co' }, { id: 677, fieldDefinitionIdentifier: customer_group, languageCode: eng-GB, fieldTypeIdentifier: ibexa_customer_group, fieldValue: { customer_group_id: 1 } }, { id: 678, fieldDefinitionIdentifier: sales_rep, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 14, destinationContentHref: /api/ibexa/v2/content/objects/14 } }, { id: 679, fieldDefinitionIdentifier: contact, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 144, destinationContentHref: /api/ibexa/v2/content/objects/144 } }, { id: 680, fieldDefinitionIdentifier: default_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 142, destinationContentHref: /api/ibexa/v2/content/objects/142 } }, { id: 681, fieldDefinitionIdentifier: billing_address, languageCode: eng-GB, fieldTypeIdentifier: ibexa_address, fieldValue: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } } }, { id: 683, fieldDefinitionIdentifier: members, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 140, destinationContentHref: /api/ibexa/v2/content/objects/140 } }, { id: 682, fieldDefinitionIdentifier: address_book, languageCode: eng-GB, fieldTypeIdentifier: ibexa_object_relation, fieldValue: { destinationContentId: 141, destinationContentHref: /api/ibexa/v2/content/objects/141 } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/139/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/139/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-28T16:10:13+02:00', publishedDate: '2023-04-28T15:44:55+02:00', mainLanguageCode: eng-GB, currentVersionNo: 6, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/139/objectstates } }, billingAddress: { name: HQ, country: PL, fields: { region: Silesia, locality: Katowice, street: 'Gliwicka 6/5', postal_code: 40-079, email: company@email.invalid, phone_number: '+48 000 000 000' } }, contactId: 144, salesRepresentativeId: 14, defaultAddressId: 142, addressBookId: 141, membersId: 140, MemberList: { _media-type: application/vnd.ibexa.api.MemberList+json, _href: /api/ibexa/v2/corporate/companies/139/members }, Location: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140 }, locationPath: /1/65/140/, isActive: true } - User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/144, _id: 144, _remoteId: 1b3938c16adfa29996f3afff0b4a0032, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/47 }, name: 'Jay Kowalski', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/144/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/65/140/141/145 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/144/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/144/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, publishDate: '2023-04-28T16:10:03+02:00', lastModificationDate: '2023-04-28T16:17:07+02:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/144/versions/6, VersionInfo: { id: 683, versionNo: 6, status: PUBLISHED, modificationDate: '2023-04-28T16:17:07+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-28T16:17:06+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jay Kowalski' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/144 } }, Fields: { field: [{ id: 698, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jay }, { id: 699, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Kowalski }, { id: 700, fieldDefinitionIdentifier: phone_number, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: '+48 123 123 456' }, { id: 701, fieldDefinitionIdentifier: user, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 144, login: jay.kowalski, email: jay.kowalski@email.invalid, passwordUpdatedAt: 1682691427, enabled: false, maxLogin: 5, plainPassword: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/144/versions/6/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/user/default_profile_image/initials.svg?initials=JK#profile_image', width: null, height: null, mimeType: image/svg+xml } }, login: jay.kowalski, email: jay.kowalski@email.invalid, enabled: false, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/144/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/144/roles } } - Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/15, identifier: 'Company Buyer', Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/15/policies } } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this company member.' - summary: 'Update a company member' - description: 'Updates a company member. PATCH or POST with header X-HTTP-Method-Override PATCH.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated company member is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The company input schema encoded in XML or JSON.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: companyId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: memberId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated MemberUpdateController resource' - content: - application/vnd.ibexa.api.MemberUpdate+xml: - schema: - $ref: '#/components/schemas/MemberUpdate' - x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/company_id/members/member_id/PATCH/MemberUpdate.xml.example' - application/vnd.ibexa.api.MemberUpdate+json: - schema: - $ref: '#/components/schemas/MemberUpdateWrapper' - x-ibexa-example-file: '@IbexaCorporateAccountBundle/Resources/api_platform/examples/corporate/companies/company_id/members/member_id/PATCH/MemberUpdate.json.example' - required: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - /corporate/sales-representatives: - get: - operationId: api_corporatesales-representatives_get - tags: - - 'Corporate Account' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.SalesRepresentativesList+xml: - schema: - $ref: '#/components/schemas/SalesRepresentativesList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <SalesRepresentativesList media-type="application/vnd.ibexa.api.SalesRepresentativesList+xml"> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/75" id="75" remoteId="f262e2fa12ae105b78a1b654e87a0874"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/> - <name>John Black</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/75/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/10"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/64/76"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/75/locations"/> - <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/75/groups"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <publishDate>2023-06-20T07:33:17+00:00</publishDate> - <lastModificationDate>2023-06-20T07:33:17+00:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/75/versions/1"> - <VersionInfo> - <id>536</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2023-06-20T07:33:17+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-06-20T07:33:17+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">John Black</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/75"/> - </VersionInfo> - <Fields> - <field> - <id>339</id> - <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>John</fieldValue> - </field> - <field> - <id>340</id> - <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Black</fieldValue> - </field> - <field> - <id>341</id> - <fieldDefinitionIdentifier>user_account</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> - <fieldValue> - <value key="hasStoredLogin">true</value> - <value key="contentId">75</value> - <value key="login">John Black</value> - <value key="email">j.black@ibexa.co</value> - <value key="passwordUpdatedAt">1687246397</value> - <value key="enabled">true</value> - <value key="maxLogin">0</value> - <value key="plainPassword"/> - </fieldValue> - </field> - <field> - <id>342</id> - <fieldDefinitionIdentifier>signature</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_text</fieldTypeIdentifier> - <fieldValue/> - </field> - <field> - <id>343</id> - <fieldDefinitionIdentifier>image</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_image</fieldTypeIdentifier> - <fieldValue/> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/75/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/user/default_profile_image/initials.svg?initials=JB#profile_image</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <login>John Black</login> - <email>j.black@ibexa.co</email> - <enabled>true</enabled> - <UserGroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/users/75/groups"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/75/roles"/> - </User> - </SalesRepresentativesList> - application/vnd.ibexa.api.SalesRepresentativesList+json: - schema: - $ref: '#/components/schemas/SalesRepresentativesListWrapper' - example: - SalesRepresentativesList: - _media-type: application/vnd.ibexa.api.SalesRepresentativesList+json - users: [{ _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/75, _id: 75, _remoteId: f262e2fa12ae105b78a1b654e87a0874, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 }, name: 'John Black', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/75/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/10 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/64/76 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/75/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/75/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, publishDate: '2023-06-20T07:33:17+00:00', lastModificationDate: '2023-06-20T07:33:17+00:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/75/versions/1, VersionInfo: { id: 536, versionNo: 1, status: PUBLISHED, modificationDate: '2023-06-20T07:33:17+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-06-20T07:33:17+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'John Black' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/75 } }, Fields: { field: [{ id: 339, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: John }, { id: 340, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Black }, { id: 341, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 75, login: 'John Black', email: j.black@ibexa.co, passwordUpdatedAt: 1687246397, enabled: true, maxLogin: 0, plainPassword: null } }, { id: 342, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 343, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/75/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/user/default_profile_image/initials.svg?initials=JB#profile_image', width: null, height: null, mimeType: image/svg+xml } }, login: 'John Black', email: j.black@ibexa.co, enabled: true, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/75/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/75/roles } }] - '401': - description: 'Error - the user is not authorized to read Sales Representatives List.' - content: - application/vnd.ibexa.api.ErrorMessage: - schema: - $ref: '#/components/schemas/ErrorMessage' - summary: 'Read list of sales representatives' - description: 'Returns paginated list of available sales representatives.' - parameters: - - - name: Accept - in: header - description: 'If set, helps to determine response format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - /discounts: - get: - operationId: api_discounts_get - tags: - - Discounts - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.DiscountList+json: - schema: - $ref: '#/components/schemas/DiscountList' - example: - DiscountList: - _media-type: application/vnd.ibexa.api.DiscountList+json - Discount: [{ _media-type: application/vnd.ibexa.api.Discount+json, id: 2, identifier: my_discount_identifier, name: 'My Discount', type: cart, label: 'My Discount label', labelDescription: 'My Discount description', priority: 1, isEnabled: true, createdAt: '2025-08-18T11:28:43+02:00', updatedAt: '2025-08-18T11:28:43+02:00', startDate: '2025-08-01T00:00:00+02:00', endDate: '2025-08-31T23:59:59+02:00', DiscountRule: { _media-type: application/vnd.ibexa.api.DiscountRule.FixedAmount+json, type: fixed_amount, expressionValues: { discount_amount: '12' } }, DiscountConditions: [{ _media-type: application/vnd.ibexa.api.DiscountCondition.IsInCurrency+json, identifier: is_in_currency, expressionValues: { currency_code: PLN } }], DiscountTranslations: [{ _media-type: application/vnd.ibexa.api.DiscountTranslation+json, languageCode: eng-GB, name: 'My Discount', description: 'My Discount description', label: 'My Discount label', labelDescription: 'My Discount description' }] }, { _media-type: application/vnd.ibexa.api.Discount+json, id: 3, identifier: my_another_discount, name: 'My Another Discount', type: catalog, label: 'Catalog discount label', labelDescription: 'Catalog discount description', priority: 1, isEnabled: true, createdAt: '2025-08-18T11:58:37+02:00', updatedAt: '2025-08-18T11:58:37+02:00', startDate: '2025-08-18T09:57:14+02:00', DiscountRule: { _media-type: application/vnd.ibexa.api.DiscountRule.Percentage+json, type: percentage, expressionValues: { discount_percentage: '10' } }, DiscountConditions: [{ _media-type: application/vnd.ibexa.api.DiscountCondition.IsInCurrency+json, identifier: is_in_currency, expressionValues: { currency_code: PLN } }], DiscountTranslations: [{ _media-type: application/vnd.ibexa.api.DiscountTranslation+json, languageCode: eng-GB, name: 'My Another Discount', description: 'My Another Discount Description', label: 'Catalog discount label', labelDescription: 'Catalog discount description' }] }] - summary: 'Get discounts' - description: 'Returns a list of all defined discounts' - parameters: - - - name: offset - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: false - schema: - type: integer - style: form - explode: false - allowReserved: false - example: 0 - - - name: limit - in: query - description: '' - required: false - deprecated: false - allowEmptyValue: false - schema: - type: integer - style: form - explode: false - allowReserved: false - example: 25 - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - post: - operationId: api_discounts_post - tags: - - Discounts - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Discount+json: - schema: - $ref: '#/components/schemas/Discount' - example: - Discount: - _media-type: application/vnd.ibexa.api.Discount+json - id: 2 - identifier: my_discount_identifier - name: 'My Discount' - type: cart - label: 'My Discount label' - labelDescription: 'My Discount description' - priority: 1 - isEnabled: true - createdAt: '2025-08-18T11:28:43+02:00' - updatedAt: '2025-08-18T11:28:43+02:00' - startDate: '2025-08-01T00:00:00+02:00' - endDate: '2025-08-31T23:59:59+02:00' - DiscountRule: { _media-type: application/vnd.ibexa.api.DiscountRule.FixedAmount+json, type: fixed_amount, expressionValues: { discount_amount: '12' } } - DiscountConditions: [{ _media-type: application/vnd.ibexa.api.DiscountCondition.IsInCurrency+json, identifier: is_in_currency, expressionValues: { currency_code: PLN } }] - DiscountTranslations: [{ _media-type: application/vnd.ibexa.api.DiscountTranslation+json, languageCode: eng-GB, name: 'My Discount', description: 'My Discount description', label: 'My Discount label', labelDescription: 'My Discount description' }] - '401': - description: 'Error - the user is not authorized to create a discount item.' - '406': - description: 'Error - the input data is not valid.' - summary: 'Create a discount' - description: 'Creates a new discount' - parameters: - - - name: X-Csrf-Token - in: header - description: 'CSRF token obtained during the authentication.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new DiscountCreateController resource' - content: - application/vnd.ibexa.api.DiscountCreate+json: - schema: - $ref: '#/components/schemas/DiscountCreate' - x-ibexa-example-file: '@IbexaDiscountsBundle/Resources/api_platform/examples/discounts/POST/DiscountCreate.json.example' - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/discounts/{identifier}': - get: - operationId: api_discounts_identifier_get - tags: - - Discounts - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Discount+json: - schema: - $ref: '#/components/schemas/Discount' - example: - Discount: - _media-type: application/vnd.ibexa.api.Discount+json - id: 2 - identifier: my_discount_identifier - name: 'My Discount' - type: cart - label: 'My Discount label' - labelDescription: 'My Discount description' - priority: 1 - isEnabled: true - createdAt: '2025-08-18T11:28:43+02:00' - updatedAt: '2025-08-18T11:28:43+02:00' - startDate: '2025-08-01T00:00:00+02:00' - endDate: '2025-08-31T23:59:59+02:00' - DiscountRule: { _media-type: application/vnd.ibexa.api.DiscountRule.FixedAmount+json, type: fixed_amount, expressionValues: { discount_amount: '12' } } - DiscountConditions: [{ _media-type: application/vnd.ibexa.api.DiscountCondition.IsInCurrency+json, identifier: is_in_currency, expressionValues: { currency_code: PLN } }] - DiscountTranslations: [{ _media-type: application/vnd.ibexa.api.DiscountTranslation+json, languageCode: eng-GB, name: 'My Discount', description: 'My Discount description', label: 'My Discount label', labelDescription: 'My Discount description' }] - '404': - description: 'Error - a discount of the given unique identifier is not found.' - '401': - description: 'Error - the user is not authorized to read this discount item.' - summary: 'Get a discount item by its unique identifier.' - description: 'Returns a discount item by its unique string identifier.' - parameters: - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - example: my_discount_identifier - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - delete: - operationId: api_discounts_identifier_delete - tags: - - Discounts - responses: - '204': - description: 'The discount is deleted.' - '404': - description: 'Error - a discount of the given unique identifier is not found.' - '401': - description: 'Error - the user is not authorized to delete a discount item.' - summary: 'Delete a discount item' - description: 'Deletes an existing discount item by its unique identifier' - parameters: - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - example: my_discount_identifier - - - name: X-Csrf-Token - in: header - description: 'CSRF token obtained during the authentication.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - patch: - operationId: api_discounts_identifier_patch - tags: - - Discounts - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Discount+json: - schema: - $ref: '#/components/schemas/Discount' - example: - Discount: - _media-type: application/vnd.ibexa.api.Discount+json - id: 2 - identifier: my_discount_identifier - name: 'My Discount' - type: cart - label: 'My Discount label' - labelDescription: 'My Discount description' - priority: 1 - isEnabled: true - createdAt: '2025-08-18T11:28:43+02:00' - updatedAt: '2025-08-18T11:28:43+02:00' - startDate: '2025-08-01T00:00:00+02:00' - endDate: '2025-08-31T23:59:59+02:00' - DiscountRule: { _media-type: application/vnd.ibexa.api.DiscountRule.FixedAmount+json, type: fixed_amount, expressionValues: { discount_amount: '12' } } - DiscountConditions: [{ _media-type: application/vnd.ibexa.api.DiscountCondition.IsInCurrency+json, identifier: is_in_currency, expressionValues: { currency_code: PLN } }] - DiscountTranslations: [{ _media-type: application/vnd.ibexa.api.DiscountTranslation+json, languageCode: eng-GB, name: 'My Discount', description: 'My Discount description', label: 'My Discount label', labelDescription: 'My Discount description' }] - '404': - description: 'Error - a discount of the given unique identifier is not found.' - '401': - description: 'Error - the user is not authorized to update a discount item.' - '406': - description: 'Error - the input data is not valid.' - summary: 'Update a discount' - description: 'Updates a new discount' - parameters: - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - example: my_discount_identifier - - - name: X-Csrf-Token - in: header - description: 'CSRF token obtained during the authentication.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated DiscountUpdateController resource' - content: - application/vnd.ibexa.api.DiscountUpdate+json: - schema: - $ref: '#/components/schemas/DiscountUpdate' - x-ibexa-example-file: '@IbexaDiscountsBundle/Resources/api_platform/examples/discounts/PATCH/DiscountUpdate.json.example' - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/discounts/{identifier}/disable': - post: - operationId: api_discounts_identifierdisable_post - tags: - - Discounts - responses: - '204': - description: 'The discount is disabled.' - '404': - description: 'Error - a discount of the given unique identifier is not found.' - '401': - description: 'Error - the user is not authorized to disable a discount item.' - summary: 'Disables a discount' - description: 'Disables a discount item by its unique identifier' - parameters: - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - example: my_discount_identifier - - - name: X-Csrf-Token - in: header - description: 'CSRF token obtained during the authentication.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new DiscountDisableController resource' - content: { } - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/discounts/{identifier}/enable': - post: - operationId: api_discounts_identifierenable_post - tags: - - Discounts - responses: - '204': - description: 'The discount is enabled.' - '404': - description: 'Error - a discount of the given unique identifier is not found.' - '401': - description: 'Error - the user is not authorized to enable a discount item.' - summary: 'Enables a discount' - description: 'Enables a discount item by its unique identifier' - parameters: - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - example: my_discount_identifier - - - name: X-Csrf-Token - in: header - description: 'CSRF token obtained during the authentication.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new DiscountEnableController resource' - content: { } - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/discounts/{id}': - get: - operationId: api_discounts_id_get - tags: - - Discounts - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Discount+json: - schema: - $ref: '#/components/schemas/Discount' - example: - Discount: - _media-type: application/vnd.ibexa.api.Discount+json - id: 2 - identifier: my_discount_identifier - name: 'My Discount' - type: cart - label: 'My Discount label' - labelDescription: 'My Discount description' - priority: 1 - isEnabled: true - createdAt: '2025-08-18T11:28:43+02:00' - updatedAt: '2025-08-18T11:28:43+02:00' - startDate: '2025-08-01T00:00:00+02:00' - endDate: '2025-08-31T23:59:59+02:00' - DiscountRule: { _media-type: application/vnd.ibexa.api.DiscountRule.FixedAmount+json, type: fixed_amount, expressionValues: { discount_amount: '12' } } - DiscountConditions: [{ _media-type: application/vnd.ibexa.api.DiscountCondition.IsInCurrency+json, identifier: is_in_currency, expressionValues: { currency_code: PLN } }] - DiscountTranslations: [{ _media-type: application/vnd.ibexa.api.DiscountTranslation+json, languageCode: eng-GB, name: 'My Discount', description: 'My Discount description', label: 'My Discount label', labelDescription: 'My Discount description' }] - '404': - description: 'Error - a discount of the given ID is not found.' - '401': - description: 'Error - the user is not authorized to read this discount item.' - summary: 'Get a discount item' - description: 'Returns a discount item by its ID.' - parameters: - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: integer - style: simple - explode: false - allowReserved: false - example: 1 - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - /languages: - get: - operationId: api_languages_get - tags: - - Language - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.LanguageList+xml: - schema: - $ref: '#/components/schemas/LanguageList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <LanguageList media-type="application/vnd.ibexa.api.LanguageList+xml" href="/api/ibexa/v2/languages"> - <Language media-type="application/vnd.ibexa.api.Language+xml" href="/api/ibexa/v2/languages/eng-GB"> - <languageId>2</languageId> - <languageCode>eng-GB</languageCode> - <name>English (United Kingdom)</name> - </Language> - <Language href="/api/ibexa/v2/languages/pol-PL" media-type="application/vnd.ibexa.api.Language+xml"> - <languageId>4</languageId> - <languageCode>pol-PL</languageCode> - <name>Polish (polski)</name> - </Language> - </LanguageList> - application/vnd.ibexa.api.LanguageList+json: - schema: - $ref: '#/components/schemas/LanguageListWrapper' - example: - LanguageList: - _media-type: application/vnd.ibexa.api.LanguageList+json - _href: /api/ibexa/v2/languages - Language: [{ _media-type: application/vnd.ibexa.api.Language+json, _href: /api/ibexa/v2/languages/eng-GB, languageId: 2, languageCode: eng-GB, name: 'English (United Kingdom)' }, { _href: /api/ibexa/v2/languages/pol-PL, _media-type: application/vnd.ibexa.api.Language+json, languageCode: pol-PL, languageId: 4, name: 'Polish (polski)' }] - summary: 'Language list' - description: 'Lists languages' - parameters: - - - name: Accept - in: header - description: 'If set, the list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/languages/{code}': - get: - operationId: api_languages_code_get - tags: - - Language - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Language+xml: - schema: - $ref: '#/components/schemas/Language' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Language media-type="application/vnd.ibexa.api.Language+xml" href="/api/ibexa/v2/languages/eng-GB"> - <languageId>2</languageId> - <languageCode>eng-GB</languageCode> - <name>English (United Kingdom)</name> - </Language> - application/vnd.ibexa.api.Language+json: - schema: - $ref: '#/components/schemas/LanguageWrapper' - example: - Language: - _media-type: application/vnd.ibexa.api.Language+json - _href: /api/ibexa/v2/languages/eng-GB - languageId: 2 - languageCode: eng-GB - name: 'English (United Kingdom)' - summary: 'Get language' - description: 'Retrieves a LanguageLoadByIdController resource.' - parameters: - - - name: Accept - in: header - description: 'If set, the language is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: code - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /content/locations: - get: - operationId: api_contentlocations_get - tags: - - Location - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.LocationList+xml: - schema: - $ref: '#/components/schemas/Location' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Location media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/42/96"> - <id>96</id> - <priority>0</priority> - <hidden>false</hidden> - <invisible>true</invisible> - <explicitlyHidden>false</explicitlyHidden> - <ParentLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/42"/> - <pathString>/1/2/42/96/</pathString> - <depth>3</depth> - <childCount>0</childCount> - <remoteId>58133c8c75230e5debe362a28b92d27a</remoteId> - <Children media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/locations/1/2/42/96/children"/> - <Content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/63"/> - <sortField>PATH</sortField> - <sortOrder>ASC</sortOrder> - <UrlAliases media-type="application/vnd.ibexa.api.UrlAliasRefList+xml" href="/api/ibexa/v2/content/locations/1/2/42/96/urlaliases"/> - <ContentInfo media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/63"> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/63" remoteId="211e99934c8fef5900e4813b96ec5c87" id="63"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2"/> - <Name>Art3</Name> - <TranslatedName>Art3</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/63/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/63/currentversion"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/63/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2021-06-28T11:34:17+00:00</lastModificationDate> - <publishedDate>2021-06-28T11:34:17+00:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>false</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/63/objectstates"/> - </Content> - </ContentInfo> - </Location> - application/vnd.ibexa.api.LocationList+json: - schema: - $ref: '#/components/schemas/LocationWrapper' - example: - Location: - _media-type: application/vnd.ibexa.api.Location+json - _href: /api/ibexa/v2/content/locations/1/2/59/114 - id: 114 - priority: 0 - hidden: false - invisible: false - explicitlyHidden: false - ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/59 } - pathString: /1/2/59/114/ - depth: 3 - childCount: 0 - remoteId: 47a1e4ee082fb64e93a822dcfe3a5614 - Children: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/children } - Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/59 } - sortField: PATH - sortOrder: ASC - UrlAliases: { _media-type: application/vnd.ibexa.api.UrlAliasRefList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/urlaliases } - ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, _remoteId: 0fe1b1543f886b0becd4d9b2c7c517d0, _id: 59, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2 }, Name: Art1, TranslatedName: Art1, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/59/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/59/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/59/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-06-28T11:33:01+00:00', publishedDate: '2021-06-28T11:33:01+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: false, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/59/objectstates } } } - '307': - description: 'Temporary redirect to the main resource URL.' - '404': - description: 'Error - the Location with the given ID (remote ID or URL Alias) does not exist.' - summary: 'Load Locations by id/remoteId/urlAlias' - description: 'Loads the Location for a given ID (x), remote ID or URL alias.' - parameters: - - - name: Accept - in: header - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/content/locations/{path}': - get: - operationId: api_contentlocations_path_get - tags: - - Location - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Location+xml: - schema: - $ref: '#/components/schemas/Location' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Location media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/42/96"> - <id>96</id> - <priority>0</priority> - <hidden>false</hidden> - <invisible>true</invisible> - <explicitlyHidden>false</explicitlyHidden> - <ParentLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/42"/> - <pathString>/1/2/42/96/</pathString> - <depth>3</depth> - <childCount>0</childCount> - <remoteId>58133c8c75230e5debe362a28b92d27a</remoteId> - <Children media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/locations/1/2/42/96/children"/> - <Content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/63"/> - <sortField>PATH</sortField> - <sortOrder>ASC</sortOrder> - <UrlAliases media-type="application/vnd.ibexa.api.UrlAliasRefList+xml" href="/api/ibexa/v2/content/locations/1/2/42/96/urlaliases"/> - <ContentInfo media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/63"> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/63" remoteId="211e99934c8fef5900e4813b96ec5c87" id="63"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2"/> - <Name>Art3</Name> - <TranslatedName>Art3</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/63/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/63/currentversion"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/63/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2021-06-28T11:34:17+00:00</lastModificationDate> - <publishedDate>2021-06-28T11:34:17+00:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>false</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/63/objectstates"/> - </Content> - </ContentInfo> - </Location> - application/vnd.ibexa.api.Location+json: - schema: - $ref: '#/components/schemas/LocationWrapper' - example: - Location: - _media-type: application/vnd.ibexa.api.Location+json - _href: /api/ibexa/v2/content/locations/1/2/59/114 - id: 114 - priority: 0 - hidden: false - invisible: false - explicitlyHidden: false - ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/59 } - pathString: /1/2/59/114/ - depth: 3 - childCount: 0 - remoteId: 47a1e4ee082fb64e93a822dcfe3a5614 - Children: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/children } - Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/59 } - sortField: PATH - sortOrder: ASC - UrlAliases: { _media-type: application/vnd.ibexa.api.UrlAliasRefList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/urlaliases } - ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, _remoteId: 0fe1b1543f886b0becd4d9b2c7c517d0, _id: 59, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2 }, Name: Art1, TranslatedName: Art1, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/59/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/59/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/59/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-06-28T11:33:01+00:00', publishedDate: '2021-06-28T11:33:01+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: false, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/59/objectstates } } } - '401': - description: 'Error - the user is not authorized to read this Location.' - '404': - description: 'Error - the Location with the given path does not exist.' - summary: 'Load Location' - description: "Loads the Location for the given path e.g. '/content/locations/1/2/61'." - parameters: - - - name: Accept - in: header - description: 'If set, the new Location is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_contentlocations_path_delete - tags: - - Location - responses: - '204': - description: 'No Content - deleted.' - '401': - description: 'Error - the user is not authorized to delete this subtree.' - '404': - description: 'Error - the Location with the given ID does not exist.' - summary: 'Delete subtree' - description: 'Deletes the complete subtree for the given path. Every content item which does not have any other Location is deleted. Otherwise the deleted Location is removed from the content item. The children are recursively deleted.' - parameters: - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_contentlocations_path_patch - tags: - - Location - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Location+xml: - schema: - $ref: '#/components/schemas/Location' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Location media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/42/96"> - <id>96</id> - <priority>0</priority> - <hidden>false</hidden> - <invisible>true</invisible> - <explicitlyHidden>false</explicitlyHidden> - <ParentLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/42"/> - <pathString>/1/2/42/96/</pathString> - <depth>3</depth> - <childCount>0</childCount> - <remoteId>58133c8c75230e5debe362a28b92d27a</remoteId> - <Children media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/locations/1/2/42/96/children"/> - <Content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/63"/> - <sortField>PATH</sortField> - <sortOrder>ASC</sortOrder> - <UrlAliases media-type="application/vnd.ibexa.api.UrlAliasRefList+xml" href="/api/ibexa/v2/content/locations/1/2/42/96/urlaliases"/> - <ContentInfo media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/63"> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/63" remoteId="211e99934c8fef5900e4813b96ec5c87" id="63"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2"/> - <Name>Art3</Name> - <TranslatedName>Art3</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/63/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/63/currentversion"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/63/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2021-06-28T11:34:17+00:00</lastModificationDate> - <publishedDate>2021-06-28T11:34:17+00:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>false</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/63/objectstates"/> - </Content> - </ContentInfo> - </Location> - application/vnd.ibexa.api.Location+json: - schema: - $ref: '#/components/schemas/LocationWrapper' - example: - Location: - _media-type: application/vnd.ibexa.api.Location+json - _href: /api/ibexa/v2/content/locations/1/2/59/114 - id: 114 - priority: 0 - hidden: false - invisible: false - explicitlyHidden: false - ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/59 } - pathString: /1/2/59/114/ - depth: 3 - childCount: 0 - remoteId: 47a1e4ee082fb64e93a822dcfe3a5614 - Children: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/children } - Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/59 } - sortField: PATH - sortOrder: ASC - UrlAliases: { _media-type: application/vnd.ibexa.api.UrlAliasRefList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/urlaliases } - ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, _remoteId: 0fe1b1543f886b0becd4d9b2c7c517d0, _id: 59, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2 }, Name: Art1, TranslatedName: Art1, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/59/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/59/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/59/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-06-28T11:33:01+00:00', publishedDate: '2021-06-28T11:33:01+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: false, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/59/objectstates } } } - '401': - description: 'Error - the user is not authorized to update this Location.' - '404': - description: 'Error - the Location with the given ID does not exist.' - summary: 'Update Location' - description: 'Updates the Location. This method can also be used to hide/reveal a Location via the hidden field in the LocationUpdate. PATCH or POST with header X-HTTP-Method-Override PATCH.' - parameters: - - - name: Accept - in: header - description: 'If set, the Location is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The LocationUpdate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated LocationUpdateController resource' - content: - application/vnd.ibexa.api.LocationUpdate+xml: - schema: - $ref: '#/components/schemas/LocationUpdateStruct' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/locations/location_id/PATCH/LocationUpdate.xml.example' - application/vnd.ibexa.api.LocationUpdate+json: - schema: - $ref: '#/components/schemas/LocationUpdateStructWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/locations/location_id/PATCH/LocationUpdate.json.example' - required: false - deprecated: false - '/content/locations/{path}/children': - get: - operationId: api_contentlocations_pathchildren_get - tags: - - Location - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.LocationList+xml: - schema: - $ref: '#/components/schemas/LocationList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <LocationList media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/63/locations"> - <Location media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/57/65"/> - </LocationList> - application/vnd.ibexa.api.LocationList+json: - schema: - $ref: '#/components/schemas/LocationListWrapper' - '401': - description: 'Error - the user is not authorized to read this content item.' - '404': - description: 'Error - the content item with the given ID does not exist.' - summary: 'Get child Locations.' - description: 'Loads all child Locations for the given parent Location.' - parameters: - - - name: Accept - in: header - description: 'If set, the new Location list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/content/locations/{path}/urlaliases': - get: - operationId: api_contentlocations_pathurlaliases_get - tags: - - Location - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.UrlAliasRefList+xml: - schema: - $ref: '#/components/schemas/UrlAliasRefList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UrlAliasRefList media-type="application/vnd.ibexa.api.UrlAliasRefList+xml" href="/api/ibexa/v2/content/urlaliases"> - <UrlAlias media-type="application/vnd.ibexa.api.UrlAlias+xml" href="/api/ibexa/v2/content/urlaliases/0-2cecdff5f90b8595d76b68c417b09f36" /> - </UrlAliasRefList> - application/vnd.ibexa.api.UrlAliasRefList+json: - schema: - $ref: '#/components/schemas/UrlAliasRefListWrapper' - '400': - description: 'Error - The user has no permission to read URL aliases.' - '401': - description: 'Error - The Location was not found.' - summary: 'List URL aliases for Location' - description: 'Returns the list of URL aliases for a Location.' - parameters: - - - name: Accept - in: header - description: 'If set, the URL alias list contains only references and is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /content/objectstategroups: - get: - operationId: api_contentobjectstategroups_get - tags: - - 'Object State Groups' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ObjectStateGroupList+xml: - schema: - $ref: '#/components/schemas/ObjectStateGroupList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ObjectStateGroupList media-type="application/vnd.ibexa.api.ObjectStateGroupList+xml" href="/api/ibexa/v2/content/objectstategroups"> - <ObjectStateGroup media-type="application/vnd.ibexa.api.ObjectStateGroup+xml" href="/api/ibexa/v2/content/objectstategroups/2"> - <id>2</id> - <identifier>ibexa_lock</identifier> - <defaultLanguageCode>eng-GB</defaultLanguageCode> - <languageCodes>eng-GB</languageCodes> - <ObjectStates media-type="application/vnd.ibexa.api.ObjectStateList+xml" href="/api/ibexa/v2/content/objectstategroups/2/objectstates"/> - <names> - <value languageCode="eng-GB">Lock</value> - </names> - <descriptions> - <value languageCode="eng-GB"></value> - </descriptions> - </ObjectStateGroup> - <ObjectStateGroup media-type="application/vnd.ibexa.api.ObjectStateGroup+xml" href="/api/ibexa/v2/content/objectstategroups/3"> - <id>3</id> - <identifier>accessibility</identifier> - <defaultLanguageCode>eng-GB</defaultLanguageCode> - <languageCodes>eng-GB</languageCodes> - <ObjectStates media-type="application/vnd.ibexa.api.ObjectStateList+xml" href="/api/ibexa/v2/content/objectstategroups/3/objectstates"/> - <names> - <value languageCode="eng-GB">Accessibility</value> - </names> - <descriptions> - <value languageCode="eng-GB"></value> - </descriptions> - </ObjectStateGroup> - <ObjectStateGroup media-type="application/vnd.ibexa.api.ObjectStateGroup+xml" href="/api/ibexa/v2/content/objectstategroups/6"> - <id>6</id> - <identifier>custom-states</identifier> - <defaultLanguageCode>eng-GB</defaultLanguageCode> - <languageCodes>eng-GB</languageCodes> - <ObjectStates media-type="application/vnd.ibexa.api.ObjectStateList+xml" href="/api/ibexa/v2/content/objectstategroups/6/objectstates"/> - <names> - <value languageCode="eng-GB">Custom State</value> - </names> - <descriptions> - <value languageCode="eng-GB">Custom Object state</value> - </descriptions> - </ObjectStateGroup> - </ObjectStateGroupList> - application/vnd.ibexa.api.ObjectStateGroupList+json: - schema: - $ref: '#/components/schemas/ObjectStateGroupListWrapper' - example: - ObjectStateGroupList: - _media-type: application/vnd.ibexa.api.ObjectStateGroupList+json - _href: /api/ibexa/v2/content/objectstategroups - ObjectStateGroup: [{ _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/2, id: 2, identifier: ibexa_lock, defaultLanguageCode: eng-GB, languageCodes: eng-GB, ObjectStates: { _media-type: application/vnd.ibexa.api.ObjectStateList+json, _href: /api/ibexa/v2/content/objectstategroups/2/objectstates }, names: { value: [{ _languageCode: eng-GB, '#text': Lock }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] } }, { _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/3, id: 3, identifier: accessibility, defaultLanguageCode: eng-GB, languageCodes: eng-GB, ObjectStates: { _media-type: application/vnd.ibexa.api.ObjectStateList+json, _href: /api/ibexa/v2/content/objectstategroups/3/objectstates }, names: { value: [{ _languageCode: eng-GB, '#text': Accessibility }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] } }, { _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/6, id: 6, identifier: custom-states, defaultLanguageCode: eng-GB, languageCodes: eng-GB, ObjectStates: { _media-type: application/vnd.ibexa.api.ObjectStateList+json, _href: /api/ibexa/v2/content/objectstategroups/6/objectstates }, names: { value: [{ _languageCode: eng-GB, '#text': 'Custom State' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Custom Object state' }] } }] - '401': - description: 'Error - The user has no permission to read Object state groups.' - summary: 'List Object state groups' - description: 'Returns a list of all Object state groups.' - parameters: - - - name: Accept - in: header - description: 'If set, the Object state group list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_contentobjectstategroups_post - tags: - - 'Object State Groups' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.ObjectStateGroup+xml: - schema: - $ref: '#/components/schemas/ObjectStateGroup' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ObjectStateGroup media-type="application/vnd.ibexa.api.ObjectStateGroup+xml" href="/api/ibexa/v2/content/objectstategroups/7"> - <id>7</id> - <identifier>custom-states</identifier> - <defaultLanguageCode>eng-GB</defaultLanguageCode> - <languageCodes>eng-GB</languageCodes> - <ObjectStates media-type="application/vnd.ibexa.api.ObjectStateList+xml" href="/api/ibexa/v2/content/objectstategroups/7/objectstates"/> - <names> - <value languageCode="eng-GB">New Custom State name</value> - </names> - <descriptions> - <value languageCode="eng-GB">Custom Object state</value> - </descriptions> - </ObjectStateGroup> - application/vnd.ibexa.api.ObjectStateGroup+json: - schema: - $ref: '#/components/schemas/ObjectStateGroupWrapper' - example: - ObjectStateGroup: - _media-type: application/vnd.ibexa.api.ObjectStateGroup+json - _href: /api/ibexa/v2/content/objectstategroups/7 - id: 7 - identifier: custom-states - defaultLanguageCode: eng-GB - languageCodes: eng-GB - ObjectStates: { _media-type: application/vnd.ibexa.api.ObjectStateList+json, _href: /api/ibexa/v2/content/objectstategroups/7/objectstates } - names: { value: [{ _languageCode: eng-GB, '#text': 'New Custom State name' }] } - descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Custom Object state' }] } - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - The user is not authorized to create an Object state group.' - '403': - description: 'Error - An Object state group with the same identifier already exists.' - summary: 'Create Object state group' - description: 'Creates a new Object state group.' - parameters: - - - name: Accept - in: header - description: 'If set, the new Object state group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The Object state group input schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ObjectStateGroupCreateController resource' - content: - application/vnd.ibexa.api.ObjectStateGroupCreate+xml: - schema: - $ref: '#/components/schemas/ObjectStateGroupCreate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/POST/ObjectStateGroupCreate.xml.example' - application/vnd.ibexa.api.ObjectStateGroupCreate+json: - schema: - $ref: '#/components/schemas/ObjectStateGroupCreateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/POST/ObjectStateGroupCreate.json.example' - required: false - deprecated: false - '/content/objectstategroups/{objectStateGroupId}': - get: - operationId: api_contentobjectstategroups_objectStateGroupId_get - tags: - - 'Object State Groups' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ObjectStateGroup+xml: - schema: - $ref: '#/components/schemas/ObjectStateGroup' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ObjectStateGroup media-type="application/vnd.ibexa.api.ObjectStateGroup+xml" href="/api/ibexa/v2/content/objectstategroups/7"> - <id>7</id> - <identifier>custom-states</identifier> - <defaultLanguageCode>eng-GB</defaultLanguageCode> - <languageCodes>eng-GB</languageCodes> - <ObjectStates media-type="application/vnd.ibexa.api.ObjectStateList+xml" href="/api/ibexa/v2/content/objectstategroups/7/objectstates"/> - <names> - <value languageCode="eng-GB">New Custom State name</value> - </names> - <descriptions> - <value languageCode="eng-GB">Custom Object state</value> - </descriptions> - </ObjectStateGroup> - application/vnd.ibexa.api.ObjectStateGroup+json: - schema: - $ref: '#/components/schemas/ObjectStateGroupWrapper' - example: - ObjectStateGroup: - _media-type: application/vnd.ibexa.api.ObjectStateGroup+json - _href: /api/ibexa/v2/content/objectstategroups/7 - id: 7 - identifier: custom-states - defaultLanguageCode: eng-GB - languageCodes: eng-GB - ObjectStates: { _media-type: application/vnd.ibexa.api.ObjectStateList+json, _href: /api/ibexa/v2/content/objectstategroups/7/objectstates } - names: { value: [{ _languageCode: eng-GB, '#text': 'New Custom State name' }] } - descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Custom Object state' }] } - '401': - description: 'Error - The user is not authorized to read this Object state group.' - '404': - description: 'Error - The Object state group does not exist.' - summary: 'Get Object state group' - description: 'Returns the Object state group with the provided ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the Object state group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: objectStateGroupId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_contentobjectstategroups_objectStateGroupId_delete - tags: - - 'Object State Groups' - responses: - '204': - description: 'No Content - Object state group deleted.' - '401': - description: 'Error - The user is not authorized to delete an Object state group.' - '404': - description: 'Error - The Object state group does not exist.' - summary: 'Delete Object state group' - description: 'Deletes the given Object state group including Object states.' - parameters: - - - name: objectStateGroupId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_contentobjectstategroups_objectStateGroupId_patch - tags: - - 'Object State Groups' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ObjectStateGroup+xml: - schema: - $ref: '#/components/schemas/ObjectStateGroup' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ObjectStateGroup media-type="application/vnd.ibexa.api.ObjectStateGroup+xml" href="/api/ibexa/v2/content/objectstategroups/7"> - <id>7</id> - <identifier>custom-states</identifier> - <defaultLanguageCode>eng-GB</defaultLanguageCode> - <languageCodes>eng-GB</languageCodes> - <ObjectStates media-type="application/vnd.ibexa.api.ObjectStateList+xml" href="/api/ibexa/v2/content/objectstategroups/7/objectstates"/> - <names> - <value languageCode="eng-GB">New Custom State name</value> - </names> - <descriptions> - <value languageCode="eng-GB">Custom Object state</value> - </descriptions> - </ObjectStateGroup> - application/vnd.ibexa.api.ObjectStateGroup+json: - schema: - $ref: '#/components/schemas/ObjectStateGroupWrapper' - example: - ObjectStateGroup: - _media-type: application/vnd.ibexa.api.ObjectStateGroup+json - _href: /api/ibexa/v2/content/objectstategroups/7 - id: 7 - identifier: custom-states - defaultLanguageCode: eng-GB - languageCodes: eng-GB - ObjectStates: { _media-type: application/vnd.ibexa.api.ObjectStateList+json, _href: /api/ibexa/v2/content/objectstategroups/7/objectstates } - names: { value: [{ _languageCode: eng-GB, '#text': 'New Custom State name' }] } - descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Custom Object state' }] } - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - The user is not authorized to update an Object state group.' - '403': - description: 'Error - An Object state group with the provided identifier already exists.' - '412': - description: 'Error - The current ETag does not match the one provided in the If-Match header.' - summary: 'Update Object state group' - description: 'Updates an Object state group. PATCH or POST with header X-HTTP-Method-Override PATCH.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated Object state group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The Object state group input schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: objectStateGroupId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated ObjectStateGroupUpdateController resource' - content: - application/vnd.ibexa.api.ObjectStateGroupUpdate+xml: - schema: - $ref: '#/components/schemas/ObjectStateGroupUpdate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/object_state_group_id/PATCH/ObjectStateGroupUpdate.xml.example' - application/vnd.ibexa.api.ObjectStateGroupUpdate+json: - schema: - $ref: '#/components/schemas/ObjectStateGroupUpdateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/object_state_group_id/PATCH/ObjectStateGroupUpdate.json.example' - required: false - deprecated: false - '/content/objectstategroups/{objectStateGroupId}/objectstates': - get: - operationId: api_contentobjectstategroups_objectStateGroupIdobjectstates_get - tags: - - 'Object State Groups' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ObjectStateList+xml: - schema: - $ref: '#/components/schemas/ObjectStateList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ObjectStateList media-type="application/vnd.ibexa.api.ObjectStateList+xml" href="/api/ibexa/v2/content/objectstategroups/2/objectstates"> - <ObjectState media-type="application/vnd.ibexa.api.ObjectState+xml" href="/api/ibexa/v2/content/objectstategroups/2/objectstates/1"> - <id>1</id> - <identifier>not_locked</identifier> - <priority>0</priority> - <ObjectStateGroup media-type="application/vnd.ibexa.api.ObjectStateGroup+xml" href="/api/ibexa/v2/content/objectstategroups/2"/> - <defaultLanguageCode>eng-GB</defaultLanguageCode> - <languageCodes>eng-GB</languageCodes> - <names> - <value languageCode="eng-GB">Not locked</value> - </names> - <descriptions> - <value languageCode="eng-GB"></value> - </descriptions> - </ObjectState> - <ObjectState media-type="application/vnd.ibexa.api.ObjectState+xml" href="/api/ibexa/v2/content/objectstategroups/2/objectstates/2"> - <id>2</id> - <identifier>locked</identifier> - <priority>1</priority> - <ObjectStateGroup media-type="application/vnd.ibexa.api.ObjectStateGroup+xml" href="/api/ibexa/v2/content/objectstategroups/2"/> - <defaultLanguageCode>eng-GB</defaultLanguageCode> - <languageCodes>eng-GB</languageCodes> - <names> - <value languageCode="eng-GB">Locked</value> - </names> - <descriptions> - <value languageCode="eng-GB"></value> - </descriptions> - </ObjectState> - </ObjectStateList> - application/vnd.ibexa.api.ObjectStateList+json: - schema: - $ref: '#/components/schemas/ObjectStateListWrapper' - example: - ObjectStateList: - _media-type: application/vnd.ibexa.api.ObjectStateList+json - _href: /api/ibexa/v2/content/objectstategroups/2/objectstates - ObjectState: [{ _media-type: application/vnd.ibexa.api.ObjectState+json, _href: /api/ibexa/v2/content/objectstategroups/2/objectstates/1, id: 1, identifier: not_locked, priority: 0, ObjectStateGroup: { _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/2 }, defaultLanguageCode: eng-GB, languageCodes: eng-GB, names: { value: [{ _languageCode: eng-GB, '#text': 'Not locked' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] } }, { _media-type: application/vnd.ibexa.api.ObjectState+json, _href: /api/ibexa/v2/content/objectstategroups/2/objectstates/2, id: 2, identifier: locked, priority: 1, ObjectStateGroup: { _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/2 }, defaultLanguageCode: eng-GB, languageCodes: eng-GB, names: { value: [{ _languageCode: eng-GB, '#text': Locked }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] } }] - '401': - description: 'Error - The user has no permission to read Object states.' - summary: 'List Object states' - description: 'Returns a list of all Object states of the given group.' - parameters: - - - name: Accept - in: header - description: 'If set, the Object state list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: objectStateGroupId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_contentobjectstategroups_objectStateGroupIdobjectstates_post - tags: - - 'Object State Groups' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.ObjectState+xml: - schema: - $ref: '#/components/schemas/ObjectState' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ObjectState media-type="application/vnd.ibexa.api.ObjectState+xml" href="/api/ibexa/v2/content/objectstategroups/2/objectstates/2"> - <id>2</id> - <identifier>locked</identifier> - <priority>1</priority> - <ObjectStateGroup media-type="application/vnd.ibexa.api.ObjectStateGroup+xml" href="/api/ibexa/v2/content/objectstategroups/2"/> - <defaultLanguageCode>eng-GB</defaultLanguageCode> - <languageCodes>eng-GB</languageCodes> - <names> - <value languageCode="eng-GB">New Object State name</value> - </names> - <descriptions> - <value languageCode="eng-GB"></value> - </descriptions> - </ObjectState> - application/vnd.ibexa.api.ObjectState+json: - schema: - $ref: '#/components/schemas/ObjectStateWrapper' - example: - ObjectState: - _media-type: application/vnd.ibexa.api.ObjectState+json - _href: /api/ibexa/v2/content/objectstategroups/6/objectstates/9 - id: 9 - identifier: closed - priority: 1 - ObjectStateGroup: { _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/6 } - defaultLanguageCode: eng-GB - languageCodes: eng-GB - names: { value: [{ _languageCode: eng-GB, '#text': 'New Object State name' }] } - descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] } - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - The user is not authorized to create an Object state.' - '403': - description: 'Error - An Object state with the same identifier already exists in the given group.' - summary: 'Create Object state' - description: 'Creates a new Object state.' - parameters: - - - name: Accept - in: header - description: 'If set, the new Object state is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The Object state input schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: objectStateGroupId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ObjectStateCreateController resource' - content: - application/vnd.ibexa.api.ObjectStateCreate+xml: - schema: - $ref: '#/components/schemas/ObjectStateCreate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/object_state_group_id/objectstates/POST/ObjectStateCreate.xml.example' - application/vnd.ibexa.api.ObjectStateCreate+json: - schema: - $ref: '#/components/schemas/ObjectStateCreateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/object_state_group_id/objectstates/POST/ObjectStateCreate.json.example' - required: false - deprecated: false - '/content/objectstategroups/{objectStateGroupId}/objectstates/{objectStateId}': - get: - operationId: api_contentobjectstategroups_objectStateGroupIdobjectstates_objectStateId_get - tags: - - 'Object State Groups' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ObjectState+xml: - schema: - $ref: '#/components/schemas/ObjectState' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ObjectState media-type="application/vnd.ibexa.api.ObjectState+xml" href="/api/ibexa/v2/content/objectstategroups/2/objectstates/2"> - <id>2</id> - <identifier>locked</identifier> - <priority>1</priority> - <ObjectStateGroup media-type="application/vnd.ibexa.api.ObjectStateGroup+xml" href="/api/ibexa/v2/content/objectstategroups/2"/> - <defaultLanguageCode>eng-GB</defaultLanguageCode> - <languageCodes>eng-GB</languageCodes> - <names> - <value languageCode="eng-GB">New Object State name</value> - </names> - <descriptions> - <value languageCode="eng-GB"></value> - </descriptions> - </ObjectState> - application/vnd.ibexa.api.ObjectState+json: - schema: - $ref: '#/components/schemas/ObjectStateWrapper' - example: - ObjectState: - _media-type: application/vnd.ibexa.api.ObjectState+json - _href: /api/ibexa/v2/content/objectstategroups/6/objectstates/9 - id: 9 - identifier: closed - priority: 1 - ObjectStateGroup: { _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/6 } - defaultLanguageCode: eng-GB - languageCodes: eng-GB - names: { value: [{ _languageCode: eng-GB, '#text': 'New Object State name' }] } - descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] } - '401': - description: 'Error - The user is not authorized to read this Object state.' - '404': - description: 'Error - The Object state does not exist.' - summary: 'Get Object state' - description: 'Returns the Object state.' - parameters: - - - name: Accept - in: header - description: 'If set, the Object State is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: objectStateGroupId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: objectStateId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_contentobjectstategroups_objectStateGroupIdobjectstates_objectStateId_delete - tags: - - 'Object State Groups' - responses: - '204': - description: 'No Content - Object state deleted.' - '401': - description: 'Error - The user is not authorized to delete an Object state.' - '404': - description: 'Error - The Object state does not exist.' - summary: 'Delete Object state' - description: 'Deletes provided Object state.' - parameters: - - - name: objectStateGroupId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: objectStateId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_contentobjectstategroups_objectStateGroupIdobjectstates_objectStateId_patch - tags: - - 'Object State Groups' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ObjectState+xml: - schema: - $ref: '#/components/schemas/ObjectState' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ObjectState media-type="application/vnd.ibexa.api.ObjectState+xml" href="/api/ibexa/v2/content/objectstategroups/2/objectstates/2"> - <id>2</id> - <identifier>locked</identifier> - <priority>1</priority> - <ObjectStateGroup media-type="application/vnd.ibexa.api.ObjectStateGroup+xml" href="/api/ibexa/v2/content/objectstategroups/2"/> - <defaultLanguageCode>eng-GB</defaultLanguageCode> - <languageCodes>eng-GB</languageCodes> - <names> - <value languageCode="eng-GB">New Object State name</value> - </names> - <descriptions> - <value languageCode="eng-GB"></value> - </descriptions> - </ObjectState> - application/vnd.ibexa.api.ObjectState+json: - schema: - $ref: '#/components/schemas/ObjectStateWrapper' - example: - ObjectState: - _media-type: application/vnd.ibexa.api.ObjectState+json - _href: /api/ibexa/v2/content/objectstategroups/6/objectstates/9 - id: 9 - identifier: closed - priority: 1 - ObjectStateGroup: { _media-type: application/vnd.ibexa.api.ObjectStateGroup+json, _href: /api/ibexa/v2/content/objectstategroups/6 } - defaultLanguageCode: eng-GB - languageCodes: eng-GB - names: { value: [{ _languageCode: eng-GB, '#text': 'New Object State name' }] } - descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] } - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - The user is not authorized to update the Object state.' - '403': - description: 'Error - An Object state with the provided identifier already exists in this group.' - '412': - description: 'Error - The current ETag does not match the one provided in the If-Match header.' - summary: 'Update Object state' - description: 'Updates an Object state. PATCH or POST with header X-HTTP-Method-Override PATCH.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated Object state is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The Object state input schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: objectStateGroupId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: objectStateId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated ObjectStateUpdateController resource' - content: - application/vnd.ibexa.api.ObjectStateUpdate+xml: - schema: - $ref: '#/components/schemas/ObjectStateUpdate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/object_state_group_id/objectstates/object_state_id/PATCH/ObjectStateUpdate.xml.example' - application/vnd.ibexa.api.ObjectStateUpdate+json: - schema: - $ref: '#/components/schemas/ObjectStateUpdateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objectstategroups/object_state_group_id/objectstates/object_state_id/PATCH/ObjectStateUpdate.json.example' - required: false - deprecated: false - /content/objects: - get: - operationId: api_contentobjects_get - tags: - - Objects - responses: - '307': - description: 'Temporary redirect to `GET /content/objects/{contentId}` equivalent.' - headers: - Location: - description: 'Contains the prefixed `/content/objects/{contentId}` absolute path of the content item.' - schema: - type: string - '400': - description: 'Error - the required `remoteId` query parameter is missing.' - '404': - description: 'Error - the content with the given remote ID does not exist.' - summary: 'Load content by remote ID' - description: 'Loads content item for a given remote ID.' - parameters: - - - name: remoteId - in: query - description: 'Remote ID of the content item.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: form - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_contentobjects_post - tags: - - Objects - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.Content+xml: - schema: - $ref: '#/components/schemas/Content' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/54" remoteId="9e863fbb0fb835ce050032b4f00de61d" id="54"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1"/> - <Name>Forms</Name> - <TranslatedName>Forms</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/54/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/54/currentversion"> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/54/versions/1"> - <VersionInfo> - <id>514</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2018-09-17T06:48:13+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2018-09-17T06:48:13+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Forms</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/54"/> - </VersionInfo> - <Fields> - <field> - <id>249</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Forms</fieldValue> - </field> - <field> - <id>250</id> - <fieldDefinitionIdentifier>short_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue/> - </field> - <field> - <id>251</id> - <fieldDefinitionIdentifier>short_description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_richtext</fieldTypeIdentifier> - <fieldValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </fieldValue> - </field> - <field> - <id>252</id> - <fieldDefinitionIdentifier>description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_richtext</fieldTypeIdentifier> - <fieldValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/54/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/bundles/ezplatformadminui/img/ez-icons.svg#folder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - </CurrentVersion> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/6"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/55"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/54/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2018-09-17T06:48:13+00:00</lastModificationDate> - <publishedDate>2018-09-17T06:48:13+00:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>false</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/54/objectstates"/> - </Content> - application/vnd.ibexa.api.Content+json: - schema: - $ref: '#/components/schemas/ContentWrapper' - example: - Content: - _media-type: application/vnd.ibexa.api.Content+json - _href: /api/ibexa/v2/content/objects/54 - _remoteId: 9e863fbb0fb835ce050032b4f00de61d - _id: 54 - ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1 } - Name: Forms - TranslatedName: Forms - Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/54/versions } - CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/54/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/54/versions/1, VersionInfo: { id: 514, versionNo: 1, status: PUBLISHED, modificationDate: '2018-09-17T06:48:13+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2018-09-17T06:48:13+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Forms }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/54 } }, Fields: { field: [{ id: 249, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Forms }, { id: 250, fieldDefinitionIdentifier: short_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: null }, { id: 251, fieldDefinitionIdentifier: short_description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 252, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/54/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#folder', width: null, height: null, mimeType: image/svg+xml } } } - Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/6 } - MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/55 } - Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/54/locations } - Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - lastModificationDate: '2018-09-17T06:48:13+00:00' - publishedDate: '2018-09-17T06:48:13+00:00' - mainLanguageCode: eng-GB - currentVersionNo: 1 - alwaysAvailable: false - isHidden: false - status: PUBLISHED - ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/54/objectstates } - application/vnd.ibexa.api.ContentInfo+xml: - schema: - $ref: '#/components/schemas/ContentInfoWrapper' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/80" remoteId="69848aeb86164c35e5c98202eebe9e05" id="80"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2"/> - <Name>article1</Name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/80/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/80/currentversion"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/63/66"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/80/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/11"/> - <lastModificationDate>2019-02-19T15:00:34+01:00</lastModificationDate> - <publishedDate>2019-02-19T15:00:34+01:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>false</alwaysAvailable> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/80/objectstates"/> - </Content> - '400': - description: 'Error - the input does not match the input schema definition or the validation on a field fails.' - '401': - description: 'Error - the user is not authorized to create this Object in this Location.' - '404': - description: 'Error - the parent Location specified in the request body does not exist.' - summary: 'Create content item' - description: 'Creates a draft assigned to the authenticated user. If a different user ID is given in the input, the draft is assigned to the given user but this action requires special permissions for the authenticated user (this is useful for content staging where the transfer process does not have to authenticate with the user who created the content item in the source server). The user needs to publish the content item if it should be visible.' - parameters: - - - name: Accept - in: header - description: 'Content - If set, all information for the content item including the embedded current version is returned in XML or JSON format. ContentInfo - If set, all information for the content item (excluding the current version) is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The ContentCreate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ContentCreateController resource' - content: - application/vnd.ibexa.api.ContentCreate+xml: - schema: - $ref: '#/components/schemas/ContentCreate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/POST/ContentCreate.xml.example' - application/vnd.ibexa.api.ContentCreate+json: - schema: - $ref: '#/components/schemas/ContentCreateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/POST/ContentCreate.json.example' - required: false - deprecated: false - '/content/objects/{contentId}': - get: - operationId: api_contentobjects_contentId_get - tags: - - Objects - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Content+xml: - schema: - $ref: '#/components/schemas/Content' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/54" remoteId="9e863fbb0fb835ce050032b4f00de61d" id="54"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1"/> - <Name>Forms</Name> - <TranslatedName>Forms</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/54/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/54/currentversion"> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/54/versions/1"> - <VersionInfo> - <id>514</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2018-09-17T06:48:13+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2018-09-17T06:48:13+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Forms</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/54"/> - </VersionInfo> - <Fields> - <field> - <id>249</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Forms</fieldValue> - </field> - <field> - <id>250</id> - <fieldDefinitionIdentifier>short_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue/> - </field> - <field> - <id>251</id> - <fieldDefinitionIdentifier>short_description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_richtext</fieldTypeIdentifier> - <fieldValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </fieldValue> - </field> - <field> - <id>252</id> - <fieldDefinitionIdentifier>description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_richtext</fieldTypeIdentifier> - <fieldValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/54/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/bundles/ezplatformadminui/img/ez-icons.svg#folder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - </CurrentVersion> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/6"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/55"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/54/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2018-09-17T06:48:13+00:00</lastModificationDate> - <publishedDate>2018-09-17T06:48:13+00:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>false</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/54/objectstates"/> - </Content> - application/vnd.ibexa.api.Content+json: - schema: - $ref: '#/components/schemas/ContentWrapper' - example: - Content: - _media-type: application/vnd.ibexa.api.Content+json - _href: /api/ibexa/v2/content/objects/54 - _remoteId: 9e863fbb0fb835ce050032b4f00de61d - _id: 54 - ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1 } - Name: Forms - TranslatedName: Forms - Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/54/versions } - CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/54/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/54/versions/1, VersionInfo: { id: 514, versionNo: 1, status: PUBLISHED, modificationDate: '2018-09-17T06:48:13+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2018-09-17T06:48:13+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Forms }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/54 } }, Fields: { field: [{ id: 249, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Forms }, { id: 250, fieldDefinitionIdentifier: short_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: null }, { id: 251, fieldDefinitionIdentifier: short_description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 252, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/54/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#folder', width: null, height: null, mimeType: image/svg+xml } } } - Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/6 } - MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/55 } - Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/54/locations } - Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - lastModificationDate: '2018-09-17T06:48:13+00:00' - publishedDate: '2018-09-17T06:48:13+00:00' - mainLanguageCode: eng-GB - currentVersionNo: 1 - alwaysAvailable: false - isHidden: false - status: PUBLISHED - ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/54/objectstates } - application/vnd.ibexa.api.ContentInfo+xml: - schema: - $ref: '#/components/schemas/ContentInfo' - application/vnd.ibexa.api.ContentInfo+json: - schema: - $ref: '#/components/schemas/ContentInfoWrapper' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/80" remoteId="69848aeb86164c35e5c98202eebe9e05" id="80"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2"/> - <Name>article1</Name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/80/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/80/currentversion"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/63/66"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/80/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/11"/> - <lastModificationDate>2019-02-19T15:00:34+01:00</lastModificationDate> - <publishedDate>2019-02-19T15:00:34+01:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>false</alwaysAvailable> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/80/objectstates"/> - </Content> - '401': - description: 'Error - the user is not authorized to read this object. This could also happen if there is no published version yet and another user owns a draft of this content item.' - '404': - description: 'Error - the ID is not found.' - summary: 'Load content' - description: 'Loads the content item for the given ID. Depending on the Accept header the current version is embedded (i.e. the current published version or if it does not exist, the draft of the authenticated user).' - parameters: - - - name: Accept - in: header - description: |- - - * Content - If set, all information for the content item including the embedded current version is returned in XML or JSON format. - * ContentInfo - If set, all information for the content item (excluding the current version) is returned in XML or JSON format. - - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - enum: - - application/vnd.ibexa.api.Content+xml - - application/vnd.ibexa.api.Content+json - - application/vnd.ibexa.api.ContentInfo+xml - - application/vnd.ibexa.api.ContentInfo+json - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: 'If the provided ETag matches the current ETag then a "304 Not Modified" is returned. The ETag changes if the meta data has changed, this happens also if there is a new published version.' - required: false - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: integer - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_contentobjects_contentId_delete - tags: - - Objects - responses: - '204': - description: 'The content item is deleted.' - '404': - description: 'Error - content item was not found.' - '401': - description: 'Error - the user is not authorized to delete this content item.' - summary: 'Delete Content' - description: 'Deletes content item. If content item has multiple Locations, all of them will be deleted via delete a subtree.' - parameters: - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_contentobjects_contentId_patch - tags: - - Objects - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ContentInfo+xml: - schema: - $ref: '#/components/schemas/ContentInfo' - application/vnd.ibexa.api.ContentInfo+json: - schema: - $ref: '#/components/schemas/ContentInfoWrapper' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/80" remoteId="69848aeb86164c35e5c98202eebe9e05" id="80"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2"/> - <Name>article1</Name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/80/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/80/currentversion"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/63/66"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/80/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/11"/> - <lastModificationDate>2019-02-19T15:00:34+01:00</lastModificationDate> - <publishedDate>2019-02-19T15:00:34+01:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>false</alwaysAvailable> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/80/objectstates"/> - </Content> - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update this object.' - '404': - description: 'Error - the content ID does not exist.' - '412': - description: 'Error - the current ETag does not match with the one provided in the If-Match header.' - '415': - description: 'Error - the media-type is not one of those specified in headers.' - summary: 'Update content' - description: 'This method updates the content metadata which is independent from a version. PATCH or POST with header X-HTTP-Method-Override PATCH.' - parameters: - - - name: Accept - in: header - description: 'If set, all information for the content item (excluding the current version) is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-match - in: header - description: 'Causes to patch only if the specified ETag is the current one. Otherwise a 412 is returned.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The ContentUpdate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated ContentMetadataUpdateController resource' - content: - application/vnd.ibexa.api.ContentUpdate+xml: - schema: - $ref: '#/components/schemas/ContentInfo' - application/vnd.ibexa.api.ContentUpdate+json: - schema: - $ref: '#/components/schemas/ContentInfoWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/PATCH/ContentInfo.xml.example' - required: false - deprecated: false - '/content/objects/{contentId}/currentversion': - get: - operationId: api_contentobjects_contentIdcurrentversion_get - tags: - - Objects - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Version+xml: - schema: - $ref: '#/components/schemas/Version' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/107/versions/5"> - <VersionInfo> - <id>581</id> - <versionNo>5</versionNo> - <status>ARCHIVED</status> - <modificationDate>2023-05-24T06:11:50+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-05-24T06:09:49+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Features</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/107"/> - </VersionInfo> - <Fields> - <field> - <id>477</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Features</fieldValue> - </field> - <field> - <id>478</id> - <fieldDefinitionIdentifier>short_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue/> - </field> - <field> - <id>479</id> - <fieldDefinitionIdentifier>short_description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_richtext</fieldTypeIdentifier> - <fieldValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </fieldValue> - </field> - <field> - <id>480</id> - <fieldDefinitionIdentifier>description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_richtext</fieldTypeIdentifier> - <fieldValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/107/versions/5/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/placeholder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - application/vnd.ibexa.api.Version+json: - schema: - $ref: '#/components/schemas/VersionWrapper' - example: - Version: - _media-type: application/vnd.ibexa.api.Version+json - _href: /api/ibexa/v2/content/objects/107/versions/5 - VersionInfo: { id: 581, versionNo: 5, status: ARCHIVED, modificationDate: '2023-05-24T06:11:50+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-05-24T06:09:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Features }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/107 } } - Fields: { field: [{ id: 477, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Features }, { id: 478, fieldDefinitionIdentifier: short_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: null }, { id: 479, fieldDefinitionIdentifier: short_description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 480, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }] } - Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/107/versions/5/relations, Relation: [] } - Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } - '307': - description: 'Temporary redirect.' - '404': - description: 'Error - the resource does not exist.' - summary: 'Get current version' - description: 'Redirects to the current version of the content item.' - parameters: - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_contentobjects_contentIdcurrentversion_post - tags: - - Objects - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.Version+xml: - schema: - $ref: '#/components/schemas/Version' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/107/versions/5"> - <VersionInfo> - <id>581</id> - <versionNo>5</versionNo> - <status>ARCHIVED</status> - <modificationDate>2023-05-24T06:11:50+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-05-24T06:09:49+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Features</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/107"/> - </VersionInfo> - <Fields> - <field> - <id>477</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Features</fieldValue> - </field> - <field> - <id>478</id> - <fieldDefinitionIdentifier>short_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue/> - </field> - <field> - <id>479</id> - <fieldDefinitionIdentifier>short_description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_richtext</fieldTypeIdentifier> - <fieldValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </fieldValue> - </field> - <field> - <id>480</id> - <fieldDefinitionIdentifier>description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_richtext</fieldTypeIdentifier> - <fieldValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/107/versions/5/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/placeholder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - application/vnd.ibexa.api.Version+json: - schema: - $ref: '#/components/schemas/VersionWrapper' - example: - Version: - _media-type: application/vnd.ibexa.api.Version+json - _href: /api/ibexa/v2/content/objects/107/versions/5 - VersionInfo: { id: 581, versionNo: 5, status: ARCHIVED, modificationDate: '2023-05-24T06:11:50+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-05-24T06:09:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Features }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/107 } } - Fields: { field: [{ id: 477, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Features }, { id: 478, fieldDefinitionIdentifier: short_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: null }, { id: 479, fieldDefinitionIdentifier: short_description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 480, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }] } - Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/107/versions/5/relations, Relation: [] } - Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } - '401': - description: 'Error - the user is not authorized to update this content item.' - '403': - description: 'Error - the current version is already a draft.' - '404': - description: 'Error - the content item was not found.' - summary: 'Create a draft from current version' - description: 'The system creates a new draft as a copy of the current version. COPY or POST with header X-HTTP-Method-Override COPY.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated version is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ContentDraftCreateFromCurrentVersionController resource' - content: { } - required: false - deprecated: false - '/content/objects/{contentId}/hide': - post: - operationId: api_contentobjects_contentIdhide_post - tags: - - Objects - responses: - '204': - description: 'OK - Object item is hidden.' - '401': - description: 'Error - The user has no permission to change Object item visibility.' - '404': - description: 'Error - The content item was not found.' - summary: 'Hide content item' - description: 'Makes or keep the content item invisible' - parameters: - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ContentHideController resource' - content: { } - required: false - deprecated: false - '/content/objects/{contentId}/locations': - get: - operationId: api_contentobjects_contentIdlocations_get - tags: - - Objects - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.LocationList+xml: - schema: - $ref: '#/components/schemas/LocationList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <LocationList media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/63/locations"> - <Location media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/57/65"/> - </LocationList> - application/vnd.ibexa.api.LocationList+json: - schema: - $ref: '#/components/schemas/LocationListWrapper' - example: - LocationList: - _media-type: application/vnd.ibexa.api.LocationList+json - _href: /api/ibexa/v2/content/objects/63/locations - Location: [{ _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/57/65 }] - '401': - description: 'Error - the user is not authorized to read this content item.' - '404': - description: 'Error - the content item with the given ID does not exist.' - summary: 'Get Locations for content item' - description: 'Loads all Locations for the given content item.' - parameters: - - - name: Accept - in: header - description: 'If set, the Location list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_contentobjects_contentIdlocations_post - tags: - - Objects - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.Location+xml: - schema: - $ref: '#/components/schemas/Location' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Location media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/42/96"> - <id>96</id> - <priority>0</priority> - <hidden>false</hidden> - <invisible>true</invisible> - <explicitlyHidden>false</explicitlyHidden> - <ParentLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/42"/> - <pathString>/1/2/42/96/</pathString> - <depth>3</depth> - <childCount>0</childCount> - <remoteId>58133c8c75230e5debe362a28b92d27a</remoteId> - <Children media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/locations/1/2/42/96/children"/> - <Content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/63"/> - <sortField>PATH</sortField> - <sortOrder>ASC</sortOrder> - <UrlAliases media-type="application/vnd.ibexa.api.UrlAliasRefList+xml" href="/api/ibexa/v2/content/locations/1/2/42/96/urlaliases"/> - <ContentInfo media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/63"> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/63" remoteId="211e99934c8fef5900e4813b96ec5c87" id="63"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2"/> - <Name>Art3</Name> - <TranslatedName>Art3</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/63/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/63/currentversion"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/63/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2021-06-28T11:34:17+00:00</lastModificationDate> - <publishedDate>2021-06-28T11:34:17+00:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>false</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/63/objectstates"/> - </Content> - </ContentInfo> - </Location> - application/vnd.ibexa.api.Location+json: - schema: - $ref: '#/components/schemas/LocationWrapper' - example: - Location: - _media-type: application/vnd.ibexa.api.Location+json - _href: /api/ibexa/v2/content/locations/1/2/59/114 - id: 114 - priority: 0 - hidden: false - invisible: false - explicitlyHidden: false - ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/59 } - pathString: /1/2/59/114/ - depth: 3 - childCount: 0 - remoteId: 47a1e4ee082fb64e93a822dcfe3a5614 - Children: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/children } - Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/59 } - sortField: PATH - sortOrder: ASC - UrlAliases: { _media-type: application/vnd.ibexa.api.UrlAliasRefList+json, _href: /api/ibexa/v2/content/locations/1/2/59/114/urlaliases } - ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59, _remoteId: 0fe1b1543f886b0becd4d9b2c7c517d0, _id: 59, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2 }, Name: Art1, TranslatedName: Art1, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/59/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/59/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/59/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-06-28T11:33:01+00:00', publishedDate: '2021-06-28T11:33:01+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: false, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/59/objectstates } } } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this Location.' - '403': - description: 'Error - a Location under the given parent ID already exists.' - summary: 'Create new Location for content item' - description: 'Creates a new Location for the given content item.' - parameters: - - - name: Accept - in: header - description: 'If set, the new Location is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The LocationCreate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new LocationCreateController resource' - content: - application/vnd.ibexa.api.LocationCreate+xml: - schema: - $ref: '#/components/schemas/LocationCreate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/locations/POST/LocationCreate.xml.example' - application/vnd.ibexa.api.LocationCreate+json: - schema: - $ref: '#/components/schemas/LocationCreateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/locations/POST/LocationCreate.json.example' - required: false - deprecated: false - '/content/objects/{contentId}/objectstates': - get: - operationId: api_contentobjects_contentIdobjectstates_get - tags: - - Objects - responses: - '200': - description: 'OK - returns the Object state.' - content: - application/vnd.ibexa.api.ContentObjectStates+xml: - schema: - $ref: '#/components/schemas/ContentObjectStates' - application/vnd.ibexa.api.ContentObjectStates+json: - schema: - $ref: '#/components/schemas/ContentObjectStates' - '404': - description: 'Error - The content item does not exist.' - summary: 'Get Object states of content item' - description: 'Returns the Object states of a content item' - parameters: - - - name: Accept - in: header - description: 'If set, the Object states are returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_contentobjects_contentIdobjectstates_patch - tags: - - Objects - responses: - '204': - description: '204' - content: - application/vnd.ibexa.api.ContentObjectStates+xml: - schema: - $ref: '#/components/schemas/ContentObjectStates' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml"> - <ObjectState media-type="application/vnd.ibexa.api.ObjectState+xml" href="/api/ibexa/v2/content/objectstategroups/2/objectstates/2"/> - </ContentObjectStates> - application/vnd.ibexa.api.ContentObjectStates+json: - schema: - $ref: '#/components/schemas/ContentObjectStatesWrapper' - example: - ContentObjectStates: - _media-type: application/vnd.ibexa.api.ContentObjectStates+json - ObjectState: [{ _media-type: application/vnd.ibexa.api.ObjectState+json, _href: /api/ibexa/v2/content/objectstategroups/2/objectstates/1 }, { _media-type: application/vnd.ibexa.api.ObjectState+json, _href: /api/ibexa/v2/content/objectstategroups/3/objectstates/3 }, { _media-type: application/vnd.ibexa.api.ObjectState+json, _href: /api/ibexa/v2/content/objectstategroups/7/objectstates/7 }, { _media-type: application/vnd.ibexa.api.ObjectState+json, _href: /api/ibexa/v2/content/objectstategroups/8/objectstates/8 }] - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - The user is not authorized to set an Object state.' - '403': - description: 'Error - The input contains multiple Object states of the same Object state group.' - '412': - description: 'Error - The current ETag does not match the one provided in the If-Match header.' - summary: 'Set Object states of content item' - description: 'Updates Object states of a content item. An Object state in the input overrides the state of the Object state group. PATCH or POST with header X-HTTP-Method-Override PATCH.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated Object state is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The content item Object states input schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated ObjectStatesForContentUpdateController resource' - content: - application/vnd.ibexa.api.ContentObjectStates+xml: - schema: - $ref: '#/components/schemas/ContentObjectStates' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/objectstates/PATCH/ContentObjectStates.response.xml.example' - application/vnd.ibexa.api.ContentObjectStates+json: - schema: - $ref: '#/components/schemas/ContentObjectStatesWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/objectstates/GET/ContentObjectStates.json.example' - required: false - deprecated: false - '/content/objects/{contentId}/relations': - get: - operationId: api_contentobjects_contentIdrelations_get - tags: - - Objects - responses: - '307': - description: 'Temporary redirect.' - '401': - description: 'Error - the user is not authorized to read this content item.' - '404': - description: 'Error - the content item was not found.' - summary: 'Load Relations of content item' - description: 'Redirects to the Relations of the current version.' - parameters: - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/content/objects/{contentId}/reveal': - post: - operationId: api_contentobjects_contentIdreveal_post - tags: - - Objects - responses: - '204': - description: 'OK - Object item is revealed.' - '401': - description: 'Error - The user has no permission to change Object item visibility.' - '404': - description: 'Error - The content item was not found.' - summary: 'Reveal content item' - description: 'Makes or keep the content item visible' - parameters: - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ContentRevealController resource' - content: { } - required: false - deprecated: false - '/content/objects/{contentId}/translations/{languageCode}': - delete: - operationId: api_contentobjects_contentIdtranslations_languageCode_delete - tags: - - Objects - responses: - '204': - description: 'No Content' - '401': - description: 'Error - the user is not authorized to delete content item (content/remove policy).' - '404': - description: 'Error - the content item was not found.' - '406': - description: 'Error - the given translation does not exist for the content item.' - '409': - description: 'Error - the specified translation is the only one any version has or is the main translation.' - summary: 'Delete translation (permanently)' - description: 'Permanently deletes a translation from all versions of a content item.' - parameters: - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: languageCode - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/content/objects/{contentId}/versions': - get: - operationId: api_contentobjects_contentIdversions_get - tags: - - Objects - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.VersionList+xml: - schema: - $ref: '#/components/schemas/VersionList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <VersionList media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/61/versions"> - <VersionItem> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/61/versions/1"/> - <VersionInfo> - <id>521</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2021-06-28T11:33:49+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2021-06-28T11:33:31+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Art1</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/61"/> - </VersionInfo> - </VersionItem> - <VersionItem> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/61/versions/2"/> - <VersionInfo> - <id>580</id> - <versionNo>2</versionNo> - <status>DRAFT</status> - <modificationDate>2021-07-26T08:10:02+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2021-07-26T08:10:02+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Art1</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/61"/> - </VersionInfo> - </VersionItem> - <VersionItem> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/61/versions/3"/> - <VersionInfo> - <id>581</id> - <versionNo>3</versionNo> - <status>DRAFT</status> - <modificationDate>2021-07-26T08:16:50+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2021-07-26T08:16:50+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Art1</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/61"/> - </VersionInfo> - </VersionItem> - </VersionList> - application/vnd.ibexa.api.VersionList+json: - schema: - $ref: '#/components/schemas/VersionListWrapper' - example: - VersionList: - _media-type: application/vnd.ibexa.api.VersionList+json - _href: /api/ibexa/v2/content/objects/61/versions - VersionItem: [{ Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/61/versions/1 }, VersionInfo: { id: 521, versionNo: 1, status: PUBLISHED, modificationDate: '2021-06-28T11:33:49+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-06-28T11:33:31+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Art1 }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/61 } } }, { Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/61/versions/2 }, VersionInfo: { id: 580, versionNo: 2, status: DRAFT, modificationDate: '2021-07-26T08:10:02+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-07-26T08:10:02+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Art1 }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/61 } } }, { Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/61/versions/3 }, VersionInfo: { id: 581, versionNo: 3, status: DRAFT, modificationDate: '2021-07-26T08:16:50+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-07-26T08:16:50+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Art1 }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/61 } } }] - '401': - description: 'Error - the user has no permission to read the versions.' - summary: 'List versions' - description: 'Returns a list of all versions of the content item. This method does not include fields and relations in the version elements of the response.' - parameters: - - - name: Accept - in: header - description: 'If set, the version list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/content/objects/{contentId}/versions/{versionNo}': - get: - operationId: api_contentobjects_contentIdversions_versionNo_get - tags: - - Objects - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Version+xml: - schema: - $ref: '#/components/schemas/Version' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/107/versions/5"> - <VersionInfo> - <id>581</id> - <versionNo>5</versionNo> - <status>ARCHIVED</status> - <modificationDate>2023-05-24T06:11:50+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-05-24T06:09:49+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Features</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/107"/> - </VersionInfo> - <Fields> - <field> - <id>477</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Features</fieldValue> - </field> - <field> - <id>478</id> - <fieldDefinitionIdentifier>short_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue/> - </field> - <field> - <id>479</id> - <fieldDefinitionIdentifier>short_description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_richtext</fieldTypeIdentifier> - <fieldValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </fieldValue> - </field> - <field> - <id>480</id> - <fieldDefinitionIdentifier>description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_richtext</fieldTypeIdentifier> - <fieldValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/107/versions/5/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/placeholder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - application/vnd.ibexa.api.Version+json: - schema: - $ref: '#/components/schemas/VersionWrapper' - example: - Version: - _media-type: application/vnd.ibexa.api.Version+json - _href: /api/ibexa/v2/content/objects/107/versions/5 - VersionInfo: { id: 581, versionNo: 5, status: ARCHIVED, modificationDate: '2023-05-24T06:11:50+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-05-24T06:09:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Features }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/107 } } - Fields: { field: [{ id: 477, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Features }, { id: 478, fieldDefinitionIdentifier: short_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: null }, { id: 479, fieldDefinitionIdentifier: short_description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 480, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }] } - Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/107/versions/5/relations, Relation: [] } - Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } - '304': - description: 'Error - the ETag does not match the current one.' - '401': - description: 'Error - the user is not authorized to read this content item.' - '404': - description: 'Error - the ID or version is not found.' - summary: 'Load version' - description: 'Loads a specific version of a content item. This method returns Fields and relations.' - parameters: - - - name: If-None-Match - in: header - description: 'Only return the version if the given ETag is the not current one, otherwise a 304 is returned.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Accept - in: header - description: 'If set, the version list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: versionNo - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_contentobjects_contentIdversions_versionNo_post - tags: - - Objects - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.Version+xml: - schema: - $ref: '#/components/schemas/Version' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/107/versions/5"> - <VersionInfo> - <id>581</id> - <versionNo>5</versionNo> - <status>ARCHIVED</status> - <modificationDate>2023-05-24T06:11:50+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-05-24T06:09:49+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Features</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/107"/> - </VersionInfo> - <Fields> - <field> - <id>477</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Features</fieldValue> - </field> - <field> - <id>478</id> - <fieldDefinitionIdentifier>short_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue/> - </field> - <field> - <id>479</id> - <fieldDefinitionIdentifier>short_description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_richtext</fieldTypeIdentifier> - <fieldValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </fieldValue> - </field> - <field> - <id>480</id> - <fieldDefinitionIdentifier>description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_richtext</fieldTypeIdentifier> - <fieldValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/107/versions/5/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/placeholder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - application/vnd.ibexa.api.Version+json: - schema: - $ref: '#/components/schemas/VersionWrapper' - example: - Version: - _media-type: application/vnd.ibexa.api.Version+json - _href: /api/ibexa/v2/content/objects/107/versions/5 - VersionInfo: { id: 581, versionNo: 5, status: ARCHIVED, modificationDate: '2023-05-24T06:11:50+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-05-24T06:09:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Features }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/107 } } - Fields: { field: [{ id: 477, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Features }, { id: 478, fieldDefinitionIdentifier: short_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: null }, { id: 479, fieldDefinitionIdentifier: short_description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 480, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }] } - Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/107/versions/5/relations, Relation: [] } - Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } - '401': - description: 'Error - the user is not authorized to update this content item.' - '404': - description: 'Error - the content item was not found.' - summary: 'Create a draft from a version' - description: 'The system creates a new draft as a copy of the given version. COPY or POST with header X-HTTP-Method-Override COPY.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated version is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: versionNo - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ContentDraftCreateFromVersionController resource' - content: { } - required: false - deprecated: false - delete: - operationId: api_contentobjects_contentIdversions_versionNo_delete - tags: - - Objects - responses: - '204': - description: 'No Content - the version is deleted.' - '404': - description: 'Error - the content item or version were not found.' - '401': - description: 'Error - the user is not authorized to delete this version.' - '403': - description: 'Error - the version is in published state.' - summary: 'Delete content version' - description: 'Deletes the content version.' - parameters: - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: versionNo - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_contentobjects_contentIdversions_versionNo_patch - tags: - - Objects - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Version+xml: - schema: - $ref: '#/components/schemas/Version' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/107/versions/5"> - <VersionInfo> - <id>581</id> - <versionNo>5</versionNo> - <status>ARCHIVED</status> - <modificationDate>2023-05-24T06:11:50+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2023-05-24T06:09:49+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Features</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/107"/> - </VersionInfo> - <Fields> - <field> - <id>477</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Features</fieldValue> - </field> - <field> - <id>478</id> - <fieldDefinitionIdentifier>short_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue/> - </field> - <field> - <id>479</id> - <fieldDefinitionIdentifier>short_description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_richtext</fieldTypeIdentifier> - <fieldValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </fieldValue> - </field> - <field> - <id>480</id> - <fieldDefinitionIdentifier>description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_richtext</fieldTypeIdentifier> - <fieldValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/107/versions/5/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/placeholder</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - application/vnd.ibexa.api.Version+json: - schema: - $ref: '#/components/schemas/VersionWrapper' - example: - Version: - _media-type: application/vnd.ibexa.api.Version+json - _href: /api/ibexa/v2/content/objects/107/versions/5 - VersionInfo: { id: 581, versionNo: 5, status: ARCHIVED, modificationDate: '2023-05-24T06:11:50+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-05-24T06:09:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': Features }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/107 } } - Fields: { field: [{ id: 477, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Features }, { id: 478, fieldDefinitionIdentifier: short_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: null }, { id: 479, fieldDefinitionIdentifier: short_description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 480, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }] } - Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/107/versions/5/relations, Relation: [] } - Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update this version.' - '403': - description: 'Error - the version is not allowed to change - i.e. version is not a DRAFT.' - '404': - description: 'Error - the content ID or version ID does not exist.' - '412': - description: 'Error - the current ETag does not match with the one provided in the If-Match header.' - summary: 'Update version' - description: 'A specific draft is updated. PATCH or POST with header X-HTTP-Method-Override PATCH.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated version is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-match - in: header - description: 'Performs the patch only if the specified ETag is the current one.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The VersionUpdate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: versionNo - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated ContentVersionUpdateController resource' - content: - application/vnd.ibexa.api.VersionUpdate+xml: - schema: - $ref: '#/components/schemas/VersionUpdate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/versions/version_no/PATCH/VersionUpdate.xml.example' - application/vnd.ibexa.api.VersionUpdate+json: - schema: - $ref: '#/components/schemas/VersionUpdateWrapper' - required: false - deprecated: false - '/content/objects/{contentId}/versions/{versionNo}/relations': - get: - operationId: api_contentobjects_contentIdversions_versionNorelations_get - tags: - - Objects - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.RelationList+xml: - schema: - $ref: '#/components/schemas/RelationList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/107/versions/9/relations"> - <Relation media-type="application/vnd.ibexa.api.Relation+xml" href="/api/ibexa/v2/content/objects/107/versions/9/relations/7"> - <SourceContent media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/107"/> - <DestinationContent media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/52"/> - <RelationType>LINK</RelationType> - </Relation> - </Relations> - application/vnd.ibexa.api.RelationList+json: - schema: - $ref: '#/components/schemas/RelationListWrapper' - example: - Relations: - _media-type: application/vnd.ibexa.api.RelationList+json - _href: /api/ibexa/v2/content/objects/107/versions/9/relations - Relation: [{ _media-type: application/vnd.ibexa.api.Relation+json, _href: /api/ibexa/v2/content/objects/107/versions/9/relations/7, SourceContent: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/107 }, DestinationContent: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/52 }, RelationType: LINK }] - '401': - description: 'Error - the user is not authorized to read this content item.' - '404': - description: 'Error - the content item was not found.' - summary: 'Load Relations of content item version' - description: 'Loads the Relations of the given version.' - parameters: - - - name: Accept - in: header - description: 'If set, the Relation is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: versionNo - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_contentobjects_contentIdversions_versionNorelations_post - tags: - - Objects - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.Relation+xml: - schema: - $ref: '#/components/schemas/Relation' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Relation media-type="application/vnd.ibexa.api.Relation+xml" href="/api/ibexa/v2/content/objects/86/versions/1/relations/1"> - <SourceContent media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/86"/> - <DestinationContent media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/86"/> - <RelationType>COMMON</RelationType> - </Relation> - application/vnd.ibexa.api.Relation+json: - schema: - $ref: '#/components/schemas/RelationWrapper' - example: - Relation: - _media-type: application/vnd.ibexa.api.Relation+json - _href: /api/ibexa/v2/content/objects/59/versions/2/relations/38 - SourceContent: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59 } - DestinationContent: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59 } - RelationType: COMMON - summary: 'Create new Relation' - description: 'Creates a new Relation of type COMMON for the given draft.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated version is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The RelationCreate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: versionNo - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ContentRelationCreateController resource' - content: - application/vnd.ibexa.api.RelationCreate+xml: - schema: - $ref: '#/components/schemas/RelationCreate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/versions/version_no/relations/POST/RelationCreate.xml.example' - application/vnd.ibexa.api.RelationCreate+json: - schema: - $ref: '#/components/schemas/RelationCreateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/versions/version_no/relations/POST/RelationCreate.json.example' - required: false - deprecated: false - '/content/objects/{contentId}/versions/{versionNo}/relations/{relationId}': - get: - operationId: api_contentobjects_contentIdversions_versionNorelations_relationId_get - tags: - - Objects - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Relation+xml: - schema: - $ref: '#/components/schemas/Relation' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Relation media-type="application/vnd.ibexa.api.Relation+xml" href="/api/ibexa/v2/content/objects/86/versions/1/relations/1"> - <SourceContent media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/86"/> - <DestinationContent media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/86"/> - <RelationType>COMMON</RelationType> - </Relation> - application/vnd.ibexa.api.Relation+json: - schema: - $ref: '#/components/schemas/RelationWrapper' - example: - Relation: - _media-type: application/vnd.ibexa.api.Relation+json - _href: /api/ibexa/v2/content/objects/59/versions/2/relations/38 - SourceContent: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59 } - DestinationContent: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/59 } - RelationType: COMMON - '401': - description: 'Error - the user is not authorized to read this content item.' - '404': - description: 'Error - the content item with the given ID or the Relation does not exist.' - summary: 'Load Relation' - description: 'Loads a Relation for the given content item.' - parameters: - - - name: Accept - in: header - description: 'If set, the Relation is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: versionNo - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: relationId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_contentobjects_contentIdversions_versionNorelations_relationId_delete - tags: - - Objects - responses: - '204': - description: 'No Content - deleted a Relation of the given draft.' - '401': - description: 'Error - the user is not authorized to delete this Relation.' - '403': - description: 'Error - the Relation is not of type COMMON or the given version is not a draft.' - '404': - description: 'Error - content item or the Relation were not found in the given version.' - summary: 'Delete Relation' - description: 'Deletes a Relation of the given draft.' - parameters: - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: versionNo - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: relationId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/content/objects/{contentId}/versions/{versionNo}/translations/{languageCode}': - delete: - operationId: api_contentobjects_contentIdversions_versionNotranslations_languageCode_delete - tags: - - Objects - responses: - '204': - description: 'No Content - removes a translation from a version draft.' - '401': - description: 'Error - the user is not authorized to delete this translation.' - '403': - description: 'Error - the version is not in draft state.' - '404': - description: 'Error - the content item or version number were not found.' - '406': - description: 'Error - the given translation does not exist for the version.' - '409': - description: 'Error - the specified translation is the only one the version has or is the main translation.' - summary: 'Delete translation from version draft' - description: 'Removes a translation from a version draft.' - parameters: - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: versionNo - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: languageCode - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/orders/order/cancel/{id}': - post: - operationId: api_ordersordercancel_id_post - tags: - - Orders - responses: - '204': - description: 'No content - the given order is cancelled.' - '401': - description: 'Error - the user is not authorized to delete this order.' - '404': - description: 'Error - the order with the given ID does not exist.' - '406': - description: 'Error - the order cannot be cancelled due to not-allowed workflow transition' - summary: 'Cancel order' - description: 'Cancels the given order.' - parameters: - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new OrderCancelController resource' - content: { } - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/orders/order/{identifier}': - get: - operationId: api_ordersorder_identifier_get - tags: - - Orders - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Order+xml: - schema: - $ref: '#/components/schemas/Order' - application/vnd.ibexa.api.Order+json: - schema: - $ref: '#/components/schemas/OrderWrapper' - example: - Order: - _media-type: application/vnd.ibexa.api.Order+json - id: 2 - identifier: 2d9c73cd-ea10-4459-b20e-96710c8d3898 - created: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } - modified: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } - status: pending - OrderUser: { _media-type: application/vnd.ibexa.api.OrderUser+json, id: 14, name: Administrator, email: aa@aa.aa } - OrderCurrency: { _media-type: application/vnd.ibexa.api.OrderCurrency+json, id: 1, code: EUR } - OrderValue: { _media-type: application/vnd.ibexa.api.OrderValue+json, vat: { amount: '10', currency: EUR }, total_gross: { amount: '10', currency: EUR }, total_net: { amount: '10', currency: EUR } } - OrderCompany: { _media-type: application/vnd.ibexa.api.OrderCompany+json, id: 68, name: Apple } - OrderItemsList: [{ _media-type: application/vnd.ibexa.api.OrderItem+json, quantity: 10, OrderItemValue: { _media-type: application/vnd.ibexa.api.OrderItemValue+json, unit_price_gross: { amount: '110', currency: EUR }, unit_price_net: { amount: '100', currency: EUR }, vat_rate: '10.00', subtotal_price_gross: { amount: '1100', currency: EUR }, subtotal_price_net: { amount: '1000', currency: EUR } }, OrderItemProduct: { _media-type: application/vnd.ibexa.api.OrderItemProduct+json, id: 1, code: test, name: Test }, context: { foo: bar, baz: true } }] - context: { foo: bar, baz: 123 } - '401': - description: 'Error - the user has no permission to read orders.' - '404': - description: 'Error - the order does not exist.' - summary: 'Load order by identifier' - description: 'Loads an order by its identifier (UUID).' - parameters: - - - name: Accept - in: header - description: 'Order - If set, the order returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/orders/order/{id}': - get: - operationId: api_ordersorder_id_get - tags: - - Orders - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Order+xml: - schema: - $ref: '#/components/schemas/Order' - application/vnd.ibexa.api.Order+json: - schema: - $ref: '#/components/schemas/OrderWrapper' - example: - Order: - _media-type: application/vnd.ibexa.api.Order+json - id: 2 - identifier: 2d9c73cd-ea10-4459-b20e-96710c8d3898 - created: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } - modified: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } - status: pending - OrderUser: { _media-type: application/vnd.ibexa.api.OrderUser+json, id: 14, name: Administrator, email: aa@aa.aa } - OrderCurrency: { _media-type: application/vnd.ibexa.api.OrderCurrency+json, id: 1, code: EUR } - OrderValue: { _media-type: application/vnd.ibexa.api.OrderValue+json, vat: { amount: '10', currency: EUR }, total_gross: { amount: '10', currency: EUR }, total_net: { amount: '10', currency: EUR } } - OrderCompany: { _media-type: application/vnd.ibexa.api.OrderCompany+json, id: 68, name: Apple } - OrderItemsList: [{ _media-type: application/vnd.ibexa.api.OrderItem+json, quantity: 10, OrderItemValue: { _media-type: application/vnd.ibexa.api.OrderItemValue+json, unit_price_gross: { amount: '110', currency: EUR }, unit_price_net: { amount: '100', currency: EUR }, vat_rate: '10.00', subtotal_price_gross: { amount: '1100', currency: EUR }, subtotal_price_net: { amount: '1000', currency: EUR } }, OrderItemProduct: { _media-type: application/vnd.ibexa.api.OrderItemProduct+json, id: 1, code: test, name: Test }, context: { foo: bar, baz: true } }] - context: { foo: bar, baz: 123 } - '401': - description: 'Error - the user has no permission to read orders.' - '404': - description: 'Error - the order does not exist.' - summary: 'Load order by ID' - description: 'Loads an order by its numerical ID.' - parameters: - - - name: Accept - in: header - description: 'Order - If set, the order returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - patch: - operationId: api_ordersorder_id_patch - tags: - - Orders - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Order+json: - schema: - $ref: '#/components/schemas/OrderWrapper' - example: - Order: - _media-type: application/vnd.ibexa.api.Order+json - id: 2 - identifier: 2d9c73cd-ea10-4459-b20e-96710c8d3898 - created: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } - modified: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } - status: pending - OrderUser: { _media-type: application/vnd.ibexa.api.OrderUser+json, id: 14, name: Administrator, email: aa@aa.aa } - OrderCurrency: { _media-type: application/vnd.ibexa.api.OrderCurrency+json, id: 1, code: EUR } - OrderValue: { _media-type: application/vnd.ibexa.api.OrderValue+json, vat: { amount: '10', currency: EUR }, total_gross: { amount: '10', currency: EUR }, total_net: { amount: '10', currency: EUR } } - OrderCompany: { _media-type: application/vnd.ibexa.api.OrderCompany+json, id: 68, name: Apple } - OrderItemsList: [{ _media-type: application/vnd.ibexa.api.OrderItem+json, quantity: 10, OrderItemValue: { _media-type: application/vnd.ibexa.api.OrderItemValue+json, unit_price_gross: { amount: '110', currency: EUR }, unit_price_net: { amount: '100', currency: EUR }, vat_rate: '10.00', subtotal_price_gross: { amount: '1100', currency: EUR }, subtotal_price_net: { amount: '1000', currency: EUR } }, OrderItemProduct: { _media-type: application/vnd.ibexa.api.OrderItemProduct+json, id: 1, code: test, name: Test }, context: { foo: bar, baz: true } }] - context: { foo: bar, baz: 123 } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update this order.' - '404': - description: 'Error - the order with the given ID does not exist.' - '406': - description: 'Error - the order cannot be cancelled due to not-allowed workflow transition' - summary: 'Update order' - description: 'Updates an order.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated order is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The OrderUpdate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated OrderUpdateController resource' - content: - application/vnd.ibexa.api.OrderUpdate+json: - schema: - $ref: '#/components/schemas/OrderUpdateWrapper' - x-ibexa-example-file: '@IbexaOrderManagementBundle/Resources/api_platform/examples/orders/PATCH/OrderUpdate.json.example' - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - /orders/orders: - get: - operationId: api_ordersorders_get - tags: - - Orders - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.OrderList+xml: - schema: - $ref: '#/components/schemas/OrderList' - application/vnd.ibexa.api.OrderList+json: - schema: - $ref: '#/components/schemas/OrderListWrapper' - example: - OrderList: - _media-type: application/vnd.ibexa.api.OrderList+json - Order: [{ _media-type: application/vnd.ibexa.api.Order+json, id: 2, identifier: 2d9c73cd-ea10-4459-b20e-96710c8d3898, created: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC }, modified: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC }, status: pending, OrderUser: { _media-type: application/vnd.ibexa.api.OrderUser+json, id: 14, name: Administrator, email: aa@aa.aa }, OrderCurrency: { _media-type: application/vnd.ibexa.api.OrderCurrency+json, id: 1, code: EUR }, OrderValue: { _media-type: application/vnd.ibexa.api.OrderValue+json, vat: { amount: '10', currency: EUR }, total_gross: { amount: '10', currency: EUR }, total_net: { amount: '10', currency: EUR } }, OrderCompany: { _media-type: application/vnd.ibexa.api.OrderCompany+json, id: 68, name: Apple }, OrderItemsList: [{ _media-type: application/vnd.ibexa.api.OrderItem+json, quantity: 10, OrderItemValue: { _media-type: application/vnd.ibexa.api.OrderItemValue+json, unit_price_gross: { amount: '110', currency: EUR }, unit_price_net: { amount: '100', currency: EUR }, vat_rate: '10.00', subtotal_price_gross: { amount: '1100', currency: EUR }, subtotal_price_net: { amount: '1000', currency: EUR } }, OrderItemProduct: { _media-type: application/vnd.ibexa.api.OrderItemProduct+json, id: 1, code: test, name: Test }, context: { foo: bar, baz: true } }], context: { foo: bar, baz: 123 } }, { _media-type: application/vnd.ibexa.api.Order+json, id: 3, identifier: 79b20ac4-fe23-4566-a9c2-b81966431026, created: { date: '2023-04-18 09:44:34.000000', timezone_type: 3, timezone: UTC }, modified: { date: '2023-04-18 09:44:34.000000', timezone_type: 3, timezone: UTC }, status: pending, OrderUser: { _media-type: application/vnd.ibexa.api.OrderUser+json, id: 14, name: Administrator, email: aa@aa.aa }, OrderCurrency: { _media-type: application/vnd.ibexa.api.OrderCurrency+json, id: 1, code: EUR }, OrderValue: { _media-type: application/vnd.ibexa.api.OrderValue+json, vat: { amount: '10', currency: EUR }, total_gross: { amount: '10', currency: EUR }, total_net: { amount: '10', currency: EUR } }, OrderCompany: { _media-type: application/vnd.ibexa.api.OrderCompany+json, id: 68, name: Apple }, OrderItemsList: [{ _media-type: application/vnd.ibexa.api.OrderItem+json, quantity: 10, OrderItemValue: { _media-type: application/vnd.ibexa.api.OrderItemValue+json, unit_price_gross: { amount: '110', currency: EUR }, unit_price_net: { amount: '100', currency: EUR }, vat_rate: '10.00', subtotal_price_gross: { amount: '1100', currency: EUR }, subtotal_price_net: { amount: '1000', currency: EUR } }, OrderItemProduct: { _media-type: application/vnd.ibexa.api.OrderItemProduct+json, id: 1, code: test, name: Test }, context: { foo: bar, baz: true } }], context: { foo: bar, baz: 123 } }] - '401': - description: 'Error - the user has no permission to read orders.' - summary: 'Load orders' - description: 'Loads a list of orders.' - parameters: - - - name: Accept - in: header - description: 'OrderList - If set, the orders list returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - post: - operationId: api_ordersorders_post - tags: - - Orders - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Order+json: - schema: - $ref: '#/components/schemas/OrderWrapper' - example: - Order: - _media-type: application/vnd.ibexa.api.Order+json - id: 2 - identifier: 2d9c73cd-ea10-4459-b20e-96710c8d3898 - created: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } - modified: { date: '2023-04-18 09:06:02.000000', timezone_type: 3, timezone: UTC } - status: pending - OrderUser: { _media-type: application/vnd.ibexa.api.OrderUser+json, id: 14, name: Administrator, email: aa@aa.aa } - OrderCurrency: { _media-type: application/vnd.ibexa.api.OrderCurrency+json, id: 1, code: EUR } - OrderValue: { _media-type: application/vnd.ibexa.api.OrderValue+json, vat: { amount: '10', currency: EUR }, total_gross: { amount: '10', currency: EUR }, total_net: { amount: '10', currency: EUR } } - OrderCompany: { _media-type: application/vnd.ibexa.api.OrderCompany+json, id: 68, name: Apple } - OrderItemsList: [{ _media-type: application/vnd.ibexa.api.OrderItem+json, quantity: 10, OrderItemValue: { _media-type: application/vnd.ibexa.api.OrderItemValue+json, unit_price_gross: { amount: '110', currency: EUR }, unit_price_net: { amount: '100', currency: EUR }, vat_rate: '10.00', subtotal_price_gross: { amount: '1100', currency: EUR }, subtotal_price_net: { amount: '1000', currency: EUR } }, OrderItemProduct: { _media-type: application/vnd.ibexa.api.OrderItemProduct+json, id: 1, code: test, name: Test }, context: { foo: bar, baz: true } }] - context: { foo: bar, baz: 123 } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this order.' - '406': - description: 'Error - a order with this identifier already exists.' - summary: 'Create order' - description: 'Creates a new order.' - parameters: - - - name: Accept - in: header - description: 'If set, the new order is returned in JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The Order schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new OrderCreateController resource' - content: - application/vnd.ibexa.api.OrderCreate+json: - schema: - $ref: '#/components/schemas/OrderCreateWrapper' - x-ibexa-example-file: '@IbexaOrderManagementBundle/Resources/api_platform/examples/orders/POST/OrderCreate.json.example' - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - /payment-method: - post: - operationId: api_payment-method_post - tags: - - Payments - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.PaymentMethod+xml: - schema: - $ref: '#/components/schemas/PaymentMethod' - application/vnd.ibexa.api.PaymentMethod+json: - schema: - $ref: '#/components/schemas/PaymentMethodWrapper' - example: - PaymentMethod: - _media-type: application/vnd.ibexa.api.PaymentMethod+json - identifier: bank_transfer - id: 1 - enabled: true - name: 'Bank transfer' - description: 'Bank transfer' - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create Payment Method.' - '404': - description: 'Error - the payment methods does not exist.' - summary: 'Create payment method' - description: 'Creates a PaymentMethodCreateController resource.' - parameters: - - - name: Accept - in: header - description: 'If set, the created Payment Method is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The Payment Method input schema encoded in XML or JSON.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new PaymentMethodCreateController resource' - content: - application/vnd.ibexa.api.PaymentMethodCreateStruct+xml: - schema: - $ref: '#/components/schemas/PaymentMethodCreateStruct' - x-ibexa-example-file: '@IbexaPaymentBundle/Resources/api_platform/examples/payment-methods/POST/PaymentMethodCreateStruct.xml.example' - application/vnd.ibexa.api.PaymentMethodCreateStruct+json: - schema: - $ref: '#/components/schemas/PaymentMethodCreateStructWrapper' - x-ibexa-example-file: '@IbexaPaymentBundle/Resources/api_platform/examples/payment-methods/POST/PaymentMethodCreateStruct.json.example' - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - /payment-method/view: - post: - operationId: api_payment-methodview_post - tags: - - Payments - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.PaymentMethodView+xml: - schema: - $ref: '#/components/schemas/PaymentMethodView' - application/vnd.ibexa.api.PaymentMethodView+json: - schema: - $ref: '#/components/schemas/PaymentMethodViewWrapper' - example: - PaymentMethodView: - _media-type: application/vnd.ibexa.api.PaymentMethodView+json - identifier: example - Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 4, PaymentMethodList: [{ _media-type: application/vnd.ibexa.api.PaymentMethod+json, identifier: bank_transfer, id: 1, enabled: true, name: 'Bank transfer', description: 'Bank transfer' }, { _media-type: application/vnd.ibexa.api.PaymentMethod+json, identifier: cash_on_delivery, id: 2, enabled: true, name: 'Cash on delivery', description: 'Cash on delivery' }, { _media-type: application/vnd.ibexa.api.PaymentMethod+json, identifier: invoice, id: 3, enabled: true, name: Invoice, description: Invoice }, { _media-type: application/vnd.ibexa.api.PaymentMethod+json, identifier: paypal, id: 4, enabled: true, name: PayPal, description: PayPal }] } - '400': - description: 'Error - the input does not match the input schema definition.' - summary: 'List payment methods' - description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' - parameters: - - - name: Accept - in: header - description: 'The view in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The view input in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new PaymentMethodFindController resource' - content: - application/vnd.ibexa.api.PaymentMethodViewInput+xml: - schema: - $ref: '#/components/schemas/PaymentMethodViewInput' - application/vnd.ibexa.api.PaymentMethodViewInput+json: - schema: - $ref: '#/components/schemas/PaymentMethodViewInputWrapper' - x-ibexa-example-file: '@IbexaPaymentBundle/Resources/api_platform/examples/payment-methods/view/POST/PaymentMethodViewInput.json.example' - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/payment-method/{identifier}': - get: - operationId: api_payment-method_identifier_get - tags: - - Payments - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.PaymentMethod+xml: - schema: - $ref: '#/components/schemas/PaymentMethod' - application/vnd.ibexa.api.PaymentMethod+json: - schema: - $ref: '#/components/schemas/PaymentMethodWrapper' - example: - PaymentMethod: - _media-type: application/vnd.ibexa.api.PaymentMethod+json - identifier: bank_transfer - id: 1 - enabled: true - name: 'Bank transfer' - description: 'Bank transfer' - '401': - description: 'Error - the user has no permission to read payment methods.' - '404': - description: 'Error - the payment methods does not exist.' - summary: 'Load payment method by identifier' - description: 'Loads an payment method by its identifier.' - parameters: - - - name: Accept - in: header - description: 'Payment Method - If set, the payment method returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - delete: - operationId: api_payment-method_identifier_delete - tags: - - Payments - responses: - '204': - description: 'No Content' - '401': - description: 'Error - the user has no permission to delete payment methods.' - '404': - description: 'Error - the payment methods does not exist.' - summary: 'Delete payment method' - description: 'Removes the PaymentMethodDeleteController resource.' - parameters: - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - patch: - operationId: api_payment-method_identifier_patch - tags: - - Payments - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.PaymentMethod+xml: - schema: - $ref: '#/components/schemas/PaymentMethod' - application/vnd.ibexa.api.PaymentMethod+json: - schema: - $ref: '#/components/schemas/PaymentMethodWrapper' - example: - PaymentMethod: - _media-type: application/vnd.ibexa.api.PaymentMethod+json - identifier: bank_transfer - id: 1 - enabled: true - name: 'Bank transfer' - description: 'Bank transfer' - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update Payment Method.' - '404': - description: 'Error - the payment methods does not exist.' - summary: 'Update payment method' - description: 'Updates the PaymentMethodUpdateController resource.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated Payment Method is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The Payment Method input schema encoded in XML or JSON.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated PaymentMethodUpdateController resource' - content: - application/vnd.ibexa.api.PaymentMethodUpdateStruct+xml: - schema: - $ref: '#/components/schemas/PaymentMethodUpdateStruct' - x-ibexa-example-file: '@IbexaPaymentBundle/Resources/api_platform/examples/payment-methods/identifier/PATCH/PaymentMethodUpdateStruct.xml.example' - application/vnd.ibexa.api.PaymentMethodUpdateStruct+json: - schema: - $ref: '#/components/schemas/PaymentMethodUpdateStructWrapper' - x-ibexa-example-file: '@IbexaPaymentBundle/Resources/api_platform/examples/payment-methods/identifier/PATCH/PaymentMethodUpdateStruct.json.example' - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/payment-method/{id}': - get: - operationId: api_payment-method_id_get - tags: - - Payments - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.PaymentMethod+json: - schema: - $ref: '#/components/schemas/PaymentMethodWrapper' - example: - PaymentMethod: - _media-type: application/vnd.ibexa.api.PaymentMethod+json - identifier: bank_transfer - id: 1 - enabled: true - name: 'Bank transfer' - description: 'Bank transfer' - '401': - description: 'Error - the user has no permission to read payment methods.' - '404': - description: 'Error - the payment methods does not exist.' - summary: 'Load payment method by id' - description: 'Loads an payment method by its id.' - parameters: - - - name: Accept - in: header - description: 'Payment Method - If set, the payment method returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - /product/catalog/products: - get: - operationId: api_productcatalogproducts_get - tags: - - Product - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ProductList+json: - schema: - $ref: '#/components/schemas/ProductListWrapper' - example: - ProductList: - _media-type: application/vnd.ibexa.api.ProductList+json - Product: [{ _media-type: application/vnd.ibexa.api.Product+json, code: wsk_98845, name: 'HUMMINGBIRD PRO DRY 9,2MM', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: d_rope, name: 'Dynamic ropes', AttributeAssignmentList: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml }, created_at: 1645787815, updated_at: 1645787815, AttributesList: [] }, { _media-type: application/vnd.ibexa.api.Product+json, code: wsst_34456, name: 'Simond XC 60m', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: s_rope, name: 'Static ropes', AttributeAssignmentList: [] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/141, _remoteId: 86fdab24802923a9c30994858165ba9b, _id: 141, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/54 }, Name: 'HUMMINGBIRD PRO DRY 9,2MM', TranslatedName: 'HUMMINGBIRD PRO DRY 9,2MM', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/141/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/versions/2, VersionInfo: { id: 618, versionNo: 2, status: PUBLISHED, modificationDate: '2022-05-27T09:29:33+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-05-27T09:29:33+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'HUMMINGBIRD PRO DRY 9,2MM' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/141 } }, Fields: { field: [{ id: 612, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'HUMMINGBIRD PRO DRY 9,2MM' }, { id: 613, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 25, code: wsk_98845, attributes: [10] } }, { id: 614, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 615, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/141/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/141/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-05-27T09:29:33+00:00', publishedDate: '2022-05-27T06:51:36+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/141/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml }, created_at: 1645787893, updated_at: 1645787893, AttributesList: [] }] - '401': - description: 'Error - the user has no permission to read product.' - summary: 'Load products list (deprecated)' - description: 'Returns a list of products. Deprecated as of Ibexa DXP 4.3, use POST /product/catalog/products/view instead.' - parameters: - - - name: Accept - in: header - description: 'If set, the products are returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The product list schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - content: - application/vnd.ibexa.api.ProductListGet+json: - schema: - $ref: '#/components/schemas/ProductListGetWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/GET/ProductListGet.json.example' - required: false - deprecated: false - /product/catalog/products/view: - post: - operationId: api_productcatalogproductsview_post - tags: - - Product - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ProductView+xml: - schema: - $ref: '#/components/schemas/ProductView' - application/vnd.ibexa.api.ProductView+json: - schema: - $ref: '#/components/schemas/ProductViewWrapper' - example: - ProductView: - _media-type: application/vnd.ibexa.api.ProductView+json - identifier: TitleView - ProductQuery: { _media-type: application/vnd.ibexa.api.ProductQuery+json } - Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 2, ProductList: { _media-type: application/vnd.ibexa.api.ProductList+json, Product: [{ _media-type: application/vnd.ibexa.api.Product+json, code: OTHER, isBaseProduct: false, isVariant: false, name: 'Other Office Desk', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: desk, name: Desk, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: null } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/67, _remoteId: c5c22c68912af81992b74851f158db4a, _id: 67, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/53 }, Name: 'Other Office Desk', TranslatedName: 'Other Office Desk', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/67/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/67/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/67/versions/2, VersionInfo: { id: 529, versionNo: 2, status: PUBLISHED, modificationDate: '2023-04-12T14:06:25+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-12T14:06:25+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Other Office Desk' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/67 } }, Fields: { field: [{ id: 301, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Other Office Desk' }, { id: 302, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 4, code: OTHER, attributes: [white, []] } }, { id: 303, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 304, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 305, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: product_categories } }, { id: 306, fieldDefinitionIdentifier: field_64369cb9130a7, languageCode: eng-GB, fieldTypeIdentifier: ibexa_seo, fieldValue: '' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/67/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/67/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-12T14:06:25+00:00', publishedDate: '2023-04-12T11:59:17+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/67/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml }, created_at: 1681308385, updated_at: 1681308385, AttributesList: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: white }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null }], Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '160.00', base_amount: '160.00', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true }, money: '16000', base_money: '16000' } }, { _media-type: application/vnd.ibexa.api.Product+json, code: ERGO, isBaseProduct: false, isVariant: false, name: 'Ergo Office Desk', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: desk, name: Desk, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: null } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/66, _remoteId: 1e7449c13671b56ed3907929a2af3ad9, _id: 66, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/53 }, Name: 'Ergo Office Desk', TranslatedName: 'Ergo Office Desk', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/66/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/versions/2, VersionInfo: { id: 528, versionNo: 2, status: PUBLISHED, modificationDate: '2023-04-12T14:06:14+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-12T14:06:14+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ergo Office Desk' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/66 } }, Fields: { field: [{ id: 295, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ergo Office Desk' }, { id: 296, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 3, code: ERGO, attributes: [black, []] } }, { id: 297, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 298, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 299, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: product_categories } }, { id: 300, fieldDefinitionIdentifier: field_64369cb9130a7, languageCode: eng-GB, fieldTypeIdentifier: ibexa_seo, fieldValue: '' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/66/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/66/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-12T14:06:14+00:00', publishedDate: '2023-04-12T11:58:00+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/66/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml }, created_at: 1681308374, updated_at: 1681308374, AttributesList: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: black }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null }], Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '99.00', base_amount: '99.00', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true }, money: '9900', base_money: '9900' } }] }, aggregations: [{ _media-type: application/vnd.ibexa.api.RangeAggregationResult+json, name: price, entries: [{ _media-type: application/vnd.ibexa.api.RangeAggregationResultEntry+json, key: { Range: { _media-type: application/vnd.ibexa.api.Range+json, from: 0, to: 10000 } }, count: 1 }] }] } - '400': - description: 'Error - the input does not match the input schema definition.' - summary: 'Filter products' - description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' - parameters: - - - name: Accept - in: header - description: 'The view in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The view input in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ProductViewController resource' - content: - application/vnd.ibexa.api.ProductViewInput+xml: - schema: - $ref: '#/components/schemas/ProductViewInput' - application/vnd.ibexa.api.ProductViewInput+json: - schema: - $ref: '#/components/schemas/ProductViewInputWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/POST/ProductViewInput.json.example' - required: false - deprecated: false - '/product/catalog/products/{code}': - get: - operationId: api_productcatalogproducts_code_get - tags: - - Product - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Product+json: - schema: - $ref: '#/components/schemas/ProductWrapper' - example: - Product: - _media-type: application/vnd.ibexa.api.Product+json - code: wsk_98845 - name: 'HUMMINGBIRD PRO DRY 9,2MM' - ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: d_rope, name: 'Dynamic ropes', AttributeAssignmentList: [] } - Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/141, _remoteId: 86fdab24802923a9c30994858165ba9b, _id: 141, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/54 }, Name: 'HUMMINGBIRD PRO DRY 9,2MM', TranslatedName: 'HUMMINGBIRD PRO DRY 9,2MM', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/141/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/versions/2, VersionInfo: { id: 618, versionNo: 2, status: PUBLISHED, modificationDate: '2022-05-27T09:29:33+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-05-27T09:29:33+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'HUMMINGBIRD PRO DRY 9,2MM' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/141 } }, Fields: { field: [{ id: 612, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'HUMMINGBIRD PRO DRY 9,2MM' }, { id: 613, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 25, code: wsk_98845, attributes: [10] } }, { id: 614, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 615, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/141/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/141/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-05-27T09:29:33+00:00', publishedDate: '2022-05-27T06:51:36+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/141/objectstates } } - Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } - created_at: 1645787815 - updated_at: 1645787815 - AttributesList: [] - '401': - description: 'Error - the user is not authorized to view this product.' - '404': - description: 'Error - no product with the given code exists.' - summary: 'Load the given product' - description: 'Loads the given product.' - parameters: - - - name: Accept - in: header - description: 'If set, the products are returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'An optional product schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: code - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - content: - application/vnd.ibexa.api.ProductGet+json: - schema: - $ref: '#/components/schemas/ProductGetWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/code/GET/ProductGet.json.example' - required: false - deprecated: false - patch: - operationId: api_productcatalogproducts_code_patch - tags: - - Product - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.Product+json: - schema: - $ref: '#/components/schemas/ProductWrapper' - example: - Product: - _media-type: application/vnd.ibexa.api.Product+json - code: wsk_98845 - name: 'HUMMINGBIRD PRO DRY 9,2MM' - ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: d_rope, name: 'Dynamic ropes', AttributeAssignmentList: [] } - Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/141, _remoteId: 86fdab24802923a9c30994858165ba9b, _id: 141, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/54 }, Name: 'HUMMINGBIRD PRO DRY 9,2MM', TranslatedName: 'HUMMINGBIRD PRO DRY 9,2MM', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/141/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/versions/2, VersionInfo: { id: 618, versionNo: 2, status: PUBLISHED, modificationDate: '2022-05-27T09:29:33+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-05-27T09:29:33+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'HUMMINGBIRD PRO DRY 9,2MM' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/141 } }, Fields: { field: [{ id: 612, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'HUMMINGBIRD PRO DRY 9,2MM' }, { id: 613, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 25, code: wsk_98845, attributes: [10] } }, { id: 614, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 615, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/141/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/141/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-05-27T09:29:33+00:00', publishedDate: '2022-05-27T06:51:36+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/141/objectstates } } - Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } - created_at: 1645787815 - updated_at: 1645787815 - AttributesList: [] - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update this product.' - '403': - description: 'Error - a product with the same code already exists.' - '404': - description: 'Error - no product with the given code exists.' - summary: 'Update product' - description: 'Updates product.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated product is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'If set, the updated product is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: code - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated ProductUpdateController resource' - content: - application/vnd.ibexa.api.ProductUpdate+json: - schema: - $ref: '#/components/schemas/ProductUpdateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/code/PATCH/ProductUpdate.json.example' - required: false - deprecated: false - '/product/catalog/products/{code}/prices': - get: - operationId: api_productcatalogproducts_codeprices_get - tags: - - Product - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.PriceList+json: - schema: - $ref: '#/components/schemas/PriceListWrapper' - example: - PriceList: - _media-type: application/vnd.ibexa.api.PriceList+json - prices: [{ _media-type: application/vnd.ibexa.api.Price+json, id: 1, amount: '12.00', base_amount: '12.00', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true }, money: '1200', base_money: '1200' }, { _media-type: application/vnd.ibexa.api.Price+json, id: 2, amount: '12.00', base_amount: '12.00', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 5, code: USD, subunits: 2, enabled: true }, money: '1200', base_money: '1200' }] - totalCount: 2 - '401': - description: 'Error - the user has no permission to read prices.' - summary: 'Load the list of product prices' - description: 'Loads the list of product prices.' - parameters: - - - name: Accept - in: header - description: 'PriceList - if set, the product price list is returned in JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: code - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_productcatalogproducts_codeprices_post - tags: - - Product - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Price+json: - schema: - $ref: '#/components/schemas/PriceWrapper' - example: - Price: - _media-type: application/vnd.ibexa.api.Price+json - id: 4 - amount: '0.09' - base_amount: '0.09' - Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 94, code: CHF, subunits: 2, enabled: true } - money: '9' - base_money: '9' - application/vnd.ibexa.api.CustomPrice+json: - schema: - $ref: '#/components/schemas/CustomPriceWrapper' - example: - CustomPrice: - _media-type: application/vnd.ibexa.api.CustomPrice+json - id: 3 - amount: '17.00' - base_amount: '35.00' - Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 5, code: USD, subunits: 2, enabled: true } - money: '1700' - base_money: '3500' - custom_money: '1700' - custom_amount: '17.00' - custom_rule: null - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this price.' - summary: 'Create product price or custom price' - description: 'Create product price or custom price.' - parameters: - - - name: Accept - in: header - description: 'The product price schema encoded in JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'If set, the new price is returned in JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: code - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new PriceCreateController resource' - content: - application/vnd.ibexa.api.PriceCreateStruct+json: - schema: - $ref: '#/components/schemas/PriceCreateStructWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/code/prices/POST/PriceCreateStruct.json.example' - application/vnd.ibexa.api.CustomPriceCreateStruct+json: - schema: - $ref: '#/components/schemas/CustomPriceCreateStructWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/code/prices/POST/CustomPriceCreateStruct.json.example' - required: false - deprecated: false - '/product/catalog/products/{code}/prices/{currencyCode}': - get: - operationId: api_productcatalogproducts_codeprices_currencyCode_get - tags: - - Product - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Price+json: - schema: - $ref: '#/components/schemas/PriceWrapper' - example: - Price: - _media-type: application/vnd.ibexa.api.Price+json - id: 4 - amount: '0.09' - base_amount: '0.09' - Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 94, code: CHF, subunits: 2, enabled: true } - money: '9' - base_money: '9' - '401': - description: 'Error - the user has no permission to read prices.' - '404': - description: 'Error - the price does not exist.' - summary: 'Get price in given currency' - description: 'Get price in given currency.' - parameters: - - - name: Accept - in: header - description: 'If set, gets price in given currency in JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: code - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: currencyCode - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/product/catalog/products/{code}/prices/{currencyCode}/customer-group/{customerGroupIdentifier}': - get: - operationId: api_productcatalogproducts_codeprices_currencyCodecustomer-group_customerGroupIdentifier_get - tags: - - Product - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.CustomPrice+json: - schema: - $ref: '#/components/schemas/CustomPriceWrapper' - example: - CustomPrice: - _media-type: application/vnd.ibexa.api.CustomPrice+json - id: 3 - amount: '17.00' - base_amount: '35.00' - Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 5, code: USD, subunits: 2, enabled: true } - money: '1700' - base_money: '3500' - custom_money: '1700' - custom_amount: '17.00' - custom_rule: null - '401': - description: 'Error - the user has no permission to read prices.' - '404': - description: 'Error - the price does not exist.' - summary: 'Get price in given currency and customer group' - description: 'Get price in given currency and customer group.' - parameters: - - - name: Accept - in: header - description: 'If set, gets price in given currency and customer group in JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: code - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: currencyCode - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: customerGroupIdentifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/product/catalog/products/{code}/prices/{id}': - delete: - operationId: api_productcatalogproducts_codeprices_id_delete - tags: - - Product - responses: - '200': - description: 'No content - the given price is deleted.' - '401': - description: 'Error - the user is not authorized to delete this price.' - summary: 'Delete product price' - description: 'Deletes product price.' - parameters: - - - name: Accept - in: header - description: 'If set, deletes price of given id.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'Delete product price.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: code - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_productcatalogproducts_codeprices_id_patch - tags: - - Product - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Price+json: - schema: - $ref: '#/components/schemas/PriceWrapper' - example: - Price: - _media-type: application/vnd.ibexa.api.Price+json - id: 4 - amount: '0.09' - base_amount: '0.09' - Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 94, code: CHF, subunits: 2, enabled: true } - money: '9' - base_money: '9' - application/vnd.ibexa.api.CustomPrice+json: - schema: - $ref: '#/components/schemas/CustomPriceWrapper' - example: - CustomPrice: - _media-type: application/vnd.ibexa.api.CustomPrice+json - id: 3 - amount: '17.00' - base_amount: '35.00' - Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 5, code: USD, subunits: 2, enabled: true } - money: '1700' - base_money: '3500' - custom_money: '1700' - custom_amount: '17.00' - custom_rule: null - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update this price.' - summary: 'Update product price' - description: 'Updates product price.' - parameters: - - - name: Accept - in: header - description: 'If set, updates product price.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'Update price or custom price for given currency.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: code - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated PriceUpdateController resource' - content: - application/vnd.ibexa.api.PriceUpdateStruct+json: - schema: - $ref: '#/components/schemas/PriceUpdateStructWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/code/prices/id/PATCH/PriceUpdate.json.example' - application/vnd.ibexa.api.CustomPriceUpdateStruct+json: - schema: - $ref: '#/components/schemas/CustomPriceUpdateStructWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/code/prices/id/PATCH/CustomPriceUpdate.json.example' - required: false - deprecated: false - '/product/catalog/products/{identifier}': - delete: - operationId: api_productcatalogproducts_identifier_delete - tags: - - Product - responses: - '204': - description: 'No content - the given product is deleted.' - '401': - description: 'Error - the user is not authorized to delete this product.' - summary: 'Delete product' - description: 'Deletes the given product.' - parameters: - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/product/catalog/products/{productTypeIdentifier}': - post: - operationId: api_productcatalogproducts_productTypeIdentifier_post - tags: - - Product - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.ProductCreate+json: - schema: - $ref: '#/components/schemas/ProductWrapper' - example: - Product: - _media-type: application/vnd.ibexa.api.Product+json - code: wsk_98845 - name: 'HUMMINGBIRD PRO DRY 9,2MM' - ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: d_rope, name: 'Dynamic ropes', AttributeAssignmentList: [] } - Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/141, _remoteId: 86fdab24802923a9c30994858165ba9b, _id: 141, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/54 }, Name: 'HUMMINGBIRD PRO DRY 9,2MM', TranslatedName: 'HUMMINGBIRD PRO DRY 9,2MM', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/141/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/141/versions/2, VersionInfo: { id: 618, versionNo: 2, status: PUBLISHED, modificationDate: '2022-05-27T09:29:33+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-05-27T09:29:33+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'HUMMINGBIRD PRO DRY 9,2MM' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/141 } }, Fields: { field: [{ id: 612, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'HUMMINGBIRD PRO DRY 9,2MM' }, { id: 613, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 25, code: wsk_98845, attributes: [10] } }, { id: 614, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 615, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/141/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/141/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-05-27T09:29:33+00:00', publishedDate: '2022-05-27T06:51:36+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/141/objectstates } } - Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } - created_at: 1645787815 - updated_at: 1645787815 - AttributesList: [] - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update this product.' - '403': - description: 'Error - a product with the same name already exists.' - '404': - description: 'Error - no product with the given code exists.' - summary: 'Create product' - description: 'Creates a new product.' - parameters: - - - name: Accept - in: header - description: 'If set, the new product is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The product schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: productTypeIdentifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ProductCreateController resource' - content: - application/vnd.ibexa.api.ProductCreate+json: - schema: - $ref: '#/components/schemas/ProductCreateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product/POST/ProductCreate.json.example' - required: false - deprecated: false - /product/catalog/attributes: - get: - operationId: api_productcatalogattributes_get - tags: - - 'Product Attribute' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.AttributeList+xml: - schema: - $ref: '#/components/schemas/AttributeList' - application/vnd.ibexa.api.AttributeList+json: - schema: - $ref: '#/components/schemas/AttributeListWrapper' - example: - AttributeList: - _media-type: application/vnd.ibexa.api.AttributeList+json - Attribute: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: attrib1, name: Attrib1, description: '', type: Checkbox, type_identifier: checkbox, value: true, group: 'Attribute Group Test', position: 0, options: [] }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: attrib2, name: Attrib2, description: '', type: Checkbox, type_identifier: checkbox, value: true, group: 'Attribute Group Test', position: 0, options: [] }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: attrib3, name: Attrib3, description: '', type: Checkbox, type_identifier: checkbox, value: true, group: 'Attribute Group Test', position: 0, options: [] }] - '401': - description: 'Error - the user has no permission to read user groups.' - summary: 'Load attributes (deprecated)' - description: 'Loads list of all attributes. Deprecated as of Ibexa DXP 4.3, use POST /product/catalog/attributes/view instead.' - parameters: - - - name: Accept - in: header - description: 'AttributeList - If set, the attributes list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_productcatalogattributes_post - tags: - - 'Product Attribute' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.Attribute+json: - schema: - $ref: '#/components/schemas/AttributeWrapper' - example: - Attribute: - _media-type: application/vnd.ibexa.api.Attribute+json - identifier: attr_group - name: 'Attribute Group' - description: description - type: Checkbox - type_identifier: checkbox - value: true - group: 'Attribute Group' - position: 0 - options: [] - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this attribute.' - '403': - description: 'Error - an attribute with the same name already exists.' - summary: 'Create attribute' - description: 'Creates a new attribute.' - parameters: - - - name: Accept - in: header - description: 'If set, the new attribute is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The attribute schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new AttributeCreateController resource' - content: - application/vnd.ibexa.api.AttributeCreate+json: - schema: - $ref: '#/components/schemas/AttributeCreateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attributes/POST/AttributeCreate.json.example' - required: false - deprecated: false - '/product/catalog/attributes/translation/{id}/{languageCode}': - delete: - operationId: api_productcatalogattributestranslation_id_languageCode_delete - tags: - - 'Product Attribute' - responses: - '200': - description: 'No Content.' - '401': - description: 'Error - the user is not authorized to delete this translation.' - summary: 'Delete attribute translation' - description: 'The given translation is removed from the attribute.' - parameters: - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: languageCode - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /product/catalog/attributes/view: - post: - operationId: api_productcatalogattributesview_post - tags: - - 'Product Attribute' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.AttributeView+xml: - schema: - $ref: '#/components/schemas/AttributeView' - application/vnd.ibexa.api.AttributeView+json: - schema: - $ref: '#/components/schemas/AttributeViewWrapper' - example: - AttributeView: - _media-type: application/vnd.ibexa.api.AttributeView+json - identifier: TitleView - AttributeQuery: { _media-type: application/vnd.ibexa.api.AttributeQuery+json } - Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 1, AttributeList: { _media-type: application/vnd.ibexa.api.AttributeList+json, Attribute: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: measure, name: measure, description: '', type: Measurement, type_identifier: measurement, group: 'Test Attribute group', position: 0, options: { type: length, unit: centimeter, measurementRange: { minimum: 12, maximum: 15 }, measurementDefaultRange: { defaultRangeMinimumValue: null, defaultRangeMaximumValue: null } } }] } } - '400': - description: 'Error - the input does not match the input schema definition.' - summary: 'Filter attributes' - description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' - parameters: - - - name: Accept - in: header - description: 'The view in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The view input in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new AttributeViewController resource' - content: - application/vnd.ibexa.api.AttributeViewInput+xml: - schema: - $ref: '#/components/schemas/AttributeViewInput' - application/vnd.ibexa.api.AttributeViewInput+json: - schema: - $ref: '#/components/schemas/AttributeViewInputWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attributes/POST/AttributeViewInput.json.example' - required: false - deprecated: false - '/product/catalog/attributes/{id}': - get: - operationId: api_productcatalogattributes_id_get - tags: - - 'Product Attribute' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Attribute+xml: - schema: - $ref: '#/components/schemas/Attribute' - application/vnd.ibexa.api.Attribute+json: - schema: - $ref: '#/components/schemas/AttributeWrapper' - example: - Attribute: - _media-type: application/vnd.ibexa.api.Attribute+json - identifier: attr_group - name: 'Attribute Group' - description: description - type: Checkbox - type_identifier: checkbox - value: true - group: 'Attribute Group' - position: 0 - options: [] - '401': - description: 'Error - the user has no permission to read the attribute.' - summary: 'Load attribute' - description: 'Loads given attribute.' - parameters: - - - name: Accept - in: header - description: 'Attribute - If set, the given attribute is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_productcatalogattributes_id_delete - tags: - - 'Product Attribute' - responses: - '200': - description: 'No Content.' - '401': - description: 'Error - the user is not authorized to delete this attribute.' - summary: 'Delete attribute' - description: 'The given attribute is removed from the attribute group.' - parameters: - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/product/catalog/attributes/{id}/{group_id}': - patch: - operationId: api_productcatalogattributes_id_group_id_patch - tags: - - 'Product Attribute' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.Attribute+json: - schema: - $ref: '#/components/schemas/AttributeWrapper' - example: - Attribute: - _media-type: application/vnd.ibexa.api.Attribute+json - identifier: attr_group - name: 'Attribute Group' - description: description - type: Checkbox - type_identifier: checkbox - value: true - group: 'Attribute Group' - position: 0 - options: [] - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this attribute.' - '403': - description: 'Error - an attribute with the same name already exists.' - '404': - description: 'Error - the attribute with the given ID does not exist.' - summary: 'Update attribute' - description: 'Updates an attribute.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated attribute is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'If set, the updated attribute group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: group_id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated AttributeUpdateController resource' - content: - application/vnd.ibexa.api.AttributeUpdate+json: - schema: - $ref: '#/components/schemas/AttributeUpdateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attributes/id/group_id/PATCH/AttributeUpdate.json.example' - required: false - deprecated: false - /product/catalog/attribute_groups: - get: - operationId: api_productcatalogattribute_groups_get - tags: - - 'Product Attribute Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.AttributeGroupList+xml: - schema: - $ref: '#/components/schemas/AttributeGroupList' - application/vnd.ibexa.api.AttributeGroupList+json: - schema: - $ref: '#/components/schemas/AttributeGroupListWrapper' - example: - AttributeGroupList: - _media-type: application/vnd.ibexa.api.AttributeGroupList+json - AttributeGroup: [{ _media-type: application/vnd.ibexa.api.AttributeGroup+json, name: 'Attribute Group Test', identifier: attr_group_test, position: 0 }, { _media-type: application/vnd.ibexa.api.AttributeGroup+json, name: Dimensions, identifier: ag_dimensions, position: 0 }] - '401': - description: 'Error - the user has no permission to read attribute groups.' - summary: 'Load attribute groups (deprecated)' - description: 'Returns a list of attribute groups. Deprecated as of Ibexa DXP 4.3, use POST /product/catalog/attribute_groups/view instead.' - parameters: - - - name: Accept - in: header - description: 'AttributeGroupList - If set, the attribute group list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The AttributeGroupListGet schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - content: - application/vnd.ibexa.api.AttributeGroupListGet+json: - schema: - $ref: '#/components/schemas/AttributeGroupListGetWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attribute_groups/GET/AttributeGroupListGet.json.example' - required: false - deprecated: false - post: - operationId: api_productcatalogattribute_groups_post - tags: - - 'Product Attribute Group' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.AttributeGroup+json: - schema: - $ref: '#/components/schemas/AttributeGroupWrapper' - example: - AttributeGroup: - _media-type: application/vnd.ibexa.api.AttributeGroup+json - name: 'Colors Group' - identifier: ag_colors - position: 0 - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this attribute group.' - '403': - description: 'Error - an attribute group with the same identifier already exists.' - summary: 'Create attribute group' - description: 'Creates a new attribute group.' - parameters: - - - name: Accept - in: header - description: 'If set, the new attribute group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The AttributeGroup schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new AttributeGroupCreateController resource' - content: - application/vnd.ibexa.api.AttributeGroupCreate+json: - schema: - $ref: '#/components/schemas/AttributeGroupCreateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attribute_groups/POST/AttributeGroupCreate.json.example' - required: false - deprecated: false - '/product/catalog/attribute_groups/translation/{id}/{languageCode}': - delete: - operationId: api_productcatalogattribute_groupstranslation_id_languageCode_delete - tags: - - 'Product Attribute Group' - responses: - '200': - description: 'No content - the given attribute group translation is deleted.' - '401': - description: 'Error - the user is not authorized to delete this attribute group translation assignment.' - summary: 'Delete attribute group translation' - description: 'Deletes given translation from attribute group.' - parameters: - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: languageCode - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /product/catalog/attribute_groups/view: - post: - operationId: api_productcatalogattribute_groupsview_post - tags: - - 'Product Attribute Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.AttributeGroupView+xml: - schema: - $ref: '#/components/schemas/AttributeGroupView' - application/vnd.ibexa.api.AttributeGroupView+json: - schema: - $ref: '#/components/schemas/AttributeGroupViewWrapper' - example: - AttributeGroupView: - _media-type: application/vnd.ibexa.api.AttributeGroupView+json - identifier: TitleView - AttributeGroupQuery: { _media-type: application/vnd.ibexa.api.AttributeGroupQuery+json } - Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 1, AttributeGroupList: { _media-type: application/vnd.ibexa.api.AttributeGroupList+json, AttributeGroup: [{ _media-type: application/vnd.ibexa.api.AttributeGroup+json, name: 'Test Attribute group', identifier: test_attribute_group, position: 0 }] } } - '400': - description: 'Error - the input does not match the input schema definition.' - summary: 'Filter attribute groups' - description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' - parameters: - - - name: Accept - in: header - description: 'The view in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The view input in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new AttributeGroupViewController resource' - content: - application/vnd.ibexa.api.AttributeGroupViewInput+xml: - schema: - $ref: '#/components/schemas/AttributeGroupViewInput' - application/vnd.ibexa.api.AttributeGroupViewInput+json: - schema: - $ref: '#/components/schemas/AttributeGroupViewInputWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attribute_groups/POST/AttributeGroupViewInput.json.example' - required: false - deprecated: false - '/product/catalog/attribute_groups/{id}': - get: - operationId: api_productcatalogattribute_groups_id_get - tags: - - 'Product Attribute Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.AttributeGroup+xml: - schema: - $ref: '#/components/schemas/AttributeGroup' - application/vnd.ibexa.api.AttributeGroup+json: - schema: - $ref: '#/components/schemas/AttributeGroupWrapper' - example: - AttributeGroup: - _media-type: application/vnd.ibexa.api.AttributeGroup+json - name: 'Colors Group' - identifier: ag_colors - position: 0 - '401': - description: 'Error - the user has no permission to read attribute groups.' - summary: 'Load attribute group' - description: 'Returns the given attribute group.' - parameters: - - - name: Accept - in: header - description: 'AttributeGroupGet - If set, the attribute group List is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'An optional AttributeGroupGet schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - content: - application/vnd.ibexa.api.AttributeGroupGet+xml: - schema: - $ref: '#/components/schemas/AttributeGroupGet' - application/vnd.ibexa.api.AttributeGroupGet+json: - schema: - $ref: '#/components/schemas/AttributeGroupGetWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attributes/id/GET/AttributeGet.json.example' - required: false - deprecated: false - delete: - operationId: api_productcatalogattribute_groups_id_delete - tags: - - 'Product Attribute Group' - responses: - '204': - description: 'No content - the given attribute group is deleted.' - '401': - description: 'Error - the user is not authorized to delete this attribute group.' - summary: 'Delete attribute group' - description: 'Deletes an attribute group.' - parameters: - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_productcatalogattribute_groups_id_patch - tags: - - 'Product Attribute Group' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.AttributeGroup+xml: - schema: - $ref: '#/components/schemas/AttributeGroup' - application/vnd.ibexa.api.AttributeGroup+json: - schema: - $ref: '#/components/schemas/AttributeGroupWrapper' - example: - AttributeGroup: - _media-type: application/vnd.ibexa.api.AttributeGroup+json - name: 'Colors Group' - identifier: ag_colors - position: 0 - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this attribute group.' - '403': - description: 'Error - an attribute group with the same identifier already exists.' - '404': - description: 'Error - the group with the given ID does not exist.' - summary: 'Update attribute group' - description: 'Updates an attribute group.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated attribute group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The attribute group update schema is sent in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated AttributeGroupUpdateController resource' - content: - application/vnd.ibexa.api.AttributeGroupUpdate+xml: - schema: - $ref: '#/components/schemas/AttributeGroupUpdate' - application/vnd.ibexa.api.AttributeGroupUpdate+json: - schema: - $ref: '#/components/schemas/AttributeGroupUpdateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/attribute_groups/id/PATCH/AttributeGroupUpdate.json.example' - required: false - deprecated: false - /product/catalog/attribute_types: - get: - operationId: api_productcatalogattribute_types_get - tags: - - 'Product Attribute Type' - responses: - '200': - description: 'OK - returns a list of Attribute Types' - content: - application/vnd.ibexa.api.AttributeTypeList+xml: - schema: - $ref: '#/components/schemas/AttributeTypeList' - application/vnd.ibexa.api.AttributeTypeList+json: - schema: - $ref: '#/components/schemas/AttributeTypeListWrapper' - summary: 'List Attribute Types' - description: 'Lists all Attribute Types.' - parameters: - - - name: Accept - in: header - description: 'If set, the list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/product/catalog/attribute_types/{identifier}': - get: - operationId: api_productcatalogattribute_types_identifier_get - tags: - - 'Product Attribute Type' - responses: - '200': - description: 'OK - returns the Attribute Type' - content: - application/vnd.ibexa.api.AttributeType+xml: - schema: - $ref: '#/components/schemas/AttributeType' - application/vnd.ibexa.api.AttributeType+json: - schema: - $ref: '#/components/schemas/AttributeTypeWrapper' - '404': - description: 'Error - The Attribute Type does not exist.' - summary: 'Get Attribute Type' - description: 'Gets an Attribute Type by its identifier.' - parameters: - - - name: Accept - in: header - description: 'If set, the Attribute Type is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /product/catalog/catalogs: - post: - operationId: api_productcatalogcatalogs_post - tags: - - 'Product Catalog' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.CatalogCreate+json: - schema: - $ref: '#/components/schemas/CatalogWrapper' - example: - Catalog: - _media-type: application/vnd.ibexa.api.Catalog+json - identifier: test_catalog_copied - name: 'Snow Equipment updated' - description: 'Snow Equipment catalog for 2022' - User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - created: 1666091820 - modified: 1666091820 - status: draft - Criteria: [{ _media-type: application/vnd.ibexa.api.ProductCode+json, ProductCodeCriterion: { _media-type: application/vnd.ibexa.api.ProductCodeCriterion+json, codes: [ski] } }, { _media-type: application/vnd.ibexa.api.ProductAvailability+json, ProductAvailabilityCriterion: { _media-type: application/vnd.ibexa.api.ProductAvailabilityCriterion+json, is_available: false } }, { _media-type: application/vnd.ibexa.api.CreatedAt+json, CreatedAtCriterion: { _media-type: application/vnd.ibexa.api.CreatedAtCriterion+json, created_at: { date: '2022-12-12 00:00:00.000000', timezone_type: 3, timezone: Europe/Warsaw }, operator: '>=' } }] - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update this catalog.' - '403': - description: 'Error - a catalog with the same name already exists.' - '404': - description: 'Error - no catalog with the given code exists.' - summary: 'Create catalog' - description: 'Creates a new catalog.' - parameters: - - - name: Accept - in: header - description: 'If set, the new catalog is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The catalog schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new CatalogCreateController resource' - content: - application/vnd.ibexa.api.CatalogCreate+json: - schema: - $ref: '#/components/schemas/CatalogCreateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/catalog/POST/CatalogCreate.json.example' - required: false - deprecated: false - '/product/catalog/catalogs/copy/{identifier}': - post: - operationId: api_productcatalogcatalogscopy_identifier_post - tags: - - 'Product Catalog' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.Catalog+json: - schema: - $ref: '#/components/schemas/CatalogWrapper' - example: - Catalog: - _media-type: application/vnd.ibexa.api.Catalog+json - identifier: test_catalog_copied - name: 'Snow Equipment updated' - description: 'Snow Equipment catalog for 2022' - User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - created: 1666091820 - modified: 1666091820 - status: draft - Criteria: [{ _media-type: application/vnd.ibexa.api.ProductCode+json, ProductCodeCriterion: { _media-type: application/vnd.ibexa.api.ProductCodeCriterion+json, codes: [ski] } }, { _media-type: application/vnd.ibexa.api.ProductAvailability+json, ProductAvailabilityCriterion: { _media-type: application/vnd.ibexa.api.ProductAvailabilityCriterion+json, is_available: false } }, { _media-type: application/vnd.ibexa.api.CreatedAt+json, CreatedAtCriterion: { _media-type: application/vnd.ibexa.api.CreatedAtCriterion+json, created_at: { date: '2022-12-12 00:00:00.000000', timezone_type: 3, timezone: Europe/Warsaw }, operator: '>=' } }] - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to copy this catalog.' - '403': - description: 'Error - a catalog with the same identifier already exists.' - '404': - description: 'Error - no catalog with the given identifier exists.' - summary: 'Copy catalog' - description: 'Copies a catalog.' - parameters: - - - name: Accept - in: header - description: 'If set, the copied catalog is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'If set, the copied catalog is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new CatalogCopyController resource' - content: - application/vnd.ibexa.api.CatalogCopy+json: - schema: - $ref: '#/components/schemas/CatalogCopyWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/catalog/identifier/POST/CatalogCopy.json.example' - required: false - deprecated: false - /product/catalog/catalogs/filters: - get: - operationId: api_productcatalogcatalogsfilters_get - tags: - - 'Product Catalog' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ProductFilterList+xml: - schema: - $ref: '#/components/schemas/ProductFilterList' - application/vnd.ibexa.api.ProductFilterList+json: - schema: - $ref: '#/components/schemas/ProductFilterListWrapper' - example: - ProductFilterList: - _media-type: application/vnd.ibexa.api.ProductFilterList+json - ProductFilter: [{ _media-type: application/vnd.ibexa.api.ProductFilter+json, name: CreatedAtCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: CreatedAtRangeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: ProductCategoryCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: ColorAttributeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: FloatAttributeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: FloatAttributeRangeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: IntegerAttributeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: IntegerAttributeRangeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: SelectionAttributeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: ProductCodeCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: ProductNameCriterion }, { _media-type: application/vnd.ibexa.api.ProductFilter+json, name: ProductAvailabilityCriterion }] - summary: 'Load catalog filters' - description: 'Loads product filters available for catalogs.' - parameters: - - - name: Accept - in: header - description: 'If set, the filters are returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /product/catalog/catalogs/sort_clauses: - get: - operationId: api_productcatalogcatalogssort_clauses_get - tags: - - 'Product Catalog' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ProductSortClauseList+xml: - schema: - $ref: '#/components/schemas/ProductSortClauseList' - application/vnd.ibexa.api.ProductSortClauseList+json: - schema: - $ref: '#/components/schemas/ProductSortClauseListWrapper' - example: - ProductSortClauseList: - _media-type: application/vnd.ibexa.api.ProductSortClauseList+json - ProductSortClause: [{ _media-type: application/vnd.ibexa.api.ProductSortClause+json, name: ProductName }, { _media-type: application/vnd.ibexa.api.ProductSortClause+json, name: ProductCode }, { _media-type: application/vnd.ibexa.api.ProductSortClause+json, name: ProductAvailability }, { _media-type: application/vnd.ibexa.api.ProductSortClause+json, name: CreatedAt }] - summary: 'Load catalog sort clauses' - description: 'Loads product sort clauses available for catalogs.' - parameters: - - - name: Accept - in: header - description: 'If set, the clauses are returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /product/catalog/catalogs/view: - post: - operationId: api_productcatalogcatalogsview_post - tags: - - 'Product Catalog' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.CatalogView+xml: - schema: - $ref: '#/components/schemas/CatalogView' - application/vnd.ibexa.api.CatalogView+json: - schema: - $ref: '#/components/schemas/CatalogViewWrapper' - example: - CatalogView: - _media-type: application/vnd.ibexa.api.CatalogView+json - identifier: TitleView - CatalogQuery: { _media-type: application/vnd.ibexa.api.CatalogQuery+json } - Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 1, CatalogList: { _media-type: application/vnd.ibexa.api.CatalogList+json, Catalog: [{ _media-type: application/vnd.ibexa.api.Catalog+json, identifier: test, name: test, description: '', User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, created: 1665479475, modified: 1665479475, status: draft, Criteria: [{ _media-type: application/vnd.ibexa.api.ProductCode+json, ProductCodeCriterion: { _media-type: application/vnd.ibexa.api.ProductCodeCriterion+json, codes: [test] } }] }] } } - '400': - description: 'Error - the input does not match the input schema definition.' - summary: 'Filter catalogs' - description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' - parameters: - - - name: Accept - in: header - description: 'The view in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The view input in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new CatalogViewController resource' - content: - application/vnd.ibexa.api.CatalogViewInput+xml: - schema: - $ref: '#/components/schemas/CatalogViewInput' - application/vnd.ibexa.api.CatalogViewInput+json: - schema: - $ref: '#/components/schemas/CatalogViewInputWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/catalog/POST/CatalogViewInput.json.example' - required: false - deprecated: false - '/product/catalog/catalogs/{identifier}': - get: - operationId: api_productcatalogcatalogs_identifier_get - tags: - - 'Product Catalog' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Catalog+xml: - schema: - $ref: '#/components/schemas/Catalog' - application/vnd.ibexa.api.Catalog+json: - schema: - $ref: '#/components/schemas/CatalogWrapper' - example: - Catalog: - _media-type: application/vnd.ibexa.api.Catalog+json - identifier: test_catalog_copied - name: 'Snow Equipment updated' - description: 'Snow Equipment catalog for 2022' - User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - created: 1666091820 - modified: 1666091820 - status: draft - Criteria: [{ _media-type: application/vnd.ibexa.api.ProductCode+json, ProductCodeCriterion: { _media-type: application/vnd.ibexa.api.ProductCodeCriterion+json, codes: [ski] } }, { _media-type: application/vnd.ibexa.api.ProductAvailability+json, ProductAvailabilityCriterion: { _media-type: application/vnd.ibexa.api.ProductAvailabilityCriterion+json, is_available: false } }, { _media-type: application/vnd.ibexa.api.CreatedAt+json, CreatedAtCriterion: { _media-type: application/vnd.ibexa.api.CreatedAtCriterion+json, created_at: { date: '2022-12-12 00:00:00.000000', timezone_type: 3, timezone: Europe/Warsaw }, operator: '>=' } }] - '401': - description: 'Error - the user is not authorized to view this catalog.' - '404': - description: 'Error - no catalog with the given identifier exists.' - summary: 'Load catalog' - description: 'Loads the given catalog.' - parameters: - - - name: Accept - in: header - description: 'If set, the catalog is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_productcatalogcatalogs_identifier_delete - tags: - - 'Product Catalog' - responses: - '204': - description: 'No content - the given catalog is deleted.' - '401': - description: 'Error - the user is not authorized to delete this catalog.' - summary: 'Delete catalog' - description: 'Deletes the given catalog.' - parameters: - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_productcatalogcatalogs_identifier_patch - tags: - - 'Product Catalog' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.Catalog+json: - schema: - $ref: '#/components/schemas/CatalogWrapper' - example: - Catalog: - _media-type: application/vnd.ibexa.api.Catalog+json - identifier: test_catalog_copied - name: 'Snow Equipment updated' - description: 'Snow Equipment catalog for 2022' - User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - created: 1666091820 - modified: 1666091820 - status: draft - Criteria: [{ _media-type: application/vnd.ibexa.api.ProductCode+json, ProductCodeCriterion: { _media-type: application/vnd.ibexa.api.ProductCodeCriterion+json, codes: [ski] } }, { _media-type: application/vnd.ibexa.api.ProductAvailability+json, ProductAvailabilityCriterion: { _media-type: application/vnd.ibexa.api.ProductAvailabilityCriterion+json, is_available: false } }, { _media-type: application/vnd.ibexa.api.CreatedAt+json, CreatedAtCriterion: { _media-type: application/vnd.ibexa.api.CreatedAtCriterion+json, created_at: { date: '2022-12-12 00:00:00.000000', timezone_type: 3, timezone: Europe/Warsaw }, operator: '>=' } }] - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update this catalog.' - '403': - description: 'Error - a catalog with the same identifier already exists.' - '404': - description: 'Error - no catalog with the given identifier exists.' - summary: 'Update catalog' - description: 'Updates a catalog.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated catalog is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'If set, the updated catalog is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated CatalogUpdateController resource' - content: - application/vnd.ibexa.api.CatalogUpdate+json: - schema: - $ref: '#/components/schemas/CatalogUpdateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/catalog/identifier/PATCH/CatalogUpdate.json.example' - required: false - deprecated: false - '/product/catalog/catalogs/{identifier}/products/view': - post: - operationId: api_productcatalogcatalogs_identifierproductsview_post - tags: - - 'Product Catalog' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ProductView+xml: - schema: - $ref: '#/components/schemas/ProductView' - application/vnd.ibexa.api.ProductView+json: - schema: - $ref: '#/components/schemas/ProductViewWrapper' - example: - ProductView: - _media-type: application/vnd.ibexa.api.ProductView+json - identifier: TitleView - ProductQuery: { _media-type: application/vnd.ibexa.api.ProductQuery+json } - Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 2, ProductList: { _media-type: application/vnd.ibexa.api.ProductList+json, Product: [{ _media-type: application/vnd.ibexa.api.Product+json, code: OTHER, isBaseProduct: false, isVariant: false, name: 'Other Office Desk', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: desk, name: Desk, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: null } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/67, _remoteId: c5c22c68912af81992b74851f158db4a, _id: 67, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/53 }, Name: 'Other Office Desk', TranslatedName: 'Other Office Desk', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/67/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/67/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/67/versions/2, VersionInfo: { id: 529, versionNo: 2, status: PUBLISHED, modificationDate: '2023-04-12T14:06:25+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-12T14:06:25+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Other Office Desk' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/67 } }, Fields: { field: [{ id: 301, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Other Office Desk' }, { id: 302, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 4, code: OTHER, attributes: [white, []] } }, { id: 303, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 304, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 305, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: product_categories } }, { id: 306, fieldDefinitionIdentifier: field_64369cb9130a7, languageCode: eng-GB, fieldTypeIdentifier: ibexa_seo, fieldValue: '' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/67/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/67/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-12T14:06:25+00:00', publishedDate: '2023-04-12T11:59:17+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/67/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml }, created_at: 1681308385, updated_at: 1681308385, AttributesList: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: white }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null }], Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '160.00', base_amount: '160.00', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true }, money: '16000', base_money: '16000' } }, { _media-type: application/vnd.ibexa.api.Product+json, code: ERGO, isBaseProduct: false, isVariant: false, name: 'Ergo Office Desk', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: desk, name: Desk, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: null } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/66, _remoteId: 1e7449c13671b56ed3907929a2af3ad9, _id: 66, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/53 }, Name: 'Ergo Office Desk', TranslatedName: 'Ergo Office Desk', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/66/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/66/versions/2, VersionInfo: { id: 528, versionNo: 2, status: PUBLISHED, modificationDate: '2023-04-12T14:06:14+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2023-04-12T14:06:14+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Ergo Office Desk' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/66 } }, Fields: { field: [{ id: 295, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Ergo Office Desk' }, { id: 296, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 3, code: ERGO, attributes: [black, []] } }, { id: 297, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" } }, { id: 298, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 299, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: product_categories } }, { id: 300, fieldDefinitionIdentifier: field_64369cb9130a7, languageCode: eng-GB, fieldTypeIdentifier: ibexa_seo, fieldValue: '' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/66/versions/2/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/66/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-04-12T14:06:14+00:00', publishedDate: '2023-04-12T11:58:00+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/66/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: /placeholder, width: null, height: null, mimeType: image/svg+xml }, created_at: 1681308374, updated_at: 1681308374, AttributesList: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: color, name: Color, description: '', type: Selection, type_identifier: selection, group: Desk, position: 0, options: { choices: [{ label: { eng-GB: Black }, value: black }, { label: { eng-GB: White }, value: white }] }, value: black }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: width, name: Width, description: '', type: 'Measurement (single)', type_identifier: measurement_single, group: Desk, position: 0, options: { sign: none, type: length, unit: centimeter, defaultValue: null }, value: null }], Price: { _media-type: application/vnd.ibexa.api.Price+json, amount: '99.00', base_amount: '99.00', Currency: { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: true }, money: '9900', base_money: '9900' } }] }, aggregations: [{ _media-type: application/vnd.ibexa.api.RangeAggregationResult+json, name: price, entries: [{ _media-type: application/vnd.ibexa.api.RangeAggregationResultEntry+json, key: { Range: { _media-type: application/vnd.ibexa.api.Range+json, from: 0, to: 10000 } }, count: 1 }] }] } - '400': - description: 'Error - the input does not match the input schema definition.' - summary: 'Filter catalog products' - description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' - parameters: - - - name: Accept - in: header - description: 'The view in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The view input in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new CatalogProductsViewController resource' - content: - application/vnd.ibexa.api.ProductViewInput+xml: - schema: - $ref: '#/components/schemas/ProductViewInput' - application/vnd.ibexa.api.ProductViewInput+json: - schema: - $ref: '#/components/schemas/ProductViewInputWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/catalog/POST/CatalogProductsViewInput.json.example' - required: false - deprecated: false - /product/catalog/currencies: - get: - operationId: api_productcatalogcurrencies_get - tags: - - 'Product Currency' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.CurrencyList+json: - schema: - $ref: '#/components/schemas/CurrencyListWrapper' - example: - CurrencyList: - _media-type: application/vnd.ibexa.api.CurrencyList+json - Currency: [{ _media-type: application/vnd.ibexa.api.Currency+json, id: 1, code: AFN, subunits: 1, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 3, code: ALL, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 4, code: DZD, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 5, code: USD, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 6, code: AOA, subunits: 2, enabled: false }] - '401': - description: 'Error - the user has no permission to read currencies.' - summary: 'Load currencies' - description: 'Loads the list of currencies.' - parameters: - - - name: Accept - in: header - description: 'CurrencyList - If set, the currency list returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_productcatalogcurrencies_post - tags: - - 'Product Currency' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Currency+json: - schema: - $ref: '#/components/schemas/CurrencyWrapper' - example: - Currency: - _media-type: application/vnd.ibexa.api.Currency+json - id: 1 - code: AFN - subunits: 1 - enabled: false - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this currency.' - '406': - description: 'Error - a currency with this code already exists.' - summary: 'Create currency' - description: 'Creates a new currency.' - parameters: - - - name: Accept - in: header - description: 'If set, the new currency is returned in JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The Currency schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new CurrencyCreateController resource' - content: - application/vnd.ibexa.api.CurrencyCreate+json: - schema: - $ref: '#/components/schemas/CurrencyCreateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/currency/POST/CurrencyCreate.json.example' - required: false - deprecated: false - /product/catalog/currencies/view: - post: - operationId: api_productcatalogcurrenciesview_post - tags: - - 'Product Currency' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.CurrencyView+xml: - schema: - $ref: '#/components/schemas/CurrencyView' - application/vnd.ibexa.api.CurrencyView+json: - schema: - $ref: '#/components/schemas/CurrencyViewWrapper' - example: - CurrencyView: - _media-type: application/vnd.ibexa.api.CurrencyView+json - identifier: TitleView - CurrencyQuery: { _media-type: application/vnd.ibexa.api.CurrencyQuery+json } - Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 179, CurrencyList: { _media-type: application/vnd.ibexa.api.CurrencyList+json, Currency: [{ _media-type: application/vnd.ibexa.api.Currency+json, id: 1, code: AFN, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 2, code: EUR, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 3, code: ALL, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 4, code: DZD, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 5, code: USD, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 6, code: AOA, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 7, code: XCD, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 8, code: ARS, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 9, code: AMD, subunits: 2, enabled: false }, { _media-type: application/vnd.ibexa.api.Currency+json, id: 10, code: AWG, subunits: 2, enabled: false }] } } - '400': - description: 'Error - the input does not match the input schema definition.' - summary: 'Filter currencies' - description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' - parameters: - - - name: Accept - in: header - description: 'The view in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The view input in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new CurrencyViewController resource' - content: - application/vnd.ibexa.api.CurrencyViewInput+xml: - schema: - $ref: '#/components/schemas/CurrencyViewInput' - application/vnd.ibexa.api.CurrencyViewInput+json: - schema: - $ref: '#/components/schemas/CurrencyViewInputWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/currency/POST/CurrencyViewInput.json.example' - required: false - deprecated: false - '/product/catalog/currencies/{id}': - get: - operationId: api_productcatalogcurrencies_id_get - tags: - - 'Product Currency' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Currency+json: - schema: - $ref: '#/components/schemas/CurrencyWrapper' - example: - Currency: - _media-type: application/vnd.ibexa.api.Currency+json - id: 1 - code: AFN - subunits: 1 - enabled: false - '401': - description: 'Error - the user has no permission to read currencies.' - '404': - description: 'Error - the currency does not exist.' - summary: 'Load currency' - description: 'Loads a currency.' - parameters: - - - name: Accept - in: header - description: 'Currency - If set, the currency returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_productcatalogcurrencies_id_delete - tags: - - 'Product Currency' - responses: - '200': - description: 'No content - the given currency is deleted.' - '401': - description: 'Error - the user is not authorized to delete this currency.' - summary: 'Delete currency' - description: 'Deletes the given currency.' - parameters: - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_productcatalogcurrencies_id_patch - tags: - - 'Product Currency' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Currency+json: - schema: - $ref: '#/components/schemas/CurrencyWrapper' - example: - Currency: - _media-type: application/vnd.ibexa.api.Currency+json - id: 1 - code: AFN - subunits: 1 - enabled: false - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this User.' - '403': - description: 'Error - a currency with the same ID already exists.' - '404': - description: 'Error - the currency with the given ID does not exist.' - summary: 'Update currency' - description: 'Updates a currency.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated currency is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The CurrencyUpdate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated CurrencyUpdateController resource' - content: - application/vnd.ibexa.api.CurrencyUpdate+json: - schema: - $ref: '#/components/schemas/CurrencyUpdateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/currency/currency_id/PATCH/CurrencyUpdate.json.example' - required: false - deprecated: false - /product/catalog/customer_groups: - get: - operationId: api_productcatalogcustomer_groups_get - tags: - - 'Product Customer Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.CustomerGroupList+json: - schema: - $ref: '#/components/schemas/CustomerGroupListWrapper' - example: - CustomerGroupList: - _media-type: application/vnd.ibexa.api.CustomerGroupList+json - CustomerGroup: [{ _media-type: application/vnd.ibexa.api.CustomerGroup+json, id: 1, name: Resellers, identifier: resellers, description: '', users: [], global_price_rate: '0.00' }, { _media-type: application/vnd.ibexa.api.CustomerGroup+json, id: 2, name: Contractors, identifier: contractors, description: '', users: [], global_price_rate: '-20.00' }] - '401': - description: 'Error - the user has no permission to read customer groups.' - summary: 'Load customer groups' - description: 'Returns a list of customer groups' - parameters: - - - name: Accept - in: header - description: 'If set, the customer groups list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_productcatalogcustomer_groups_post - tags: - - 'Product Customer Group' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.CustomerGroup+json: - schema: - $ref: '#/components/schemas/CustomerGroupWrapper' - example: - CustomerGroup: - _media-type: application/vnd.ibexa.api.CustomerGroup+json - id: 1 - name: 'Customer Group' - identifier: customer_group - description: '' - users: [] - global_price_rate: '1.00' - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this Customer Group.' - '403': - description: 'Error - a customer group with the same name already exists.' - summary: 'Create customer group' - description: 'Creates a new customer group.' - parameters: - - - name: Accept - in: header - description: 'If set, the new customer group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The CustomerGroupCreate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new CustomerGroupCreateController resource' - content: - application/vnd.ibexa.api.CustomerGroupCreate+json: - schema: - $ref: '#/components/schemas/CustomerGroupCreateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/customer_groups/POST/CustomerGroupCreate.json.example' - required: false - deprecated: false - /product/catalog/customer_groups/view: - post: - operationId: api_productcatalogcustomer_groupsview_post - tags: - - 'Product Customer Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.CustomerGroupView+xml: - schema: - $ref: '#/components/schemas/CustomerGroupView' - application/vnd.ibexa.api.CustomerGroupView+json: - schema: - $ref: '#/components/schemas/CustomerGroupViewWrapper' - example: - CustomerGroupView: - _media-type: application/vnd.ibexa.api.CustomerGroupView+json - identifier: TitleView - CustomerGroupQuery: { _media-type: application/vnd.ibexa.api.CustomerGroupQuery+json } - Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 1, CustomerGroupList: { _media-type: application/vnd.ibexa.api.CustomerGroupList+json, CustomerGroup: [{ _media-type: application/vnd.ibexa.api.CustomerGroup+json, id: 1, name: Business, identifier: business, description: 'Most trusted business customers, being our partners for at least 5 years.', users: [], global_price_rate: '15.00' }] } } - '400': - description: 'Error - the input does not match the input schema definition.' - summary: 'Filter customer groups' - description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' - parameters: - - - name: Accept - in: header - description: 'The view in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The view input in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new CustomerGroupViewController resource' - content: - application/vnd.ibexa.api.CustomerGroupViewInput+xml: - schema: - $ref: '#/components/schemas/CustomerGroupViewInput' - application/vnd.ibexa.api.CustomerGroupViewInput+json: - schema: - $ref: '#/components/schemas/CustomerGroupViewInputWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/customer_groups/POST/CustomerGroupViewInput.json.example' - required: false - deprecated: false - '/product/catalog/customer_groups/{identifier}': - get: - operationId: api_productcatalogcustomer_groups_identifier_get - tags: - - 'Product Customer Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.CustomerGroup+json: - schema: - $ref: '#/components/schemas/CustomerGroupWrapper' - example: - CustomerGroup: - _media-type: application/vnd.ibexa.api.CustomerGroup+json - id: 1 - name: 'Customer Group' - identifier: customer_group - description: '' - users: [] - global_price_rate: '1.00' - '401': - description: 'Error - the user has no permission to read customer groups.' - summary: 'Load customer group' - description: 'Returns a customer group' - parameters: - - - name: Accept - in: header - description: 'If set, the customer group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_productcatalogcustomer_groups_identifier_delete - tags: - - 'Product Customer Group' - responses: - '204': - description: 'No content - the given customer group is deleted.' - '401': - description: 'Error - the user is not authorized to delete this customer group.' - summary: 'Delete customer group' - description: 'Deletes the given customer group.' - parameters: - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_productcatalogcustomer_groups_identifier_patch - tags: - - 'Product Customer Group' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.CustomerGroup+json: - schema: - $ref: '#/components/schemas/CustomerGroupWrapper' - example: - CustomerGroup: - _media-type: application/vnd.ibexa.api.CustomerGroup+json - id: 1 - name: 'Customer Group' - identifier: customer_group - description: '' - users: [] - global_price_rate: '1.00' - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update a customer group.' - summary: 'Update customer group' - description: 'Updates the given customer group.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated customer group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The CustomerGroupUpdate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated CustomerGroupUpdateController resource' - content: - application/vnd.ibexa.api.CustomerGroupUpdate+json: - schema: - $ref: '#/components/schemas/CustomerGroupUpdateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/customer_groups/identifier/PATCH/CustomerGroupUpdate.json.example' - required: false - deprecated: false - '/product/catalog/customer_groups/{id}': - get: - operationId: api_productcatalogcustomer_groups_id_get - tags: - - 'Product Customer Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.CustomerGroup+json: - schema: - $ref: '#/components/schemas/CustomerGroupWrapper' - example: - CustomerGroup: - _media-type: application/vnd.ibexa.api.CustomerGroup+json - id: 1 - name: 'Customer Group' - identifier: customer_group - description: '' - users: [] - global_price_rate: '1.00' - '401': - description: 'Error - the user has no permission to read customer groups.' - summary: 'Load customer group' - description: 'Returns a customer group' - parameters: - - - name: Accept - in: header - description: 'If set, the customer group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: integer - style: simple - explode: false - allowReserved: false - deprecated: false - /product/catalog/regions: - get: - operationId: api_productcatalogregions_get - tags: - - 'Product Region' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.RegionList+xml: - schema: - $ref: '#/components/schemas/RegionList' - application/vnd.ibexa.api.RegionList+json: - schema: - $ref: '#/components/schemas/RegionListWrapper' - example: - RegionList: - _media-type: application/vnd.ibexa.api.RegionList+json - Region: [{ _media-type: application/vnd.ibexa.api.Region+json, identifier: france }, { _media-type: application/vnd.ibexa.api.Region+json, identifier: __REGION_2__ }, { _media-type: application/vnd.ibexa.api.Region+json, identifier: __REGION_1__ }, { _media-type: application/vnd.ibexa.api.Region+json, identifier: foo }, { _media-type: application/vnd.ibexa.api.Region+json, identifier: bar }] - '401': - description: 'Error - the user has no permission to read regions.' - summary: 'Load regions' - description: 'Loads the list of regions.' - parameters: - - - name: Accept - in: header - description: 'RegionList - If set, the regions list returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /product/catalog/regions/view: - post: - operationId: api_productcatalogregionsview_post - tags: - - 'Product Region' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.RegionView+xml: - schema: - $ref: '#/components/schemas/RegionView' - application/vnd.ibexa.api.RegionView+json: - schema: - $ref: '#/components/schemas/RegionViewWrapper' - example: - RegionView: - _media-type: application/vnd.ibexa.api.RegionView+json - identifier: TitleView - RegionQuery: { _media-type: application/vnd.ibexa.api.RegionQuery+json } - Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 2, RegionList: { _media-type: application/vnd.ibexa.api.RegionList+json, Region: [{ _media-type: application/vnd.ibexa.api.Region+json, identifier: region_1 }, { _media-type: application/vnd.ibexa.api.Region+json, identifier: region_2 }] } } - '400': - description: 'Error - the input does not match the input schema definition.' - summary: 'Filter regions' - description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' - parameters: - - - name: Accept - in: header - description: 'The view in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The view input in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new RegionViewController resource' - content: - application/vnd.ibexa.api.RegionViewInput+xml: - schema: - $ref: '#/components/schemas/RegionViewInput' - application/vnd.ibexa.api.RegionViewInput+json: - schema: - $ref: '#/components/schemas/RegionViewInputWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/regions/POST/RegionViewInput.json.example' - required: false - deprecated: false - '/product/catalog/regions/{identifier}': - get: - operationId: api_productcatalogregions_identifier_get - tags: - - 'Product Region' - responses: - '200': - description: 'OK - loads region.' - content: - application/vnd.ibexa.api.Region+xml: - schema: - $ref: '#/components/schemas/Region' - application/vnd.ibexa.api.Region+json: - schema: - $ref: '#/components/schemas/RegionWrapper' - '404': - description: 'Error - the region does not exist.' - summary: 'Load region' - description: 'Loads a region by its identifier' - parameters: - - - name: Accept - in: header - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /product/catalog/product_types: - get: - operationId: api_productcatalogproduct_types_get - tags: - - 'Product Type' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ProductTypeList+xml: - schema: - $ref: '#/components/schemas/ProductTypeList' - application/vnd.ibexa.api.ProductTypeList+json: - schema: - $ref: '#/components/schemas/ProductTypeListWrapper' - example: - ProductTypeList: - _media-type: application/vnd.ibexa.api.ProductTypeList+json - ProductType: [{ _media-type: application/vnd.ibexa.api.ProductType+json, identifier: s_rope, name: 'Static ropes', AttributeAssignmentList: [] }] - '401': - description: 'Error - the user has no permission to read product type.' - summary: 'Load product types (deprecated)' - description: 'Returns a list of product types. Deprecated as of Ibexa DXP 4.3, use POST /product/catalog/product_types/view instead.' - parameters: - - - name: Accept - in: header - description: 'ProductTypeList - If set, the product type list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The ProductTypeList schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - content: - application/vnd.ibexa.api.ProductTypeListGet+xml: - schema: - $ref: '#/components/schemas/ProductTypeListGet' - application/vnd.ibexa.api.ProductTypeListGet+json: - schema: - $ref: '#/components/schemas/ProductTypeListGetWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_types/GET/ProductTypeListGet.json.example' - required: false - deprecated: false - post: - operationId: api_productcatalogproduct_types_post - tags: - - 'Product Type' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.ProductType+json: - schema: - $ref: '#/components/schemas/ProductTypeWrapper' - example: - ProductType: - _media-type: application/vnd.ibexa.api.ProductType+json - identifier: NEW - name: pt_1_updated - AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: size, name: Size, description: '', type: Integer, type_identifier: integer, value: 5, group: Hat, position: 0, options: [] } }] - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this product type.' - '403': - description: 'Error - a product type with the same name already exists.' - '404': - description: 'Error - the product type with the given ID does not exist.' - summary: 'Create product type' - description: 'Creates a new product type.' - parameters: - - - name: Accept - in: header - description: 'If set, the new product type is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The ProductType schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ProductTypeCreateController resource' - content: - application/vnd.ibexa.api.ProductTypeCreate+json: - schema: - $ref: '#/components/schemas/ProductTypeCreateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_types/POST/ProductTypeCreate.json.example' - required: false - deprecated: false - '/product/catalog/product_types/is_used/{identifier}': - get: - operationId: api_productcatalogproduct_typesis_used_identifier_get - tags: - - 'Product Type' - responses: - '200': - description: 'OK - product type usage is returned.' - content: - application/vnd.ibexa.api.ProductTypeUsage+xml: - schema: - $ref: '#/components/schemas/ProductTypeUsage' - application/vnd.ibexa.api.ProductTypeUsage+json: - schema: - $ref: '#/components/schemas/ProductTypeUsageWrapper' - '404': - description: 'Error - product type not found.' - summary: 'Check product type usage' - description: 'Checks whether the product type is in use.' - parameters: - - - name: Accept - in: header - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /product/catalog/product_types/view: - post: - operationId: api_productcatalogproduct_typesview_post - tags: - - 'Product Type' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ProductTypeView+xml: - schema: - $ref: '#/components/schemas/ProductTypeView' - application/vnd.ibexa.api.ProductTypeView+json: - schema: - $ref: '#/components/schemas/ProductTypeViewWrapper' - example: - ProductTypeView: - _media-type: application/vnd.ibexa.api.ProductTypeView+json - identifier: TitleView - ProductTypeQuery: { _media-type: application/vnd.ibexa.api.ProductTypeQuery+json } - Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 1, ProductTypeList: { _media-type: application/vnd.ibexa.api.ProductTypeList+json, ProductType: [{ _media-type: application/vnd.ibexa.api.ProductType+json, identifier: climbing_shoe, name: 'New Product Type', AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: measure, name: measure, description: '', type: Measurement, type_identifier: measurement, group: 'Test Attribute group', position: 0, options: { type: length, unit: centimeter, measurementRange: { minimum: 12, maximum: 15 }, measurementDefaultRange: { defaultRangeMinimumValue: null, defaultRangeMaximumValue: null } } } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: false, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: leather_color, name: 'leather color', description: '', type: Color, type_identifier: color, value: '#000000', group: 'Test Attribute group', position: 0, options: [] } }] }] } } - '400': - description: 'Error - the input does not match the input schema definition.' - summary: 'Filter product types' - description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' - parameters: - - - name: Accept - in: header - description: 'The view in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The view input in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ProductTypeViewController resource' - content: - application/vnd.ibexa.api.ProductTypeViewInput+xml: - schema: - $ref: '#/components/schemas/ProductTypeViewInput' - application/vnd.ibexa.api.ProductTypeViewInput+json: - schema: - $ref: '#/components/schemas/ProductTypeViewInputWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_types/POST/ProductTypeViewInput.json.example' - required: false - deprecated: false - '/product/catalog/product_types/{identifier}': - get: - operationId: api_productcatalogproduct_types_identifier_get - tags: - - 'Product Type' - responses: - '200': - description: 'OK - load the product type' - content: - application/vnd.ibexa.api.ProductTypeUsage+xml: - schema: - $ref: '#/components/schemas/ProductTypeUsage' - application/vnd.ibexa.api.ProductTypeUsage+json: - schema: - $ref: '#/components/schemas/ProductTypeUsageWrapper' - '401': - description: 'Error - the user has no permission to read product type.' - '404': - description: 'Error - product type not found.' - summary: 'Load product type' - description: 'Returns the given product type.' - parameters: - - - name: Accept - in: header - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/product/catalog/product_types/{id}': - delete: - operationId: api_productcatalogproduct_types_id_delete - tags: - - 'Product Type' - responses: - '204': - description: 'No content - the given product type is deleted.' - '401': - description: 'Error - the user is not authorized to delete this product type.' - summary: 'Delete product type' - description: 'Deletes the given product type.' - parameters: - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_productcatalogproduct_types_id_patch - tags: - - 'Product Type' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.ProductType+json: - schema: - $ref: '#/components/schemas/ProductTypeWrapper' - example: - ProductType: - _media-type: application/vnd.ibexa.api.ProductType+json - identifier: NEW - name: pt_1_updated - AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: size, name: Size, description: '', type: Integer, type_identifier: integer, value: 5, group: Hat, position: 0, options: [] } }] - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this product type.' - '404': - description: 'Error - the product type with the given ID does not exist.' - summary: 'Update product type' - description: 'Updates product type.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated product type is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'If set, the updated product type is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated ProductTypeUpdateController resource' - content: - application/vnd.ibexa.api.ProductTypeUpdate+json: - schema: - $ref: '#/components/schemas/ProductTypeUpdateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_types/id/PATCH/ProductTypeUpdate.json.example' - required: false - deprecated: false - '/product/catalog/product_variant/{code}': - get: - operationId: api_productcatalogproduct_variant_code_get - tags: - - 'Product Variant' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ProductVariant+json: - schema: - $ref: '#/components/schemas/ProductVariantWrapper' - example: - ProductVariant: - _media-type: application/vnd.ibexa.api.ProductVariant+json - code: test - name: 'Macbook Air ' - Product: { _media-type: application/vnd.ibexa.api.Product+json, code: mac_air, name: 'Macbook Air', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: laptop, name: Laptop, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: number, name: number, description: '', type: Float, type_identifier: float, value: 1.5, group: test, position: 0, options: { min: 4, max: 5 } } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: testattr, name: testAttr, description: '', type: Integer, type_identifier: integer, value: 5, group: test, position: 0, options: { min: 4, max: 5 } } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/152, _remoteId: 2d61ff8d0043eb299ca8c29c74f25441, _id: 152, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/56 }, Name: 'Macbook Air', TranslatedName: 'Macbook Air', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/152/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/versions/1, VersionInfo: { id: 635, versionNo: 1, status: PUBLISHED, modificationDate: '2022-07-21T15:17:18+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-07-21T15:17:18+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Macbook Air' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/152 } }, Fields: { field: [{ id: 716, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Macbook Air' }, { id: 717, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 89, code: mac_air, attributes: [] } }, { id: 718, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"><para>test</para></section>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"><p>test</p></section>\n" } }, { id: 719, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 720, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/152/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/152/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-07-21T15:17:18+02:00', publishedDate: '2022-07-21T15:17:18+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/152/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml }, created_at: 1658409438, updated_at: 1658409438, AttributesList: [] } - DiscriminatorAttributesList: [] - '401': - description: 'Error - the user is not authorized to view this product variant.' - '404': - description: 'Error - no product variant with the given code exists.' - summary: 'Load product variant' - description: 'Loads the given product variant.' - parameters: - - - name: Accept - in: header - description: 'If set, the product variant is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: code - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/product/catalog/product_variants/generate/{baseProductCode}': - post: - operationId: api_productcatalogproduct_variantsgenerate_baseProductCode_post - tags: - - 'Product Variant' - responses: - '201': - description: 'No content - product variants are generated.' - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this product variant.' - '403': - description: 'Error - a product variant with the same name already exists.' - '404': - description: 'Error - no base product with the given code exists.' - summary: 'Generate product variants' - description: 'Generates new product variants based on selected (discriminator) attributes.' - parameters: - - - name: Accept - in: header - description: 'If set, the new product variant is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The product variant schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: baseProductCode - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ProductVariantGenereateController resource' - content: - application/vnd.ibexa.api.ProductVariantGenerate+json: - schema: - $ref: '#/components/schemas/ProductVariantGenerateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_variants/POST/ProductVariantGenerate.json.example' - required: false - deprecated: false - '/product/catalog/product_variants/view/{baseProductCode}': - post: - operationId: api_productcatalogproduct_variantsview_baseProductCode_post - tags: - - 'Product Variant' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ProductVariantView+xml: - schema: - $ref: '#/components/schemas/ProductVariantView' - application/vnd.ibexa.api.ProductVariantView+json: - schema: - $ref: '#/components/schemas/ProductVariantViewWrapper' - example: - ProductVariantView: - _media-type: application/vnd.ibexa.api.ProductVariantView+json - identifier: TitleView - ProductVariantQuery: { _media-type: application/vnd.ibexa.api.ProductVariantQuery+json } - Result: { _media-type: application/vnd.ibexa.api.ViewResult+json, count: 2, ProductVariantList: { _media-type: application/vnd.ibexa.api.ProductVariantList+json, ProductVariant: [{ _media-type: application/vnd.ibexa.api.ProductVariant+json, code: test, name: 'Macbook Air 2/10', Product: { _media-type: application/vnd.ibexa.api.Product+json, code: mac_air, name: 'Macbook Air', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: laptop, name: Laptop, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: number, name: number, description: '', type: Float, type_identifier: float, value: 1.5, group: test, position: 0, options: { min: 4, max: 5 } } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: testattr, name: testAttr, description: '', type: Integer, type_identifier: integer, value: 5, group: test, position: 0, options: { min: 4, max: 5 } } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/152, _remoteId: 2d61ff8d0043eb299ca8c29c74f25441, _id: 152, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/56 }, Name: 'Macbook Air', TranslatedName: 'Macbook Air', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/152/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/versions/1, VersionInfo: { id: 635, versionNo: 1, status: PUBLISHED, modificationDate: '2022-07-21T15:17:18+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-07-21T15:17:18+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Macbook Air' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/152 } }, Fields: { field: [{ id: 716, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Macbook Air' }, { id: 717, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 89, code: mac_air, attributes: [] } }, { id: 718, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"><para>test</para></section>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"><p>test</p></section>\n" } }, { id: 719, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 720, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/152/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/152/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-07-21T15:17:18+02:00', publishedDate: '2022-07-21T15:17:18+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/152/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml }, created_at: 1658409438, updated_at: 1658409438, AttributesList: [] }, DiscriminatorAttributesList: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: number, name: number, description: '', type: Float, type_identifier: float, value: 1.5, group: test, position: 0, options: { min: 4, max: 5 } }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: testattr, name: testAttr, description: '', type: Integer, type_identifier: integer, value: 5, group: test, position: 0, options: { min: 4, max: 5 } }] }, { _media-type: application/vnd.ibexa.api.ProductVariant+json, code: fdsfds, name: 'Macbook Air 32/232', Product: { _media-type: application/vnd.ibexa.api.Product+json, code: mac_air, name: 'Macbook Air', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: laptop, name: Laptop, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: number, name: number, description: '', type: Float, type_identifier: float, value: 1.5, group: test, position: 0, options: { min: 4, max: 5 } } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: testattr, name: testAttr, description: '', type: Integer, type_identifier: integer, value: 5, group: test, position: 0, options: { min: 4, max: 5 } } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/152, _remoteId: 2d61ff8d0043eb299ca8c29c74f25441, _id: 152, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/56 }, Name: 'Macbook Air', TranslatedName: 'Macbook Air', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/152/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/versions/1, VersionInfo: { id: 635, versionNo: 1, status: PUBLISHED, modificationDate: '2022-07-21T15:17:18+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-07-21T15:17:18+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Macbook Air' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/152 } }, Fields: { field: [{ id: 716, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Macbook Air' }, { id: 717, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 89, code: mac_air, attributes: [] } }, { id: 718, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"><para>test</para></section>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"><p>test</p></section>\n" } }, { id: 719, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 720, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/152/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/152/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-07-21T15:17:18+02:00', publishedDate: '2022-07-21T15:17:18+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/152/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml }, created_at: 1658409438, updated_at: 1658409438, AttributesList: [] }, DiscriminatorAttributesList: [{ _media-type: application/vnd.ibexa.api.Attribute+json, identifier: number, name: number, description: '', type: Float, type_identifier: float, value: 1.5, group: test, position: 0, options: { min: 4, max: 5 } }, { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: testattr, name: testAttr, description: '', type: Integer, type_identifier: integer, value: 5, group: test, position: 0, options: { min: 4, max: 5 } }] }] } } - '400': - description: 'Error - the input does not match the input schema definition.' - '404': - description: 'Error - the base product does not exist.' - summary: 'Filter product variants' - description: 'Executes a query and returns a View including the results. The View input reflects the criteria model of the public PHP API.' - parameters: - - - name: Accept - in: header - description: 'The view in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The view input in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: baseProductCode - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ProductVariantViewController resource' - content: - application/vnd.ibexa.api.ProductVariantViewInput+xml: - schema: - $ref: '#/components/schemas/ProductVariantViewInput' - application/vnd.ibexa.api.ProductVariantViewInput+json: - schema: - $ref: '#/components/schemas/ProductVariantViewInputWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_variants/POST/ProductVariantViewInput.json.example' - required: false - deprecated: false - '/product/catalog/product_variants/{baseProductCode}': - post: - operationId: api_productcatalogproduct_variants_baseProductCode_post - tags: - - 'Product Variant' - responses: - '201': - description: 'No content - product variant is created.' - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this product variant.' - '403': - description: 'Error - a product variant with the same name already exists.' - '404': - description: 'Error - no base product with the given code exists.' - summary: 'Create product variant' - description: 'Creates a new product variant.' - parameters: - - - name: Accept - in: header - description: 'If set, the new product variant is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The product variant schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: baseProductCode - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ProductVariantCreateController resource' - content: - application/vnd.ibexa.api.ProductVariantCreate+json: - schema: - $ref: '#/components/schemas/ProductVariantCreateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_variants/POST/ProductVariantCreate.json.example' - required: false - deprecated: false - '/product/catalog/product_variants/{code}': - delete: - operationId: api_productcatalogproduct_variants_code_delete - tags: - - 'Product Variant' - responses: - '204': - description: 'No content - product variant is deleted.' - '401': - description: 'Error - the user is not authorized to delete this product variant.' - summary: 'Delete product variant' - description: 'Deletes the given product variant.' - parameters: - - - name: code - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_productcatalogproduct_variants_code_patch - tags: - - 'Product Variant' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.ProductVariant+json: - schema: - $ref: '#/components/schemas/ProductVariantWrapper' - example: - ProductVariant: - _media-type: application/vnd.ibexa.api.ProductVariant+json - code: test - name: 'Macbook Air ' - Product: { _media-type: application/vnd.ibexa.api.Product+json, code: mac_air, name: 'Macbook Air', ProductType: { _media-type: application/vnd.ibexa.api.ProductType+json, identifier: laptop, name: Laptop, AttributeAssignmentList: [{ _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: number, name: number, description: '', type: Float, type_identifier: float, value: 1.5, group: test, position: 0, options: { min: 4, max: 5 } } }, { _media-type: application/vnd.ibexa.api.AttributeAssignment+json, is_required: false, is_discriminator: true, Attribute: { _media-type: application/vnd.ibexa.api.Attribute+json, identifier: testattr, name: testAttr, description: '', type: Integer, type_identifier: integer, value: 5, group: test, position: 0, options: { min: 4, max: 5 } } }] }, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/152, _remoteId: 2d61ff8d0043eb299ca8c29c74f25441, _id: 152, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/56 }, Name: 'Macbook Air', TranslatedName: 'Macbook Air', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/152/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/currentversion, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/152/versions/1, VersionInfo: { id: 635, versionNo: 1, status: PUBLISHED, modificationDate: '2022-07-21T15:17:18+02:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2022-07-21T15:17:18+02:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Macbook Air' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/152 } }, Fields: { field: [{ id: 716, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'Macbook Air' }, { id: 717, fieldDefinitionIdentifier: product_specification, languageCode: eng-GB, fieldTypeIdentifier: ibexa_product_specification, fieldValue: { id: 89, code: mac_air, attributes: [] } }, { id: 718, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_richtext, fieldValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"><para>test</para></section>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"><p>test</p></section>\n" } }, { id: 719, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image_asset, fieldValue: { destinationContentId: null, alternativeText: null, source: null } }, { id: 720, fieldDefinitionIdentifier: category, languageCode: eng-GB, fieldTypeIdentifier: ibexa_taxonomy_entry_assignment, fieldValue: { taxonomy_entries: [], taxonomy: null } }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/152/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml } } }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/152/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2022-07-21T15:17:18+02:00', publishedDate: '2022-07-21T15:17:18+02:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/152/objectstates } }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ibexaadminui/img/ibexa-icons.svg#file', width: null, height: null, mimeType: image/svg+xml }, created_at: 1658409438, updated_at: 1658409438, AttributesList: [] } - DiscriminatorAttributesList: [] - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update this product variant.' - '403': - description: 'Error - a product variant with the same code already exists.' - '404': - description: 'Error - no product variant with the given code exists.' - summary: 'Update product variant' - description: 'Updates product variant.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated product variant is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The product variant update schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: code - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated ProductVariantUpdateController resource' - content: - application/vnd.ibexa.api.ProductVariantUpdate+json: - schema: - $ref: '#/components/schemas/ProductVariantUpdateWrapper' - x-ibexa-example-file: '@IbexaProductCatalogBundle/Resources/api_platform/examples/product/catalog/product_variants/code/PATCH/ProductVariantUpdate.json.example' - required: false - deprecated: false - '/product/catalog/vat/{region}': - get: - operationId: api_productcatalogvat_region_get - tags: - - 'Product Vat' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.VatCategoryList+json: - schema: - $ref: '#/components/schemas/VatCategoryListWrapper' - example: - VatCategoryList: - _media-type: application/vnd.ibexa.api.VatCategoryList+json - VatCategory: [{ _media-type: application/vnd.ibexa.api.VatCategory+json, identifier: standard, region: region_1, vatValue: 18 }, { _media-type: application/vnd.ibexa.api.VatCategory+json, identifier: reduced, region: region_1, vatValue: 6 }, { _media-type: application/vnd.ibexa.api.VatCategory+json, identifier: none, region: region_1, vatValue: null }] - '401': - description: 'Error - the user is not authorized to read this object.' - '404': - description: 'Error - the VAT category region does not exist.' - summary: 'Load VAT region' - description: 'Loads a VAT category for the given region.' - parameters: - - - name: Accept - in: header - description: 'If set, the VAT category list returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: region - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/product/catalog/vat/{region}/{identifier}': - get: - operationId: api_productcatalogvat_region_identifier_get - tags: - - 'Product Vat' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.VatCategory+json: - schema: - $ref: '#/components/schemas/VatCategoryWrapper' - example: - VatCategory: - _media-type: application/vnd.ibexa.api.VatCategory+json - identifier: standard - region: region_1 - vatValue: 18 - '401': - description: 'Error - the user is not authorized to read this object.' - '404': - description: 'Error - the VAT category for the given identifier not exists.' - summary: 'Load VAT specific region' - description: 'Loads a VAT category for the given identifier.' - parameters: - - - name: Accept - in: header - description: 'If set, the VAT category list returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: region - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /content/sections: - get: - operationId: api_contentsections_get - tags: - - Section - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.SectionList+xml: - schema: - $ref: '#/components/schemas/SectionList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <SectionList media-type="application/vnd.ibexa.api.SectionList+xml" href="/api/ibexa/v2/content/sections"> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"> - <sectionId>1</sectionId> - <identifier>standard</identifier> - <name>Standard</name> - </Section> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"> - <sectionId>2</sectionId> - <identifier>users</identifier> - <name>Users</name> - </Section> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/3"> - <sectionId>3</sectionId> - <identifier>media</identifier> - <name>Media</name> - </Section> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/6"> - <sectionId>6</sectionId> - <identifier>form</identifier> - <name>Form</name> - </Section> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/7"> - <sectionId>7</sectionId> - <identifier>template</identifier> - <name>Template</name> - </Section> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/8"> - <sectionId>8</sectionId> - <identifier>restricted</identifier> - <name>Restricted</name> - </Section> - </SectionList> - application/vnd.ibexa.api.SectionList+json: - schema: - $ref: '#/components/schemas/SectionListWrapper' - example: - SectionList: - _media-type: application/vnd.ibexa.api.SectionList+json - _href: /api/ibexa/v2/content/sections - Section: [{ _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1, sectionId: 1, identifier: standard, name: Standard }, { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2, sectionId: 2, identifier: users, name: Users }, { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/3, sectionId: 3, identifier: media, name: Media }, { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/6, sectionId: 6, identifier: form, name: Form }, { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/7, sectionId: 7, identifier: template, name: Template }, { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/8, sectionId: 8, identifier: restricted, name: Restricted }] - '401': - description: 'Error - The user has no permission to read the Section.' - summary: 'Get Sections' - description: 'Returns a list of all Sections.' - parameters: - - - name: Accept - in: header - description: 'If set, the Section list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_contentsections_post - tags: - - Section - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.Section+xml: - schema: - $ref: '#/components/schemas/Section' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/7"> - <sectionId>7</sectionId> - <identifier>template</identifier> - <name>Template</name> - </Section> - application/vnd.ibexa.api.Section+json: - schema: - $ref: '#/components/schemas/SectionWrapper' - example: - Section: - _media-type: application/vnd.ibexa.api.Section+json - _href: /api/ibexa/v2/content/sections/7 - sectionId: 7 - identifier: template - name: Template - summary: 'Create new Section' - description: 'Creates a new Section.' - parameters: - - - name: Accept - in: header - description: 'If set, the new Section is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The Section input schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new SectionCreateController resource' - content: - application/vnd.ibexa.api.SectionInput+xml: - schema: - $ref: '#/components/schemas/SectionInput' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/sections/POST/SectionInput.xml.example' - application/vnd.ibexa.api.SectionInput+json: - schema: - $ref: '#/components/schemas/SectionInputWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/sections/POST/SectionInput.json.example' - required: false - deprecated: false - '/content/sections/{sectionId}': - get: - operationId: api_contentsections_sectionId_get - tags: - - Section - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Section+xml: - schema: - $ref: '#/components/schemas/Section' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/7"> - <sectionId>7</sectionId> - <identifier>template</identifier> - <name>Template</name> - </Section> - application/vnd.ibexa.api.Section+json: - schema: - $ref: '#/components/schemas/SectionWrapper' - example: - Section: - _media-type: application/vnd.ibexa.api.Section+json - _href: /api/ibexa/v2/content/sections/7 - sectionId: 7 - identifier: template - name: Template - '401': - description: 'Error - The user is not authorized to read this Section.' - '404': - description: 'Error - The Section does not exist.' - summary: 'Get Section' - description: 'Returns the Section by given Section ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the Section is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: sectionId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_contentsections_sectionId_delete - tags: - - Section - responses: - '204': - description: 'No Content - given Section is deleted.' - '401': - description: 'Error - the user is not authorized to delete this Section.' - '404': - description: 'Error - the Section does not exist.' - summary: 'Delete Section' - description: 'The given Section is deleted.' - parameters: - - - name: sectionId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_contentsections_sectionId_patch - tags: - - Section - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Section+xml: - schema: - $ref: '#/components/schemas/Section' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/7"> - <sectionId>7</sectionId> - <identifier>template</identifier> - <name>Template</name> - </Section> - application/vnd.ibexa.api.Section+json: - schema: - $ref: '#/components/schemas/SectionWrapper' - example: - Section: - _media-type: application/vnd.ibexa.api.Section+json - _href: /api/ibexa/v2/content/sections/7 - sectionId: 7 - identifier: template - name: Template - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this Section.' - '403': - description: 'Error - a Section with the given identifier already exists.' - '412': - description: 'Error - the current ETag does not match with the one provided in the If-Match header.' - summary: 'Update a Section' - description: 'Updates a Section. PATCH or POST with header X-HTTP-Method-Override PATCH.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated Section is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The Section input schema encoded in XML or JSON.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: sectionId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated SectionUpdateController resource' - content: - application/vnd.ibexa.api.SectionInput+xml: - schema: - $ref: '#/components/schemas/SectionInput' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/sections/POST/SectionInput.xml.example' - application/vnd.ibexa.api.SectionInput+json: - schema: - $ref: '#/components/schemas/SectionInputWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/sections/POST/SectionInput.json.example' - required: false - deprecated: false - /segment_groups: - get: - operationId: api_segment_groups_get - tags: - - Segmentation - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.SegmentGroupList+xml: - schema: - $ref: '#/components/schemas/SegmentGroupList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <SegmentGroupList media-type="application/vnd.ibexa.api.SegmentGroupList+xml" href="/api/ibexa/v2/segment_groups"> - <SegmentGroup media-type="application/vnd.ibexa.api.SegmentGroup+xml" href="/api/ibexa/v2/segment_groups/corporate_accounts"> - <id>1</id> - <identifier>corporate_accounts</identifier> - <name>Corporate Accounts</name> - </SegmentGroup> - </SegmentGroupList> - application/vnd.ibexa.api.SegmentGroupList+json: - schema: - $ref: '#/components/schemas/SegmentGroupListWrapper' - example: - SegmentGroupList: - _media-type: application/vnd.ibexa.api.SegmentGroupList+json - _href: /api/ibexa/v2/segment_groups - SegmentGroup: [{ _media-type: application/vnd.ibexa.api.SegmentGroup+json, _href: /api/ibexa/v2/segment_groups/corporate_accounts, id: 1, identifier: corporate_accounts, name: 'Corporate Accounts' }] - '401': - description: 'Error - the user is not authorized to list segment groups.' - content: - application/vnd.ibexa.api.ErrorMessage+xml: - schema: - $ref: '#/components/schemas/ErrorMessage' - application/vnd.ibexa.api.ErrorMessage+json: - schema: - $ref: '#/components/schemas/ErrorMessage' - summary: 'List segment groups' - description: 'Lists segment groups.' - parameters: - - - name: Accept - in: header - description: 'If set, the list of segment groups is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - '/segment_groups/{identifier}': - get: - operationId: api_segment_groups_identifier_get - tags: - - Segmentation - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.SegmentGroup+xml: - schema: - $ref: '#/components/schemas/SegmentGroup' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <SegmentGroup media-type="application/vnd.ibexa.api.SegmentGroup+xml" href="/api/ibexa/v2/segment_groups/corporate_accounts"> - <id>1</id> - <identifier>corporate_accounts</identifier> - <name>Corporate Accounts</name> - </SegmentGroup> - application/vnd.ibexa.api.SegmentGroup+json: - schema: - $ref: '#/components/schemas/SegmentGroupWrapper' - example: - SegmentGroup: - _media-type: application/vnd.ibexa.api.SegmentGroup+json - _href: /api/ibexa/v2/segment_groups/corporate_accounts - id: 1 - identifier: corporate_accounts - name: 'Corporate Accounts' - '401': - description: 'Error - the user is not authorized to load this segment group.' - '404': - description: "Error - the identifier doesn't match any segment group." - summary: 'Load segment group' - description: 'Loads segment group.' - parameters: - - - name: Accept - in: header - description: 'If set, the segment group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - '/segment_groups/{identifier}/segments': - get: - operationId: api_segment_groups_identifiersegments_get - tags: - - Segmentation - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.SegmentList+xml: - schema: - $ref: '#/components/schemas/SegmentList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <SegmentList media-type="application/vnd.ibexa.api.SegmentList+xml" href="/api/ibexa/v2/segment_groups/corporate_accounts/segments"/> - application/vnd.ibexa.api.SegmentList+json: - schema: - $ref: '#/components/schemas/SegmentListWrapper' - example: - SegmentList: - _media-type: application/vnd.ibexa.api.SegmentList+json - _href: /api/ibexa/v2/segment_groups/corporate_accounts/segments - Segment: [] - '401': - description: "Error - the user is not authorized to load this group's segments." - '404': - description: "Error - the identifier doesn't match any segment group." - summary: "List segment group's segments" - description: "Lists segment group's segments." - parameters: - - - name: Accept - in: header - description: 'If set, the segment group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - '/segments/{identifier}': - get: - operationId: api_segments_identifier_get - tags: - - Segmentation - responses: - '200': - description: 'OK - Return the segment.' - content: - application/vnd.ibexa.api.Segment+xml: - schema: - $ref: '#/components/schemas/Segment' - application/vnd.ibexa.api.Segment+json: - schema: - $ref: '#/components/schemas/SegmentWrapper' - '401': - description: "Error - the user is not authorized to load this group's segments." - '404': - description: "Error - the identifier doesn't match any segment group." - summary: 'Load segment' - description: 'Loads the identified segment.' - parameters: - - - name: Accept - in: header - description: 'If set, the segment is returned in XML or JSON' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Experience - color: '#D3822B' - - - name: Commerce - color: '#A32768' - position: after - /shipments: - get: - operationId: api_shipments_get - tags: - - Shipping - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ShipmentRefList+xml: - schema: - $ref: '#/components/schemas/ShipmentRefList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ShipmentRefList media-type="application/vnd.ibexa.api.ShipmentRefList+xml" href="/api/ibexa/v2/shipments"> - <ShipmentRef media-type="application/vnd.ibexa.api.Shipment+xml" href="/api/ibexa/v2/shipments/foo"/> - <ShipmentRef media-type="application/vnd.ibexa.api.Shipment+xml" href="/api/ibexa/v2/shipments/bar"/> - <ShipmentRef media-type="application/vnd.ibexa.api.Shipment+xml" href="/api/ibexa/v2/shipments/baz"/> - <ShipmentRef media-type="application/vnd.ibexa.api.Shipment+xml" href="/api/ibexa/v2/shipments/qux"/> - </ShipmentRefList> - application/vnd.ibexa.api.ShipmentRefList+json: - schema: - $ref: '#/components/schemas/ShipmentRefListWrapper' - example: - ShipmentRefList: - _media-type: application/vnd.ibexa.api.ShipmentRefList+json - _href: /api/ibexa/v2/shipments - shipmentRefList: [{ _media-type: application/vnd.ibexa.api.Shipment+json, _href: /api/ibexa/v2/shipments/foo }, { _media-type: application/vnd.ibexa.api.Shipment+json, _href: /api/ibexa/v2/shipments/bar }, { _media-type: application/vnd.ibexa.api.Shipment+json, _href: /api/ibexa/v2/shipments/baz }, { _media-type: application/vnd.ibexa.api.Shipment+json, _href: /api/ibexa/v2/shipments/qux }] - '401': - description: 'Error - the user has no permission to read shipment lists.' - '404': - description: 'Error - the shipment does not exist.' - summary: 'Load shipments' - description: 'Loads a list of shipments.' - parameters: - - - name: Accept - in: header - description: 'If set, the shipments are returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/shipments/{identifier}': - get: - operationId: api_shipments_identifier_get - tags: - - Shipping - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Shipment+xml: - schema: - $ref: '#/components/schemas/Shipment' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Shipment media-type="application/vnd.ibexa.api.Shipment+xml" href="/api/ibexa/v2/shipments/new_identifier"> - <id>1</id> - <identifier>new_identifier</identifier> - <status>prepared</status> - <transitions> - <transition>send-to-carrier</transition> - <transition>cancel</transition> - </transitions> - <Order media-type="application/vnd.ibexa.api.Order+xml" href="/api/ibexa/v2/orders/order/33f6db52-478f-41f1-afbe-6d38f6a4704f"/> - <Amount> - <value>2257</value> - <currency>EUR</currency> - </Amount> - <createdAt>2023-06-26T15:40:28+02:00</createdAt> - <updatedAt>2023-06-26T15:40:28+02:00</updatedAt> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Method media-type="application/vnd.ibexa.api.ShippingMethod+xml" href="/api/ibexa/v2/shipping/methods/parcel_locker_delivery"/> - </Shipment> - application/vnd.ibexa.api.Shipment+json: - schema: - $ref: '#/components/schemas/ShipmentWrapper' - example: - Shipment: - _media-type: application/vnd.ibexa.api.Shipment+json - _href: /api/ibexa/v2/shipments/new_identifier - id: 1 - identifier: new_identifier - status: prepared - transitions: { transitionList: [send-to-carrier, cancel] } - Order: { _media-type: application/vnd.ibexa.api.Order+json, _href: /api/ibexa/v2/orders/order/33f6db52-478f-41f1-afbe-6d38f6a4704f } - Amount: { value: '2257', currency: EUR } - createdAt: '2023-06-26T15:40:28+02:00' - updatedAt: '2023-06-26T15:40:28+02:00' - Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - Method: { _media-type: application/vnd.ibexa.api.ShippingMethod+json, _href: /api/ibexa/v2/shipping/methods/parcel_locker_delivery } - '401': - description: 'Error - the user has no permission to read shipments.' - '404': - description: 'Error - the shipment does not exist.' - summary: 'Load a single shipment based on its identifier' - description: 'Loads a single shipment based on its identifier.' - parameters: - - - name: Accept - in: header - description: 'If set, the shipment is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - delete: - operationId: api_shipments_identifier_delete - tags: - - Shipping - responses: - '204': - description: 'No content - shipment is deleted.' - '401': - description: 'Error - the user is not authorized to delete this shipment.' - '404': - description: 'Error - the shipment with the given ID does not exist.' - summary: 'Delete shipment' - description: 'Deletes a shipment.' - parameters: - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - patch: - operationId: api_shipments_identifier_patch - tags: - - Shipping - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Shipment+xml: - schema: - $ref: '#/components/schemas/Shipment' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Shipment media-type="application/vnd.ibexa.api.Shipment+xml" href="/api/ibexa/v2/shipments/new_identifier"> - <id>1</id> - <identifier>new_identifier</identifier> - <status>prepared</status> - <transitions> - <transition>send-to-carrier</transition> - <transition>cancel</transition> - </transitions> - <Order media-type="application/vnd.ibexa.api.Order+xml" href="/api/ibexa/v2/orders/order/33f6db52-478f-41f1-afbe-6d38f6a4704f"/> - <Amount> - <value>2257</value> - <currency>EUR</currency> - </Amount> - <createdAt>2023-06-26T15:40:28+02:00</createdAt> - <updatedAt>2023-06-26T15:40:28+02:00</updatedAt> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Method media-type="application/vnd.ibexa.api.ShippingMethod+xml" href="/api/ibexa/v2/shipping/methods/parcel_locker_delivery"/> - </Shipment> - application/vnd.ibexa.api.Shipment+json: - schema: - $ref: '#/components/schemas/ShipmentWrapper' - example: - Shipment: - _media-type: application/vnd.ibexa.api.Shipment+json - _href: /api/ibexa/v2/shipments/new_identifier - id: 1 - identifier: new_identifier - status: prepared - transitions: { transitionList: [send-to-carrier, cancel] } - Order: { _media-type: application/vnd.ibexa.api.Order+json, _href: /api/ibexa/v2/orders/order/33f6db52-478f-41f1-afbe-6d38f6a4704f } - Amount: { value: '2257', currency: EUR } - createdAt: '2023-06-26T15:40:28+02:00' - updatedAt: '2023-06-26T15:40:28+02:00' - Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - Method: { _media-type: application/vnd.ibexa.api.ShippingMethod+json, _href: /api/ibexa/v2/shipping/methods/parcel_locker_delivery } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update this shipment.' - '404': - description: 'Error - the shipment with the given ID does not exist.' - '406': - description: 'Error - the shipment cannot be cancelled due to not-allowed workflow transition' - summary: 'Update shipment' - description: 'Updates a shipment.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated shipment is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The ShipmentUpdate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated ShipmentUpdateController resource' - content: - application/vnd.ibexa.api.ShipmentUpdate+xml: - schema: - $ref: '#/components/schemas/ShipmentUpdate' - x-ibexa-example-file: '@IbexaShippingBundle/Resources/api_platform/examples/shipments/identifier/PATCH/ShipmentUpdate.xml.example' - application/vnd.ibexa.api.ShipmentUpdate+json: - schema: - $ref: '#/components/schemas/ShipmentUpdateWrapper' - x-ibexa-example-file: '@IbexaShippingBundle/Resources/api_platform/examples/shipments/identifier/PATCH/ShipmentUpdate.json.example' - required: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - /shipping/method-types: - get: - operationId: api_shippingmethod-types_get - tags: - - Shipping - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ShippingMethodTypesList+xml: - schema: - $ref: '#/components/schemas/ShippingMethodTypesList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ShippingMethodTypesList media-type="application/vnd.ibexa.api.ShippingMethodTypesList+xml" href="/api/ibexa/v2/shipping/method-types"> - <ShippingMethodType media-type="application/vnd.ibexa.api.ShippingMethodType+xml" href="/api/ibexa/v2/shipping/method-types/flat_rate"> - <identifier>flat_rate</identifier> - <name>Flat rate</name> - </ShippingMethodType> - <ShippingMethodType media-type="application/vnd.ibexa.api.ShippingMethodType+xml" href="/api/ibexa/v2/shipping/method-types/free"> - <identifier>free</identifier> - <name>Free shipping</name> - </ShippingMethodType> - </ShippingMethodTypesList> - application/vnd.ibexa.api.ShippingMethodTypesList+json: - schema: - $ref: '#/components/schemas/ShippingMethodTypesListWrapper' - example: - ShippingMethodTypesList: - _media-type: application/vnd.ibexa.api.ShippingMethodTypesList+json - _href: /api/ibexa/v2/shipping/method-types - ShippingMethodTypes: [{ _media-type: application/vnd.ibexa.api.ShippingMethodType+json, _href: /api/ibexa/v2/shipping/method-types/flat_rate, identifier: flat_rate, name: 'Flat rate' }, { _media-type: application/vnd.ibexa.api.ShippingMethodType+json, _href: /api/ibexa/v2/shipping/method-types/free, identifier: free, name: 'Free shipping' }] - '401': - description: 'Error - the user has no permission to read shipping methods types.' - '404': - description: 'Error - the shipping method type does not exist.' - summary: 'Load shipping methods types' - description: 'Loads shipping methods types.' - parameters: - - - name: Accept - in: header - description: 'Shipping method type reference - if set, the shipping method is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/shipping/method-types/{identifier}': - get: - operationId: api_shippingmethod-types_identifier_get - tags: - - Shipping - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ShippingMethodType+xml: - schema: - $ref: '#/components/schemas/ShippingMethodType' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ShippingMethodType media-type="application/vnd.ibexa.api.ShippingMethodType+xml" href="/api/ibexa/v2/shipping/method-types/flat_rate"> - <identifier>flat_rate</identifier> - <name>Flat rate</name> - </ShippingMethodType> - application/vnd.ibexa.api.ShippingMethodType+json: - schema: - $ref: '#/components/schemas/ShippingMethodTypeWrapper' - example: - ShippingMethodType: - _media-type: application/vnd.ibexa.api.ShippingMethodType+json - _href: /api/ibexa/v2/shipping/method-types/flat_rate - identifier: flat_rate - name: 'Flat rate' - '401': - description: 'Error - the user has no permission to read shipping methods.' - '404': - description: 'Error - the shipping method type does not exist.' - summary: 'Load shipping method type based on its identifier' - description: 'Loads shipping methods type based on their identifiers.' - parameters: - - - name: Accept - in: header - description: 'Shipping method type - if set, the shipping method is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - /shipping/methods: - get: - operationId: api_shippingmethods_get - tags: - - Shipping - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ShippingMethodRefList+xml: - schema: - $ref: '#/components/schemas/ShippingMethodRefList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ShippingMethodRefList media-type="application/vnd.ibexa.api.ShippingMethodRefList+xml" href="/api/ibexa/v2/shipping/methods"> - <ShippingMethodRef media-type="application/vnd.ibexa.api.ShippingMethod+xml" href="/api/ibexa/v2/shipping/methods/parcel_delivery"/> - <ShippingMethodRef media-type="application/vnd.ibexa.api.ShippingMethod+xml" href="/api/ibexa/v2/shipping/methods/parcel_locker_delivery"/> - </ShippingMethodRefList> - application/vnd.ibexa.api.ShippingMethodRefList+json: - schema: - $ref: '#/components/schemas/ShippingMethodRefListWrapper' - example: - ShippingMethodRefList: - _media-type: application/vnd.ibexa.api.ShippingMethodRefList+json - _href: /api/ibexa/v2/shipping/methods - ShippingMethodRefs: [{ _media-type: application/vnd.ibexa.api.ShippingMethod+json, _href: /api/ibexa/v2/shipping/methods/parcel_delivery }, { _media-type: application/vnd.ibexa.api.ShippingMethod+json, _href: /api/ibexa/v2/shipping/methods/parcel_locker_delivery }] - '401': - description: 'Error - the user has no permission to read shipping methods.' - summary: 'Load shipping methods' - description: 'Loads shipping methods.' - parameters: - - - name: Accept - in: header - description: 'Shipping method reference - if set, the shipping method is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/shipping/methods/{identifier}': - get: - operationId: api_shippingmethods_identifier_get - tags: - - Shipping - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ShippingMethod+xml: - schema: - $ref: '#/components/schemas/ShippingMethod' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ShippingMethod media-type="application/vnd.ibexa.api.ShippingMethod+xml" href="/api/ibexa/v2/shipping/methods/method1"> - <identifier>method1</identifier> - <name>AmE Method 1</name> - <names> - <value languageCode="eng-US">AmE Method 1</value> - <value languageCode="eng-GB">BrE Method 1</value> - </names> - <description>AmE Description of Method 1</description> - <descriptions> - <value languageCode="eng-US">AmE Description of Method 1</value> - <value languageCode="eng-GB">BrE Description of Method 1</value> - </descriptions> - <enabled>true</enabled> - <options> - <value key="price">20.0000</value> - <value key="currency">EUR</value> - </options> - <regions> - <RegionRef media-type="application/vnd.ibexa.api.Region+xml" href="/api/ibexa/v2/product/catalog/regions/default"/> - </regions> - <type media-type="application/vnd.ibexa.api.ShippingMethodType+xml" href="/api/ibexa/v2/shipping/method-types/flat_rate"/> - </ShippingMethod> - application/vnd.ibexa.api.ShippingMethod+json: - schema: - $ref: '#/components/schemas/ShippingMethodWrapper' - example: - ShippingMethod: - _media-type: application/vnd.ibexa.api.ShippingMethod+json - _href: /api/ibexa/v2/shipping/methods/method1 - identifier: method1 - name: 'AmE Method 1' - names: { value: [{ _languageCode: eng-US, '#text': 'AmE Method 1' }, { _languageCode: eng-GB, '#text': 'BrE Method 1' }] } - description: 'AmE Description of Method 1' - descriptions: { value: [{ _languageCode: eng-US, '#text': 'AmE Description of Method 1' }, { _languageCode: eng-GB, '#text': 'BrE Description of Method 1' }] } - enabled: true - options: { option: [{ _key: price, '#text': '20.0000' }, { _key: currency, '#text': EUR }] } - regions: { RegionRefList: [{ _media-type: application/vnd.ibexa.api.Region+json, _href: /api/ibexa/v2/product/catalog/regions/default }] } - type: { _media-type: application/vnd.ibexa.api.ShippingMethodType+json, _href: /api/ibexa/v2/shipping/method-types/flat_rate } - '401': - description: 'Error - the user has no permission to read shipping methods.' - '404': - description: 'Error - the shipping method does not exist.' - summary: 'Load shipping method based on its identifier' - description: 'Loads shipping method based on its identifier.' - parameters: - - - name: Accept - in: header - description: 'Shipping method - if set, the shipping method is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - x-badges: - - - name: Commerce - color: '#A32768' - position: after - '/taxonomy/{taxonomyName}/entries': - delete: - operationId: api_taxonomy_taxonomyNameentries_delete - tags: - - Taxonomy - responses: - '204': - description: 'No Content - The entries have been deleted.' - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - The user is not authorized to delete some of the entries.' - summary: 'Delete Entries' - description: 'Bulk removes several taxonomy entries.' - parameters: - - - name: Content-Type - in: header - description: 'Target Entries schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: taxonomyName - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - content: - application/vnd.ibexa.api.TaxonomyEntryBulkRemove+xml: - schema: - $ref: '#/components/schemas/TaxonomyEntryBulkRemove' - application/vnd.ibexa.api.TaxonomyEntryBulkRemove+json: - schema: - $ref: '#/components/schemas/TaxonomyEntryBulkRemoveWrapper' - x-ibexa-example-file: '@IbexaTaxonomyBundle/Resources/api_platform/examples/taxonomy/entries/DELETE/TaxonomyEntryBulkRemove.json.example' - required: false - deprecated: false - '/taxonomy/{taxonomyName}/entries/move': - post: - operationId: api_taxonomy_taxonomyNameentriesmove_post - tags: - - Taxonomy - responses: - '204': - description: 'No Content - The entries have been moved.' - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - The user is not authorized to move some of the entries.' - '404': - description: 'Error - Some to-be-moved or sibling entries do not exist.' - summary: 'Move Entries' - description: 'Bulk move several taxonomy entries relative to sibling.' - parameters: - - - name: Content-Type - in: header - description: 'The Entry moves schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: taxonomyName - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new TaxonomyEntryBulkMoveController resource' - content: - application/vnd.ibexa.api.TaxonomyEntryBulkMove+xml: - schema: - $ref: '#/components/schemas/TaxonomyEntryBulkMove' - application/vnd.ibexa.api.TaxonomyEntryBulkMove+json: - schema: - $ref: '#/components/schemas/TaxonomyEntryBulkMoveWrapper' - x-ibexa-example-file: '@IbexaTaxonomyBundle/Resources/api_platform/examples/taxonomy/entries/move/POST/TaxonomyEntryBulkMove.json.example' - required: false - deprecated: false - '/taxonomy/{taxonomyName}/entry-assignment/{id}': - get: - operationId: api_taxonomy_taxonomyNameentry-assignment_id_get - tags: - - Taxonomy - responses: - '200': - description: 'OK - returns the taxonomy entry Assignment.' - content: - application/vnd.ibexa.api.TaxonomyEntryAssignment+xml: - schema: - $ref: '#/components/schemas/TaxonomyEntryAssignment' - application/vnd.ibexa.api.TaxonomyEntryAssignment+json: - schema: - $ref: '#/components/schemas/TaxonomyEntryAssignmentWrapper' - '404': - description: 'Error - the assignment does not exist.' - summary: 'Get Assignment by ID' - description: 'Gets taxonomy entry Assignment by its ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the Assignment is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: taxonomyName - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/taxonomy/{taxonomyName}/entry-assignments/assign-to-content': - post: - operationId: api_taxonomy_taxonomyNameentry-assignmentsassign-to-content_post - tags: - - Taxonomy - responses: - '201': - description: 'No Content.' - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to assign this Entry.' - summary: 'Assign entry' - description: 'Assigns taxonomy entry to a content item.' - parameters: - - - name: Content-Type - in: header - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: taxonomyName - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new TaxonomyEntryAssignmentAssignController resource' - content: - application/vnd.ibexa.api.TaxonomyEntryAssignToContent+json: - schema: - $ref: '#/components/schemas/TaxonomyEntryAssignToContentWrapper' - x-ibexa-example-file: '@IbexaTaxonomyBundle/Resources/api_platform/examples/taxonomy/POST/TaxonomyEntryAssignToContent.json.example' - required: false - deprecated: false - '/taxonomy/{taxonomyName}/entry-assignments/content-id/{contentId}': - get: - operationId: api_taxonomy_taxonomyNameentry-assignmentscontent-id_contentId_get - tags: - - Taxonomy - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.EntryAssignmentCollection+xml: - schema: - $ref: '#/components/schemas/EntryAssignmentCollection' - example: |- - <?xml version="1.0" encoding="UTF-8"?> - <EntryAssignmentCollection media-type="application/vnd.ibexa.api.EntryAssignmentCollection+xml"> - <content media-type="application/vnd.ibexa.api.Content+xml"> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/1" remoteId="9459d3c29e15006e45197295722c7ade" id="1"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1"/> - <Name>Ibexa Platform</Name> - <TranslatedName>Ibexa Platform</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/1/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/1/currentversion"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/1/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2023-01-01T00:00:00+00:00</lastModificationDate> - <publishedDate>2015-11-30T13:10:46+00:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>10</currentVersionNo> - <alwaysAvailable>true</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/1/objectstates"/> - </Content> - </content> - <TaxonomyEntryAssignment media-type="application/vnd.ibexa.api.TaxonomyEntryAssignment+xml"> - <id>1</id> - <content media-type="application/vnd.ibexa.api.Content+xml"> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/1" remoteId="9459d3c29e15006e45197295722c7ade" id="1"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1"/> - <Name>Ibexa Platform</Name> - <TranslatedName>Ibexa Platform</TranslatedName> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/1/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/1/currentversion"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/1/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2023-01-01T00:00:00+00:00</lastModificationDate> - <publishedDate>2015-11-30T13:10:46+00:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>10</currentVersionNo> - <alwaysAvailable>true</alwaysAvailable> - <isHidden>false</isHidden> - <status>PUBLISHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/1/objectstates"/> - </Content> - </content> - <entry media-type="application/vnd.ibexa.api.TaxonomyEntry+xml"> - <TaxonomyEntry media-type="application/vnd.ibexa.api.TaxonomyEntry+xml"> - <id>3</id> - <identifier>example</identifier> - <name>Example</name> - <contentId>65</contentId> - <content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/65"/> - <taxonomy>tags</taxonomy> - </TaxonomyEntry> - </entry> - </TaxonomyEntryAssignment> - </EntryAssignmentCollection> - application/vnd.ibexa.api.EntryAssignmentCollection+json: - schema: - $ref: '#/components/schemas/EntryAssignmentCollectionWrapper' - example: - EntryAssignmentCollection: - _media-type: application/vnd.ibexa.api.EntryAssignmentCollection+json - content: { _media-type: application/vnd.ibexa.api.Content+json, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/1, _remoteId: 9459d3c29e15006e45197295722c7ade, _id: 1, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1 }, Name: 'Ibexa Platform', TranslatedName: 'Ibexa Platform', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/1/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/1/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/1/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-01-01T00:00:00+00:00', publishedDate: '2015-11-30T13:10:46+00:00', mainLanguageCode: eng-GB, currentVersionNo: 10, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/1/objectstates } } } - assignments: [{ _media-type: application/vnd.ibexa.api.TaxonomyEntryAssignment+json, id: 1, content: { _media-type: application/vnd.ibexa.api.Content+json, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/1, _remoteId: 9459d3c29e15006e45197295722c7ade, _id: 1, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1 }, Name: 'Ibexa Platform', TranslatedName: 'Ibexa Platform', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/1/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/1/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/1/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2023-01-01T00:00:00+00:00', publishedDate: '2015-11-30T13:10:46+00:00', mainLanguageCode: eng-GB, currentVersionNo: 10, alwaysAvailable: true, isHidden: false, status: PUBLISHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/1/objectstates } } }, entry: { _media-type: application/vnd.ibexa.api.TaxonomyEntry+json, TaxonomyEntry: { _media-type: application/vnd.ibexa.api.TaxonomyEntry+json, id: 3, identifier: example, name: Example, contentId: 65, content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/65 }, taxonomy: tags } } }] - '404': - description: 'Error - the Content does not exists.' - summary: 'Get Assignments to a Content' - description: 'Gets taxonomy entries assigned to a content item by its ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the assignments are returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: taxonomyName - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/taxonomy/{taxonomyName}/entry-assignments/unassign-from-content': - post: - operationId: api_taxonomy_taxonomyNameentry-assignmentsunassign-from-content_post - tags: - - Taxonomy - responses: - '201': - description: 'No Content.' - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to unassign this entry.' - summary: 'Unassign entry' - description: 'Unassigns taxonomy entry from a content item.' - parameters: - - - name: Content-Type - in: header - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: taxonomyName - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new TaxonomyEntryAssignmentUnassignController resource' - content: - application/vnd.ibexa.api.TaxonomyEntryUnassignFromContent+json: - schema: - $ref: '#/components/schemas/TaxonomyEntryUnassignFromContentWrapper' - x-ibexa-example-file: '@IbexaTaxonomyBundle/Resources/api_platform/examples/taxonomy/POST/TaxonomyEntryUnassignFromContent.json.example' - required: false - deprecated: false - '/taxonomy/{taxonomyName}/entry/content-id/{contentId}': - get: - operationId: api_taxonomy_taxonomyNameentrycontent-id_contentId_get - tags: - - Taxonomy - responses: - '200': - description: 'OK - returns the taxonomy Entry.' - content: - application/vnd.ibexa.api.TaxonomyEntry+xml: - schema: - $ref: '#/components/schemas/TaxonomyEntry' - application/vnd.ibexa.api.TaxonomyEntry+json: - schema: - $ref: '#/components/schemas/TaxonomyEntryWrapper' - '401': - description: 'Error - the user is not authorized to read this Entry.' - '404': - description: 'Error - the Entry does not exists.' - summary: 'Get Entry by Content ID' - description: 'Loads taxonomy Entry by its Content ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the Taxonomy Entry is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: taxonomyName - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/taxonomy/{taxonomyName}/entry/identifier/{identifier}': - get: - operationId: api_taxonomy_taxonomyNameentryidentifier_identifier_get - tags: - - Taxonomy - responses: - '200': - description: 'OK - returns the taxonomy Entry.' - content: - application/vnd.ibexa.api.TaxonomyEntry+xml: - schema: - $ref: '#/components/schemas/TaxonomyEntry' - application/vnd.ibexa.api.TaxonomyEntry+json: - schema: - $ref: '#/components/schemas/TaxonomyEntryWrapper' - '401': - description: 'Error - the user is not authorized to read this Entry.' - '404': - description: 'Error - the Entry does not exists.' - summary: 'Get Entry by identifier' - description: 'Loads taxonomy Entry by its Entry identifier.' - parameters: - - - name: Accept - in: header - description: 'If set, the Taxonomy Entry is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: taxonomyName - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: identifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/taxonomy/{taxonomyName}/entry/{id}': - get: - operationId: api_taxonomy_taxonomyNameentry_id_get - tags: - - Taxonomy - responses: - '200': - description: 'OK - returns the taxonomy Entry.' - content: - application/vnd.ibexa.api.TaxonomyEntry+xml: - schema: - $ref: '#/components/schemas/TaxonomyEntry' - application/vnd.ibexa.api.TaxonomyEntry+json: - schema: - $ref: '#/components/schemas/TaxonomyEntryWrapper' - '401': - description: 'Error - the user is not authorized to read this Entry.' - '404': - description: 'Error - the Entry does not exists.' - summary: 'Get Entry by ID' - description: 'Loads taxonomy Entry by its Entry ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the Taxonomy Entry is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: taxonomyName - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /content/trash: - get: - operationId: api_contenttrash_get - tags: - - Trash - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Trash+xml: - schema: - $ref: '#/components/schemas/Trash' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Trash media-type="application/vnd.ibexa.api.Trash+xml" href="/api/ibexa/v2/content/trash"> - <TrashItem media-type="application/vnd.ibexa.api.TrashItem+xml" href="/api/ibexa/v2/content/trash/58"> - <id>58</id> - <priority>0</priority> - <hidden>false</hidden> - <invisible>false</invisible> - <ParentLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/56"/> - <pathString>/1/2/56/58/</pathString> - <depth>3</depth> - <childCount>0</childCount> - <remoteId>59800915ad2eb8514de0bebe84f6ccba</remoteId> - <Content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/52"/> - <sortField>PATH</sortField> - <sortOrder>ASC</sortOrder> - <ContentInfo media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/52"> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/52" remoteId="881da87102313b0354dc2aa8f0e4b63b" id="52"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1"/> - <Name>Folder 1</Name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/52/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/52/currentversion"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/52/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2019-02-06T09:03:09+01:00</lastModificationDate> - <publishedDate>2019-02-06T09:03:09+01:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>true</alwaysAvailable> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/52/objectstates"/> - </Content> - </ContentInfo> - </TrashItem> - </Trash> - application/vnd.ibexa.api.Trash+json: - schema: - $ref: '#/components/schemas/TrashWrapper' - example: - Trash: - _media-type: application/vnd.ibexa.api.Trash+json - _href: /api/ibexa/v2/content/trash - TrashItem: [{ _media-type: application/vnd.ibexa.api.TrashItem+json, _href: /api/ibexa/v2/content/trash/87, id: 87, priority: 0, hidden: false, invisible: false, ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/57 }, pathString: /1/2/57/87/, depth: 3, childCount: 0, remoteId: 7cc6565354858f39a794bf64aa2c2761, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/91 }, sortField: PATH, sortOrder: ASC, ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/91, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/91, _remoteId: de906bef76f08700662bfaf1579871f0, _id: 91, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2 }, Name: test_article, TranslatedName: test_article, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/91/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/91/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/91/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/11 }, lastModificationDate: '2021-07-19T08:31:01+00:00', publishedDate: '2021-07-19T08:31:01+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: false, isHidden: false, status: TRASHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/91/objectstates } } } }, { _media-type: application/vnd.ibexa.api.TrashItem+json, _href: /api/ibexa/v2/content/trash/89, id: 89, priority: 0, hidden: false, invisible: false, ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2 }, pathString: /1/2/89/, depth: 2, childCount: 0, remoteId: 256c2e7d71e927bab32a901878827312, Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/96 }, sortField: PATH, sortOrder: ASC, ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/96, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/96, _remoteId: d5bad9eb55cfe8572adf04452a2b206e, _id: 96, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1 }, Name: 'All Articles test', TranslatedName: 'All Articles test', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/96/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/96/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/96/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, lastModificationDate: '2021-07-19T12:43:02+00:00', publishedDate: '2021-07-19T12:42:47+00:00', mainLanguageCode: eng-GB, currentVersionNo: 2, alwaysAvailable: true, isHidden: false, status: TRASHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/96/objectstates } } } }] - '401': - description: 'Error - The user has no permission to read the Trash.' - summary: 'List Trash items' - description: 'Returns a list of all items in the Trash.' - parameters: - - - name: Accept - in: header - description: 'If set, the Trash item list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_contenttrash_delete - tags: - - Trash - responses: - '204': - description: 'No Content - Trash emptied.' - '401': - description: 'Error - The user is not authorized to empty all items from Trash.' - summary: 'Empty Trash' - description: 'Empties the Trash.' - parameters: [] - deprecated: false - '/content/trash/{trashItemid}': - get: - operationId: api_contenttrash_trashItemid_get - tags: - - Trash - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.TrashItem+xml: - schema: - $ref: '#/components/schemas/TrashItem' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <TrashItem media-type="application/vnd.ibexa.api.TrashItem+xml" href="/api/ibexa/v2/content/trash/81"> - <id>81</id> - <priority>0</priority> - <hidden>false</hidden> - <invisible>false</invisible> - <ParentLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2/42"/> - <pathString>/1/2/42/81/</pathString> - <depth>3</depth> - <childCount>0</childCount> - <remoteId>135e8a84b61848a67be36e9552d2724d</remoteId> - <Content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/99"/> - <sortField>PATH</sortField> - <sortOrder>ASC</sortOrder> - <ContentInfo media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/99"> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/99" remoteId="ae2b4568c0d2e7a4a9bca9495e73591a" id="99"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1"/> - <Name>Folder 1</Name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/99/versions"/> - <CurrentVersion media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/99/currentversion"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/1"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/99/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <lastModificationDate>2019-04-25T12:45:58+02:00</lastModificationDate> - <publishedDate>2019-04-25T12:45:58+02:00</publishedDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <currentVersionNo>1</currentVersionNo> - <alwaysAvailable>true</alwaysAvailable> - <status>TRASHED</status> - <ObjectStates media-type="application/vnd.ibexa.api.ContentObjectStates+xml" href="/api/ibexa/v2/content/objects/99/objectstates"/> - </Content> - </ContentInfo> - </TrashItem> - application/vnd.ibexa.api.TrashItem+json: - schema: - $ref: '#/components/schemas/TrashItemWrapper' - example: - TrashItem: - _media-type: application/vnd.ibexa.api.TrashItem+json - _href: /api/ibexa/v2/content/trash/87 - id: 87 - priority: 0 - hidden: false - invisible: false - ParentLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/2/57 } - pathString: /1/2/57/87/ - depth: 3 - childCount: 0 - remoteId: 7cc6565354858f39a794bf64aa2c2761 - Content: { _media-type: application/vnd.ibexa.api.Content+json, _href: /api/ibexa/v2/content/objects/91 } - sortField: PATH - sortOrder: ASC - ContentInfo: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/91, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/91, _remoteId: de906bef76f08700662bfaf1579871f0, _id: 91, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2 }, Name: test_article, TranslatedName: test_article, Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/91/versions }, CurrentVersion: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/91/currentversion }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/1 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/91/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/11 }, lastModificationDate: '2021-07-19T08:31:01+00:00', publishedDate: '2021-07-19T08:31:01+00:00', mainLanguageCode: eng-GB, currentVersionNo: 1, alwaysAvailable: false, isHidden: false, status: TRASHED, ObjectStates: { _media-type: application/vnd.ibexa.api.ContentObjectStates+json, _href: /api/ibexa/v2/content/objects/91/objectstates } } } - '401': - description: 'Error - The user has no permission to read the item in Trash.' - '404': - description: 'Error - An item in Trash with the provided ID does not exist.' - summary: 'Get Trash item' - description: 'Returns the item in Trash with the provided ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the item in Trash is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: trashItemid - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_contenttrash_trashItemid_delete - tags: - - Trash - responses: - '204': - description: 'No Content - item deleted.' - '401': - description: 'Error - The user is not authorized to delete the provided item.' - '404': - description: 'Error - The provided item does not exist in Trash.' - summary: 'Delete Trash item' - description: 'Deletes the provided item from Trash.' - parameters: - - - name: trashItemid - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /content/types: - get: - operationId: api_contenttypes_get - tags: - - Type - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ContentTypeInfoList+xml: - schema: - $ref: '#/components/schemas/ContentTypeInfoList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentTypeList media-type="application/vnd.ibexa.api.ContentTypeList+xml" href="/api/ibexa/v2/content/typegroups/1/types"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2"> - <id>2</id> - <status>DEFINED</status> - <identifier>article</identifier> - <names> - <value languageCode="eng-GB">Article</value> - </names> - <descriptions/> - <creationDate>2002-06-18T09:21:38+00:00</creationDate> - <modificationDate>2004-04-20T09:56:29+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/2/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2/draft"/> - <remoteId>c15b600eb9198b1924063b5a68758232</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><short_title|title></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>false</defaultAlwaysAvailable> - <defaultSortField>PATH</defaultSortField> - <defaultSortOrder>ASC</defaultSortOrder> - <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions"> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/1"> - <id>1</id> - <identifier>title</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup></fieldGroup> - <position>1</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue>New article</defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Title</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength">255</value> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/152"> - <id>152</id> - <identifier>short_title</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup></fieldGroup> - <position>2</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Short title</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength">255</value> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/153"> - <id>153</id> - <identifier>author</identifier> - <fieldType>ibexa_author</fieldType> - <fieldGroup></fieldGroup> - <position>3</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Author</value> - </names> - <descriptions/> - <fieldSettings> - <value key="defaultAuthor">1</value> - </fieldSettings> - <validatorConfiguration/> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/120"> - <id>120</id> - <identifier>intro</identifier> - <fieldType>ibexa_richtext</fieldType> - <fieldGroup></fieldGroup> - <position>4</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Intro</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/121"> - <id>121</id> - <identifier>body</identifier> - <fieldType>ibexa_richtext</fieldType> - <fieldGroup></fieldGroup> - <position>5</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Body</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/123"> - <id>123</id> - <identifier>enable_comments</identifier> - <fieldType>ibexa_boolean</fieldType> - <fieldGroup></fieldGroup> - <position>6</position> - <isTranslatable>false</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue>false</defaultValue> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Enable comments</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/154"> - <id>154</id> - <identifier>image</identifier> - <fieldType>ibexa_object_relation</fieldType> - <fieldGroup></fieldGroup> - <position>7</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="destinationContentId"/> - </defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Image</value> - </names> - <descriptions/> - <fieldSettings> - <value key="selectionMethod">SELECTION_BROWSE</value> - <value key="selectionRoot"></value> - <value key="selectionContentTypes"/> - </fieldSettings> - <validatorConfiguration/> - </FieldDefinition> - </FieldDefinitions> - </ContentType> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1"> - <id>1</id> - <status>DEFINED</status> - <identifier>folder</identifier> - <names> - <value languageCode="eng-GB">Folder</value> - </names> - <descriptions/> - <creationDate>2002-06-18T09:21:38+00:00</creationDate> - <modificationDate>2015-11-29T21:14:32+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/1/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1/draft"/> - <remoteId>a3d405b81be900468eb153d774f4f0d2</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><short_name|name></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>true</defaultAlwaysAvailable> - <defaultSortField>PATH</defaultSortField> - <defaultSortOrder>ASC</defaultSortOrder> - <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions"> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/4"> - <id>4</id> - <identifier>name</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup></fieldGroup> - <position>1</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue>Folder</defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Name</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength">255</value> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/155"> - <id>155</id> - <identifier>short_name</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup></fieldGroup> - <position>2</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Short name</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength">100</value> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/119"> - <id>119</id> - <identifier>short_description</identifier> - <fieldType>ibexa_richtext</fieldType> - <fieldGroup></fieldGroup> - <position>3</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Short description</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/156"> - <id>156</id> - <identifier>description</identifier> - <fieldType>ibexa_richtext</fieldType> - <fieldGroup></fieldGroup> - <position>4</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Description</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - </FieldDefinitions> - </ContentType> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/43"> - <id>43</id> - <status>DEFINED</status> - <identifier>form</identifier> - <names> - <value languageCode="eng-GB">Form</value> - </names> - <descriptions/> - <creationDate>2018-09-17T06:46:13+00:00</creationDate> - <modificationDate>2018-09-17T06:47:14+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/43/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/43/draft"/> - <remoteId>6f7f21df775a33c1e4bbc76b48c38476</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><title></nameSchema> - <isContainer>false</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>true</defaultAlwaysAvailable> - <defaultSortField>PUBLISHED</defaultSortField> - <defaultSortOrder>DESC</defaultSortOrder> - <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/43/fieldDefinitions"> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/43/fieldDefinitions/188"> - <id>188</id> - <identifier>title</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup>content</fieldGroup> - <position>1</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Title</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength"/> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/43/fieldDefinitions/189"> - <id>189</id> - <identifier>form</identifier> - <fieldType>ibexa_form</fieldType> - <fieldGroup>content</fieldGroup> - <position>2</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="fields"/> - <value key="content_id"/> - <value key="content_field_id"/> - <value key="language_code"/> - </defaultValue> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Form</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - </FieldDefinitions> - </ContentType> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/42"> - <id>42</id> - <status>DEFINED</status> - <identifier>landing_page</identifier> - <names> - <value languageCode="eng-GB">Landing page</value> - </names> - <descriptions> - <value languageCode="eng-GB"></value> - </descriptions> - <creationDate>2015-07-03T12:00:26+00:00</creationDate> - <modificationDate>2015-07-03T12:00:26+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/42/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/42/draft"/> - <remoteId>60c03e9758465eb69d56b3afb6adf18e</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><name></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>true</defaultAlwaysAvailable> - <defaultSortField>PUBLISHED</defaultSortField> - <defaultSortOrder>DESC</defaultSortOrder> - <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions"> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions/185"> - <id>185</id> - <identifier>name</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup>content</fieldGroup> - <position>10</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Title</value> - </names> - <descriptions> - <value languageCode="eng-GB">Title</value> - </descriptions> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength"/> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions/186"> - <id>186</id> - <identifier>description</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup>content</fieldGroup> - <position>20</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Description</value> - </names> - <descriptions> - <value languageCode="eng-GB">Landing page description</value> - </descriptions> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength"/> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions/187"> - <id>187</id> - <identifier>page</identifier> - <fieldType>ibexa_landing_page</fieldType> - <fieldGroup>content</fieldGroup> - <position>30</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="layout">default</value> - <value key="zones"> - <value> - <value key="id">default_id</value> - <value key="name">default</value> - <value key="blocks"/></value> - </value> - </defaultValue> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Landing page</value> - </names> - <descriptions> - <value languageCode="eng-GB">Landing page</value> - </descriptions> - <fieldSettings> - <value key="availableBlocks"/> - <value key="availableLayouts"/> - <value key="editorMode">page_view_mode</value> - </fieldSettings> - <validatorConfiguration/> - </FieldDefinition> - </FieldDefinitions> - </ContentType> - </ContentTypeList> - application/vnd.ibexa.api.ContentTypeInfoList+json: - schema: - $ref: '#/components/schemas/ContentTypeInfoListWrapper' - example: - ContentTypeList: - _media-type: application/vnd.ibexa.api.ContentTypeList+json - _href: /api/ibexa/v2/content/typegroups/1/types - ContentType: [{ _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2, id: 2, status: DEFINED, identifier: article, names: { value: [{ _languageCode: eng-GB, '#text': Article }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2004-04-20T09:56:29+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft }, remoteId: c15b600eb9198b1924063b5a68758232, urlAliasSchema: null, nameSchema: '<short_title|title>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: false, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/1, id: 1, identifier: title, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: 'New article', isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/152, id: 152, identifier: short_title, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short title' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/153, id: 153, identifier: author, fieldType: ibexa_author, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: [], isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Author }] }, descriptions: { value: [] }, fieldSettings: { defaultAuthor: 1 }, validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/120, id: 120, identifier: intro, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Intro }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/121, id: 121, identifier: body, fieldType: ibexa_richtext, fieldGroup: '', position: 5, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Body }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/123, id: 123, identifier: enable_comments, fieldType: ibexa_boolean, fieldGroup: '', position: 6, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: false, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Enable comments' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/154, id: 154, identifier: image, fieldType: ibexa_object_relation, fieldGroup: '', position: 7, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { destinationContentId: null }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Image }] }, descriptions: { value: [] }, fieldSettings: { selectionMethod: SELECTION_BROWSE, selectionRoot: '', selectionContentTypes: [] }, validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1, id: 1, status: DEFINED, identifier: folder, names: { value: [{ _languageCode: eng-GB, '#text': Folder }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2015-11-29T21:14:32+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/1/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1/draft }, remoteId: a3d405b81be900468eb153d774f4f0d2, urlAliasSchema: null, nameSchema: '<short_name|name>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/4, id: 4, identifier: name, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: Folder, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Name }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/155, id: 155, identifier: short_name, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short name' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 100, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/119, id: 119, identifier: short_description, fieldType: ibexa_richtext, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short description' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/156, id: 156, identifier: description, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43, id: 43, status: DEFINED, identifier: form, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, creationDate: '2018-09-17T06:46:13+00:00', modificationDate: '2018-09-17T06:47:14+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/43/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43/draft }, remoteId: 6f7f21df775a33c1e4bbc76b48c38476, urlAliasSchema: '', nameSchema: '<title>', isContainer: false, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/188, id: 188, identifier: title, fieldType: ibexa_string, fieldGroup: content, position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/189, id: 189, identifier: form, fieldType: ibexa_form, fieldGroup: content, position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { fields: [], content_id: null, content_field_id: null, language_code: null }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42, id: 42, status: DEFINED, identifier: landing_page, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] }, creationDate: '2015-07-03T12:00:26+00:00', modificationDate: '2015-07-03T12:00:26+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/42/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42/draft }, remoteId: 60c03e9758465eb69d56b3afb6adf18e, urlAliasSchema: '', nameSchema: '<name>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/185, id: 185, identifier: name, fieldType: ibexa_string, fieldGroup: content, position: 10, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': Title }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/186, id: 186, identifier: description, fieldType: ibexa_string, fieldGroup: content, position: 20, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page description' }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/187, id: 187, identifier: page, fieldType: ibexa_landing_page, fieldGroup: content, position: 30, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { layout: default, zones: [{ id: default_id, name: default, blocks: [] }] }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, fieldSettings: { availableBlocks: null, availableLayouts: null, editorMode: page_view_mode }, validatorConfiguration: [] }] } }] - application/vnd.ibexa.api.ContentTypeList+xml: - schema: - $ref: '#/components/schemas/ContentTypeList' - application/vnd.ibexa.api.ContentTypeList+json: - schema: - $ref: '#/components/schemas/ContentTypeListWrapper' - '401': - description: 'Error - The user has no permission to read the content types.' - summary: 'List content types' - description: 'Returns a list of content types.' - parameters: - - - name: Accept - in: header - description: 'If set, the list of content type info objects or content types (including Field definitions) is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/content/types/{contentTypeId}': - get: - operationId: api_contenttypes_contentTypeId_get - tags: - - Type - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ContentType+xml: - schema: - $ref: '#/components/schemas/ContentType' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14"> - <id>14</id> - <status>DEFINED</status> - <identifier>copy_of_article_14</identifier> - <names> - <value languageCode="eng-GB">Updated content type name</value> - </names> - <descriptions> - <value languageCode="eng-GB">This is an updated content type description</value> - </descriptions> - <creationDate>2019-02-06T10:56:36+01:00</creationDate> - <modificationDate>2019-02-25T12:15:51+01:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/14/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14/draft"/> - <remoteId>d7ae816f22fe929e67a359a2ef6e7cde</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><short_title|title></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>false</defaultAlwaysAvailable> - <defaultSortField>PATH</defaultSortField> - <defaultSortOrder>ASC</defaultSortOrder> - <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/14/fieldDefinitions"> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/14/fieldDefinitions/188"> - <id>188</id> - <identifier>title</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup></fieldGroup> - <position>1</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue>New article</defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Title</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength">255</value> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - </FieldDefinitions> - </ContentType> - application/vnd.ibexa.api.ContentType+json: - schema: - $ref: '#/components/schemas/ContentTypeWrapper' - example: - ContentType: - _media-type: application/vnd.ibexa.api.ContentType+json - _href: /api/ibexa/v2/content/types/2 - id: 2 - status: DEFINED - identifier: article - names: { value: [{ _languageCode: eng-GB, '#text': Article }] } - descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] } - creationDate: '2002-06-18T09:21:38+00:00' - modificationDate: '2021-06-28T11:31:22+00:00' - Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups } - Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft } - remoteId: c15b600eb9198b1924063b5a68758232 - urlAliasSchema: '' - nameSchema: '<short_title|title>' - isContainer: true - mainLanguageCode: eng-GB - defaultAlwaysAvailable: false - defaultSortField: PATH - defaultSortOrder: ASC - FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/1, id: 1, identifier: title, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: 'New article', isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/152, id: 152, identifier: short_title, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short title' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/153, id: 153, identifier: author, fieldType: ibexa_author, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: [], isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Author }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: { defaultAuthor: 1 }, validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/120, id: 120, identifier: intro, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Intro }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/121, id: 121, identifier: body, fieldType: ibexa_richtext, fieldGroup: '', position: 5, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Body }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/123, id: 123, identifier: enable_comments, fieldType: ibexa_boolean, fieldGroup: '', position: 6, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: false, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Enable comments' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/195, id: 195, identifier: image, fieldType: ibexa_image_asset, fieldGroup: content, position: 7, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: { destinationContentId: null, alternativeText: null, source: null }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Image }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }] } - '401': - description: 'Error - The user is not authorized to read this content type.' - '404': - description: 'Error - The content type does not exist.' - summary: 'Get content type' - description: 'Returns the content type with the provided ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the content type is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_contenttypes_contentTypeId_post - tags: - - Type - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.ContentTypeInfo+xml: - schema: - $ref: '#/components/schemas/ContentTypeInfo' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentTypeInfo media-type="application/vnd.ibexa.api.ContentTypeInfo+xml" href="/api/ibexa/v2/content/types/14/draft"> - <id>14</id> - <status>DRAFT</status> - <identifier>new_content_type</identifier> - <names> - <value languageCode="eng-GB">Updated content type name</value> - </names> - <descriptions> - <value languageCode="eng-GB">This is an updated content type description</value> - </descriptions> - <creationDate>2019-02-06T10:56:36+01:00</creationDate> - <modificationDate>2019-02-25T12:15:51+01:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/14/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14/draft"/> - <remoteId>d7ae816f22fe929e67a359a2ef6e7cde</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><short_title|title></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>false</defaultAlwaysAvailable> - <defaultSortField>PATH</defaultSortField> - <defaultSortOrder>ASC</defaultSortOrder> - </ContentTypeInfo> - application/vnd.ibexa.api.ContentTypeInfo+json: - schema: - $ref: '#/components/schemas/ContentTypeInfoWrapper' - example: - ContentTypeInfo: - _media-type: application/vnd.ibexa.api.ContentTypeInfo+json - _href: /api/ibexa/v2/content/types/2/draft - id: 2 - status: DRAFT - identifier: article - names: { value: [{ _languageCode: eng-GB, '#text': 'Updated content type name' }] } - descriptions: { value: [{ _languageCode: eng-GB, '#text': 'This is an updated content type description' }] } - creationDate: '2002-06-18T09:21:38+00:00' - modificationDate: '2021-08-11T11:58:24+00:00' - Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups } - Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft } - remoteId: c15b600eb9198b1924063b5a68758232 - urlAliasSchema: null - nameSchema: '<short_title|title>' - isContainer: true - mainLanguageCode: eng-GB - defaultAlwaysAvailable: true - defaultSortField: PATH - defaultSortOrder: ASC - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - The user is not authorized to create the draft.' - '403': - description: 'Error - A content type with the given new identifier already exists. A draft already exists.' - summary: 'Create Draft' - description: 'Creates a draft and updates it with the given data.' - parameters: - - - name: Accept - in: header - description: 'If set, the new content type draft is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The content type Update schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ContentTypeDraftCreateController resource' - content: - application/vnd.ibexa.api.ContentTypeUpdate+xml: - schema: - $ref: '#/components/schemas/ContentTypeUpdate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/types/content_type_id/POST/ContentTypeUpdate.xml.example' - application/vnd.ibexa.api.ContentTypeUpdate+json: - schema: - $ref: '#/components/schemas/ContentTypeUpdateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/types/content_type_id/POST/ContentTypeUpdate.json.example' - required: false - deprecated: false - delete: - operationId: api_contenttypes_contentTypeId_delete - tags: - - Type - responses: - '204': - description: 'No Content - content type deleted.' - '401': - description: 'Error - The user is not authorized to delete this content type.' - '403': - description: 'Error - There are object instances of this content type.' - '404': - description: 'Error - The content type does not exist.' - summary: 'Delete content type' - description: 'Deletes the provided content type.' - parameters: - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/content/types/{contentTypeId}/draft': - get: - operationId: api_contenttypes_contentTypeIddraft_get - tags: - - Type - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ContentType+xml: - schema: - $ref: '#/components/schemas/ContentType' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14"> - <id>14</id> - <status>DEFINED</status> - <identifier>copy_of_article_14</identifier> - <names> - <value languageCode="eng-GB">Updated content type name</value> - </names> - <descriptions> - <value languageCode="eng-GB">This is an updated content type description</value> - </descriptions> - <creationDate>2019-02-06T10:56:36+01:00</creationDate> - <modificationDate>2019-02-25T12:15:51+01:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/14/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14/draft"/> - <remoteId>d7ae816f22fe929e67a359a2ef6e7cde</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><short_title|title></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>false</defaultAlwaysAvailable> - <defaultSortField>PATH</defaultSortField> - <defaultSortOrder>ASC</defaultSortOrder> - <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/14/fieldDefinitions"> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/14/fieldDefinitions/188"> - <id>188</id> - <identifier>title</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup></fieldGroup> - <position>1</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue>New article</defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Title</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength">255</value> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - </FieldDefinitions> - </ContentType> - application/vnd.ibexa.api.ContentType+json: - schema: - $ref: '#/components/schemas/ContentTypeWrapper' - example: - ContentType: - _media-type: application/vnd.ibexa.api.ContentType+json - _href: /api/ibexa/v2/content/types/2 - id: 2 - status: DEFINED - identifier: article - names: { value: [{ _languageCode: eng-GB, '#text': Article }] } - descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] } - creationDate: '2002-06-18T09:21:38+00:00' - modificationDate: '2021-06-28T11:31:22+00:00' - Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups } - Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft } - remoteId: c15b600eb9198b1924063b5a68758232 - urlAliasSchema: '' - nameSchema: '<short_title|title>' - isContainer: true - mainLanguageCode: eng-GB - defaultAlwaysAvailable: false - defaultSortField: PATH - defaultSortOrder: ASC - FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/1, id: 1, identifier: title, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: 'New article', isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/152, id: 152, identifier: short_title, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short title' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/153, id: 153, identifier: author, fieldType: ibexa_author, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: [], isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Author }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: { defaultAuthor: 1 }, validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/120, id: 120, identifier: intro, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Intro }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/121, id: 121, identifier: body, fieldType: ibexa_richtext, fieldGroup: '', position: 5, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Body }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/123, id: 123, identifier: enable_comments, fieldType: ibexa_boolean, fieldGroup: '', position: 6, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: false, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Enable comments' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/195, id: 195, identifier: image, fieldType: ibexa_image_asset, fieldGroup: content, position: 7, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: { destinationContentId: null, alternativeText: null, source: null }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Image }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] }, fieldSettings: [], validatorConfiguration: [] }] } - '401': - description: 'Error - The user is not authorized to read this content type.' - '404': - description: 'Error - The content type does not exist or does not have a draft.' - summary: 'Get content type draft' - description: 'Returns the draft of the content type with the provided ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the content type is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_contenttypes_contentTypeIddraft_delete - tags: - - Type - responses: - '204': - description: 'No Content - content type draft deleted.' - '401': - description: 'Error - The user is not authorized to delete this content type draft.' - '404': - description: 'Error - The content type draft does not exist.' - summary: 'Delete content type draft' - description: 'Deletes the provided content type draft.' - parameters: - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_contenttypes_contentTypeIddraft_patch - tags: - - Type - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ContentTypeInfo+xml: - schema: - $ref: '#/components/schemas/ContentTypeInfo' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentTypeInfo media-type="application/vnd.ibexa.api.ContentTypeInfo+xml" href="/api/ibexa/v2/content/types/14/draft"> - <id>14</id> - <status>DRAFT</status> - <identifier>new_content_type</identifier> - <names> - <value languageCode="eng-GB">Updated content type name</value> - </names> - <descriptions> - <value languageCode="eng-GB">This is an updated content type description</value> - </descriptions> - <creationDate>2019-02-06T10:56:36+01:00</creationDate> - <modificationDate>2019-02-25T12:15:51+01:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/14/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14/draft"/> - <remoteId>d7ae816f22fe929e67a359a2ef6e7cde</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><short_title|title></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>false</defaultAlwaysAvailable> - <defaultSortField>PATH</defaultSortField> - <defaultSortOrder>ASC</defaultSortOrder> - </ContentTypeInfo> - application/vnd.ibexa.api.ContentTypeInfo+json: - schema: - $ref: '#/components/schemas/ContentTypeInfoWrapper' - example: - ContentTypeInfo: - _media-type: application/vnd.ibexa.api.ContentTypeInfo+json - _href: /api/ibexa/v2/content/types/2/draft - id: 2 - status: DRAFT - identifier: article - names: { value: [{ _languageCode: eng-GB, '#text': 'Updated content type name' }] } - descriptions: { value: [{ _languageCode: eng-GB, '#text': 'This is an updated content type description' }] } - creationDate: '2002-06-18T09:21:38+00:00' - modificationDate: '2021-08-11T11:58:24+00:00' - Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups } - Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft } - remoteId: c15b600eb9198b1924063b5a68758232 - urlAliasSchema: null - nameSchema: '<short_title|title>' - isContainer: true - mainLanguageCode: eng-GB - defaultAlwaysAvailable: true - defaultSortField: PATH - defaultSortOrder: ASC - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - The user is not authorized to update the draft.' - '403': - description: 'Error - A content type with the given new identifier already exists.' - '404': - description: 'Error - There is no draft for this content type.' - summary: 'Update content type draft' - description: 'Updates metadata of a draft. This method does not handle Field definitions. PATCH or POST with header X-HTTP-Method-Override PATCH.' - parameters: - - - name: Accept - in: header - description: 'If set, the new content type draft is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The content type update schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated ContentTypeDraftUpdateController resource' - content: - application/vnd.ibexa.api.ContentTypeUpdate+xml: - schema: - $ref: '#/components/schemas/ContentTypeUpdate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/types/content_type_id/POST/ContentTypeUpdate.xml.example' - application/vnd.ibexa.api.ContentTypeUpdate+json: - schema: - $ref: '#/components/schemas/ContentTypeUpdateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/types/content_type_id/POST/ContentTypeUpdate.json.example' - required: false - deprecated: false - '/content/types/{contentTypeId}/draft/fieldDefinitions': - get: - operationId: api_contenttypes_contentTypeIddraftfieldDefinitions_get - tags: - - Type - responses: - '200': - description: 'OK - return a list of Field definitions.' - content: - application/vnd.ibexa.api.FieldDefinitionList+xml: - schema: - $ref: '#/components/schemas/FieldDefinitions' - application/vnd.ibexa.api.FieldDefinitionList+json: - schema: - $ref: '#/components/schemas/FieldDefinitionsWrapper' - '404': - description: 'Error - The content type draft does not exist.' - summary: 'Get Draft Field definition list' - description: 'Returns all Field definitions of the provided content type Draft.' - parameters: - - - name: Accept - in: header - description: 'If set, the Field definitions are returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_contenttypes_contentTypeIddraftfieldDefinitions_post - tags: - - Type - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.FieldDefinition+xml: - schema: - $ref: '#/components/schemas/FieldDefinition' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/195"> - <id>195</id> - <identifier>image</identifier> - <fieldType>ibexa_image_asset</fieldType> - <fieldGroup>content</fieldGroup> - <position>7</position> - <isTranslatable>false</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="destinationContentId"/> - <value key="alternativeText"/> - <value key="source"/> - </defaultValue> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Image</value> - </names> - <descriptions> - <value languageCode="eng-GB"></value> - </descriptions> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - application/vnd.ibexa.api.FieldDefinition+json: - schema: - $ref: '#/components/schemas/FieldDefinitionWrapper' - example: - FieldDefinition: - _media-type: application/vnd.ibexa.api.FieldDefinition+json - _href: /api/ibexa/v2/content/types/2/fieldDefinitions/195 - id: 195 - identifier: image - fieldType: ibexa_image_asset - fieldGroup: content - position: 7 - isTranslatable: false - isRequired: false - isInfoCollector: false - defaultValue: { destinationContentId: null, alternativeText: null, source: null } - isSearchable: false - names: { value: [{ _languageCode: eng-GB, '#text': Image }] } - descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] } - fieldSettings: [] - validatorConfiguration: [] - '400': - description: 'Error - The input does not match the input schema definition or validation on the Field definition fails.' - '401': - description: 'Error - The user is not authorized to add a Field definition.' - '403': - description: "Error - A Field definition with the same identifier already exists in the given content type. The Field definition is of singular type, already existing in the given content type. The Field definition you want to add is of a type that can't be added to a content type that already has content instances." - summary: 'Add content type Draft Field definition' - description: 'Creates a new Field definition for the given content type.' - parameters: - - - name: Accept - in: header - description: 'If set, the new Field definition is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The Field Definition Create schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ContentTypeDraftFieldDefinitionAddController resource' - content: - application/vnd.ibexa.api.FieldDefinitionCreate+xml: - schema: - $ref: '#/components/schemas/FieldDefinitionCreate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/types/content_type_id/draft/field_definitions/POST/FieldDefinitionCreate.xml.example' - application/vnd.ibexa.api.FieldDefinitionCreate+json: - schema: - $ref: '#/components/schemas/FieldDefinitionCreateWrapper' - required: false - deprecated: false - '/content/types/{contentTypeId}/draft/fieldDefinitions/{fieldDefinitionId}': - get: - operationId: api_contenttypes_contentTypeIddraftfieldDefinitions_fieldDefinitionId_get - tags: - - Type - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.FieldDefinition+xml: - schema: - $ref: '#/components/schemas/FieldDefinition' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/195"> - <id>195</id> - <identifier>image</identifier> - <fieldType>ibexa_image_asset</fieldType> - <fieldGroup>content</fieldGroup> - <position>7</position> - <isTranslatable>false</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="destinationContentId"/> - <value key="alternativeText"/> - <value key="source"/> - </defaultValue> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Image</value> - </names> - <descriptions> - <value languageCode="eng-GB"></value> - </descriptions> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - application/vnd.ibexa.api.FieldDefinition+json: - schema: - $ref: '#/components/schemas/FieldDefinitionWrapper' - example: - FieldDefinition: - _media-type: application/vnd.ibexa.api.FieldDefinition+json - _href: /api/ibexa/v2/content/types/2/fieldDefinitions/195 - id: 195 - identifier: image - fieldType: ibexa_image_asset - fieldGroup: content - position: 7 - isTranslatable: false - isRequired: false - isInfoCollector: false - defaultValue: { destinationContentId: null, alternativeText: null, source: null } - isSearchable: false - names: { value: [{ _languageCode: eng-GB, '#text': Image }] } - descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] } - fieldSettings: [] - validatorConfiguration: [] - '401': - description: 'Error - The user is not authorized to read the content type draft.' - '404': - description: 'Error - The content type or draft does not exist.' - summary: 'Get content type Draft Field definition' - description: 'Returns the Field definition by the given ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the Field definition is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: fieldDefinitionId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_contenttypes_contentTypeIddraftfieldDefinitions_fieldDefinitionId_delete - tags: - - Type - responses: - '204': - description: 'No Content - Field definition deleted.' - '401': - description: 'Error - The user is not authorized to delete this content type.' - '403': - description: 'Error - There is no draft of the content type assigned to the authenticated user.' - summary: 'Delete content type Draft Field definition' - description: 'Deletes the provided Field definition.' - parameters: - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: fieldDefinitionId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_contenttypes_contentTypeIddraftfieldDefinitions_fieldDefinitionId_patch - tags: - - Type - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.FieldDefinition+xml: - schema: - $ref: '#/components/schemas/FieldDefinition' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/195"> - <id>195</id> - <identifier>image</identifier> - <fieldType>ibexa_image_asset</fieldType> - <fieldGroup>content</fieldGroup> - <position>7</position> - <isTranslatable>false</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="destinationContentId"/> - <value key="alternativeText"/> - <value key="source"/> - </defaultValue> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Image</value> - </names> - <descriptions> - <value languageCode="eng-GB"></value> - </descriptions> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - application/vnd.ibexa.api.FieldDefinition+json: - schema: - $ref: '#/components/schemas/FieldDefinitionWrapper' - example: - FieldDefinition: - _media-type: application/vnd.ibexa.api.FieldDefinition+json - _href: /api/ibexa/v2/content/types/2/fieldDefinitions/195 - id: 195 - identifier: image - fieldType: ibexa_image_asset - fieldGroup: content - position: 7 - isTranslatable: false - isRequired: false - isInfoCollector: false - defaultValue: { destinationContentId: null, alternativeText: null, source: null } - isSearchable: false - names: { value: [{ _languageCode: eng-GB, '#text': Image }] } - descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] } - fieldSettings: [] - validatorConfiguration: [] - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - The user is not authorized to update the Field definition.' - '403': - description: 'Error - A Field definition with the given identifier already exists in the given content type.' - summary: 'Update content type Draft Field definition' - description: 'Updates the attributes of a Field definition.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated Field definition is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The Field definition update schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: fieldDefinitionId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated ContentTypeDraftFieldDefinitionUpdateController resource' - content: - application/vnd.ibexa.api.FieldDefinitionUpdate+xml: - schema: - $ref: '#/components/schemas/FieldDefinitionUpdate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/types/content_type_id/draft/field_definitions/field_definition_id/PATCH/FieldDefinitionUpdate.xml.example' - application/vnd.ibexa.api.FieldDefinitionUpdate+json: - schema: - $ref: '#/components/schemas/FieldDefinitionUpdateWrapper' - required: false - deprecated: false - '/content/types/{contentTypeId}/fieldDefinitions': - get: - operationId: api_contenttypes_contentTypeIdfieldDefinitions_get - tags: - - Type - responses: - '200': - description: 'OK - return a list of Field definitions.' - content: - application/vnd.ibexa.api.FieldDefinitionList+xml: - schema: - $ref: '#/components/schemas/FieldDefinitions' - application/vnd.ibexa.api.FieldDefinitionList+json: - schema: - $ref: '#/components/schemas/FieldDefinitionsWrapper' - '404': - description: 'Error - The content type does not exist.' - summary: 'Get Field definition list' - description: 'Returns all Field definitions of the provided content type.' - parameters: - - - name: Accept - in: header - description: 'If set, the Field definitions are returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/content/types/{contentTypeId}/fieldDefinitions/{fieldDefinitionId}': - get: - operationId: api_contenttypes_contentTypeIdfieldDefinitions_fieldDefinitionId_get - tags: - - Type - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.FieldDefinition+xml: - schema: - $ref: '#/components/schemas/FieldDefinition' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/195"> - <id>195</id> - <identifier>image</identifier> - <fieldType>ibexa_image_asset</fieldType> - <fieldGroup>content</fieldGroup> - <position>7</position> - <isTranslatable>false</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="destinationContentId"/> - <value key="alternativeText"/> - <value key="source"/> - </defaultValue> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Image</value> - </names> - <descriptions> - <value languageCode="eng-GB"></value> - </descriptions> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - application/vnd.ibexa.api.FieldDefinition+json: - schema: - $ref: '#/components/schemas/FieldDefinitionWrapper' - example: - FieldDefinition: - _media-type: application/vnd.ibexa.api.FieldDefinition+json - _href: /api/ibexa/v2/content/types/2/fieldDefinitions/195 - id: 195 - identifier: image - fieldType: ibexa_image_asset - fieldGroup: content - position: 7 - isTranslatable: false - isRequired: false - isInfoCollector: false - defaultValue: { destinationContentId: null, alternativeText: null, source: null } - isSearchable: false - names: { value: [{ _languageCode: eng-GB, '#text': Image }] } - descriptions: { value: [{ _languageCode: eng-GB, '#text': null }] } - fieldSettings: [] - validatorConfiguration: [] - '401': - description: 'Error - The user is not authorized to read the content type.' - '404': - description: 'Error - The content type does not exist.' - summary: 'Get Field definition' - description: 'Returns the Field definition by the given ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the Field definition is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: fieldDefinitionId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/content/types/{contentTypeId}/groups': - get: - operationId: api_contenttypes_contentTypeIdgroups_get - tags: - - Type - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ContentTypeGroupRefList+xml: - schema: - $ref: '#/components/schemas/ContentTypeGroupRefList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentTypeGroupRefList media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/typegroups/15/types"> - <ContentTypeGroupRef media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/1"> - <unlink href="/api/ibexa/v2/content/types/15/groups/1" method="DELETE"/> - </ContentTypeGroupRef> - <ContentTypeGroupRef media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/2"> - <unlink href="/api/ibexa/v2/content/types/15/groups/2" method="DELETE"/> - </ContentTypeGroupRef> - </ContentTypeGroupRefList> - application/vnd.ibexa.api.ContentTypeGroupRefList+json: - schema: - $ref: '#/components/schemas/ContentTypeGroupRefListWrapper' - example: - ContentTypeGroupRefList: - _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json - _href: /api/ibexa/v2/content/typegroups/2/types - ContentTypeGroupRef: [{ _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/1, unlink: { _href: /api/ibexa/v2/content/types/2/groups/1, _method: DELETE } }, { _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/2, unlink: { _href: /api/ibexa/v2/content/types/2/groups/2, _method: DELETE } }] - '401': - description: 'Error - The user is not authorized to read this content type.' - '404': - description: 'Error - The content type does not exist.' - summary: 'Get groups of content type' - description: 'Returns the content type group to which content type belongs to.' - parameters: - - - name: Accept - in: header - description: 'If set, the content type group list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_contenttypes_contentTypeIdgroups_post - tags: - - Type - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ContentTypeGroupRefList+xml: - schema: - $ref: '#/components/schemas/ContentTypeGroupRefList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentTypeGroupRefList media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/typegroups/15/types"> - <ContentTypeGroupRef media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/1"> - <unlink href="/api/ibexa/v2/content/types/15/groups/1" method="DELETE"/> - </ContentTypeGroupRef> - <ContentTypeGroupRef media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/2"> - <unlink href="/api/ibexa/v2/content/types/15/groups/2" method="DELETE"/> - </ContentTypeGroupRef> - </ContentTypeGroupRefList> - application/vnd.ibexa.api.ContentTypeGroupRefList+json: - schema: - $ref: '#/components/schemas/ContentTypeGroupRefListWrapper' - example: - ContentTypeGroupRefList: - _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json - _href: /api/ibexa/v2/content/typegroups/2/types - ContentTypeGroupRef: [{ _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/1, unlink: { _href: /api/ibexa/v2/content/types/2/groups/1, _method: DELETE } }, { _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/2, unlink: { _href: /api/ibexa/v2/content/types/2/groups/2, _method: DELETE } }] - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - The user is not authorized to add a group.' - '403': - description: 'Error - The content type is already assigned to the group.' - summary: 'Link group to content type' - description: 'Links a content type group to the content type and returns the updated group list.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated content type group list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ContentTypeLinkToGroupController resource' - content: { } - required: false - deprecated: false - '/content/types/{contentTypeId}/groups/{id}': - delete: - operationId: api_contenttypes_contentTypeIdgroups_id_delete - tags: - - Type - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ContentTypeGroupRefList+xml: - schema: - $ref: '#/components/schemas/ContentTypeGroupRefList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentTypeGroupRefList media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/typegroups/15/types"> - <ContentTypeGroupRef media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/1"> - <unlink href="/api/ibexa/v2/content/types/15/groups/1" method="DELETE"/> - </ContentTypeGroupRef> - <ContentTypeGroupRef media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/2"> - <unlink href="/api/ibexa/v2/content/types/15/groups/2" method="DELETE"/> - </ContentTypeGroupRef> - </ContentTypeGroupRefList> - application/vnd.ibexa.api.ContentTypeGroupRefList+json: - schema: - $ref: '#/components/schemas/ContentTypeGroupRefListWrapper' - example: - ContentTypeGroupRefList: - _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json - _href: /api/ibexa/v2/content/typegroups/2/types - ContentTypeGroupRef: [{ _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/1, unlink: { _href: /api/ibexa/v2/content/types/2/groups/1, _method: DELETE } }, { _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/2, unlink: { _href: /api/ibexa/v2/content/types/2/groups/2, _method: DELETE } }] - '401': - description: 'Error - The user is not authorized to delete this content type.' - '403': - description: 'Error - content type cannot be unlinked from the only remaining group.' - '404': - description: 'Error - The resource does not exist.' - '204': - description: 'ContentTypeUnlinkFromGroupController resource deleted' - summary: 'Unlink group from content type' - description: 'Removes the given group from the content type and returns the updated group list.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated content type group list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /content/typegroups: - get: - operationId: api_contenttypegroups_get - tags: - - 'Type Groups' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ContentTypeGroupList+xml: - schema: - $ref: '#/components/schemas/ContentTypeGroupList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentTypeGroupList media-type="application/vnd.ibexa.api.ContentTypeGroupList+xml" href="/api/ibexa/v2/content/typegroups"> - <ContentTypeGroup media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/1"> - <id>1</id> - <identifier>Content</identifier> - <created>2002-09-05T11:08:48+02:00</created> - <modified>2002-10-06T18:35:06+02:00</modified> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <ContentTypes media-type="application/vnd.ibexa.api.ContentTypeInfoList+xml" href="/api/ibexa/v2/content/typegroups/1/types"/> - </ContentTypeGroup> - <ContentTypeGroup media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/2"> - <id>2</id> - <identifier>Users</identifier> - <created>2002-09-05T11:09:01+02:00</created> - <modified>2002-10-06T18:35:13+02:00</modified> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <ContentTypes media-type="application/vnd.ibexa.api.ContentTypeInfoList+xml" href="/api/ibexa/v2/content/typegroups/2/types"/> - </ContentTypeGroup> - <ContentTypeGroup media-type="application/vnd.ibexa.api.ContentTypeGroup+xml" href="/api/ibexa/v2/content/typegroups/3"> - <id>3</id> - <identifier>Media</identifier> - <created>2002-09-14T15:22:23+02:00</created> - <modified>2002-10-06T18:35:20+02:00</modified> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <ContentTypes media-type="application/vnd.ibexa.api.ContentTypeInfoList+xml" href="/api/ibexa/v2/content/typegroups/3/types"/> - </ContentTypeGroup> - </ContentTypeGroupList> - application/vnd.ibexa.api.ContentTypeGroupList+json: - schema: - $ref: '#/components/schemas/ContentTypeGroupListWrapper' - example: - ContentTypeGroupList: - _media-type: application/vnd.ibexa.api.ContentTypeGroupList+json - _href: /api/ibexa/v2/content/typegroups - ContentTypeGroup: [{ _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/1, id: 1, identifier: Content, created: '2002-09-05T09:08:48+00:00', modified: '2002-10-06T16:35:06+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, ContentTypes: { _media-type: application/vnd.ibexa.api.ContentTypeInfoList+json, _href: /api/ibexa/v2/content/typegroups/1/types } }, { _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/2, id: 2, identifier: Users, created: '2002-09-05T09:09:01+00:00', modified: '2002-10-06T16:35:13+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, ContentTypes: { _media-type: application/vnd.ibexa.api.ContentTypeInfoList+json, _href: /api/ibexa/v2/content/typegroups/2/types } }, { _media-type: application/vnd.ibexa.api.ContentTypeGroup+json, _href: /api/ibexa/v2/content/typegroups/3, id: 3, identifier: Media, created: '2002-09-14T13:22:23+00:00', modified: '2002-10-06T16:35:20+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, ContentTypes: { _media-type: application/vnd.ibexa.api.ContentTypeInfoList+json, _href: /api/ibexa/v2/content/typegroups/3/types } }] - '307': - description: 'Temporary redirect.' - '401': - description: 'Error - The user has no permission to read content types.' - '404': - description: 'Error - The content type group with the given identifier does not exist.' - summary: 'Get content type groups' - description: 'Returns a list of all content type groups. If an identifier is provided, loads the content type group for this identifier.' - parameters: - - - name: Accept - in: header - description: 'If set, the content type group list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_contenttypegroups_post - tags: - - 'Type Groups' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.ContentTypeGroup+xml: - schema: - $ref: '#/components/schemas/ContentTypeGroup' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentTypeGroup href="/content/typesgroups/7" media-type="application/vnd.ibexa.api.ContentTypeGroup+xml"> - <id>7</id> - <identifier>newContentTypeGroup</identifier> - <created>2012-02-31T12:45:00</created> - <modified>2012-02-31T12:45:00</modified> - <Creator href="/user/users/13" media-type="application/vnd.ibexa.api.User+xml"/> - <Modifier href="/user/users/13" media-type="application/vnd.ibexa.api.User+xml"/> - <ContentTypes href="/content/typegroups/7/types" media-type="application/vnd.ibexa.api.ContentTypeList+xml"/> - </ContentTypeGroup> - application/vnd.ibexa.api.ContentTypeGroup+json: - schema: - $ref: '#/components/schemas/ContentTypeGroupWrapper' - example: - ContentTypeGroup: - _media-type: application/vnd.ibexa.api.ContentTypeGroup+json - _href: /api/ibexa/v2/content/typegroups/4 - id: 4 - identifier: updatedIdentifer - created: '2021-08-11T09:44:18+00:00' - modified: '2021-08-11T10:10:04+00:00' - Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - ContentTypes: { _media-type: application/vnd.ibexa.api.ContentTypeInfoList+json, _href: /api/ibexa/v2/content/typegroups/6/types } - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - The user is not authorized to create this content type group.' - '403': - description: 'Error - A content type group with the same identifier already exists.' - summary: 'Create content type group' - description: 'Creates a new content type group.' - parameters: - - - name: Accept - in: header - description: 'If set, the new content type group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The content type group input schema encoded in XML or JSON.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ContentTypeGroupCreateController resource' - content: - application/vnd.ibexa.api.ContentTypeGroupInput+xml: - schema: - $ref: '#/components/schemas/ContentTypeGroupInput' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/typegroups/POST/ContentTypeGroupInput.xml.example' - application/vnd.ibexa.api.ContentTypeGroupInput+json: - schema: - $ref: '#/components/schemas/ContentTypeGroupInputWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/typegroups/POST/ContentTypeGroupInput.json.example' - required: false - deprecated: false - '/content/typegroups/{contentTypeGroupId}': - get: - operationId: api_contenttypegroups_contentTypeGroupId_get - tags: - - 'Type Groups' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ContentTypeGroup+xml: - schema: - $ref: '#/components/schemas/ContentTypeList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentTypeList media-type="application/vnd.ibexa.api.ContentTypeList+xml" href="/api/ibexa/v2/content/typegroups/1/types"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2"> - <id>2</id> - <status>DEFINED</status> - <identifier>article</identifier> - <names> - <value languageCode="eng-GB">Article</value> - </names> - <descriptions/> - <creationDate>2002-06-18T09:21:38+00:00</creationDate> - <modificationDate>2004-04-20T09:56:29+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/2/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2/draft"/> - <remoteId>c15b600eb9198b1924063b5a68758232</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><short_title|title></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>false</defaultAlwaysAvailable> - <defaultSortField>PATH</defaultSortField> - <defaultSortOrder>ASC</defaultSortOrder> - <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions"> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/1"> - <id>1</id> - <identifier>title</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup></fieldGroup> - <position>1</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue>New article</defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Title</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength">255</value> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/152"> - <id>152</id> - <identifier>short_title</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup></fieldGroup> - <position>2</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Short title</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength">255</value> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/153"> - <id>153</id> - <identifier>author</identifier> - <fieldType>ibexa_author</fieldType> - <fieldGroup></fieldGroup> - <position>3</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Author</value> - </names> - <descriptions/> - <fieldSettings> - <value key="defaultAuthor">1</value> - </fieldSettings> - <validatorConfiguration/> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/120"> - <id>120</id> - <identifier>intro</identifier> - <fieldType>ibexa_richtext</fieldType> - <fieldGroup></fieldGroup> - <position>4</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Intro</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/121"> - <id>121</id> - <identifier>body</identifier> - <fieldType>ibexa_richtext</fieldType> - <fieldGroup></fieldGroup> - <position>5</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Body</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/123"> - <id>123</id> - <identifier>enable_comments</identifier> - <fieldType>ibexa_boolean</fieldType> - <fieldGroup></fieldGroup> - <position>6</position> - <isTranslatable>false</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue>false</defaultValue> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Enable comments</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/154"> - <id>154</id> - <identifier>image</identifier> - <fieldType>ibexa_object_relation</fieldType> - <fieldGroup></fieldGroup> - <position>7</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="destinationContentId"/> - </defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Image</value> - </names> - <descriptions/> - <fieldSettings> - <value key="selectionMethod">SELECTION_BROWSE</value> - <value key="selectionRoot"></value> - <value key="selectionContentTypes"/> - </fieldSettings> - <validatorConfiguration/> - </FieldDefinition> - </FieldDefinitions> - </ContentType> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1"> - <id>1</id> - <status>DEFINED</status> - <identifier>folder</identifier> - <names> - <value languageCode="eng-GB">Folder</value> - </names> - <descriptions/> - <creationDate>2002-06-18T09:21:38+00:00</creationDate> - <modificationDate>2015-11-29T21:14:32+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/1/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1/draft"/> - <remoteId>a3d405b81be900468eb153d774f4f0d2</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><short_name|name></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>true</defaultAlwaysAvailable> - <defaultSortField>PATH</defaultSortField> - <defaultSortOrder>ASC</defaultSortOrder> - <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions"> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/4"> - <id>4</id> - <identifier>name</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup></fieldGroup> - <position>1</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue>Folder</defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Name</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength">255</value> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/155"> - <id>155</id> - <identifier>short_name</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup></fieldGroup> - <position>2</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Short name</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength">100</value> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/119"> - <id>119</id> - <identifier>short_description</identifier> - <fieldType>ibexa_richtext</fieldType> - <fieldGroup></fieldGroup> - <position>3</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Short description</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/156"> - <id>156</id> - <identifier>description</identifier> - <fieldType>ibexa_richtext</fieldType> - <fieldGroup></fieldGroup> - <position>4</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Description</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - </FieldDefinitions> - </ContentType> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/43"> - <id>43</id> - <status>DEFINED</status> - <identifier>form</identifier> - <names> - <value languageCode="eng-GB">Form</value> - </names> - <descriptions/> - <creationDate>2018-09-17T06:46:13+00:00</creationDate> - <modificationDate>2018-09-17T06:47:14+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/43/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/43/draft"/> - <remoteId>6f7f21df775a33c1e4bbc76b48c38476</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><title></nameSchema> - <isContainer>false</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>true</defaultAlwaysAvailable> - <defaultSortField>PUBLISHED</defaultSortField> - <defaultSortOrder>DESC</defaultSortOrder> - <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/43/fieldDefinitions"> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/43/fieldDefinitions/188"> - <id>188</id> - <identifier>title</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup>content</fieldGroup> - <position>1</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Title</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength"/> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/43/fieldDefinitions/189"> - <id>189</id> - <identifier>form</identifier> - <fieldType>ibexa_form</fieldType> - <fieldGroup>content</fieldGroup> - <position>2</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="fields"/> - <value key="content_id"/> - <value key="content_field_id"/> - <value key="language_code"/> - </defaultValue> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Form</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - </FieldDefinitions> - </ContentType> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/42"> - <id>42</id> - <status>DEFINED</status> - <identifier>landing_page</identifier> - <names> - <value languageCode="eng-GB">Landing page</value> - </names> - <descriptions> - <value languageCode="eng-GB"></value> - </descriptions> - <creationDate>2015-07-03T12:00:26+00:00</creationDate> - <modificationDate>2015-07-03T12:00:26+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/42/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/42/draft"/> - <remoteId>60c03e9758465eb69d56b3afb6adf18e</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><name></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>true</defaultAlwaysAvailable> - <defaultSortField>PUBLISHED</defaultSortField> - <defaultSortOrder>DESC</defaultSortOrder> - <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions"> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions/185"> - <id>185</id> - <identifier>name</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup>content</fieldGroup> - <position>10</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Title</value> - </names> - <descriptions> - <value languageCode="eng-GB">Title</value> - </descriptions> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength"/> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions/186"> - <id>186</id> - <identifier>description</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup>content</fieldGroup> - <position>20</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Description</value> - </names> - <descriptions> - <value languageCode="eng-GB">Landing page description</value> - </descriptions> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength"/> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions/187"> - <id>187</id> - <identifier>page</identifier> - <fieldType>ibexa_landing_page</fieldType> - <fieldGroup>content</fieldGroup> - <position>30</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="layout">default</value> - <value key="zones"> - <value> - <value key="id">default_id</value> - <value key="name">default</value> - <value key="blocks"/></value> - </value> - </defaultValue> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Landing page</value> - </names> - <descriptions> - <value languageCode="eng-GB">Landing page</value> - </descriptions> - <fieldSettings> - <value key="availableBlocks"/> - <value key="availableLayouts"/> - <value key="editorMode">page_view_mode</value> - </fieldSettings> - <validatorConfiguration/> - </FieldDefinition> - </FieldDefinitions> - </ContentType> - </ContentTypeList> - application/vnd.ibexa.api.ContentTypeGroup+json: - schema: - $ref: '#/components/schemas/ContentTypeListWrapper' - example: - ContentTypeList: - _media-type: application/vnd.ibexa.api.ContentTypeList+json - _href: /api/ibexa/v2/content/typegroups/1/types - ContentType: [{ _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2, id: 2, status: DEFINED, identifier: article, names: { value: [{ _languageCode: eng-GB, '#text': Article }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2004-04-20T09:56:29+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft }, remoteId: c15b600eb9198b1924063b5a68758232, urlAliasSchema: null, nameSchema: '<short_title|title>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: false, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/1, id: 1, identifier: title, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: 'New article', isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/152, id: 152, identifier: short_title, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short title' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/153, id: 153, identifier: author, fieldType: ibexa_author, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: [], isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Author }] }, descriptions: { value: [] }, fieldSettings: { defaultAuthor: 1 }, validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/120, id: 120, identifier: intro, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Intro }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/121, id: 121, identifier: body, fieldType: ibexa_richtext, fieldGroup: '', position: 5, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Body }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/123, id: 123, identifier: enable_comments, fieldType: ibexa_boolean, fieldGroup: '', position: 6, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: false, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Enable comments' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/154, id: 154, identifier: image, fieldType: ibexa_object_relation, fieldGroup: '', position: 7, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { destinationContentId: null }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Image }] }, descriptions: { value: [] }, fieldSettings: { selectionMethod: SELECTION_BROWSE, selectionRoot: '', selectionContentTypes: [] }, validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1, id: 1, status: DEFINED, identifier: folder, names: { value: [{ _languageCode: eng-GB, '#text': Folder }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2015-11-29T21:14:32+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/1/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1/draft }, remoteId: a3d405b81be900468eb153d774f4f0d2, urlAliasSchema: null, nameSchema: '<short_name|name>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/4, id: 4, identifier: name, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: Folder, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Name }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/155, id: 155, identifier: short_name, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short name' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 100, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/119, id: 119, identifier: short_description, fieldType: ibexa_richtext, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short description' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/156, id: 156, identifier: description, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43, id: 43, status: DEFINED, identifier: form, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, creationDate: '2018-09-17T06:46:13+00:00', modificationDate: '2018-09-17T06:47:14+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/43/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43/draft }, remoteId: 6f7f21df775a33c1e4bbc76b48c38476, urlAliasSchema: '', nameSchema: '<title>', isContainer: false, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/188, id: 188, identifier: title, fieldType: ibexa_string, fieldGroup: content, position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/189, id: 189, identifier: form, fieldType: ibexa_form, fieldGroup: content, position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { fields: [], content_id: null, content_field_id: null, language_code: null }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42, id: 42, status: DEFINED, identifier: landing_page, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] }, creationDate: '2015-07-03T12:00:26+00:00', modificationDate: '2015-07-03T12:00:26+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/42/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42/draft }, remoteId: 60c03e9758465eb69d56b3afb6adf18e, urlAliasSchema: '', nameSchema: '<name>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/185, id: 185, identifier: name, fieldType: ibexa_string, fieldGroup: content, position: 10, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': Title }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/186, id: 186, identifier: description, fieldType: ibexa_string, fieldGroup: content, position: 20, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page description' }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/187, id: 187, identifier: page, fieldType: ibexa_landing_page, fieldGroup: content, position: 30, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { layout: default, zones: [{ id: default_id, name: default, blocks: [] }] }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, fieldSettings: { availableBlocks: null, availableLayouts: null, editorMode: page_view_mode }, validatorConfiguration: [] }] } }] - '401': - description: 'Error - The user is not authorized to read this content type group.' - '404': - description: 'Error - The content type group does not exist.' - summary: 'Get content type group' - description: 'Returns the content type group with provided ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the content type group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeGroupId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_contenttypegroups_contentTypeGroupId_delete - tags: - - 'Type Groups' - responses: - '204': - description: 'No Content - content type group deleted.' - '401': - description: 'Error - The user is not authorized to delete this content type group.' - '403': - description: 'Error - The content type group is not empty.' - '404': - description: 'Error - The content type group does not exist.' - summary: 'Delete content type group' - description: 'Deletes the provided content type group.' - parameters: - - - name: contentTypeGroupId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_contenttypegroups_contentTypeGroupId_patch - tags: - - 'Type Groups' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ContentTypeGroup+xml: - schema: - $ref: '#/components/schemas/ContentTypeGroup' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentTypeGroup href="/content/typesgroups/7" media-type="application/vnd.ibexa.api.ContentTypeGroup+xml"> - <id>7</id> - <identifier>newContentTypeGroup</identifier> - <created>2012-02-31T12:45:00</created> - <modified>2012-02-31T12:45:00</modified> - <Creator href="/user/users/13" media-type="application/vnd.ibexa.api.User+xml"/> - <Modifier href="/user/users/13" media-type="application/vnd.ibexa.api.User+xml"/> - <ContentTypes href="/content/typegroups/7/types" media-type="application/vnd.ibexa.api.ContentTypeList+xml"/> - </ContentTypeGroup> - application/vnd.ibexa.api.ContentTypeGroup+json: - schema: - $ref: '#/components/schemas/ContentTypeGroupWrapper' - example: - ContentTypeGroup: - _media-type: application/vnd.ibexa.api.ContentTypeGroup+json - _href: /api/ibexa/v2/content/typegroups/4 - id: 4 - identifier: updatedIdentifer - created: '2021-08-11T09:44:18+00:00' - modified: '2021-08-11T10:10:04+00:00' - Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - ContentTypes: { _media-type: application/vnd.ibexa.api.ContentTypeInfoList+json, _href: /api/ibexa/v2/content/typegroups/6/types } - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - The user is not authorized to create this content type group.' - '403': - description: 'Error - A content type group with the given identifier already exists.' - '412': - description: 'Error - The current ETag does not match the one provided in the If-Match header.' - summary: 'Update content type group' - description: 'Updates a content type group. PATCH or POST with header X-HTTP-Method-Override PATCH.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated content type group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The content type group input schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-Match - in: header - description: 'ETag causes patching only if the specified ETag is the current one. Otherwise a 412 is returned.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeGroupId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated ContentTypeGroupUpdateController resource' - content: - application/vnd.ibexa.api.ContentTypeGroupInput+xml: - schema: - $ref: '#/components/schemas/ContentTypeGroupInput' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/typegroups/POST/ContentTypeGroupInput.xml.example' - application/vnd.ibexa.api.ContentTypeGroupInput+json: - schema: - $ref: '#/components/schemas/ContentTypeGroupInputWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/typegroups/POST/ContentTypeGroupInput.json.example' - required: false - deprecated: false - '/content/typegroups/{contentTypeGroupId}/types': - get: - operationId: api_contenttypegroups_contentTypeGroupIdtypes_get - tags: - - 'Type Groups' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.ContentTypeInfoList+xml: - schema: - $ref: '#/components/schemas/ContentTypeInfoList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentTypeInfoList media-type="application/vnd.ibexa.api.ContentTypeInfoList+xml" href="/api/ibexa/v2/content/typegroups/1/types"> - <ContentTypeInfo media-type="application/vnd.ibexa.api.ContentTypeInfo+xml" href="/api/ibexa/v2/content/types/2"> - <id>2</id> - <status>DEFINED</status> - <identifier>article</identifier> - <names> - <value languageCode="eng-GB">Article</value> - </names> - <descriptions/> - <creationDate>2002-06-18T11:21:38+02:00</creationDate> - <modificationDate>2004-04-20T11:56:29+02:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/2/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2/draft"/> - <remoteId>c15b600eb9198b1924063b5a68758232</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><short_title|title></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>false</defaultAlwaysAvailable> - <defaultSortField>PATH</defaultSortField> - <defaultSortOrder>ASC</defaultSortOrder> - </ContentTypeInfo> - <ContentTypeInfo media-type="application/vnd.ibexa.api.ContentTypeInfo+xml" href="/api/ibexa/v2/content/types/1"> - <id>1</id> - <status>DEFINED</status> - <identifier>folder</identifier> - <names> - <value languageCode="eng-GB">Folder</value> - </names> - <descriptions/> - <creationDate>2002-06-18T11:21:38+02:00</creationDate> - <modificationDate>2015-11-29T22:14:32+01:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/1/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1/draft"/> - <remoteId>a3d405b81be900468eb153d774f4f0d2</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><short_name|name></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>true</defaultAlwaysAvailable> - <defaultSortField>PATH</defaultSortField> - <defaultSortOrder>ASC</defaultSortOrder> - </ContentTypeInfo> - </ContentTypeInfoList> - application/vnd.ibexa.api.ContentTypeInfoList+json: - schema: - $ref: '#/components/schemas/ContentTypeInfoListWrapper' - example: - ContentTypeList: - _media-type: application/vnd.ibexa.api.ContentTypeList+json - _href: /api/ibexa/v2/content/typegroups/1/types - ContentType: [{ _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2, id: 2, status: DEFINED, identifier: article, names: { value: [{ _languageCode: eng-GB, '#text': Article }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2004-04-20T09:56:29+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft }, remoteId: c15b600eb9198b1924063b5a68758232, urlAliasSchema: null, nameSchema: '<short_title|title>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: false, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/1, id: 1, identifier: title, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: 'New article', isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/152, id: 152, identifier: short_title, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short title' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/153, id: 153, identifier: author, fieldType: ibexa_author, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: [], isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Author }] }, descriptions: { value: [] }, fieldSettings: { defaultAuthor: 1 }, validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/120, id: 120, identifier: intro, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Intro }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/121, id: 121, identifier: body, fieldType: ibexa_richtext, fieldGroup: '', position: 5, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Body }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/123, id: 123, identifier: enable_comments, fieldType: ibexa_boolean, fieldGroup: '', position: 6, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: false, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Enable comments' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/154, id: 154, identifier: image, fieldType: ibexa_object_relation, fieldGroup: '', position: 7, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { destinationContentId: null }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Image }] }, descriptions: { value: [] }, fieldSettings: { selectionMethod: SELECTION_BROWSE, selectionRoot: '', selectionContentTypes: [] }, validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1, id: 1, status: DEFINED, identifier: folder, names: { value: [{ _languageCode: eng-GB, '#text': Folder }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2015-11-29T21:14:32+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/1/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1/draft }, remoteId: a3d405b81be900468eb153d774f4f0d2, urlAliasSchema: null, nameSchema: '<short_name|name>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/4, id: 4, identifier: name, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: Folder, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Name }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/155, id: 155, identifier: short_name, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short name' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 100, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/119, id: 119, identifier: short_description, fieldType: ibexa_richtext, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short description' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/156, id: 156, identifier: description, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43, id: 43, status: DEFINED, identifier: form, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, creationDate: '2018-09-17T06:46:13+00:00', modificationDate: '2018-09-17T06:47:14+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/43/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43/draft }, remoteId: 6f7f21df775a33c1e4bbc76b48c38476, urlAliasSchema: '', nameSchema: '<title>', isContainer: false, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/188, id: 188, identifier: title, fieldType: ibexa_string, fieldGroup: content, position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/189, id: 189, identifier: form, fieldType: ibexa_form, fieldGroup: content, position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { fields: [], content_id: null, content_field_id: null, language_code: null }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42, id: 42, status: DEFINED, identifier: landing_page, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] }, creationDate: '2015-07-03T12:00:26+00:00', modificationDate: '2015-07-03T12:00:26+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/42/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42/draft }, remoteId: 60c03e9758465eb69d56b3afb6adf18e, urlAliasSchema: '', nameSchema: '<name>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/185, id: 185, identifier: name, fieldType: ibexa_string, fieldGroup: content, position: 10, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': Title }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/186, id: 186, identifier: description, fieldType: ibexa_string, fieldGroup: content, position: 20, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page description' }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/187, id: 187, identifier: page, fieldType: ibexa_landing_page, fieldGroup: content, position: 30, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { layout: default, zones: [{ id: default_id, name: default, blocks: [] }] }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, fieldSettings: { availableBlocks: null, availableLayouts: null, editorMode: page_view_mode }, validatorConfiguration: [] }] } }] - application/vnd.ibexa.api.ContentTypeList+xml: - schema: - $ref: '#/components/schemas/ContentTypeList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentTypeList media-type="application/vnd.ibexa.api.ContentTypeList+xml" href="/api/ibexa/v2/content/typegroups/1/types"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2"> - <id>2</id> - <status>DEFINED</status> - <identifier>article</identifier> - <names> - <value languageCode="eng-GB">Article</value> - </names> - <descriptions/> - <creationDate>2002-06-18T09:21:38+00:00</creationDate> - <modificationDate>2004-04-20T09:56:29+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/2/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/2/draft"/> - <remoteId>c15b600eb9198b1924063b5a68758232</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><short_title|title></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>false</defaultAlwaysAvailable> - <defaultSortField>PATH</defaultSortField> - <defaultSortOrder>ASC</defaultSortOrder> - <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions"> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/1"> - <id>1</id> - <identifier>title</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup></fieldGroup> - <position>1</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue>New article</defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Title</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength">255</value> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/152"> - <id>152</id> - <identifier>short_title</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup></fieldGroup> - <position>2</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Short title</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength">255</value> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/153"> - <id>153</id> - <identifier>author</identifier> - <fieldType>ibexa_author</fieldType> - <fieldGroup></fieldGroup> - <position>3</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Author</value> - </names> - <descriptions/> - <fieldSettings> - <value key="defaultAuthor">1</value> - </fieldSettings> - <validatorConfiguration/> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/120"> - <id>120</id> - <identifier>intro</identifier> - <fieldType>ibexa_richtext</fieldType> - <fieldGroup></fieldGroup> - <position>4</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Intro</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/121"> - <id>121</id> - <identifier>body</identifier> - <fieldType>ibexa_richtext</fieldType> - <fieldGroup></fieldGroup> - <position>5</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Body</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/123"> - <id>123</id> - <identifier>enable_comments</identifier> - <fieldType>ibexa_boolean</fieldType> - <fieldGroup></fieldGroup> - <position>6</position> - <isTranslatable>false</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue>false</defaultValue> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Enable comments</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/2/fieldDefinitions/154"> - <id>154</id> - <identifier>image</identifier> - <fieldType>ibexa_object_relation</fieldType> - <fieldGroup></fieldGroup> - <position>7</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="destinationContentId"/> - </defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Image</value> - </names> - <descriptions/> - <fieldSettings> - <value key="selectionMethod">SELECTION_BROWSE</value> - <value key="selectionRoot"></value> - <value key="selectionContentTypes"/> - </fieldSettings> - <validatorConfiguration/> - </FieldDefinition> - </FieldDefinitions> - </ContentType> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1"> - <id>1</id> - <status>DEFINED</status> - <identifier>folder</identifier> - <names> - <value languageCode="eng-GB">Folder</value> - </names> - <descriptions/> - <creationDate>2002-06-18T09:21:38+00:00</creationDate> - <modificationDate>2015-11-29T21:14:32+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/1/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1/draft"/> - <remoteId>a3d405b81be900468eb153d774f4f0d2</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><short_name|name></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>true</defaultAlwaysAvailable> - <defaultSortField>PATH</defaultSortField> - <defaultSortOrder>ASC</defaultSortOrder> - <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions"> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/4"> - <id>4</id> - <identifier>name</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup></fieldGroup> - <position>1</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue>Folder</defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Name</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength">255</value> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/155"> - <id>155</id> - <identifier>short_name</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup></fieldGroup> - <position>2</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Short name</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength">100</value> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/119"> - <id>119</id> - <identifier>short_description</identifier> - <fieldType>ibexa_richtext</fieldType> - <fieldGroup></fieldGroup> - <position>3</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Short description</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/156"> - <id>156</id> - <identifier>description</identifier> - <fieldType>ibexa_richtext</fieldType> - <fieldGroup></fieldGroup> - <position>4</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="xml"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/> - </value> - <value key="xhtml5edit"><?xml version="1.0" encoding="UTF-8"?> - <section xmlns="http://ibexa.co/namespaces/ezpublish5/xhtml5/edit"/> - </value> - </defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Description</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - </FieldDefinitions> - </ContentType> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/43"> - <id>43</id> - <status>DEFINED</status> - <identifier>form</identifier> - <names> - <value languageCode="eng-GB">Form</value> - </names> - <descriptions/> - <creationDate>2018-09-17T06:46:13+00:00</creationDate> - <modificationDate>2018-09-17T06:47:14+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/43/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/43/draft"/> - <remoteId>6f7f21df775a33c1e4bbc76b48c38476</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><title></nameSchema> - <isContainer>false</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>true</defaultAlwaysAvailable> - <defaultSortField>PUBLISHED</defaultSortField> - <defaultSortOrder>DESC</defaultSortOrder> - <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/43/fieldDefinitions"> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/43/fieldDefinitions/188"> - <id>188</id> - <identifier>title</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup>content</fieldGroup> - <position>1</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Title</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength"/> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/43/fieldDefinitions/189"> - <id>189</id> - <identifier>form</identifier> - <fieldType>ibexa_form</fieldType> - <fieldGroup>content</fieldGroup> - <position>2</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="fields"/> - <value key="content_id"/> - <value key="content_field_id"/> - <value key="language_code"/> - </defaultValue> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Form</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration/> - </FieldDefinition> - </FieldDefinitions> - </ContentType> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/42"> - <id>42</id> - <status>DEFINED</status> - <identifier>landing_page</identifier> - <names> - <value languageCode="eng-GB">Landing page</value> - </names> - <descriptions> - <value languageCode="eng-GB"></value> - </descriptions> - <creationDate>2015-07-03T12:00:26+00:00</creationDate> - <modificationDate>2015-07-03T12:00:26+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/42/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/42/draft"/> - <remoteId>60c03e9758465eb69d56b3afb6adf18e</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><name></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>true</defaultAlwaysAvailable> - <defaultSortField>PUBLISHED</defaultSortField> - <defaultSortOrder>DESC</defaultSortOrder> - <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions"> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions/185"> - <id>185</id> - <identifier>name</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup>content</fieldGroup> - <position>10</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Title</value> - </names> - <descriptions> - <value languageCode="eng-GB">Title</value> - </descriptions> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength"/> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions/186"> - <id>186</id> - <identifier>description</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup>content</fieldGroup> - <position>20</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue/> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Description</value> - </names> - <descriptions> - <value languageCode="eng-GB">Landing page description</value> - </descriptions> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength"/> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/42/fieldDefinitions/187"> - <id>187</id> - <identifier>page</identifier> - <fieldType>ibexa_landing_page</fieldType> - <fieldGroup>content</fieldGroup> - <position>30</position> - <isTranslatable>true</isTranslatable> - <isRequired>false</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue> - <value key="layout">default</value> - <value key="zones"> - <value> - <value key="id">default_id</value> - <value key="name">default</value> - <value key="blocks"/></value> - </value> - </defaultValue> - <isSearchable>false</isSearchable> - <names> - <value languageCode="eng-GB">Landing page</value> - </names> - <descriptions> - <value languageCode="eng-GB">Landing page</value> - </descriptions> - <fieldSettings> - <value key="availableBlocks"/> - <value key="availableLayouts"/> - <value key="editorMode">page_view_mode</value> - </fieldSettings> - <validatorConfiguration/> - </FieldDefinition> - </FieldDefinitions> - </ContentType> - </ContentTypeList> - application/vnd.ibexa.api.ContentTypeList+json: - schema: - $ref: '#/components/schemas/ContentTypeListWrapper' - example: - ContentTypeList: - _media-type: application/vnd.ibexa.api.ContentTypeList+json - _href: /api/ibexa/v2/content/typegroups/1/types - ContentType: [{ _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2, id: 2, status: DEFINED, identifier: article, names: { value: [{ _languageCode: eng-GB, '#text': Article }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2004-04-20T09:56:29+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/2/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/2/draft }, remoteId: c15b600eb9198b1924063b5a68758232, urlAliasSchema: null, nameSchema: '<short_title|title>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: false, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/1, id: 1, identifier: title, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: 'New article', isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/152, id: 152, identifier: short_title, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short title' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/153, id: 153, identifier: author, fieldType: ibexa_author, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: [], isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Author }] }, descriptions: { value: [] }, fieldSettings: { defaultAuthor: 1 }, validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/120, id: 120, identifier: intro, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Intro }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/121, id: 121, identifier: body, fieldType: ibexa_richtext, fieldGroup: '', position: 5, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Body }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/123, id: 123, identifier: enable_comments, fieldType: ibexa_boolean, fieldGroup: '', position: 6, isTranslatable: false, isRequired: false, isInfoCollector: false, defaultValue: false, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Enable comments' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/2/fieldDefinitions/154, id: 154, identifier: image, fieldType: ibexa_object_relation, fieldGroup: '', position: 7, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { destinationContentId: null }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Image }] }, descriptions: { value: [] }, fieldSettings: { selectionMethod: SELECTION_BROWSE, selectionRoot: '', selectionContentTypes: [] }, validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1, id: 1, status: DEFINED, identifier: folder, names: { value: [{ _languageCode: eng-GB, '#text': Folder }] }, descriptions: { value: [] }, creationDate: '2002-06-18T09:21:38+00:00', modificationDate: '2015-11-29T21:14:32+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/1/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/1/draft }, remoteId: a3d405b81be900468eb153d774f4f0d2, urlAliasSchema: null, nameSchema: '<short_name|name>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PATH, defaultSortOrder: ASC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/4, id: 4, identifier: name, fieldType: ibexa_string, fieldGroup: '', position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: Folder, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Name }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 255, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/155, id: 155, identifier: short_name, fieldType: ibexa_string, fieldGroup: '', position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short name' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: 100, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/119, id: 119, identifier: short_description, fieldType: ibexa_richtext, fieldGroup: '', position: 3, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': 'Short description' }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/1/fieldDefinitions/156, id: 156, identifier: description, fieldType: ibexa_richtext, fieldGroup: '', position: 4, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { xml: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n", xhtml5edit: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n" }, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43, id: 43, status: DEFINED, identifier: form, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, creationDate: '2018-09-17T06:46:13+00:00', modificationDate: '2018-09-17T06:47:14+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/43/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/43/draft }, remoteId: 6f7f21df775a33c1e4bbc76b48c38476, urlAliasSchema: '', nameSchema: '<title>', isContainer: false, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/188, id: 188, identifier: title, fieldType: ibexa_string, fieldGroup: content, position: 1, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/43/fieldDefinitions/189, id: 189, identifier: form, fieldType: ibexa_form, fieldGroup: content, position: 2, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { fields: [], content_id: null, content_field_id: null, language_code: null }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': Form }] }, descriptions: { value: [] }, fieldSettings: [], validatorConfiguration: [] }] } }, { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42, id: 42, status: DEFINED, identifier: landing_page, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': '' }] }, creationDate: '2015-07-03T12:00:26+00:00', modificationDate: '2015-07-03T12:00:26+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Modifier: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, Groups: { _media-type: application/vnd.ibexa.api.ContentTypeGroupRefList+json, _href: /api/ibexa/v2/content/types/42/groups }, Draft: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/42/draft }, remoteId: 60c03e9758465eb69d56b3afb6adf18e, urlAliasSchema: '', nameSchema: '<name>', isContainer: true, mainLanguageCode: eng-GB, defaultAlwaysAvailable: true, defaultSortField: PUBLISHED, defaultSortOrder: DESC, FieldDefinitions: { _media-type: application/vnd.ibexa.api.FieldDefinitionList+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions, FieldDefinition: [{ _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/185, id: 185, identifier: name, fieldType: ibexa_string, fieldGroup: content, position: 10, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Title }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': Title }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/186, id: 186, identifier: description, fieldType: ibexa_string, fieldGroup: content, position: 20, isTranslatable: true, isRequired: true, isInfoCollector: false, defaultValue: null, isSearchable: true, names: { value: [{ _languageCode: eng-GB, '#text': Description }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page description' }] }, fieldSettings: [], validatorConfiguration: { StringLengthValidator: { maxStringLength: null, minStringLength: null } } }, { _media-type: application/vnd.ibexa.api.FieldDefinition+json, _href: /api/ibexa/v2/content/types/42/fieldDefinitions/187, id: 187, identifier: page, fieldType: ibexa_landing_page, fieldGroup: content, position: 30, isTranslatable: true, isRequired: false, isInfoCollector: false, defaultValue: { layout: default, zones: [{ id: default_id, name: default, blocks: [] }] }, isSearchable: false, names: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, descriptions: { value: [{ _languageCode: eng-GB, '#text': 'Landing page' }] }, fieldSettings: { availableBlocks: null, availableLayouts: null, editorMode: page_view_mode }, validatorConfiguration: [] }] } }] - '401': - description: 'Error - The user has no permission to read the content types.' - summary: 'List content types for group' - description: 'Returns a list of content types in the provided group.' - parameters: - - - name: Accept - in: header - description: 'If set, the list of content type info objects or content types (including Field definitions) is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeGroupId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_contenttypegroups_contentTypeGroupIdtypes_post - tags: - - 'Type Groups' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.ContentType+xml: - schema: - $ref: '#/components/schemas/ContentType' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14"> - <id>14</id> - <status>DEFINED</status> - <identifier>copy_of_article_14</identifier> - <names> - <value languageCode="eng-GB">Updated content type name</value> - </names> - <descriptions> - <value languageCode="eng-GB">This is an updated content type description</value> - </descriptions> - <creationDate>2019-02-06T10:56:36+01:00</creationDate> - <modificationDate>2019-02-25T12:15:51+01:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/14/groups"/> - <Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/14/draft"/> - <remoteId>d7ae816f22fe929e67a359a2ef6e7cde</remoteId> - <urlAliasSchema></urlAliasSchema> - <nameSchema><short_title|title></nameSchema> - <isContainer>true</isContainer> - <mainLanguageCode>eng-GB</mainLanguageCode> - <defaultAlwaysAvailable>false</defaultAlwaysAvailable> - <defaultSortField>PATH</defaultSortField> - <defaultSortOrder>ASC</defaultSortOrder> - <FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/14/fieldDefinitions"> - <FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/14/fieldDefinitions/188"> - <id>188</id> - <identifier>title</identifier> - <fieldType>ibexa_string</fieldType> - <fieldGroup></fieldGroup> - <position>1</position> - <isTranslatable>true</isTranslatable> - <isRequired>true</isRequired> - <isInfoCollector>false</isInfoCollector> - <defaultValue>New article</defaultValue> - <isSearchable>true</isSearchable> - <names> - <value languageCode="eng-GB">Title</value> - </names> - <descriptions/> - <fieldSettings/> - <validatorConfiguration> - <value key="StringLengthValidator"> - <value key="maxStringLength">255</value> - <value key="minStringLength"/></value> - </validatorConfiguration> - </FieldDefinition> - </FieldDefinitions> - </ContentType> - application/vnd.ibexa.api.ContentType+json: - schema: - $ref: '#/components/schemas/ContentTypeWrapper' - '400': - description: 'Error - The input does not match the input schema definition. Validation on a Field definition fails. Validation of the content type fails, e.g. multiple Fields of a same singular Field Type are provided. Publish is set to true and the input is not complete e.g. no Field definitions are provided.' - '401': - description: 'Error - The user is not authorized to create this content type.' - '403': - description: 'Error - A content type with same identifier already exists.' - summary: 'Create content type' - description: 'Creates a new content type draft in the given content type group.' - parameters: - - - name: Accept - in: header - description: 'If set, the new content type or draft is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The content type Create schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: contentTypeGroupId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new ContentTypeCreateController resource' - content: - application/vnd.ibexa.api.ContentTypeCreate+xml: - schema: - $ref: '#/components/schemas/ContentTypeCreate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/typegroups/content_type_group_id/types/POST/ContentTypeCreate.xml.example' - application/vnd.ibexa.api.ContentTypeCreate+json: - schema: - $ref: '#/components/schemas/ContentTypeCreateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/typegroups/content_type_group_id/types/POST/ContentTypeCreate.json.example' - required: false - deprecated: false - /content/urlaliases: - get: - operationId: api_contenturlaliases_get - tags: - - 'Url Alias' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.UrlAliasRefList+xml: - schema: - $ref: '#/components/schemas/UrlAliasRefList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UrlAliasRefList media-type="application/vnd.ibexa.api.UrlAliasRefList+xml" href="/api/ibexa/v2/content/urlaliases"> - <UrlAlias media-type="application/vnd.ibexa.api.UrlAlias+xml" href="/api/ibexa/v2/content/urlaliases/0-2cecdff5f90b8595d76b68c417b09f36" /> - </UrlAliasRefList> - application/vnd.ibexa.api.UrlAliasRefList+json: - schema: - $ref: '#/components/schemas/UrlAliasRefListWrapper' - example: - UrlAliasRefList: - _media-type: application/vnd.ibexa.api.UrlAliasRefList+json - _href: /api/ibexa/v2/content/urlaliases - UrlAlias: [{ _media-type: application/vnd.ibexa.api.UrlAlias+json, _href: /api/ibexa/v2/content/urlaliases/0-2cecdff5f90b8595d76b68c417b09f36 }] - '401': - description: 'Error - The user has no permission to read URL aliases.' - summary: 'List global URL aliases' - description: 'Returns the list of global URL aliases.' - parameters: - - - name: Accept - in: header - description: 'If set, the URL alias list contains only references and is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_contenturlaliases_post - tags: - - 'Url Alias' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.UrlAlias+xml: - schema: - $ref: '#/components/schemas/UrlAlias' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UrlAlias media-type="application/vnd.ibexa.api.UrlAlias+xml" href="/api/ibexa/v2/content/urlaliases/0-2cecdff5f90b8595d76b68c417b09f36" id="0-2cecdff5f90b8595d76b68c417b09f36" type="RESOURCE"> - <resource>content/view/full</resource> - <path>/example-global</path> - <languageCodes>eng-GB</languageCodes> - <alwaysAvailable>true</alwaysAvailable> - <isHistory>false</isHistory> - <forward>true</forward> - <custom>true</custom> - </UrlAlias> - application/vnd.ibexa.api.UrlAlias+json: - schema: - $ref: '#/components/schemas/UrlAliasWrapper' - example: - UrlAlias: - _media-type: application/vnd.ibexa.api.UrlAlias+json - _href: /api/ibexa/v2/content/urlaliases/0-2cecdff5f90b8595d76b68c417b09f36 - _id: 0-2cecdff5f90b8595d76b68c417b09f36 - _type: RESOURCE - resource: content/view/full - path: /example-global - languageCodes: eng-GB - alwaysAvailable: true - isHistory: false - forward: true - custom: true - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - The user is not authorized to create a URL alias.' - '403': - description: 'Error - A URL alias with the same identifier already exists.' - summary: 'Create URL alias' - description: 'Creates a URL alias.' - parameters: - - - name: Accept - in: header - description: 'If set, the created URL alias is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The URL alias input schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new URLAliasCreateController resource' - content: - application/vnd.ibexa.api.UrlAliasCreate+xml: - schema: - $ref: '#/components/schemas/UrlAliasCreate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/urlaliases/POST/UrlAliasCreate.xml.example' - application/vnd.ibexa.api.UrlAliasCreate+json: - schema: - $ref: '#/components/schemas/UrlAliasCreateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/urlaliases/POST/UrlAliasCreate.json.example' - required: false - deprecated: false - '/content/urlaliases/{urlAliasId}': - get: - operationId: api_contenturlaliases_urlAliasId_get - tags: - - 'Url Alias' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.UrlAlias+xml: - schema: - $ref: '#/components/schemas/UrlAlias' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UrlAlias media-type="application/vnd.ibexa.api.UrlAlias+xml" href="/api/ibexa/v2/content/urlaliases/0-2cecdff5f90b8595d76b68c417b09f36" id="0-2cecdff5f90b8595d76b68c417b09f36" type="RESOURCE"> - <resource>content/view/full</resource> - <path>/example-global</path> - <languageCodes>eng-GB</languageCodes> - <alwaysAvailable>true</alwaysAvailable> - <isHistory>false</isHistory> - <forward>true</forward> - <custom>true</custom> - </UrlAlias> - application/vnd.ibexa.api.UrlAlias+json: - schema: - $ref: '#/components/schemas/UrlAliasWrapper' - example: - UrlAlias: - _media-type: application/vnd.ibexa.api.UrlAlias+json - _href: /api/ibexa/v2/content/urlaliases/0-2cecdff5f90b8595d76b68c417b09f36 - _id: 0-2cecdff5f90b8595d76b68c417b09f36 - _type: RESOURCE - resource: content/view/full - path: /example-global - languageCodes: eng-GB - alwaysAvailable: true - isHistory: false - forward: true - custom: true - '401': - description: 'Error - The user is not authorized to read URL aliases.' - '404': - description: 'Error - The URL alias does not exist.' - summary: 'Get URL alias' - description: 'Returns the URL alias with the given ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the URL alias is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: urlAliasId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_contenturlaliases_urlAliasId_delete - tags: - - 'Url Alias' - responses: - '204': - description: 'No Content - URL alias deleted.' - '401': - description: 'Error - The user is not authorized to delete a URL alias.' - '404': - description: 'Error - The URL alias does not exist.' - summary: 'Delete URL alias' - description: 'Deletes the provided URL alias.' - parameters: - - - name: urlAliasId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /content/urlwildcards: - get: - operationId: api_contenturlwildcards_get - tags: - - 'Url Wildcard' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.UrlWildcardList+xml: - schema: - $ref: '#/components/schemas/UrlWildcardList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UrlWildcardList media-type="application/vnd.ibexa.api.UrlWildcardList+xml" href="/api/ibexa/v2/content/urlwildcards"> - <UrlWildcard media-type="application/vnd.ibexa.api.UrlWildcard+xml" href="/api/ibexa/v2/content/urlwildcards/1" id="1"> - <sourceUrl>/api/ibexa/v2/content/location/2</sourceUrl> - <destinationUrl>/api/ibexa/v2/content/location/59</destinationUrl> - <forward>true</forward> - </UrlWildcard> - </UrlWildcardList> - application/vnd.ibexa.api.UrlWildcardList+json: - schema: - $ref: '#/components/schemas/UrlWildcardListWrapper' - example: - UrlWildcardList: - _media-type: application/vnd.ibexa.api.UrlWildcardList+json - _href: /api/ibexa/v2/content/urlwildcards - UrlWildcard: [{ _media-type: application/vnd.ibexa.api.UrlWildcard+json, _href: /api/ibexa/v2/content/urlwildcards/1, _id: 1, sourceUrl: /api/ibexa/v2/content/location/2, destinationUrl: /api/ibexa/v2/content/location/59, forward: true }] - '401': - description: 'Error - The user has no permission to read URL wildcards.' - summary: 'List URL wildcards' - description: 'Returns a list of URL wildcards.' - parameters: - - - name: Accept - in: header - description: 'If set, the URL wildcard is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_contenturlwildcards_post - tags: - - 'Url Wildcard' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.UrlWildcard+xml: - schema: - $ref: '#/components/schemas/UrlWildcard' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UrlWildcard media-type="application/vnd.ibexa.api.UrlWildcard+xml" href="/api/ibexa/v2/content/urlwildcards/4" id="4"> - <sourceUrl>/api/ibexa/v2/content/location/2</sourceUrl> - <destinationUrl>/api/ibexa/v2/content/location/59</destinationUrl> - <forward>true</forward> - </UrlWildcard> - application/vnd.ibexa.api.UrlWildcard+json: - schema: - $ref: '#/components/schemas/UrlWildcardWrapper' - example: - UrlWildcard: - _media-type: application/vnd.ibexa.api.UrlWildcard+json - _href: /api/ibexa/v2/content/urlwildcards/4 - _id: 4 - sourceUrl: /api/ibexa/v2/content/location/2 - destinationUrl: /api/ibexa/v2/content/location/59 - forward: true - '400': - description: 'Error - The input does not match the input schema definition.' - '401': - description: 'Error - The user is not authorized to create a URL wildcard.' - '403': - description: 'Error - A URL wildcard with the same identifier already exists.' - summary: 'Create URL wildcard' - description: 'Creates a new URL wildcard.' - parameters: - - - name: Accept - in: header - description: 'If set, the new URL wildcard is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The URL Wildcard input schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new URLWildcardCreateController resource' - content: - application/vnd.ibexa.api.UrlWildcardCreate+xml: - schema: - $ref: '#/components/schemas/UrlWildcardCreate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/urlwildcards/POST/UrlWildcardCreate.xml.example' - application/vnd.ibexa.api.UrlWildcardCreate+json: - schema: - $ref: '#/components/schemas/UrlWildcardCreateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/content/urlwildcards/POST/UrlWildcardCreate.json.example' - required: false - deprecated: false - '/content/urlwildcards/{wildcardId}': - get: - operationId: api_contenturlwildcards_wildcardId_get - tags: - - 'Url Wildcard' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.UrlWildcard+xml: - schema: - $ref: '#/components/schemas/UrlWildcard' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UrlWildcard media-type="application/vnd.ibexa.api.UrlWildcard+xml" href="/api/ibexa/v2/content/urlwildcards/4" id="4"> - <sourceUrl>/api/ibexa/v2/content/location/2</sourceUrl> - <destinationUrl>/api/ibexa/v2/content/location/59</destinationUrl> - <forward>true</forward> - </UrlWildcard> - application/vnd.ibexa.api.UrlWildcard+json: - schema: - $ref: '#/components/schemas/UrlWildcardWrapper' - example: - UrlWildcard: - _media-type: application/vnd.ibexa.api.UrlWildcard+json - _href: /api/ibexa/v2/content/urlwildcards/4 - _id: 4 - sourceUrl: /api/ibexa/v2/content/location/2 - destinationUrl: /api/ibexa/v2/content/location/59 - forward: true - '401': - description: 'Error - The user is not authorized to read URL wildcards.' - '404': - description: 'Error - The URL wildcard does not exist.' - summary: 'Get URL wildcard' - description: 'Returns the URL wildcard with the given ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the URL wildcard is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: wildcardId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_contenturlwildcards_wildcardId_delete - tags: - - 'Url Wildcard' - responses: - '204': - description: 'No Content - URL wildcard deleted.' - '401': - description: 'Error - The user is not authorized to delete a URL wildcard.' - '404': - description: 'Error - The URL wildcard does not exist.' - summary: 'Delete URL wildcard' - description: 'Deletes the given URL wildcard.' - parameters: - - - name: wildcardId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /user/current: - get: - operationId: api_usercurrent_get - tags: - - User - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.User+xml: - schema: - $ref: '#/components/schemas/UserList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserList media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/users"> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/79" id="79" remoteId="bcf0764b417f05af21852a1f03fb1f13"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/> - <name>Jose Vargas</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/79/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/12/79"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/79/locations"/> - <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/79/groups"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> - <publishDate>2021-06-29T08:23:42+00:00</publishDate> - <lastModificationDate>2021-06-29T08:23:42+00:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/79/versions/1"> - <VersionInfo> - <id>547</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2021-06-29T08:23:42+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> - <creationDate>2021-06-29T08:23:42+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Jose Vargas</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/79"/> - </VersionInfo> - <Fields> - <field> - <id>342</id> - <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Jose</fieldValue> - </field> - <field> - <id>343</id> - <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Vargas</fieldValue> - </field> - <field> - <id>344</id> - <fieldDefinitionIdentifier>user_account</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> - <fieldValue> - <value key="hasStoredLogin">true</value> - <value key="contentId">79</value> - <value key="login">josevargas</value> - <value key="email">aa@bb.cc</value> - <value key="passwordUpdatedAt">1624955022</value> - <value key="enabled">true</value> - <value key="maxLogin">0</value> - <value key="plainPassword"/> - </fieldValue> - </field> - <field> - <id>345</id> - <fieldDefinitionIdentifier>signature</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_text</fieldTypeIdentifier> - <fieldValue/> - </field> - <field> - <id>346</id> - <fieldDefinitionIdentifier>image</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_image</fieldTypeIdentifier> - <fieldValue/> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/79/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <login>josevargas</login> - <email>aa@bb.cc</email> - <enabled>true</enabled> - <UserGroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/users/79/groups"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/79/roles"/> - </User> - </UserList> - application/vnd.ibexa.api.User+json: - schema: - $ref: '#/components/schemas/UserListWrapper' - example: - UserList: - _media-type: application/vnd.ibexa.api.UserList+json - _href: /api/ibexa/v2/user/users - User: [{ _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/79, _id: 79, _remoteId: bcf0764b417f05af21852a1f03fb1f13, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 }, name: 'Jose Vargas', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/79/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/12/79 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/79/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/79/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 }, publishDate: '2021-06-29T08:23:42+00:00', lastModificationDate: '2021-06-29T08:23:42+00:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/79/versions/1, VersionInfo: { id: 547, versionNo: 1, status: PUBLISHED, modificationDate: '2021-06-29T08:23:42+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 }, creationDate: '2021-06-29T08:23:42+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jose Vargas' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/79 } }, Fields: { field: [{ id: 342, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jose }, { id: 343, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Vargas }, { id: 344, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 79, login: josevargas, email: aa@bb.cc, passwordUpdatedAt: 1624955022, enabled: true, maxLogin: 0, plainPassword: null } }, { id: 345, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 346, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/79/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user', width: null, height: null, mimeType: image/svg+xml } }, login: josevargas, email: aa@bb.cc, enabled: true, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/79/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/79/roles } }] - '401': - description: "Error - the user has no permission to read Users. For example, Anonymous user can't load oneself." - summary: 'Load current User' - description: 'Loads the current user.' - parameters: - - - name: Accept - in: header - description: 'If set, the User is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /user/users: - get: - operationId: api_userusers_get - tags: - - User - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.UserList+xml: - schema: - $ref: '#/components/schemas/UserList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserList media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/users"> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/79" id="79" remoteId="bcf0764b417f05af21852a1f03fb1f13"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/> - <name>Jose Vargas</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/79/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/12/79"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/79/locations"/> - <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/79/groups"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> - <publishDate>2021-06-29T08:23:42+00:00</publishDate> - <lastModificationDate>2021-06-29T08:23:42+00:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/79/versions/1"> - <VersionInfo> - <id>547</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2021-06-29T08:23:42+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> - <creationDate>2021-06-29T08:23:42+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Jose Vargas</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/79"/> - </VersionInfo> - <Fields> - <field> - <id>342</id> - <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Jose</fieldValue> - </field> - <field> - <id>343</id> - <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Vargas</fieldValue> - </field> - <field> - <id>344</id> - <fieldDefinitionIdentifier>user_account</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> - <fieldValue> - <value key="hasStoredLogin">true</value> - <value key="contentId">79</value> - <value key="login">josevargas</value> - <value key="email">aa@bb.cc</value> - <value key="passwordUpdatedAt">1624955022</value> - <value key="enabled">true</value> - <value key="maxLogin">0</value> - <value key="plainPassword"/> - </fieldValue> - </field> - <field> - <id>345</id> - <fieldDefinitionIdentifier>signature</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_text</fieldTypeIdentifier> - <fieldValue/> - </field> - <field> - <id>346</id> - <fieldDefinitionIdentifier>image</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_image</fieldTypeIdentifier> - <fieldValue/> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/79/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <login>josevargas</login> - <email>aa@bb.cc</email> - <enabled>true</enabled> - <UserGroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/users/79/groups"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/79/roles"/> - </User> - </UserList> - application/vnd.ibexa.api.UserList+json: - schema: - $ref: '#/components/schemas/UserListWrapper' - example: - UserList: - _media-type: application/vnd.ibexa.api.UserList+json - _href: /api/ibexa/v2/user/users - User: [{ _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/79, _id: 79, _remoteId: bcf0764b417f05af21852a1f03fb1f13, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 }, name: 'Jose Vargas', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/79/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/12/79 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/79/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/79/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 }, publishDate: '2021-06-29T08:23:42+00:00', lastModificationDate: '2021-06-29T08:23:42+00:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/79/versions/1, VersionInfo: { id: 547, versionNo: 1, status: PUBLISHED, modificationDate: '2021-06-29T08:23:42+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 }, creationDate: '2021-06-29T08:23:42+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jose Vargas' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/79 } }, Fields: { field: [{ id: 342, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jose }, { id: 343, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Vargas }, { id: 344, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 79, login: josevargas, email: aa@bb.cc, passwordUpdatedAt: 1624955022, enabled: true, maxLogin: 0, plainPassword: null } }, { id: 345, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 346, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/79/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user', width: null, height: null, mimeType: image/svg+xml } }, login: josevargas, email: aa@bb.cc, enabled: true, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/79/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/79/roles } }] - application/vnd.ibexa.api.UserRefList+xml: - schema: - $ref: '#/components/schemas/UserRefList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserRefList media-type="application/vnd.ibexa.api.UserRefList+xml" href="/api/ibexa/v2/user/users"> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - </UserRefList> - application/vnd.ibexa.api.UserRefList+json: - schema: - $ref: '#/components/schemas/UserRefListWrapper' - '404': - description: 'If there are no visible Users matching the filter.' - summary: 'List Users' - description: 'Load Users either for a given remote ID or Role.' - parameters: - - - name: Accept - in: header - description: 'UserList - If set, the User list is returned in XML or JSON format. UserRefList - If set, the link list of Users is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - head: - operationId: api_userusers_head - tags: - - User - responses: - '200': - description: 'OK - verifies if there are Users matching the given filter.' - '404': - description: 'Error - there are no visible Users matching the filter.' - summary: 'Verify Users' - description: 'Verifies if there are Users matching given filter.' - parameters: [] - deprecated: false - '/user/users/{userId}': - get: - operationId: api_userusers_userId_get - tags: - - User - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.User+xml: - schema: - $ref: '#/components/schemas/UserList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserList media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/users"> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/79" id="79" remoteId="bcf0764b417f05af21852a1f03fb1f13"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/> - <name>Jose Vargas</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/79/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/12/79"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/79/locations"/> - <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/79/groups"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> - <publishDate>2021-06-29T08:23:42+00:00</publishDate> - <lastModificationDate>2021-06-29T08:23:42+00:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/79/versions/1"> - <VersionInfo> - <id>547</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2021-06-29T08:23:42+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> - <creationDate>2021-06-29T08:23:42+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Jose Vargas</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/79"/> - </VersionInfo> - <Fields> - <field> - <id>342</id> - <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Jose</fieldValue> - </field> - <field> - <id>343</id> - <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Vargas</fieldValue> - </field> - <field> - <id>344</id> - <fieldDefinitionIdentifier>user_account</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> - <fieldValue> - <value key="hasStoredLogin">true</value> - <value key="contentId">79</value> - <value key="login">josevargas</value> - <value key="email">aa@bb.cc</value> - <value key="passwordUpdatedAt">1624955022</value> - <value key="enabled">true</value> - <value key="maxLogin">0</value> - <value key="plainPassword"/> - </fieldValue> - </field> - <field> - <id>345</id> - <fieldDefinitionIdentifier>signature</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_text</fieldTypeIdentifier> - <fieldValue/> - </field> - <field> - <id>346</id> - <fieldDefinitionIdentifier>image</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_image</fieldTypeIdentifier> - <fieldValue/> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/79/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <login>josevargas</login> - <email>aa@bb.cc</email> - <enabled>true</enabled> - <UserGroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/users/79/groups"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/79/roles"/> - </User> - </UserList> - application/vnd.ibexa.api.User+json: - schema: - $ref: '#/components/schemas/UserListWrapper' - example: - UserList: - _media-type: application/vnd.ibexa.api.UserList+json - _href: /api/ibexa/v2/user/users - User: [{ _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/79, _id: 79, _remoteId: bcf0764b417f05af21852a1f03fb1f13, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 }, name: 'Jose Vargas', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/79/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/12/79 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/79/locations }, Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/79/groups }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 }, publishDate: '2021-06-29T08:23:42+00:00', lastModificationDate: '2021-06-29T08:23:42+00:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/79/versions/1, VersionInfo: { id: 547, versionNo: 1, status: PUBLISHED, modificationDate: '2021-06-29T08:23:42+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 }, creationDate: '2021-06-29T08:23:42+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jose Vargas' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/79 } }, Fields: { field: [{ id: 342, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jose }, { id: 343, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Vargas }, { id: 344, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 79, login: josevargas, email: aa@bb.cc, passwordUpdatedAt: 1624955022, enabled: true, maxLogin: 0, plainPassword: null } }, { id: 345, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 346, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/79/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user', width: null, height: null, mimeType: image/svg+xml } }, login: josevargas, email: aa@bb.cc, enabled: true, UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/79/groups }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/79/roles } }] - '401': - description: 'Error - the user has no permission to read Users.' - '404': - description: 'Error - the User does not exist.' - summary: 'Load User' - description: 'Loads User with the given ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the User is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: userId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_userusers_userId_delete - tags: - - User - responses: - '204': - description: 'No Content.' - '401': - description: 'Error - the user is not authorized to delete this User.' - '403': - description: 'Error - the user is the same as the authenticated User.' - '404': - description: 'Error - the User does not exist.' - summary: 'Delete User' - description: 'Deletes the given User.' - parameters: - - - name: userId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_userusers_userId_patch - tags: - - User - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.User+xml: - schema: - $ref: '#/components/schemas/User' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/79" id="79" remoteId="bcf0764b417f05af21852a1f03fb1f13"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/> - <name>Jose Vargas</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/79/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/12/79"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/79/locations"/> - <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/79/groups"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> - <publishDate>2021-06-29T08:23:42+00:00</publishDate> - <lastModificationDate>2021-07-29T11:45:07+00:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/79/versions/6"> - <VersionInfo> - <id>609</id> - <versionNo>6</versionNo> - <status>PUBLISHED</status> - <modificationDate>2021-07-29T11:45:07+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2021-07-29T11:45:07+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Jose Vargas</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/79"/> - </VersionInfo> - <Fields> - <field> - <id>342</id> - <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Jose</fieldValue> - </field> - <field> - <id>343</id> - <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Vargas</fieldValue> - </field> - <field> - <id>344</id> - <fieldDefinitionIdentifier>user_account</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> - <fieldValue> - <value key="hasStoredLogin">true</value> - <value key="contentId">79</value> - <value key="login">josevargas</value> - <value key="email">aa@bb.cc</value> - <value key="passwordUpdatedAt"/> - <value key="enabled">false</value> - <value key="maxLogin">0</value> - <value key="plainPassword"/> - </fieldValue> - </field> - <field> - <id>345</id> - <fieldDefinitionIdentifier>signature</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_text</fieldTypeIdentifier> - <fieldValue/> - </field> - <field> - <id>346</id> - <fieldDefinitionIdentifier>image</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_image</fieldTypeIdentifier> - <fieldValue/> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/79/versions/6/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <login>josevargas</login> - <email>aa@bb.cc</email> - <enabled>false</enabled> - <UserGroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/users/79/groups"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/79/roles"/> - </User> - application/vnd.ibexa.api.User+json: - schema: - $ref: '#/components/schemas/UserWrapper' - example: - User: - _media-type: application/vnd.ibexa.api.User+json - _href: /api/ibexa/v2/user/users/79 - _id: 79 - _remoteId: bcf0764b417f05af21852a1f03fb1f13 - ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 } - name: 'Jose Vargas' - Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/79/versions } - Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 } - MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/12/79 } - Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/79/locations } - Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/79/groups } - Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 } - publishDate: '2021-06-29T08:23:42+00:00' - lastModificationDate: '2021-07-29T12:00:24+00:00' - mainLanguageCode: eng-GB - alwaysAvailable: true - Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/79/versions/11, VersionInfo: { id: 614, versionNo: 11, status: PUBLISHED, modificationDate: '2021-07-29T12:00:24+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-07-29T12:00:24+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jose Vargas' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/79 } }, Fields: { field: [{ id: 342, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jose }, { id: 343, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Vargas }, { id: 344, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 79, login: josevargas, email: aa@bb.cc, passwordUpdatedAt: null, enabled: false, maxLogin: 0, plainPassword: null } }, { id: 345, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 346, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/79/versions/11/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user', width: null, height: null, mimeType: image/svg+xml } } - login: josevargas - email: aa@bb.cc - enabled: false - UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/79/groups } - Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/79/roles } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update the User.' - '404': - description: 'Error - the User does not exist.' - '412': - description: 'Error - the current ETag does not match with the provided one in the If-Match header.' - summary: 'Update User' - description: 'Updates a User.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated User is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The UserUpdate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-Match - in: header - description: 'Performs a PATCH only if the specified ETag is the current one.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: userId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated UserUpdateController resource' - content: - application/vnd.ibexa.api.UserUpdate+xml: - schema: - $ref: '#/components/schemas/UserUpdate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/users/user_id/PATCH/UserUpdate.xml.example' - application/vnd.ibexa.api.UserUpdate+json: - schema: - $ref: '#/components/schemas/UserUpdateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/users/user_id/PATCH/UserUpdate.json.example' - required: false - deprecated: false - '/user/users/{userId}/drafts': - get: - operationId: api_userusers_userIddrafts_get - tags: - - User - responses: - '200': - description: 'OK - List the draft versions' - content: - application/vnd.ibexa.api.VersionList+xml: - schema: - $ref: '#/components/schemas/VersionList' - application/vnd.ibexa.api.VersionList+json: - schema: - $ref: '#/components/schemas/VersionListWrapper' - '401': - description: 'Error - the current user is not authorized to list the drafts of the given user.' - summary: 'Load user drafts' - description: "Loads user's drafts" - parameters: - - - name: Accept - in: header - description: 'If set, the version list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: userId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/user/users/{userId}/groups': - get: - operationId: api_userusers_userIdgroups_get - tags: - - User - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.UserGroupRefList+xml: - schema: - $ref: '#/components/schemas/UserGroupRefList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserGroupRefList media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/115/groups"> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/12"> - <unassign href="/api/ibexa/v2/user/users/79/groups/12" method="DELETE"/> - </UserGroup> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13"> - <unassign href="/api/ibexa/v2/user/users/115/groups/13" method="DELETE"/> - </UserGroup> - </UserGroupRefList> - application/vnd.ibexa.api.UserGroupRefList+json: - schema: - $ref: '#/components/schemas/UserGroupRefListWrapper' - example: - UserGroupRefList: - _media-type: application/vnd.ibexa.api.UserGroupRefList+json - _href: /api/ibexa/v2/user/users/57/groups - UserGroup: [{ _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13 }] - '401': - description: 'Error - the user has no permission to read User Groups.' - '404': - description: 'Error - the user does not exist.' - summary: 'Load Groups of User' - description: 'Returns a list of User Groups the User belongs to. The returned list includes the resources for unassigning a User Group if the User is in multiple groups.' - parameters: - - - name: Accept - in: header - description: 'If set, the link list of User Groups is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: userId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_userusers_userIdgroups_post - tags: - - User - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.UserGroupRefList+xml: - schema: - $ref: '#/components/schemas/UserGroupRefList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserGroupRefList media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/115/groups"> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/12"> - <unassign href="/api/ibexa/v2/user/users/79/groups/12" method="DELETE"/> - </UserGroup> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13"> - <unassign href="/api/ibexa/v2/user/users/115/groups/13" method="DELETE"/> - </UserGroup> - </UserGroupRefList> - application/vnd.ibexa.api.UserGroupRefList+json: - schema: - $ref: '#/components/schemas/UserGroupRefListWrapper' - example: - UserGroupRefList: - _media-type: application/vnd.ibexa.api.UserGroupRefList+json - _href: /api/ibexa/v2/user/users/57/groups - UserGroup: [{ _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13 }] - '401': - description: 'Error - the user is not authorized to assign User Groups.' - '403': - description: 'Error - the new User Group does not exist or the User is already in this group.' - '404': - description: 'Error - the User does not exist.' - summary: 'Assign User Group' - description: 'Assigns the User to a User Group.' - parameters: - - - name: Accept - in: header - description: 'If set, the link list of User Groups is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: userId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new UserAssignToUserGroupController resource' - content: { } - required: false - deprecated: false - '/user/users/{userId}/groups/{groupId}': - delete: - operationId: api_userusers_userIdgroups_groupId_delete - tags: - - User - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.UserGroupRefList+xml: - schema: - $ref: '#/components/schemas/UserGroupRefList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserGroupRefList media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/115/groups"> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/12"> - <unassign href="/api/ibexa/v2/user/users/79/groups/12" method="DELETE"/> - </UserGroup> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13"> - <unassign href="/api/ibexa/v2/user/users/115/groups/13" method="DELETE"/> - </UserGroup> - </UserGroupRefList> - application/vnd.ibexa.api.UserGroupRefList+json: - schema: - $ref: '#/components/schemas/UserGroupRefListWrapper' - example: - UserGroupRefList: - _media-type: application/vnd.ibexa.api.UserGroupRefList+json - _href: /api/ibexa/v2/user/users/57/groups - UserGroup: [{ _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13 }] - '401': - description: 'Error - the user is not authorized to unassign User Groups.' - '403': - description: 'Error - the User is not in the given group.' - '404': - description: 'Error - the User does not exist.' - '204': - description: 'UserUnassignFromUserGroupController resource deleted' - summary: 'Unassign User Group' - description: 'Unassigns the User from a User Group.' - parameters: - - - name: Accept - in: header - description: 'If set, the link list of User Groups is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: userId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: groupId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/user/users/{userId}/roles': - get: - operationId: api_userusers_userIdroles_get - tags: - - User - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.RoleAssignmentList+xml: - schema: - $ref: '#/components/schemas/RoleAssignmentList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <RoleAssignmentList media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/115/roles"> - <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/115/roles/2"> - <limitation identifier="Section"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="1"/> - </values> - </limitation> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/2"/> - </RoleAssignment> - <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/115/roles/2"> - <limitation identifier="Section"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="2"/> - </values> - </limitation> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/2"/> - </RoleAssignment> - </RoleAssignmentList> - application/vnd.ibexa.api.RoleAssignmentList+json: - schema: - $ref: '#/components/schemas/RoleAssignmentListWrapper' - example: - RoleAssignmentList: - _media-type: application/vnd.ibexa.api.RoleAssignmentList+json - _href: /api/ibexa/v2/user/users/57/roles - RoleAssignment: [{ _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/1, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/1 } }, { _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/2, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/2 } }] - '400': - description: 'Error - the user has no permission to read Roles.' - summary: 'Load Roles for User' - description: 'Returns a list of all Roles assigned to the given User.' - parameters: - - - name: Accept - in: header - description: 'If set, the Role assignment list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: userId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_userusers_userIdroles_post - tags: - - User - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.RoleAssignmentList+xml: - schema: - $ref: '#/components/schemas/RoleAssignmentList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <RoleAssignmentList media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/115/roles"> - <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/115/roles/2"> - <limitation identifier="Section"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="1"/> - </values> - </limitation> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/2"/> - </RoleAssignment> - <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/115/roles/2"> - <limitation identifier="Section"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="2"/> - </values> - </limitation> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/2"/> - </RoleAssignment> - </RoleAssignmentList> - application/vnd.ibexa.api.RoleAssignmentList+json: - schema: - $ref: '#/components/schemas/RoleAssignmentListWrapper' - example: - RoleAssignmentList: - _media-type: application/vnd.ibexa.api.RoleAssignmentList+json - _href: /api/ibexa/v2/user/users/57/roles - RoleAssignment: [{ _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/1, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/1 } }, { _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/2, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/2 } }] - '400': - description: 'Error - validation of limitation in RoleAssignInput fails.' - '401': - description: 'Error - the user is not authorized to assign this Role.' - summary: 'Assign Role to User' - description: 'Assigns a Role to a user.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated Role assignment list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The RoleAssignInput schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: userId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new RoleAssignToUserController resource' - content: - application/vnd.ibexa.api.RoleAssignInput+xml: - schema: - $ref: '#/components/schemas/RoleAssignInput' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/users/user_id/roles/POST/RoleAssignInput.xml.example' - application/vnd.ibexa.api.RoleAssignInput+json: - schema: - $ref: '#/components/schemas/RoleAssignInputWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/users/user_id/roles/POST/RoleAssignInput.json.example' - required: false - deprecated: false - '/user/users/{userId}/roles/{roleId}': - get: - operationId: api_userusers_userIdroles_roleId_get - tags: - - User - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.RoleAssignment+xml: - schema: - $ref: '#/components/schemas/RoleAssignment' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/113/roles/3"> - <limitation identifier="Section"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="6"/> - </values> - </limitation> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/3"/> - </RoleAssignment> - application/vnd.ibexa.api.RoleAssignment+json: - schema: - $ref: '#/components/schemas/RoleAssignmentWrapper' - example: - RoleAssignment: - _media-type: application/vnd.ibexa.api.RoleAssignment+json - _href: /api/ibexa/v2/user/users/113/roles/3 - limitation: { _identifier: Section, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '6' }] } } - Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/3 } - '401': - description: 'Error - the user has no permission to read Roles.' - summary: 'Load User Role Assignment' - description: 'Returns a Role assignment to the given User.' - parameters: - - - name: Accept - in: header - description: 'If set, the Role assignment list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: userId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: roleId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_userusers_userIdroles_roleId_delete - tags: - - User - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.RoleAssignmentList+xml: - schema: - $ref: '#/components/schemas/RoleAssignmentList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <RoleAssignmentList media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/115/roles"> - <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/115/roles/2"> - <limitation identifier="Section"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="1"/> - </values> - </limitation> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/2"/> - </RoleAssignment> - <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/115/roles/2"> - <limitation identifier="Section"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="2"/> - </values> - </limitation> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/2"/> - </RoleAssignment> - </RoleAssignmentList> - application/vnd.ibexa.api.RoleAssignmentList+json: - schema: - $ref: '#/components/schemas/RoleAssignmentListWrapper' - example: - RoleAssignmentList: - _media-type: application/vnd.ibexa.api.RoleAssignmentList+json - _href: /api/ibexa/v2/user/users/57/roles - RoleAssignment: [{ _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/1, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/1 } }, { _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/2, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/2 } }] - '401': - description: 'Error - the user is not authorized to delete this content type.' - summary: 'Unassign Role from User' - description: 'The given Role is removed from the user.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated Role assignment list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: userId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: roleId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/user/users/{userId}/segments': - get: - operationId: api_userusers_userIdsegments_get - tags: - - User - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.UserSegmentList+xml: - schema: - $ref: '#/components/schemas/UserSegmentList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserSegmentList media-type="application/vnd.ibexa.api.UserSegmentList+xml" href="/api/ibexa/v2/user/users/14/segments"> - <UserSegment media-type="application/vnd.ibexa.api.UserSegment+xml"> - <id>1</id> - <identifier>corporate_account</identifier> - <name>Corporate Account</name> - <SegmentGroup media-type="application/vnd.ibexa.api.SegmentGroup+xml" href="/api/ibexa/v2/segment_groups/corporate_accounts"/> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/1234"/> - </UserSegment> - </UserSegmentList> - application/vnd.ibexa.api.UserSegmentList+json: - schema: - $ref: '#/components/schemas/UserSegmentListWrapper' - example: - UserSegmentList: - _media-type: application/vnd.ibexa.api.UserSegmentList+json - _href: /api/ibexa/v2/user/users/14/segments - UserSegment: [{ _media-type: application/vnd.ibexa.api.UserSegment+json, id: 1, identifier: corporate_account, name: 'Corporate Account', SegmentGroup: { _media-type: application/vnd.ibexa.api.SegmentGroup+json, _href: /api/ibexa/v2/segment_groups/corporate_accounts }, User: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } }] - '404': - description: "Error - the user doesn't exist." - summary: 'View user segments' - description: "Return user's segment list." - parameters: - - - name: Accept - in: header - description: "If set, the user's segment list is returned in XML or JSON format." - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: userId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_userusers_userIdsegments_post - tags: - - User - responses: - '204': - description: 'No Content - segments assigned to user' - '401': - description: 'Error - the requesting user is not authorized to assign this segment to the given user.' - '404': - description: "Error - the user doesn't exist." - summary: 'Assign Segments to User' - description: 'Assigns Segments from payload to User given by ID.' - parameters: - - - name: Content-Type - in: header - description: 'The UserSegmentAssignInput schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: userId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new UserSegmentAssignController resource' - content: - application/vnd.ibexa.api.UserSegmentAssignInput+xml: - schema: - $ref: '#/components/schemas/UserSegmentAssignInput' - x-ibexa-example-file: '@IbexaSegmentationBundle/Resources/api_platform/examples/user/users/user_id/segments/UserSegmentAssignInput.xml.example' - application/vnd.ibexa.api.UserSegmentAssignInput+json: - schema: - $ref: '#/components/schemas/UserSegmentAssignInputWrapper' - x-ibexa-example-file: '@IbexaSegmentationBundle/Resources/api_platform/examples/user/users/user_id/segments/UserSegmentAssignInput.json.example' - required: false - deprecated: false - '/user/users/{userId}/segments/{segmentIdentifier}': - delete: - operationId: api_userusers_userIdsegments_segmentIdentifier_delete - tags: - - User - responses: - '204': - description: 'No Content - segments unassigned from user' - '401': - description: 'Error - the requesting user is not authorized to unassign this segment from the given user.' - '404': - description: "Error - the segment or the user doesn't exist." - summary: 'Unassign Segment from User' - description: 'The Segment designated by its identifier is unassigned from the User given by ID.' - parameters: - - - name: userId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: segmentIdentifier - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /user/groups: - get: - operationId: api_usergroups_get - tags: - - 'User Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.UserGroupList+xml: - schema: - $ref: '#/components/schemas/UserGroupList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserGroupList media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups"> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13/15" id="14" remoteId="1bb4fe25487f05527efa8bfd394cecc7"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/> - <name>Administrator User</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/14/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/13/15"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/14/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <publishDate>2002-10-06T16:13:50+00:00</publishDate> - <lastModificationDate>2011-03-25T14:07:04+00:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/14/versions/3"> - <VersionInfo> - <id>499</id> - <versionNo>3</versionNo> - <status>PUBLISHED</status> - <modificationDate>2011-03-25T14:07:04+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2011-03-25T14:03:03+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Administrator User</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/14"/> - </VersionInfo> - <Fields> - <field> - <id>28</id> - <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Administrator</fieldValue> - </field> - <field> - <id>29</id> - <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>User</fieldValue> - </field> - <field> - <id>30</id> - <fieldDefinitionIdentifier>user_account</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> - <fieldValue> - <value key="hasStoredLogin">true</value> - <value key="contentId">14</value> - <value key="login">admin</value> - <value key="email">admin@link.invalid</value> - <value key="passwordUpdatedAt"/> - <value key="enabled">true</value> - <value key="maxLogin">10</value> - <value key="plainPassword"/> - </fieldValue> - </field> - <field> - <id>178</id> - <fieldDefinitionIdentifier>signature</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_text</fieldTypeIdentifier> - <fieldValue/> - </field> - <field> - <id>180</id> - <fieldDefinitionIdentifier>image</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_image</fieldTypeIdentifier> - <fieldValue/> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/14/versions/3/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <ParentUserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13"/> - <Subgroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups/1/5/13/15/subgroups"/> - <Users media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/groups/1/5/13/15/users"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/groups/1/5/13/15/roles"/> - </UserGroup> - </UserGroupList> - application/vnd.ibexa.api.UserGroupList+json: - schema: - $ref: '#/components/schemas/UserGroupListWrapper' - example: - UserGroupList: - _media-type: application/vnd.ibexa.api.UserGroupList+json - _href: /api/ibexa/v2/user/groups - UserGroup: [{ _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13/15, _id: 14, _remoteId: 1bb4fe25487f05527efa8bfd394cecc7, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 }, name: 'Administrator User', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/14/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/13/15 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/14/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, publishDate: '2002-10-06T16:13:50+00:00', lastModificationDate: '2011-03-25T14:07:04+00:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/14/versions/3, VersionInfo: { id: 499, versionNo: 3, status: PUBLISHED, modificationDate: '2011-03-25T14:07:04+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2011-03-25T14:03:03+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Administrator User' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/14 } }, Fields: { field: [{ id: 28, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Administrator }, { id: 29, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: User }, { id: 30, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 14, login: admin, email: admin@link.invalid, passwordUpdatedAt: null, enabled: true, maxLogin: 10, plainPassword: null } }, { id: 178, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 180, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/14/versions/3/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user', width: null, height: null, mimeType: image/svg+xml } }, ParentUserGroup: { _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13 }, Subgroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/groups/1/5/13/15/subgroups }, Users: { _media-type: application/vnd.ibexa.api.UserList+json, _href: /api/ibexa/v2/user/groups/1/5/13/15/users }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/groups/1/5/13/15/roles } }] - application/vnd.ibexa.api.UserGroupRefList+xml: - schema: - $ref: '#/components/schemas/UserGroupRefList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserGroupRefList media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/115/groups"> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/12"> - <unassign href="/api/ibexa/v2/user/users/79/groups/12" method="DELETE"/> - </UserGroup> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13"> - <unassign href="/api/ibexa/v2/user/users/115/groups/13" method="DELETE"/> - </UserGroup> - </UserGroupRefList> - application/vnd.ibexa.api.UserGroupRefList+json: - schema: - $ref: '#/components/schemas/UserGroupRefListWrapper' - example: - UserGroupRefList: - _media-type: application/vnd.ibexa.api.UserGroupRefList+json - _href: /api/ibexa/v2/user/users/57/groups - UserGroup: [{ _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13 }] - '401': - description: 'Error - the user has no permission to read User Groups.' - summary: 'Load User Groups' - description: 'Loads User Groups for either an an ID or a remote ID or a Role.' - parameters: - - - name: Accept - in: header - description: 'UserGroupList - If set, the User Group List is returned in XML or JSON format. UserGroupRefList - If set, the link list of User Group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /user/groups/root: - get: - operationId: api_usergroupsroot_get - tags: - - 'User Group' - responses: - '301': - description: 'Moved permanently.' - summary: 'Get root User Group' - description: 'Redirects to the root User Group.' - parameters: [] - deprecated: false - /user/groups/subgroups: - post: - operationId: api_usergroupssubgroups_post - tags: - - 'User Group' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.UserGroup+xml: - schema: - $ref: '#/components/schemas/UserGroup' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/79" id="85" remoteId="remoteId-qwert098"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/3"/> - <name>UserGroup2</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/85/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/79"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/85/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <publishDate>2021-08-09T09:03:35+00:00</publishDate> - <lastModificationDate>2021-08-09T09:03:35+00:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/85/versions/1"> - <VersionInfo> - <id>576</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2021-08-09T09:03:35+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2021-08-09T09:03:35+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">UserGroup2</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/85"/> - </VersionInfo> - <Fields> - <field> - <id>380</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>UserGroup2</fieldValue> - </field> - <field> - <id>381</id> - <fieldDefinitionIdentifier>description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>This is the description of the user group</fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/85/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user_group</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <ParentUserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5"/> - <Subgroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups/1/5/79/subgroups"/> - <Users media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/groups/1/5/79/users"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/groups/1/5/79/roles"/> - </UserGroup> - application/vnd.ibexa.api.UserGroup+json: - schema: - $ref: '#/components/schemas/UserGroupWrapper' - example: - UserGroup: - _media-type: application/vnd.ibexa.api.UserGroup+json - _href: /api/ibexa/v2/user/groups/1/5/81 - _id: 87 - _remoteId: remoteId-qwert098 - ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/3 } - name: UserGroup2 - Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/87/versions } - Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 } - MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/81 } - Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/87/locations } - Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - publishDate: '2021-08-09T09:06:49+00:00' - lastModificationDate: '2021-08-09T09:06:49+00:00' - mainLanguageCode: eng-GB - alwaysAvailable: true - Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/87/versions/1, VersionInfo: { id: 578, versionNo: 1, status: PUBLISHED, modificationDate: '2021-08-09T09:06:49+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-08-09T09:06:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': UserGroup2 }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/87 } }, Fields: { field: [{ id: 384, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: UserGroup2 }, { id: 385, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'This is the description of the user group' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/87/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user_group', width: null, height: null, mimeType: image/svg+xml } } - ParentUserGroup: { _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5 } - Subgroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/groups/1/5/81/subgroups } - Users: { _media-type: application/vnd.ibexa.api.UserList+json, _href: /api/ibexa/v2/user/groups/1/5/81/users } - Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/groups/1/5/81/roles } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this User Group.' - summary: 'Create a top level User Group' - description: "Creates a top level User Group under the root. To create a child group under a parent group use '/user/groups/{path}/subgroups'." - parameters: - - - name: Accept - in: header - description: 'If set, the new User Group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The UserGroupCreate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new UserGroupCreateController resource' - content: - application/vnd.ibexa.api.UserGroupCreate+xml: - schema: - $ref: '#/components/schemas/UserGroupCreate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/subgroups/POST/UserGroupCreate.xml.example' - application/vnd.ibexa.api.UserGroupCreate+json: - schema: - $ref: '#/components/schemas/UserGroupCreateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/subgroups/POST/UserGroupCreate.json.example' - required: false - deprecated: false - '/user/groups/{path}': - get: - operationId: api_usergroups_path_get - tags: - - 'User Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.UserGroup+xml: - schema: - $ref: '#/components/schemas/UserGroup' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/79" id="85" remoteId="remoteId-qwert098"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/3"/> - <name>UserGroup2</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/85/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/79"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/85/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <publishDate>2021-08-09T09:03:35+00:00</publishDate> - <lastModificationDate>2021-08-09T09:03:35+00:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/85/versions/1"> - <VersionInfo> - <id>576</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2021-08-09T09:03:35+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2021-08-09T09:03:35+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">UserGroup2</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/85"/> - </VersionInfo> - <Fields> - <field> - <id>380</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>UserGroup2</fieldValue> - </field> - <field> - <id>381</id> - <fieldDefinitionIdentifier>description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>This is the description of the user group</fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/85/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user_group</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <ParentUserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5"/> - <Subgroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups/1/5/79/subgroups"/> - <Users media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/groups/1/5/79/users"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/groups/1/5/79/roles"/> - </UserGroup> - application/vnd.ibexa.api.UserGroup+json: - schema: - $ref: '#/components/schemas/UserGroupWrapper' - example: - UserGroup: - _media-type: application/vnd.ibexa.api.UserGroup+json - _href: /api/ibexa/v2/user/groups/1/5/81 - _id: 87 - _remoteId: remoteId-qwert098 - ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/3 } - name: UserGroup2 - Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/87/versions } - Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 } - MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/81 } - Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/87/locations } - Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - publishDate: '2021-08-09T09:06:49+00:00' - lastModificationDate: '2021-08-09T09:06:49+00:00' - mainLanguageCode: eng-GB - alwaysAvailable: true - Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/87/versions/1, VersionInfo: { id: 578, versionNo: 1, status: PUBLISHED, modificationDate: '2021-08-09T09:06:49+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-08-09T09:06:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': UserGroup2 }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/87 } }, Fields: { field: [{ id: 384, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: UserGroup2 }, { id: 385, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'This is the description of the user group' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/87/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user_group', width: null, height: null, mimeType: image/svg+xml } } - ParentUserGroup: { _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5 } - Subgroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/groups/1/5/81/subgroups } - Users: { _media-type: application/vnd.ibexa.api.UserList+json, _href: /api/ibexa/v2/user/groups/1/5/81/users } - Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/groups/1/5/81/roles } - '401': - description: 'Error - the user has no permission to read User Groups.' - '404': - description: 'Error - the User Group does not exist.' - summary: 'Load User Group' - description: 'Loads User Groups for the given {path}.' - parameters: - - - name: Accept - in: header - description: 'If set, the new User Group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_usergroups_path_delete - tags: - - 'User Group' - responses: - '204': - description: 'No content - the given User Group is deleted.' - '401': - description: 'Error - the user is not authorized to delete this content type.' - '403': - description: 'Error - the User Group is not empty.' - summary: 'Delete User Group' - description: 'The given User Group is deleted.' - parameters: - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_usergroups_path_patch - tags: - - 'User Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.UserGroup+xml: - schema: - $ref: '#/components/schemas/UserGroup' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/79" id="85" remoteId="remoteId-qwert098"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/3"/> - <name>UserGroup2</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/85/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/79"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/85/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <publishDate>2021-08-09T09:03:35+00:00</publishDate> - <lastModificationDate>2021-08-09T09:03:35+00:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/85/versions/1"> - <VersionInfo> - <id>576</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2021-08-09T09:03:35+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2021-08-09T09:03:35+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">UserGroup2</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/85"/> - </VersionInfo> - <Fields> - <field> - <id>380</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>UserGroup2</fieldValue> - </field> - <field> - <id>381</id> - <fieldDefinitionIdentifier>description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>This is the description of the user group</fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/85/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user_group</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <ParentUserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5"/> - <Subgroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups/1/5/79/subgroups"/> - <Users media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/groups/1/5/79/users"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/groups/1/5/79/roles"/> - </UserGroup> - application/vnd.ibexa.api.UserGroup+json: - schema: - $ref: '#/components/schemas/UserGroupWrapper' - example: - UserGroup: - _media-type: application/vnd.ibexa.api.UserGroup+json - _href: /api/ibexa/v2/user/groups/1/5/81 - _id: 87 - _remoteId: remoteId-qwert098 - ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/3 } - name: UserGroup2 - Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/87/versions } - Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 } - MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/81 } - Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/87/locations } - Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - publishDate: '2021-08-09T09:06:49+00:00' - lastModificationDate: '2021-08-09T09:06:49+00:00' - mainLanguageCode: eng-GB - alwaysAvailable: true - Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/87/versions/1, VersionInfo: { id: 578, versionNo: 1, status: PUBLISHED, modificationDate: '2021-08-09T09:06:49+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-08-09T09:06:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': UserGroup2 }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/87 } }, Fields: { field: [{ id: 384, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: UserGroup2 }, { id: 385, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'This is the description of the user group' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/87/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user_group', width: null, height: null, mimeType: image/svg+xml } } - ParentUserGroup: { _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5 } - Subgroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/groups/1/5/81/subgroups } - Users: { _media-type: application/vnd.ibexa.api.UserList+json, _href: /api/ibexa/v2/user/groups/1/5/81/users } - Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/groups/1/5/81/roles } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update the User Group.' - '412': - description: "Error -\tif the current ETag does not match with the one provided in the If-Match header." - summary: 'Update User Group' - description: 'Updates a User Group. PATCH or POST with header X-HTTP-Method-Override PATCH.' - parameters: - - - name: Accept - in: header - description: 'If set, the new User Group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The UserGroupUpdate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-Match - in: header - description: 'Performs the PATCH only if the specified ETag is the current one. Otherwise a 412 is returned.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated UserGroupUpdateController resource' - content: - application/vnd.ibexa.api.UserGroupUpdate+xml: - schema: - $ref: '#/components/schemas/UserGroupUpdate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/PATCH/UserGroupUpdate.xml.example' - application/vnd.ibexa.api.UserGroupUpdate+json: - schema: - $ref: '#/components/schemas/UserGroupUpdateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/PATCH/UserGroupUpdate.json.example' - required: false - deprecated: false - '/user/groups/{path}/roles': - get: - operationId: api_usergroups_pathroles_get - tags: - - 'User Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.RoleAssignmentList+xml: - schema: - $ref: '#/components/schemas/RoleAssignmentList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/113/roles/3"> - <limitation identifier="Section"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="6"/> - </values> - </limitation> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/3"/> - </RoleAssignment> - application/vnd.ibexa.api.RoleAssignmentList+json: - schema: - $ref: '#/components/schemas/RoleAssignmentListWrapper' - example: - RoleAssignmentList: - _media-type: application/vnd.ibexa.api.RoleAssignmentList+json - _href: /api/ibexa/v2/user/users/57/roles - RoleAssignment: [{ _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/1, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/1 } }, { _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/2, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/2 } }] - '400': - description: 'Error - the user has no permission to read Roles.' - summary: 'Load Roles for User Group' - description: 'Returns a list of all Roles assigned to the given User Group.' - parameters: - - - name: Accept - in: header - description: 'If set, the Role assignment list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_usergroups_pathroles_post - tags: - - 'User Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.RoleAssignmentList+xml: - schema: - $ref: '#/components/schemas/RoleAssignmentList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/113/roles/3"> - <limitation identifier="Section"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="6"/> - </values> - </limitation> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/3"/> - </RoleAssignment> - application/vnd.ibexa.api.RoleAssignmentList+json: - schema: - $ref: '#/components/schemas/RoleAssignmentListWrapper' - example: - RoleAssignmentList: - _media-type: application/vnd.ibexa.api.RoleAssignmentList+json - _href: /api/ibexa/v2/user/users/57/roles - RoleAssignment: [{ _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/1, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/1 } }, { _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/2, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/2 } }] - '400': - description: 'Error - validation of limitation in RoleAssignInput fails.' - '401': - description: 'Error - the user is not authorized to assign this Role.' - summary: 'Assign Role to User Group' - description: 'Assigns a Role to a User Group.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated Role assignment list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The RoleAssignInput schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new RoleAssignToUserGroupController resource' - content: - application/vnd.ibexa.api.RoleAssignInput+xml: - schema: - $ref: '#/components/schemas/RoleAssignInput' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/roles/POST/RoleAssignInput.xml.example' - application/vnd.ibexa.api.RoleAssignInput+json: - schema: - $ref: '#/components/schemas/RoleAssignInputWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/users/user_id/roles/POST/RoleAssignInput.json.example' - required: false - deprecated: false - '/user/groups/{path}/roles/{roleId}': - get: - operationId: api_usergroups_pathroles_roleId_get - tags: - - 'User Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.RoleAssignment+xml: - schema: - $ref: '#/components/schemas/RoleAssignment' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/113/roles/3"> - <limitation identifier="Section"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="6"/> - </values> - </limitation> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/3"/> - </RoleAssignment> - application/vnd.ibexa.api.RoleAssignment+json: - schema: - $ref: '#/components/schemas/RoleAssignmentWrapper' - example: - RoleAssignment: - _media-type: application/vnd.ibexa.api.RoleAssignment+json - _href: /api/ibexa/v2/user/users/113/roles/3 - limitation: { _identifier: Section, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '6' }] } } - Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/3 } - '401': - description: 'Error - the user has no permission to read Roles.' - summary: 'Load User Group Role Assignment' - description: 'Returns a Role assignment of the given User Group.' - parameters: - - - name: Accept - in: header - description: 'If set, the Role assignment list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: roleId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_usergroups_pathroles_roleId_delete - tags: - - 'User Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.RoleAssignmentList+xml: - schema: - $ref: '#/components/schemas/RoleAssignmentList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <RoleAssignment media-type="application/vnd.ibexa.api.RoleAssignment+xml" href="/api/ibexa/v2/user/users/113/roles/3"> - <limitation identifier="Section"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="6"/> - </values> - </limitation> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/3"/> - </RoleAssignment> - application/vnd.ibexa.api.RoleAssignmentList+json: - schema: - $ref: '#/components/schemas/RoleAssignmentListWrapper' - example: - RoleAssignmentList: - _media-type: application/vnd.ibexa.api.RoleAssignmentList+json - _href: /api/ibexa/v2/user/users/57/roles - RoleAssignment: [{ _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/1, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/1 } }, { _media-type: application/vnd.ibexa.api.RoleAssignment+json, _href: /api/ibexa/v2/user/users/57/roles/2, Role: { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/2 } }] - '401': - description: 'Error - the user is not authorized to delete this Role assignment.' - summary: 'Unassign Role from User Group' - description: 'The given Role is removed from the User or User Group.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated Role assignment list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: roleId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/user/groups/{path}/subgroups': - get: - operationId: api_usergroups_pathsubgroups_get - tags: - - 'User Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.UserGroupList+xml: - schema: - $ref: '#/components/schemas/UserGroupList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserGroupList media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups"> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13/15" id="14" remoteId="1bb4fe25487f05527efa8bfd394cecc7"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/> - <name>Administrator User</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/14/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/13/15"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/14/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <publishDate>2002-10-06T16:13:50+00:00</publishDate> - <lastModificationDate>2011-03-25T14:07:04+00:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/14/versions/3"> - <VersionInfo> - <id>499</id> - <versionNo>3</versionNo> - <status>PUBLISHED</status> - <modificationDate>2011-03-25T14:07:04+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2011-03-25T14:03:03+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Administrator User</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/14"/> - </VersionInfo> - <Fields> - <field> - <id>28</id> - <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Administrator</fieldValue> - </field> - <field> - <id>29</id> - <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>User</fieldValue> - </field> - <field> - <id>30</id> - <fieldDefinitionIdentifier>user_account</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> - <fieldValue> - <value key="hasStoredLogin">true</value> - <value key="contentId">14</value> - <value key="login">admin</value> - <value key="email">admin@link.invalid</value> - <value key="passwordUpdatedAt"/> - <value key="enabled">true</value> - <value key="maxLogin">10</value> - <value key="plainPassword"/> - </fieldValue> - </field> - <field> - <id>178</id> - <fieldDefinitionIdentifier>signature</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_text</fieldTypeIdentifier> - <fieldValue/> - </field> - <field> - <id>180</id> - <fieldDefinitionIdentifier>image</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_image</fieldTypeIdentifier> - <fieldValue/> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/14/versions/3/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <ParentUserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13"/> - <Subgroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups/1/5/13/15/subgroups"/> - <Users media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/groups/1/5/13/15/users"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/groups/1/5/13/15/roles"/> - </UserGroup> - </UserGroupList> - application/vnd.ibexa.api.UserGroupList+json: - schema: - $ref: '#/components/schemas/UserGroupListWrapper' - example: - UserGroupList: - _media-type: application/vnd.ibexa.api.UserGroupList+json - _href: /api/ibexa/v2/user/groups - UserGroup: [{ _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13/15, _id: 14, _remoteId: 1bb4fe25487f05527efa8bfd394cecc7, ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 }, name: 'Administrator User', Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/14/versions }, Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 }, MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/13/15 }, Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/14/locations }, Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, publishDate: '2002-10-06T16:13:50+00:00', lastModificationDate: '2011-03-25T14:07:04+00:00', mainLanguageCode: eng-GB, alwaysAvailable: true, Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/14/versions/3, VersionInfo: { id: 499, versionNo: 3, status: PUBLISHED, modificationDate: '2011-03-25T14:07:04+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2011-03-25T14:03:03+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Administrator User' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/14 } }, Fields: { field: [{ id: 28, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Administrator }, { id: 29, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: User }, { id: 30, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 14, login: admin, email: admin@link.invalid, passwordUpdatedAt: null, enabled: true, maxLogin: 10, plainPassword: null } }, { id: 178, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 180, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/14/versions/3/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user', width: null, height: null, mimeType: image/svg+xml } }, ParentUserGroup: { _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13 }, Subgroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/groups/1/5/13/15/subgroups }, Users: { _media-type: application/vnd.ibexa.api.UserList+json, _href: /api/ibexa/v2/user/groups/1/5/13/15/users }, Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/groups/1/5/13/15/roles } }] - application/vnd.ibexa.api.UserGroupRefList+xml: - schema: - $ref: '#/components/schemas/UserGroupRefList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserGroupRefList media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/115/groups"> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/12"> - <unassign href="/api/ibexa/v2/user/users/79/groups/12" method="DELETE"/> - </UserGroup> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13"> - <unassign href="/api/ibexa/v2/user/users/115/groups/13" method="DELETE"/> - </UserGroup> - </UserGroupRefList> - application/vnd.ibexa.api.UserGroupRefList+json: - schema: - $ref: '#/components/schemas/UserGroupRefListWrapper' - example: - UserGroupRefList: - _media-type: application/vnd.ibexa.api.UserGroupRefList+json - _href: /api/ibexa/v2/user/users/57/groups - UserGroup: [{ _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5/13 }] - '401': - description: 'Error - the user has no permission to read User Groups.' - '404': - description: 'Error - the User Group does not exist.' - summary: 'Load subgroups' - description: 'Returns a list of the subgroups.' - parameters: - - - name: Accept - in: header - description: 'UserGroupList - If set, the User Group list is returned in XML or JSON format. UserGroupRefList - If set, the link list of User Groups is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_usergroups_pathsubgroups_post - tags: - - 'User Group' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.UserGroup+xml: - schema: - $ref: '#/components/schemas/UserGroup' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/79" id="85" remoteId="remoteId-qwert098"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/3"/> - <name>UserGroup2</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/85/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/79"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/85/locations"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <publishDate>2021-08-09T09:03:35+00:00</publishDate> - <lastModificationDate>2021-08-09T09:03:35+00:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/85/versions/1"> - <VersionInfo> - <id>576</id> - <versionNo>1</versionNo> - <status>PUBLISHED</status> - <modificationDate>2021-08-09T09:03:35+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2021-08-09T09:03:35+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">UserGroup2</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/85"/> - </VersionInfo> - <Fields> - <field> - <id>380</id> - <fieldDefinitionIdentifier>name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>UserGroup2</fieldValue> - </field> - <field> - <id>381</id> - <fieldDefinitionIdentifier>description</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>This is the description of the user group</fieldValue> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/85/versions/1/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user_group</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <ParentUserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5"/> - <Subgroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups/1/5/79/subgroups"/> - <Users media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/groups/1/5/79/users"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/groups/1/5/79/roles"/> - </UserGroup> - application/vnd.ibexa.api.UserGroup+json: - schema: - $ref: '#/components/schemas/UserGroupWrapper' - example: - UserGroup: - _media-type: application/vnd.ibexa.api.UserGroup+json - _href: /api/ibexa/v2/user/groups/1/5/81 - _id: 87 - _remoteId: remoteId-qwert098 - ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/3 } - name: UserGroup2 - Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/87/versions } - Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 } - MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/81 } - Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/87/locations } - Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 } - publishDate: '2021-08-09T09:06:49+00:00' - lastModificationDate: '2021-08-09T09:06:49+00:00' - mainLanguageCode: eng-GB - alwaysAvailable: true - Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/87/versions/1, VersionInfo: { id: 578, versionNo: 1, status: PUBLISHED, modificationDate: '2021-08-09T09:06:49+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-08-09T09:06:49+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': UserGroup2 }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/87 } }, Fields: { field: [{ id: 384, fieldDefinitionIdentifier: name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: UserGroup2 }, { id: 385, fieldDefinitionIdentifier: description, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: 'This is the description of the user group' }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/87/versions/1/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user_group', width: null, height: null, mimeType: image/svg+xml } } - ParentUserGroup: { _media-type: application/vnd.ibexa.api.UserGroup+json, _href: /api/ibexa/v2/user/groups/1/5 } - Subgroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/groups/1/5/81/subgroups } - Users: { _media-type: application/vnd.ibexa.api.UserList+json, _href: /api/ibexa/v2/user/groups/1/5/81/users } - Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/groups/1/5/81/roles } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this User Group.' - summary: 'Create User Group' - description: "Creates a new User Group under the given parent. To create a top level group use '/user/groups/subgroups'." - parameters: - - - name: Accept - in: header - description: 'If set, the new User Group is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The UserGroupCreate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new UserGroupCreateController resource' - content: - application/vnd.ibexa.api.UserGroupCreate+xml: - schema: - $ref: '#/components/schemas/UserGroupCreate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/subgroups/POST/UserGroupCreate.xml.example' - application/vnd.ibexa.api.UserGroupCreate+json: - schema: - $ref: '#/components/schemas/UserGroupCreateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/subgroups/POST/UserGroupCreate.json.example' - required: false - deprecated: false - '/user/groups/{path}/users': - get: - operationId: api_usergroups_pathusers_get - tags: - - 'User Group' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.UserList+xml: - schema: - $ref: '#/components/schemas/UserList' - application/vnd.ibexa.api.UserList+json: - schema: - $ref: '#/components/schemas/UserList' - application/vnd.ibexa.api.UserRefList+xml: - schema: - $ref: '#/components/schemas/UserRefList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <UserRefList media-type="application/vnd.ibexa.api.UserRefList+xml" href="/api/ibexa/v2/user/users"> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - </UserRefList> - application/vnd.ibexa.api.UserRefList+json: - schema: - $ref: '#/components/schemas/UserRefListWrapper' - example: - UserRefList: - _media-type: application/vnd.ibexa.api.UserRefList+json - _href: /api/ibexa/v2/user/groups/13/users - User: [{ _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/113 }, { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }] - '401': - description: 'Error - the user has no permission to read User Groups.' - '404': - description: 'Error - the User Group does not exist.' - summary: 'Load Users of Group' - description: 'Loads the Users of the Group with the given ID.' - parameters: - - - name: Accept - in: header - description: 'UserList - If set, the User list returned in XML or JSON format. UserRefList - If set, the link list of Users returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_usergroups_pathusers_post - tags: - - 'User Group' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.User+xml: - schema: - $ref: '#/components/schemas/User' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/79" id="79" remoteId="bcf0764b417f05af21852a1f03fb1f13"> - <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/> - <name>Jose Vargas</name> - <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/79/versions"/> - <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/> - <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/12/79"/> - <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/79/locations"/> - <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api/ibexa/v2/user/users/79/groups"/> - <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/10"/> - <publishDate>2021-06-29T08:23:42+00:00</publishDate> - <lastModificationDate>2021-07-29T11:45:07+00:00</lastModificationDate> - <mainLanguageCode>eng-GB</mainLanguageCode> - <alwaysAvailable>true</alwaysAvailable> - <Version media-type="application/vnd.ibexa.api.Version+xml" href="/api/ibexa/v2/content/objects/79/versions/6"> - <VersionInfo> - <id>609</id> - <versionNo>6</versionNo> - <status>PUBLISHED</status> - <modificationDate>2021-07-29T11:45:07+00:00</modificationDate> - <Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - <creationDate>2021-07-29T11:45:07+00:00</creationDate> - <initialLanguageCode>eng-GB</initialLanguageCode> - <languageCodes>eng-GB</languageCodes> - <VersionTranslationInfo media-type="application/vnd.ibexa.api.VersionTranslationInfo+xml"> - <Language> - <languageCode>eng-GB</languageCode> - </Language> - </VersionTranslationInfo> - <names> - <value languageCode="eng-GB">Jose Vargas</value> - </names> - <Content media-type="application/vnd.ibexa.api.ContentInfo+xml" href="/api/ibexa/v2/content/objects/79"/> - </VersionInfo> - <Fields> - <field> - <id>342</id> - <fieldDefinitionIdentifier>first_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Jose</fieldValue> - </field> - <field> - <id>343</id> - <fieldDefinitionIdentifier>last_name</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_string</fieldTypeIdentifier> - <fieldValue>Vargas</fieldValue> - </field> - <field> - <id>344</id> - <fieldDefinitionIdentifier>user_account</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_user</fieldTypeIdentifier> - <fieldValue> - <value key="hasStoredLogin">true</value> - <value key="contentId">79</value> - <value key="login">josevargas</value> - <value key="email">aa@bb.cc</value> - <value key="passwordUpdatedAt"/> - <value key="enabled">false</value> - <value key="maxLogin">0</value> - <value key="plainPassword"/> - </fieldValue> - </field> - <field> - <id>345</id> - <fieldDefinitionIdentifier>signature</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_text</fieldTypeIdentifier> - <fieldValue/> - </field> - <field> - <id>346</id> - <fieldDefinitionIdentifier>image</fieldDefinitionIdentifier> - <languageCode>eng-GB</languageCode> - <fieldTypeIdentifier>ibexa_image</fieldTypeIdentifier> - <fieldValue/> - </field> - </Fields> - <Relations media-type="application/vnd.ibexa.api.RelationList+xml" href="/api/ibexa/v2/content/objects/79/versions/6/relations"/> - <Thumbnail media-type="application/vnd.ibexa.api.Thumbnail+xml"> - <resource>/bundles/ezplatformadminui/img/ez-icons.svg#user</resource> - <width></width> - <height></height> - <mimeType>image/svg+xml</mimeType> - </Thumbnail> - </Version> - <login>josevargas</login> - <email>aa@bb.cc</email> - <enabled>false</enabled> - <UserGroups media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/users/79/groups"/> - <Roles media-type="application/vnd.ibexa.api.RoleAssignmentList+xml" href="/api/ibexa/v2/user/users/79/roles"/> - </User> - application/vnd.ibexa.api.User+json: - schema: - $ref: '#/components/schemas/UserWrapper' - example: - User: - _media-type: application/vnd.ibexa.api.User+json - _href: /api/ibexa/v2/user/users/79 - _id: 79 - _remoteId: bcf0764b417f05af21852a1f03fb1f13 - ContentType: { _media-type: application/vnd.ibexa.api.ContentType+json, _href: /api/ibexa/v2/content/types/4 } - name: 'Jose Vargas' - Versions: { _media-type: application/vnd.ibexa.api.VersionList+json, _href: /api/ibexa/v2/content/objects/79/versions } - Section: { _media-type: application/vnd.ibexa.api.Section+json, _href: /api/ibexa/v2/content/sections/2 } - MainLocation: { _media-type: application/vnd.ibexa.api.Location+json, _href: /api/ibexa/v2/content/locations/1/5/12/79 } - Locations: { _media-type: application/vnd.ibexa.api.LocationList+json, _href: /api/ibexa/v2/content/objects/79/locations } - Groups: { _media-type: application/vnd.ibexa.api.UserGroupRefList+json, _href: /api/ibexa/v2/user/users/79/groups } - Owner: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/10 } - publishDate: '2021-06-29T08:23:42+00:00' - lastModificationDate: '2021-07-29T12:00:24+00:00' - mainLanguageCode: eng-GB - alwaysAvailable: true - Version: { _media-type: application/vnd.ibexa.api.Version+json, _href: /api/ibexa/v2/content/objects/79/versions/11, VersionInfo: { id: 614, versionNo: 11, status: PUBLISHED, modificationDate: '2021-07-29T12:00:24+00:00', Creator: { _media-type: application/vnd.ibexa.api.User+json, _href: /api/ibexa/v2/user/users/14 }, creationDate: '2021-07-29T12:00:24+00:00', initialLanguageCode: eng-GB, languageCodes: eng-GB, VersionTranslationInfo: { _media-type: application/vnd.ibexa.api.VersionTranslationInfo+json, Language: [{ languageCode: eng-GB }] }, names: { value: [{ _languageCode: eng-GB, '#text': 'Jose Vargas' }] }, Content: { _media-type: application/vnd.ibexa.api.ContentInfo+json, _href: /api/ibexa/v2/content/objects/79 } }, Fields: { field: [{ id: 342, fieldDefinitionIdentifier: first_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Jose }, { id: 343, fieldDefinitionIdentifier: last_name, languageCode: eng-GB, fieldTypeIdentifier: ibexa_string, fieldValue: Vargas }, { id: 344, fieldDefinitionIdentifier: user_account, languageCode: eng-GB, fieldTypeIdentifier: ibexa_user, fieldValue: { hasStoredLogin: true, contentId: 79, login: josevargas, email: aa@bb.cc, passwordUpdatedAt: null, enabled: false, maxLogin: 0, plainPassword: null } }, { id: 345, fieldDefinitionIdentifier: signature, languageCode: eng-GB, fieldTypeIdentifier: ibexa_text, fieldValue: null }, { id: 346, fieldDefinitionIdentifier: image, languageCode: eng-GB, fieldTypeIdentifier: ibexa_image, fieldValue: null }] }, Relations: { _media-type: application/vnd.ibexa.api.RelationList+json, _href: /api/ibexa/v2/content/objects/79/versions/11/relations, Relation: [] }, Thumbnail: { _media-type: application/vnd.ibexa.api.Thumbnail+json, resource: '/bundles/ezplatformadminui/img/ez-icons.svg#user', width: null, height: null, mimeType: image/svg+xml } } - login: josevargas - email: aa@bb.cc - enabled: false - UserGroups: { _media-type: application/vnd.ibexa.api.UserGroupList+json, _href: /api/ibexa/v2/user/users/79/groups } - Roles: { _media-type: application/vnd.ibexa.api.RoleAssignmentList+json, _href: /api/ibexa/v2/user/users/79/roles } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create this User.' - '403': - description: 'Error - a User with the same login already exists.' - '404': - description: 'Error - the Group with the given ID does not exist.' - summary: 'Create User' - description: 'Creates a new User in the given Group.' - parameters: - - - name: Accept - in: header - description: 'If set, the new User is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The UserCreate schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: path - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new UserCreateController resource' - content: - application/vnd.ibexa.api.UserCreate+xml: - schema: - $ref: '#/components/schemas/UserCreate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/users/POST/UserCreate.xml.example' - application/vnd.ibexa.api.UserCreate+json: - schema: - $ref: '#/components/schemas/UserCreateWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/groups/path/users/POST/UserCreate.json.example' - required: false - deprecated: false - /user/policies: - get: - operationId: api_userpolicies_get - tags: - - 'User Policy' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.PolicyList+xml: - schema: - $ref: '#/components/schemas/PolicyList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <PolicyList media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/1/policies"> - <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/349"> - <id>349</id> - <module>content</module> - <function>read</function> - <limitations> - <limitation identifier="Section"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="1"/> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="3"/> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="6"/> - </values> - </limitation> - </limitations> - </Policy> - <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/350"> - <id>350</id> - <module>user</module> - <function>login</function> - <limitations> - <limitation identifier="SiteAccess"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="2282622326"/> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="1766001124"/> - </values> - </limitation> - </limitations> - </Policy> - <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/351"> - <id>351</id> - <module>content</module> - <function>view_embed</function> - <limitations> - <limitation identifier="Class"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="5"/> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="12"/> - </values> - </limitation> - </limitations> - </Policy> - <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/352"> - <id>352</id> - <module>user</module> - <function>register</function> - </Policy> - <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/353"> - <id>353</id> - <module>user</module> - <function>password</function> - </Policy> - </PolicyList> - application/vnd.ibexa.api.PolicyList+json: - schema: - $ref: '#/components/schemas/PolicyListWrapper' - example: - PolicyList: - _media-type: application/vnd.ibexa.api.PolicyList+json - _href: /api/ibexa/v2/user/roles/1/policies - Policy: [{ _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/349, id: 349, module: content, function: read, limitations: { limitation: [{ _identifier: Section, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '1' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '3' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '6' }] } }] } }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/350, id: 350, module: user, function: login, limitations: { limitation: [{ _identifier: SiteAccess, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '2282622326' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '1766001124' }] } }] } }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/351, id: 351, module: content, function: view_embed, limitations: { limitation: [{ _identifier: Class, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '5' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '12' }] } }] } }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/352, id: 352, module: user, function: register }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/353, id: 353, module: user, function: password }] - '401': - description: 'Error - the user has no permission to read Roles.' - summary: 'List Policies for User' - description: 'Search all Policies which are applied to a given User.' - parameters: - - - name: Accept - in: header - description: 'If set, the Policy list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - /user/roles: - get: - operationId: api_userroles_get - tags: - - 'User Role' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.RoleList+xml: - schema: - $ref: '#/components/schemas/RoleList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <RoleList media-type="application/vnd.ibexa.api.RoleList+xml" href="/api/ibexa/v2/user/roles"> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/1"> - <identifier>Anonymous</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/1/policies"/> - </Role> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/2"> - <identifier>Administrator</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/2/policies"/> - </Role> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/3"> - <identifier>Editor</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/3/policies"/> - </Role> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/4"> - <identifier>Member</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/4/policies"/> - </Role> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/10"> - <identifier>NewRole</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/10/policies"/> - </Role> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/14"> - <identifier>NewRole5</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/14/policies"/> - </Role> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/15"> - <identifier>NewRole7</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/15/policies"/> - </Role> - </RoleList> - application/vnd.ibexa.api.RoleList+json: - schema: - $ref: '#/components/schemas/RoleListWrapper' - example: - RoleList: - _media-type: application/vnd.ibexa.api.RoleList+json - _href: /api/ibexa/v2/user/roles - Role: [{ _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/1, identifier: Anonymous, Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/1/policies } }, { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/2, identifier: Administrator, Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/2/policies } }, { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/3, identifier: Editor, Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/3/policies } }, { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/4, identifier: Member, Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/4/policies } }, { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/10, identifier: NewRole, Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/10/policies } }, { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/14, identifier: NewRole5, Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/14/policies } }, { _media-type: application/vnd.ibexa.api.Role+json, _href: /api/ibexa/v2/user/roles/15, identifier: NewRole7, Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/15/policies } }] - '401': - description: 'Error - the user has no permission to read Roles.' - summary: 'Load Roles' - description: 'Returns a list of all Roles.' - parameters: - - - name: Accept - in: header - description: 'If set, the user list returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_userroles_post - tags: - - 'User Role' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.Role+xml: - schema: - $ref: '#/components/schemas/Role' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/9"> - <identifier>UpdatedIdentifier</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/9/policies"/> - </Role> - application/vnd.ibexa.api.Role+json: - schema: - $ref: '#/components/schemas/RoleWrapper' - example: - Role: - _media-type: application/vnd.ibexa.api.Role+json - _href: /api/ibexa/v2/user/roles/6 - identifier: UpdatedIdentifier - Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/6/policies } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to create a Role or a Role draft.' - summary: 'Create Role or Role draft' - description: 'Creates a new Role or Role draft.' - parameters: - - - name: Accept - in: header - description: 'If set, the new user is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The RoleInput schema encoded in XML or JSON.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new RoleCreateController resource' - content: - application/vnd.ibexa.api.RoleInput+xml: - schema: - $ref: '#/components/schemas/RoleInput' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/POST/RoleInput.xml.example' - application/vnd.ibexa.api.RoleInput+json: - schema: - $ref: '#/components/schemas/RoleInputWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/POST/RoleInput.json.example' - required: false - deprecated: false - '/user/roles/{id}': - get: - operationId: api_userroles_id_get - tags: - - 'User Role' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Role+xml: - schema: - $ref: '#/components/schemas/Role' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/9"> - <identifier>UpdatedIdentifier</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/9/policies"/> - </Role> - application/vnd.ibexa.api.Role+json: - schema: - $ref: '#/components/schemas/RoleWrapper' - example: - Role: - _media-type: application/vnd.ibexa.api.Role+json - _href: /api/ibexa/v2/user/roles/6 - identifier: UpdatedIdentifier - Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/6/policies } - '401': - description: 'Error - the user has no permission to read Roles.' - '404': - description: 'Error - the Role does not exist.' - summary: 'Load Role' - description: 'Loads a Role for the given ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the user list returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_userroles_id_post - tags: - - 'User Role' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.RoleDraft+xml: - schema: - $ref: '#/components/schemas/RoleDraft' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Role href="/user/roles/11" media-type="application/vnd.ibexa.api.RoleDraft+xml"> - <identifier>MyRole</identifier> - <Policies href="/user/roles/11/policies" media-type="application/vnd.ibexa.api.PolicyList+xml"/> - </Role> - application/vnd.ibexa.api.RoleDraft+json: - schema: - $ref: '#/components/schemas/RoleDraftWrapper' - example: - Role: - _media-type: application/vnd.ibexa.api.Role+json - _href: /api/ibexa/v2/user/roles/6 - identifier: UpdatedIdentifier - Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/6/policies } - '401': - description: 'Error - the user is not authorized to create a Role or a Role draft' - summary: 'Create Role Draft' - description: 'Creates a new Role draft from an existing Role.' - parameters: - - - name: Accept - in: header - description: 'If set, the new user is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The RoleInput schema encoded in XML or JSON.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new RoleDraftCreateController resource' - content: { } - required: false - deprecated: false - delete: - operationId: api_userroles_id_delete - tags: - - 'User Role' - responses: - '204': - description: 'No Content.' - '401': - description: 'Error - the User is not authorized to delete this Role.' - summary: 'Delete Role' - description: 'The given Role and all assignments to Users or User Groups are deleted.' - parameters: - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_userroles_id_patch - tags: - - 'User Role' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Role+xml: - schema: - $ref: '#/components/schemas/Role' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/9"> - <identifier>UpdatedIdentifier</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/9/policies"/> - </Role> - application/vnd.ibexa.api.Role+json: - schema: - $ref: '#/components/schemas/RoleWrapper' - example: - Role: - _media-type: application/vnd.ibexa.api.Role+json - _href: /api/ibexa/v2/user/roles/6 - identifier: UpdatedIdentifier - Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/6/policies } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update the Role.' - '412': - description: 'Error - the current ETag does not match with the provided one in the If-Match header.' - summary: 'Update Role' - description: 'Updates a Role. PATCH or POST with header X-HTTP-Method-Override PATCH' - parameters: - - - name: Accept - in: header - description: 'If set, the new user is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The RoleInput schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-Match - in: header - description: 'ETag Causes to patch only if the specified ETag is the current one. Otherwise a 412 is returned.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated RoleUpdateController resource' - content: - application/vnd.ibexa.api.RoleInput+xml: - schema: - $ref: '#/components/schemas/RoleInput' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/POST/RoleInput.xml.example' - application/vnd.ibexa.api.RoleInput+json: - schema: - $ref: '#/components/schemas/RoleInputWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/POST/RoleInput.json.example' - required: false - deprecated: false - '/user/roles/{id}/draft': - get: - operationId: api_userroles_iddraft_get - tags: - - 'User Role' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Role+xml: - schema: - $ref: '#/components/schemas/Role' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/9"> - <identifier>UpdatedIdentifier</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/9/policies"/> - </Role> - application/vnd.ibexa.api.Role+json: - schema: - $ref: '#/components/schemas/RoleWrapper' - example: - Role: - _media-type: application/vnd.ibexa.api.Role+json - _href: /api/ibexa/v2/user/roles/6 - identifier: UpdatedIdentifier - Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/6/policies } - '401': - description: 'Error - the user has no permission to read Roles.' - '404': - description: 'Error - there is no draft or Role with the given ID.' - summary: 'Load Role draft' - description: 'Loads a Role draft by original Role ID.' - parameters: - - - name: Accept - in: header - description: 'If set, the User list returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_userroles_iddraft_delete - tags: - - 'User Role' - responses: - '204': - description: 'No Content.' - '401': - description: 'Error - the user is not authorized to delete this Role.' - summary: 'Delete Role draft' - description: 'The given Role draft is deleted.' - parameters: - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_userroles_iddraft_patch - tags: - - 'User Role' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Role+xml: - schema: - $ref: '#/components/schemas/Role' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Role media-type="application/vnd.ibexa.api.Role+xml" href="/api/ibexa/v2/user/roles/9"> - <identifier>UpdatedIdentifier</identifier> - <Policies media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/9/policies"/> - </Role> - application/vnd.ibexa.api.Role+json: - schema: - $ref: '#/components/schemas/RoleWrapper' - example: - Role: - _media-type: application/vnd.ibexa.api.Role+json - _href: /api/ibexa/v2/user/roles/6 - identifier: UpdatedIdentifier - Policies: { _media-type: application/vnd.ibexa.api.PolicyList+json, _href: /api/ibexa/v2/user/roles/6/policies } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the user is not authorized to update the Role.' - '404': - description: 'Error - there is no draft or Role with the given ID.' - '412': - description: 'Error - the current ETag does not match with the one provided in the If-Match header.' - summary: 'Update Role draft' - description: 'Updates a Role draft. PATCH or POST with header X-HTTP-Method-Override PATCH.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated Role is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The RoleInput schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-Match - in: header - description: 'Performs a PATCH only if the specified ETag is the current one. Otherwise a 412 is returned.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated RoleDraftUpdateController resource' - content: - application/vnd.ibexa.api.RoleInput+xml: - schema: - $ref: '#/components/schemas/RoleInput' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/POST/RoleInput.xml.example' - application/vnd.ibexa.api.RoleInput+json: - schema: - $ref: '#/components/schemas/RoleInputWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/POST/RoleInput.json.example' - required: false - deprecated: false - '/user/roles/{id}/policies': - get: - operationId: api_userroles_idpolicies_get - tags: - - 'User Role' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.PolicyList+xml: - schema: - $ref: '#/components/schemas/PolicyList' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <PolicyList media-type="application/vnd.ibexa.api.PolicyList+xml" href="/api/ibexa/v2/user/roles/1/policies"> - <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/349"> - <id>349</id> - <module>content</module> - <function>read</function> - <limitations> - <limitation identifier="Section"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="1"/> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="3"/> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="6"/> - </values> - </limitation> - </limitations> - </Policy> - <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/350"> - <id>350</id> - <module>user</module> - <function>login</function> - <limitations> - <limitation identifier="SiteAccess"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="2282622326"/> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="1766001124"/> - </values> - </limitation> - </limitations> - </Policy> - <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/351"> - <id>351</id> - <module>content</module> - <function>view_embed</function> - <limitations> - <limitation identifier="Class"> - <values> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="5"/> - <ref media-type="application/vnd.ibexa.api.ref+xml" href="12"/> - </values> - </limitation> - </limitations> - </Policy> - <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/352"> - <id>352</id> - <module>user</module> - <function>register</function> - </Policy> - <Policy media-type="application/vnd.ibexa.api.Policy+xml" href="/api/ibexa/v2/user/roles/1/policies/353"> - <id>353</id> - <module>user</module> - <function>password</function> - </Policy> - </PolicyList> - application/vnd.ibexa.api.PolicyList+json: - schema: - $ref: '#/components/schemas/PolicyListWrapper' - example: - PolicyList: - _media-type: application/vnd.ibexa.api.PolicyList+json - _href: /api/ibexa/v2/user/roles/1/policies - Policy: [{ _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/349, id: 349, module: content, function: read, limitations: { limitation: [{ _identifier: Section, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '1' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '3' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '6' }] } }] } }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/350, id: 350, module: user, function: login, limitations: { limitation: [{ _identifier: SiteAccess, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '2282622326' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '1766001124' }] } }] } }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/351, id: 351, module: content, function: view_embed, limitations: { limitation: [{ _identifier: Class, values: { ref: [{ _media-type: application/vnd.ibexa.api.ref+json, _href: '5' }, { _media-type: application/vnd.ibexa.api.ref+json, _href: '12' }] } }] } }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/352, id: 352, module: user, function: register }, { _media-type: application/vnd.ibexa.api.Policy+json, _href: /api/ibexa/v2/user/roles/1/policies/353, id: 353, module: user, function: password }] - '401': - description: 'Error - the user has no permission to read Roles.' - '404': - description: 'Error - the Role does not exist.' - summary: 'Load Policies' - description: 'Loads Policies for the given Role.' - parameters: - - - name: Accept - in: header - description: 'If set, the Policy list is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - post: - operationId: api_userroles_idpolicies_post - tags: - - 'User Role' - responses: - '201': - description: '201' - content: - application/vnd.ibexa.api.Policy+xml: - schema: - $ref: '#/components/schemas/Policy' - example: | - <Policy href="/user/roles/11/policies/55" media-type="application/vnd.ibexa.api.Policy+xml"> - <id>55</id> - <module>content</module> - <function>create</function> - <limitations> - <limitation identifier="Class"> - <values> - <ref href="/content/types/14"/> - </values> - </limitation> - <limitation identifier="ParentClass"> - <values> - <ref href="/content/types/10"/> - </values> - </limitation> - </limitations> - </Policy> - application/vnd.ibexa.api.Policy+json: - schema: - $ref: '#/components/schemas/PolicyWrapper' - example: - Policy: - _media-type: application/vnd.ibexa.api.Policy+json - _href: /api/ibexa/v2/user/roles/1/policies/352 - id: 352 - module: user - function: register - '400': - description: 'Error - the input does not match the input schema definition or validation of limitation in PolicyCreate fails.' - '401': - description: 'Error - the user is not authorized to create the Policy.' - '404': - description: 'Error - the Role does not exist.' - summary: 'Create Policy' - description: 'Creates a Policy' - parameters: - - - name: Accept - in: header - description: 'If set, the updated Policy is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'If set, the updated Policy is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new RolePolicyCreateController resource' - content: - application/vnd.ibexa.api.PolicyCreate+xml: - schema: - $ref: '#/components/schemas/PolicyCreate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/id/policies/POST/PolicyCreate.xml.example' - application/vnd.ibexa.api.PolicyCreate+json: - schema: - $ref: '#/components/schemas/PolicyCreateWrapper' - required: false - deprecated: false - delete: - operationId: api_userroles_idpolicies_delete - tags: - - 'User Role' - responses: - '204': - description: 'No Content - all Policies of the given Role are deleted.' - '401': - description: 'Error - the user is not authorized to delete this content type.' - summary: 'Delete Policies' - description: 'All Policies of the given Role are deleted.' - parameters: - - - name: id - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/user/roles/{roleId}/policies/{policyId}': - get: - operationId: api_userroles_roleIdpolicies_policyId_get - tags: - - 'User Role' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Policy+xml: - schema: - $ref: '#/components/schemas/Policy' - example: | - <Policy href="/user/roles/11/policies/55" media-type="application/vnd.ibexa.api.Policy+xml"> - <id>55</id> - <module>content</module> - <function>create</function> - <limitations> - <limitation identifier="Class"> - <values> - <ref href="/content/types/14"/> - </values> - </limitation> - <limitation identifier="ParentClass"> - <values> - <ref href="/content/types/10"/> - </values> - </limitation> - </limitations> - </Policy> - application/vnd.ibexa.api.Policy+json: - schema: - $ref: '#/components/schemas/PolicyWrapper' - example: - Policy: - _media-type: application/vnd.ibexa.api.Policy+json - _href: /api/ibexa/v2/user/roles/1/policies/352 - id: 352 - module: user - function: register - '401': - description: 'Error - the user has no permission to read Roles.' - '404': - description: 'Error - the Role or Policy does not exist.' - summary: 'Load Policy' - description: 'Loads a Policy for the given module and function.' - parameters: - - - name: Accept - in: header - description: 'If set, the Policy is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-None-Match - in: header - description: ETag - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: policyId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: roleId - in: path - description: 'RolePolicyLoadByIdController identifier' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - delete: - operationId: api_userroles_roleIdpolicies_policyId_delete - tags: - - 'User Role' - responses: - '204': - description: 'No Content - the given Policy is deleted.' - '401': - description: 'Error - the user is not authorized to delete this content type.' - '404': - description: 'Error - the Role or Policy does not exist.' - summary: 'Delete Policy' - description: 'Deletes given Policy.' - parameters: - - - name: policyId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: roleId - in: path - description: 'RolePolicyDeleteController identifier' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - patch: - operationId: api_userroles_roleIdpolicies_policyId_patch - tags: - - 'User Role' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Policy+xml: - schema: - $ref: '#/components/schemas/Policy' - example: | - <Policy href="/user/roles/11/policies/55" media-type="application/vnd.ibexa.api.Policy+xml"> - <id>55</id> - <module>content</module> - <function>create</function> - <limitations> - <limitation identifier="Class"> - <values> - <ref href="/content/types/14"/> - </values> - </limitation> - <limitation identifier="ParentClass"> - <values> - <ref href="/content/types/10"/> - </values> - </limitation> - </limitations> - </Policy> - application/vnd.ibexa.api.Policy+json: - schema: - $ref: '#/components/schemas/PolicyWrapper' - example: - Policy: - _media-type: application/vnd.ibexa.api.Policy+json - _href: /api/ibexa/v2/user/roles/1/policies/352 - id: 352 - module: user - function: register - '400': - description: 'Error - the input does not match the input schema definition or validation of limitation in PolicyUpdate fails.' - '401': - description: 'Error - the user is not authorized to update the Policy.' - '404': - description: 'Error - the Role does not exist.' - '412': - description: 'Error - the current ETag does not match with the one provided in the If-Match header.' - summary: 'Update Policy' - description: 'Updates a Policy. PATCH or POST with header X-HTTP-Method-Override PATCH.' - parameters: - - - name: Accept - in: header - description: 'If set, the updated Policy is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'If set, the updated Policy is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: If-Match - in: header - description: 'Causes to patch only if the specified ETag is the current one. Otherwise a 412 is returned.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: policyId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: roleId - in: path - description: 'RolePolicyUpdateController identifier' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The updated RolePolicyUpdateController resource' - content: - application/vnd.ibexa.api.PolicyUpdate+xml: - schema: - $ref: '#/components/schemas/PolicyUpdate' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/roles/id/policies/id/PATCH/PolicyUpdate.xml.example' - application/vnd.ibexa.api.PolicyUpdate+json: - schema: - $ref: '#/components/schemas/PolicyUpdateWrapper' - required: false - deprecated: false - /user/sessions: - post: - operationId: api_usersessions_post - tags: - - 'User Session' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Session+xml: - schema: - $ref: '#/components/schemas/Session' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Session media-type="application/vnd.ibexa.api.Session+xml" href="/api/ibexa/v2/user/sessions/ABCDEFGHIJKLMNOPQRSTUVWXYZ"> - <name>IBX_SESSION_ID0123456789ABCDEFGHIJKLMNOPQRSTUV</name> - <identifier>ABCDEFGHIJKLMNOPQRSTUVWXYZ</identifier> - <csrfToken>0123456789ABCDEF.GHIJKLMNOP_QRSTUVWXYZabcdefghijklmnopqrstuv.wxyz0123456-789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq</csrfToken> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - </Session> - application/vnd.ibexa.api.Session+json: - schema: - $ref: '#/components/schemas/SessionWrapper' - example: - Session: - _media-type: application/vnd.ibexa.api.Session - name: eZSSID - identifier: go327ij2cirpo59pb6rrv2a4el2 - csrfToken: 23lkneri34ijajedfw39orj3j93 - User: { _href: /user/users/14, _media-type: application/vnd.ibexa.api.User+json } - '201': - description: '201' - content: - application/vnd.ibexa.api.Session+xml: - schema: - $ref: '#/components/schemas/Session' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Session media-type="application/vnd.ibexa.api.Session+xml" href="/api/ibexa/v2/user/sessions/ABCDEFGHIJKLMNOPQRSTUVWXYZ"> - <name>IBX_SESSION_ID0123456789ABCDEFGHIJKLMNOPQRSTUV</name> - <identifier>ABCDEFGHIJKLMNOPQRSTUVWXYZ</identifier> - <csrfToken>0123456789ABCDEF.GHIJKLMNOP_QRSTUVWXYZabcdefghijklmnopqrstuv.wxyz0123456-789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq</csrfToken> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - </Session> - application/vnd.ibexa.api.Session+json: - schema: - $ref: '#/components/schemas/SessionWrapper' - example: - Session: - _media-type: application/vnd.ibexa.api.Session - name: eZSSID - identifier: go327ij2cirpo59pb6rrv2a4el2 - csrfToken: 23lkneri34ijajedfw39orj3j93 - User: { _href: /user/users/14, _media-type: application/vnd.ibexa.api.User+json } - '400': - description: 'Error - the input does not match the input schema definition.' - '401': - description: 'Error - the authorization failed.' - '409': - description: 'Error - header contained a session cookie but different user was authorized.' - summary: 'Create session (login a User)' - description: 'Performs a login for the user or checks if session exists and returns the session and session cookie. The client will need to remember both session name/ID and CSRF token as this is for security reasons not exposed via GET.' - parameters: - - - name: Accept - in: header - description: 'If set, the session is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The SessionInput schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Cookie - in: header - description: "Only needed for session's checking {sessionName}={sessionID}." - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: X-CSRF-Token - in: header - description: "Only needed for session's checking. The {csrfToken} needed on all unsafe HTTP methods with session." - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new SessionCreateController resource' - content: - application/vnd.ibexa.api.SessionInput+xml: - schema: - $ref: '#/components/schemas/SessionInput' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/sessions/POST/SessionInput.xml.example' - application/vnd.ibexa.api.SessionInput+json: - schema: - $ref: '#/components/schemas/SessionInputWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/sessions/POST/SessionInput.json.example' - required: false - deprecated: false - /user/sessions/current: - get: - operationId: api_usersessionscurrent_get - tags: - - 'User Session' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Session+xml: - schema: - $ref: '#/components/schemas/Session' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Session media-type="application/vnd.ibexa.api.Session+xml" href="/api/ibexa/v2/user/sessions/ABCDEFGHIJKLMNOPQRSTUVWXYZ"> - <name>IBX_SESSION_ID0123456789ABCDEFGHIJKLMNOPQRSTUV</name> - <identifier>ABCDEFGHIJKLMNOPQRSTUVWXYZ</identifier> - <csrfToken>0123456789ABCDEF.GHIJKLMNOP_QRSTUVWXYZabcdefghijklmnopqrstuv.wxyz0123456-789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq</csrfToken> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - </Session> - application/vnd.ibexa.api.Session+json: - schema: - $ref: '#/components/schemas/SessionWrapper' - example: - Session: - _media-type: application/vnd.ibexa.api.Session - name: eZSSID - identifier: go327ij2cirpo59pb6rrv2a4el2 - csrfToken: 23lkneri34ijajedfw39orj3j93 - User: { _href: /user/users/14, _media-type: application/vnd.ibexa.api.User+json } - '404': - description: 'User does not have a valid session, or it has expired.' - summary: 'Get current session' - description: 'Get current user session, if any.' - parameters: - - - name: Cookie - in: header - description: "Only needed for session's checking {sessionName}={sessionID}." - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Accept - in: header - description: 'If set, the session is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/user/sessions/{sessionId}': - delete: - operationId: api_usersessions_sessionId_delete - tags: - - 'User Session' - responses: - '204': - description: 'OK - session deleted.' - '404': - description: 'Error - the session does not exist.' - summary: 'Delete session (logout a User)' - description: 'The user session is removed i.e. the user is logged out.' - parameters: - - - name: Cookie - in: header - description: '{sessionName}={sessionID}' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: X-CSRF-Token - in: header - description: 'The {csrfToken} needed on all unsafe HTTP methods with session.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: sessionId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - deprecated: false - '/user/sessions/{sessionId}/refresh': - post: - operationId: api_usersessions_sessionIdrefresh_post - tags: - - 'User Session' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.Session+xml: - schema: - $ref: '#/components/schemas/Session' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <Session media-type="application/vnd.ibexa.api.Session+xml" href="/api/ibexa/v2/user/sessions/ABCDEFGHIJKLMNOPQRSTUVWXYZ"> - <name>IBX_SESSION_ID0123456789ABCDEFGHIJKLMNOPQRSTUV</name> - <identifier>ABCDEFGHIJKLMNOPQRSTUVWXYZ</identifier> - <csrfToken>0123456789ABCDEF.GHIJKLMNOP_QRSTUVWXYZabcdefghijklmnopqrstuv.wxyz0123456-789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq</csrfToken> - <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/> - </Session> - application/vnd.ibexa.api.Session+json: - schema: - $ref: '#/components/schemas/SessionWrapper' - example: - Session: - _media-type: application/vnd.ibexa.api.Session - name: eZSSID - identifier: go327ij2cirpo59pb6rrv2a4el2 - csrfToken: 23lkneri34ijajedfw39orj3j93 - User: { _href: /user/users/14, _media-type: application/vnd.ibexa.api.User+json } - '404': - description: 'Error - the session does not exist.' - summary: 'Refresh session (deprecated)' - description: "Get the session's User information. Deprecated as of Ibexa DXP 4.6, use GET /user/sessions/current instead." - parameters: - - - name: Cookie - in: header - description: '{sessionName}={sessionID}' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: X-CSRF-Token - in: header - description: 'The {csrfToken} needed on all unsafe HTTP methods with session.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Accept - in: header - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: sessionId - in: path - description: '' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new SessionRefreshController resource' - content: { } - required: false - deprecated: false - /user/token/jwt: - post: - operationId: api_usertokenjwt_post - tags: - - 'User Token' - responses: - '200': - description: '200' - content: - application/vnd.ibexa.api.JWT+xml: - schema: - $ref: '#/components/schemas/JWT' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <JWT media-type="application/vnd.ibexa.api.JWT+xml" token="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MDI4NDA3NjEsImV4cCI6MTYwMjg0NDM2MSwicm9sZXMiOlsiUk9MRV9VU0VSIl0sInVzZXJuYW1lIjoiYWRtaW4ifQ.LsmdVjad7wMwVQUo4vSftT0zHbJyArOMd23b417E2jI"> - <token>eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MDI4NDA3NjEsImV4cCI6MTYwMjg0NDM2MSwicm9sZXMiOlsiUk9MRV9VU0VSIl0sInVzZXJuYW1lIjoiYWRtaW4ifQ.LsmdVjad7wMwVQUo4vSftT0zHbJyArOMd23b417E2jI</token> - </JWT> - application/vnd.ibexa.api.JWT+json: - schema: - $ref: '#/components/schemas/JWTWrapper' - example: - JWT: - _media-type: application/vnd.ibexa.api.JWT+json - _token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MDI4NDA3ODAsImV4cCI6MTYwMjg0NDM4MCwicm9sZXMiOlsiUk9MRV9VU0VSIl0sInVzZXJuYW1lIjoiYWRtaW4ifQ.0LHa799HwSwwfDBZd2V0q2xHwGt86PpyZamKnXHQyYI - token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MDI4NDA3ODAsImV4cCI6MTYwMjg0NDM4MCwicm9sZXMiOlsiUk9MRV9VU0VSIl0sInVzZXJuYW1lIjoiYWRtaW4ifQ.0LHa799HwSwwfDBZd2V0q2xHwGt86PpyZamKnXHQyYI - '401': - description: 'Error - Unauthorized' - summary: 'Create JWT token' - description: 'Creates JWT authentication token.' - parameters: - - - name: Accept - in: header - description: 'If set, the token is returned in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The SessionInput schema encoded in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new JWT resource' - content: - application/vnd.ibexa.api.JWTInput+xml: - schema: - $ref: '#/components/schemas/JWTInput' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/token/jwt/POST/JWTInput.xml.example' - application/vnd.ibexa.api.JWTInput+json: - schema: - $ref: '#/components/schemas/JWTInputWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/user/token/jwt/POST/JWTInput.json.example' - required: false - deprecated: false - /views: - post: - operationId: api_views_post - tags: - - Views - responses: - '200': - description: '200' - content: - 'application/vnd.ibexa.api.View+xml; version=1.1': - schema: - $ref: '#/components/schemas/View' - example: | - <?xml version="1.0" encoding="UTF-8"?> - <View href="/views/TitleView" media-type="application/vnd.ibexa.api.View+xml; version=1.1"> - <identifier>TitleView</identifier> - <User href="/user/users/14" media-type="vnd.ibexa.api.User+xml"/> - <public>false</public> - <LocationQuery> - <Filter> - <ParentLocationIdCriterion>2</ParentLocationIdCriterion> - </Filter> - <limit>10</limit> - <offset>0</offset> - <SortClauses> - <ContentName>ascending</ContentName> - </SortClauses> - <FacetBuilders> - <contentTypeFacetBuilder/> - </FacetBuilders> - </LocationQuery> - <Result href="/content/views/view1234/results" - media-type="application/vnd.ibexa.api.ViewResult+xml" count="34" time="31" maxScore="1.0"> - <searchHits> - <searchHit score="1.0" index="installid1234567890"> - <hightlight/> - <value> - <Location media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2"> - <id>2</id> - <priority>0</priority> - <hidden>false</hidden> - <invisible>false</invisible> - <ParentLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1"/> - <pathString>/1/2/</pathString> - <depth>1</depth> - <childCount>8</childCount> - <remoteId>f3e90596361e31d496d4026eb624c983</remoteId> - <Children media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/locations/1/2/children"/> - <Content media-type="application/vnd.ibexa.api.Content+xml" href="/api/ibexa/v2/content/objects/57"/> - <sortField>PRIORITY</sortField> - <sortOrder>ASC</sortOrder> - <UrlAliases media-type="application/vnd.ibexa.api.UrlAliasRefList+xml" href="/api/ibexa/v2/content/locations/1/2/urlaliases"/> - </Location> - - </value> - </searchHit> - <!-- ... --> - </searchHits> - <facets> - <contentTypeFacet> - <contentTypeFacetEntry> - <contentType href="/content/types/1" media-type="application/vnd.ibexa.api.ContentType+xml"/> - <count>3</count> - </contentTypeFacetEntry> - <contentTypeFacetEntry> - <contentType href="/content/types/7" media-type="application/vnd.ibexa.api.ContentType+xml"/> - <count>9</count> - </contentTypeFacetEntry> - <contentTypeFacetEntry> - <contentType href="/content/types/11" media-type="application/vnd.ibexa.api.ContentType+xml"/> - <count>1</count> - </contentTypeFacetEntry> - <contentTypeFacetEntry> - <contentType href="/content/types/15" media-type="application/vnd.ibexa.api.ContentType+xml"/> - <count>8</count> - </contentTypeFacetEntry> - </contentTypeFacet> - </facets> - </Result> - </View> - '400': - description: 'Error - the input does not match the input schema definition.' - summary: 'Search content' - description: |- - Executes a query and returns a View including the results. - View input reflects the criteria model of the public PHP API. - Refer to [Search Criteria Reference](/en/latest/search/criteria_reference/search_criteria_reference/) - parameters: - - - name: Accept - in: header - description: 'The view in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - - - name: Content-Type - in: header - description: 'The view input in XML or JSON format.' - required: true - deprecated: false - allowEmptyValue: false - schema: - type: string - style: simple - explode: false - allowReserved: false - requestBody: - description: 'The new Views resource' - content: - application/vnd.ibexa.api.ViewInput+xml: - schema: - $ref: '#/components/schemas/ViewInput' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/views/POST/ViewInput.xml.example' - application/vnd.ibexa.api.ViewInput+json: - schema: - $ref: '#/components/schemas/ViewInputWrapper' - x-ibexa-example-file: '@IbexaRestBundle/Resources/api_platform/examples/views/POST/ViewInput.json.example' - required: false - deprecated: false -components: - schemas: - BaseObject: - type: object - required: - - _media-type - properties: - _media-type: - xml: - attribute: true - name: media-type - type: string - _href: - xml: - attribute: true - name: href - type: string - Ref: - $ref: '#/components/schemas/BaseObject' - UnixTimestamp: - type: integer - Href: - type: object - required: - - _href - properties: - _href: - xml: - attribute: true - name: href - type: string - Target: - description: 'Struct that stores extra target information for a SortClause object.' - type: object - SortClause: - description: 'This class is the base for SortClause classes, used to set sorting of content queries.' - type: object - required: - - direction - - target - - targetData - properties: - direction: - description: 'Sort direction. One of Query::SORT_ASC or Query::SORT_DESC.' - type: string - target: - description: 'Sort target, high level: section_identifier, attribute_value, etc.' - type: string - targetData: - description: 'Extra target data, required by some sort clauses, field for instance.' - $ref: '#/components/schemas/Target' - ErrorMessage: - description: 'Represents an error response. Might contain additional properties depending on an error type.' - type: object - required: - - errorCode - - errorMessage - - errorDescription - properties: - errorCode: - type: integer - errorMessage: - type: string - errorDescription: - type: string - Value: - description: 'Struct that stores extra value information for a Criterion object.' - type: object - required: - - _languageCode - - '#text' - properties: - _languageCode: - description: 'Language code.' - type: string - '#text': - description: 'Content type description.' - type: - - string - - 'null' - ValueObject: - type: object - required: - - value - properties: - value: - type: array - items: - $ref: '#/components/schemas/Value' - ValueArray: - type: object - required: - - value - properties: - value: - type: array - items: - $ref: '#/components/schemas/Value' - MultilingualValue: - description: 'Object that represents a multilingual (translated) value.' - type: object - required: - - _languageCode - - '#text' - properties: - _languageCode: - description: 'Language code.' - type: string - '#text': - description: 'Translation contents.' - type: - - string - - 'null' - KeyValue: - description: 'Key-value structure' - type: object - required: - - _key - - '#text' - properties: - _key: - type: string - '#text': - type: - - string - - 'null' - DateRange: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'Representation of date range.' - type: object - required: - - startDate - - endDate - properties: - startDate: - type: string - endDate: - type: string - BookmarkList: - description: 'List of bookmarked Locations.' - type: object - required: - - count - - items - properties: - count: - description: 'The total number of bookmarks.' - type: integer - items: - description: 'List of bookmarked Locations.' - type: array - items: - type: object - required: - - Location - - _media-type - - __href - properties: - Location: - $ref: '#/components/schemas/Location' - _media-type: - type: string - __href: - type: string - BookmarkListWrapper: - type: object - required: - - BookmarkList - properties: - BookmarkList: - $ref: '#/components/schemas/BookmarkList' - SummaryEntry: - type: object - required: - - identifier - - id - - names - - quantity - - Price - - PriceInclVat - - SubtotalPrice - - SubtotalPriceInclVat - - VatCategory - - Product - properties: - identifier: - type: string - id: - type: integer - names: - $ref: '#/components/schemas/SummaryEntryNames' - quantity: - type: integer - Price: - $ref: '#/components/schemas/RestPriceWrapper' - PriceInclVat: - $ref: '#/components/schemas/RestPriceWrapper' - SubtotalPrice: - $ref: '#/components/schemas/RestPriceWrapper' - SubtotalPriceInclVat: - $ref: '#/components/schemas/RestPriceWrapper' - VatCategory: - $ref: '#/components/schemas/VatCategory' - Product: - $ref: '#/components/schemas/Product' - SummaryEntryNames: - $ref: '#/components/schemas/ValueObject' - Location: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a Location in the Repository.' - type: object - required: - - id - - priority - - hidden - - invisible - - remoteId - - ContentInfo - - ParentLocation - - pathString - - depth - - childCount - - sortField - - sortOrder - - Content - properties: - id: - description: 'The ID of the Location.' - type: integer - priority: - description: 'Location priority. Position of the Location among its siblings when sorted using priority sort order.' - type: integer - hidden: - description: 'Indicates that the Location entity has been explicitly marked as hidden.' - type: boolean - invisible: - description: 'Indicates that the Location is implicitly marked as hidden by a parent Location.' - type: boolean - remoteId: - description: 'Remote ID, universally unique identifier.' - type: string - ContentInfo: - description: 'This class provides all version independent information of the content item.' - $ref: '#/components/schemas/ContentInfo' - ParentLocation: - description: 'Parent Location.' - Children: - description: 'Children Location.' - pathString: - description: 'The materialized path of the Location entry e.g. /1/2/.' - type: string - depth: - description: 'Depth Location has in the Location tree.' - type: integer - childCount: - description: 'Depth Location has in the Location tree.' - type: integer - sortField: - description: 'Specifies which property the child Locations should be sorted on. Map for Location sort fields to their respective SortClauses - class name/identifier and modified subnode. One of the fallowing values: PATH.' - enum: - - PATH - - PUBLISHED - - MODIFIED - - SECTION - - DEPTH - - CLASS_IDENTIFIER - - CLASS_NAME - - PRIORITY - - NAME - - MODIFIED_SUBNODE - - NODE_ID - - CONTENTOBJECT_ID - type: string - sortOrder: - description: 'Specifies whether the sort order should be ascending or descending. Map for Location sort order to their respective Query SORT constants. One of the fallowing values: const SORT_ORDER_DESC = 0; const SORT_ORDER_ASC = 1.' - enum: - - ASC - - DESC - type: string - Content: - description: 'Represents a content item in a specific version.' - UrlAliases: - description: 'This class represents URL aliases.' - LocationWrapper: - type: object - required: - - Location - properties: - Location: - $ref: '#/components/schemas/Location' - LocationCreate: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - type: object - required: - - ParentLocation - - priority - - hidden - - sortField - - sortOrder - properties: - ParentLocation: - type: object - required: - - _href - properties: - _href: - xml: { attribute: true, name: href } - type: string - priority: - type: string - hidden: - type: - - string - - boolean - sortField: - type: string - sortOrder: - type: string - LocationCreateWrapper: - type: object - required: - - LocationCreate - properties: - LocationCreate: - $ref: '#/components/schemas/LocationCreate' - LocationUpdateStruct: - description: 'This class is used for updating Location meta data.' - type: object - required: - - priority - - remoteId - - hidden - - sortField - - sortOrder - properties: - priority: - description: 'If set the Location priority is changed to the new value.' - type: string - remoteId: - description: 'If set the Location gets a new remoteId. Needs to be a unique Location->remoteId string value.' - type: string - hidden: - type: boolean - sortField: - description: 'If set the sortField is changed. The sort field specifies which property the child Locations should be sorted on. Valid values are found at {@link Location::SORT_FIELD_*}.' - enum: - - PATH - - PUBLISHED - - MODIFIED - - SECTION - - DEPTH - - CLASS_IDENTIFIER - - CLASS_NAME - - PRIORITY - - NAME - - MODIFIED_SUBNODE - - NODE_ID - - CONTENTOBJECT_ID - type: string - sortOrder: - description: 'If set the sortOrder is changed. The sort order specifies whether the sort order should be ascending or descending. Valid values are {@link Location::SORT_ORDER_*}.' - enum: - - ASC - - DESC - type: string - LocationUpdateStructWrapper: - type: object - required: - - LocationUpdate - properties: - LocationUpdate: - $ref: '#/components/schemas/LocationUpdateStruct' - LocationList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a queried Location list holding a totalCount and a partial list of Locations (by offset/limit parameters and permission filters).' - type: object - required: - - Location - properties: - Location: - description: 'The partial list of Locations controlled by offset/limit.' - type: array - items: - $ref: '#/components/schemas/Ref' - LocationListWrapper: - type: object - required: - - LocationList - properties: - LocationList: - $ref: '#/components/schemas/LocationList' - Content: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'Content ID matcher class.' - type: object - required: - - _remoteId - - _id - - ContentType - - Name - - Versions - - CurrentVersion - - Section - - Locations - - Owner - - mainLanguageCode - - currentVersionNo - - alwaysAvailable - - status - - ObjectStates - properties: - _remoteId: - description: 'Remote ID of the content type.' - xml: - attribute: true - name: remoteId - type: string - _id: - description: 'Unique ID of the content type.' - xml: - attribute: true - name: id - type: integer - ContentType: - description: 'Content type.' - $ref: '#/components/schemas/BaseObject' - Name: - description: 'Name of the domain object in a given language.' - type: string - Versions: - description: 'Returns the VersionInfo for this version.' - $ref: '#/components/schemas/BaseObject' - CurrentVersion: - description: 'Current version.' - $ref: '#/components/schemas/BaseObject' - Section: - description: 'The Section to which the content item is assigned to.' - $ref: '#/components/schemas/BaseObject' - Locations: - description: 'Location of the content item.' - $ref: '#/components/schemas/BaseObject' - Owner: - description: 'The owner of the content item.' - $ref: '#/components/schemas/BaseObject' - lastModificationDate: - description: 'Content item modification date.' - type: string - format: date-time - publishedDate: - description: 'Content item publication date.' - type: string - format: date-time - mainLanguageCode: - description: 'The main language code of the content item.' - type: string - currentVersionNo: - description: 'Current version number is the version number of the published version or the version number of a newly created draft (which is 1).' - type: integer - alwaysAvailable: - description: "Indicates if the content item is shown in the main language if it's not present in an other requested language." - type: boolean - status: - description: 'Status of the content. Possible values: const STATUS_DRAFT = 0;const STATUS_PUBLISHED = 1; const STATUS_TRASHED = 2.' - type: string - ObjectStates: - description: 'Object states.' - $ref: '#/components/schemas/BaseObject' - ContentWrapper: - type: object - required: - - Content - properties: - Content: - $ref: '#/components/schemas/Content' - ContentCreate: - description: 'This class is used for creating a new content item.' - type: object - required: - - ContentType - - mainLanguageCode - - LocationCreate - - fields - properties: - ContentType: - description: 'The content type for which the new content item is created.' - oneOf: - - - $ref: '#/components/schemas/Content' - - - $ref: '#/components/schemas/Href' - Section: - description: 'The Section the content item is assigned to. If not set the Section of the parent is used or a default Section.' - $ref: '#/components/schemas/Href' - User: - description: 'The owner of the content. If not given the current authenticated User is set as owner.' - type: integer - alwaysAvailable: - description: "Indicates if the content item is shown in the main language if it's not present in an other requested language." - type: string - remoteId: - description: 'Remote identifier used as a custom identifier for the content item. Needs to be a unique Content->remoteId string value.' - type: string - mainLanguageCode: - description: 'The main language code for the content. This language will also be used for as initial language for the first created version. It is also used as default language for added fields.' - type: string - modificationDate: - description: 'Modification date. If not given, the current integer is used.' - type: string - format: date-time - LocationCreate: - type: object - fields: - type: object - required: - - field - properties: - field: - type: array - items: - type: object - ContentCreateWrapper: - type: object - required: - - ContentCreate - properties: - ContentCreate: - $ref: '#/components/schemas/ContentCreate' - ContentUpdate: - description: 'This class is used to update a Content.' - type: object - required: - - mainLanguageCode - - Section - - MainLocation - - Owner - - alwaysAvailable - - remoteId - properties: - mainLanguageCode: - type: string - Section: - $ref: '#/components/schemas/Section' - MainLocation: - $ref: '#/components/schemas/Location' - Owner: - $ref: '#/components/schemas/User' - alwaysAvailable: - type: boolean - remoteId: - type: string - ContentInfo: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class provides all version independent information of the content item.' - type: object - required: - - Content - properties: - Content: - description: 'Content ID matcher class.' - $ref: '#/components/schemas/Content' - ContentInfoWrapper: - type: object - required: - - ContentInfo - properties: - ContentInfo: - $ref: '#/components/schemas/ContentInfo' - ContentMetadataUpdate: - description: 'This class is used to update a Content metadata.' - type: object - required: - - ownerId - - publishedDate - - modificationDate - - mainLanguageCode - - alwaysAvailable - - remoteId - - mainLocationId - - name - properties: - ownerId: - type: [] - publishedDate: - type: string - format: date-time - modificationDate: - type: string - format: date-time - mainLanguageCode: - type: string - alwaysAvailable: - type: boolean - remoteId: - type: string - mainLocationId: - type: [] - name: - type: string - ContentCreateContentType: - type: object - required: - - _href - - FieldDefinitions - properties: - _href: - xml: - attribute: true - name: href - type: string - FieldDefinitions: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - type: object - properties: - FieldDefinitions: - type: array - items: { $ref: '#/components/schemas/FieldDefinition' } - ContentObjectStates: - description: 'Represents a list of object states.' - type: object - required: - - ObjectState - properties: - ObjectState: - description: 'List of object state values.' - type: array - items: - $ref: '#/components/schemas/Href' - ContentObjectStatesWrapper: - type: object - required: - - ContentObjectStates - properties: - ContentObjectStates: - $ref: '#/components/schemas/ContentObjectStates' - VersionInfo: - description: 'This class holds version information data. It also contains the corresponding {@link Content} to which the version belongs to.' - type: object - required: - - id - - versionNo - - status - - modificationDate - - Creator - - creationDate - - initialLanguageCode - - languageCodes - - VersionTranslationInfo - - names - - Content - properties: - id: - description: 'Version ID.' - type: integer - versionNo: - description: 'Version number. In contrast to {@link $id}, this is the version number, which only increments in scope of a single content item.' - type: integer - status: - description: 'One of: VersionInfo::STATUS_DRAFT=0, VersionInfo::STATUS_PUBLISHED=1, VersionInfo::STATUS_ARCHIVED=3.' - enum: - - DRAFT - - PUBLISHED - - ARCHIVED - type: string - modificationDate: - description: 'The last modified date of this version.' - type: string - format: date-time - Creator: - description: 'Creator of the version, in the search API this is referred to as the modifier of the published content.' - $ref: '#/components/schemas/BaseObject' - creationDate: - description: 'Content creation date.' - type: string - format: date-time - initialLanguageCode: - description: 'The language code which is used for labeling a translation.' - type: string - languageCodes: - description: 'List of languages in this version. Reflects which languages fields exists in for this version.' - type: string - VersionTranslationInfo: - description: 'Translation information.' - names: - description: Names. - $ref: '#/components/schemas/ValueArray' - Content: - description: 'Represents a content item in a specific version.' - $ref: '#/components/schemas/BaseObject' - Version: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'Returns the VersionInfo for this version.' - type: object - required: - - VersionInfo - - Fields - - Relations - properties: - VersionInfo: - description: 'VersionInfo for this version.' - Fields: - type: object - required: - - field - properties: - field: - description: 'Fields of a Company content item.' - type: array - items: { $ref: '#/components/schemas/Field' } - Relations: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'Relations of the user.' - type: object - required: [Relation] - properties: { Relation: { type: array, items: { $ref: '#/components/schemas/Relation' } } } - VersionWrapper: - type: object - required: - - Version - properties: - Version: - $ref: '#/components/schemas/Version' - VersionUpdate: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class is used to update a content version.' - type: object - required: - - modificationDate - - initialLanguageCode - - fields - properties: - modificationDate: - type: string - format: date-time - initialLanguageCode: - type: string - fields: - type: array - items: - $ref: '#/components/schemas/Field' - VersionUpdateWrapper: - type: object - required: - - VersionUpdate - properties: - VersionUpdate: - $ref: '#/components/schemas/VersionUpdate' - VersionList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'List of all versions of the content.' - type: object - required: - - VersionItem - properties: - VersionItem: - type: array - items: - $ref: '#/components/schemas/VersionItem' - VersionListWrapper: - type: object - required: - - VersionList - properties: - VersionList: - $ref: '#/components/schemas/VersionList' - VersionItem: - description: 'Version of content.' - type: object - required: - - Version - - VersionInfo - properties: - Version: - description: 'Returns the VersionInfo for this version.' - $ref: '#/components/schemas/BaseObject' - VersionInfo: - $ref: '#/components/schemas/VersionInfo' - VersionTranslationInfo: - description: 'Translation information.' - type: object - required: - - _media-type - - Language - properties: - _media-type: - type: string - Language: - type: array - items: - $ref: '#/components/schemas/LanguageCode' - LanguageCode: - description: 'Language code.' - type: object - required: - - languageCode - properties: - languageCode: - type: string - Relation: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'Class representing a relation between content.' - type: object - required: - - SourceContent - - DestinationContent - - RelationType - properties: - SourceContent: - description: 'The content of the source content of the relation.' - $ref: '#/components/schemas/Ref' - DestinationContent: - description: 'The content of the destination content of the relation.' - $ref: '#/components/schemas/Ref' - RelationType: - description: 'The relation type bitmask. Relations: Relation::COMMON = 1, Relation::EMBED = 2, Relation::LINK = 4, Relation::FIELD = 8, Relation::ASSET = 16' - type: string - RelationWrapper: - type: object - required: - - Relation - properties: - Relation: - $ref: '#/components/schemas/Relation' - RelationCreate: - type: object - required: - - Destination - properties: - Destination: - $ref: '#/components/schemas/Href' - RelationCreateWrapper: - type: object - required: - - RelationCreate - properties: - RelationCreate: - $ref: '#/components/schemas/RelationCreate' - RelationList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'Class representing a list of relations between content.' - type: object - required: - - Relation - properties: - Relation: - type: array - items: - $ref: '#/components/schemas/Relation' - RelationListWrapper: - type: object - required: - - Relations - properties: - Relations: - $ref: '#/components/schemas/RelationList' - Fields: - type: object - required: - - field - properties: - field: - type: array - items: - $ref: '#/components/schemas/Field' - Section: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a Section.' - type: object - required: - - sectionId - - identifier - - name - properties: - sectionId: - description: 'ID of the Section.' - type: integer - identifier: - description: 'Unique identifier of the Section.' - type: string - name: - description: 'Name of the Section.' - type: string - SectionWrapper: - type: object - required: - - Section - properties: - Section: - $ref: '#/components/schemas/Section' - SectionInput: - type: object - required: - - identifier - - name - properties: - identifier: - type: string - name: - type: string - SectionInputWrapper: - type: object - required: - - SectionInput - properties: - SectionInput: - $ref: '#/components/schemas/SectionInput' - SectionList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a Section list.' - type: object - required: - - Section - properties: - Section: - type: array - items: - $ref: '#/components/schemas/Section' - SectionListWrapper: - type: object - required: - - SectionList - properties: - SectionList: - $ref: '#/components/schemas/SectionList' - Trash: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - type: object - required: - - TrashItem - properties: - TrashItem: - type: array - items: - $ref: '#/components/schemas/TrashItem' - TrashWrapper: - type: object - required: - - Trash - properties: - Trash: - $ref: '#/components/schemas/Trash' - TrashItem: - description: 'This class represents a trash item, which is actually a trashed Location.' - $ref: '#/components/schemas/Location' - TrashItemWrapper: - type: object - required: - - TrashItem - properties: - TrashItem: - $ref: '#/components/schemas/TrashItem' - ContentTypeGroup: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a content type group value.' - type: object - required: - - id - - identifier - - created - - modified - - Creator - - Modifier - - ContentTypes - properties: - id: - description: 'Primary key.' - type: integer - identifier: - description: 'Readable string identifier of a group.' - type: string - created: - description: 'Created date (integer).' - type: string - format: date-time - modified: - description: 'Modified date (integer).' - type: string - format: date-time - Creator: - description: 'Creator User ID.' - $ref: '#/components/schemas/BaseObject' - Modifier: - description: 'Modifier User ID.' - $ref: '#/components/schemas/BaseObject' - ContentTypes: - description: 'Content types.' - $ref: '#/components/schemas/BaseObject' - ContentTypeGroupWrapper: - type: object - required: - - ContentTypeGroup - properties: - ContentTypeGroup: - $ref: '#/components/schemas/ContentTypeGroup' - ContentTypeGroupInput: - type: object - ContentTypeGroupInputWrapper: - type: object - required: - - ContentTypeGroupInput - properties: - ContentTypeGroupInput: - $ref: '#/components/schemas/ContentTypeGroupInput' - ContentTypeGroupListWrapper: - type: object - required: - - ContentTypeGroupList - properties: - ContentTypeGroupList: - $ref: '#/components/schemas/ContentTypeGroupList' - ContentTypeGroupRef: - description: 'Content type group reference.' - type: array - items: - allOf: - - - $ref: '#/components/schemas/BaseObject' - type: object - properties: - unlink: - $ref: '#/components/schemas/Unlink' - ContentTypeGroupRefList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'List of content type groups references.' - type: object - required: - - ContentTypeGroupRef - properties: - ContentTypeGroupRef: - $ref: '#/components/schemas/ContentTypeGroupRef' - ContentTypeGroupList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'List of content type groups.' - type: object - required: - - ContentTypeGroup - properties: - ContentTypeGroup: - type: array - items: - $ref: '#/components/schemas/ContentTypeGroup' - ContentTypeGroupRefListWrapper: - type: object - required: - - ContentTypeGroupRefList - properties: - ContentTypeGroupRefList: - $ref: '#/components/schemas/ContentTypeGroupRefList' - ContentType: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a content type.' - type: object - required: - - id - - status - - identifier - - names - - descriptions - - creationDate - - modificationDate - - Creator - - Modifier - - Groups - - Draft - - remoteId - - urlAliasSchema - - nameSchema - - isContainer - - defaultAlwaysAvailable - - defaultSortField - - defaultSortOrder - - FieldDefinitions - properties: - id: - description: 'Content type ID.' - type: integer - status: - description: 'The status of the content type. Possible values: const STATUS_DEFINED = 0; Status constant for defined (aka published) Type, const STATUS_DRAFT = 1; Status constant for draft (aka temporary) Type; const STATUS_MODIFIED = 2; Status constant for modified (aka deferred for publishing) Type.' - enum: - - DEFINED - - DRAFT - - MODIFIED - - PUBLISHED - type: string - identifier: - description: 'String identifier of a content type.' - type: string - names: - description: 'Name of a content type.' - descriptions: - description: 'Description of a content type.' - creationDate: - description: 'Creation date of the content type.' - type: string - format: date-time - modificationDate: - description: 'Modification date of the content type.' - type: string - format: date-time - Creator: - description: 'Creator User of the content type.' - $ref: '#/components/schemas/BaseObject' - Modifier: - description: 'Modifier User of the content type.' - $ref: '#/components/schemas/BaseObject' - Groups: - description: 'Group User of the content type.' - $ref: '#/components/schemas/BaseObject' - Draft: - description: 'Draft of the content type.' - $ref: '#/components/schemas/BaseObject' - remoteId: - description: 'Unique remote ID of the content type.' - type: string - urlAliasSchema: - description: 'URL alias schema. If nothing is provided, $nameSchema will be used instead.' - type: - - string - - 'null' - nameSchema: - description: 'Name schema. Can be composed of FieldDefinition identifier place holders.' - type: string - isContainer: - description: 'A flag used to hint if content of this type may have children or not. It is highly recommended to respect this flag and not create/move content below non-containers. But this flag is not considered as part of the content model and the API will not in any way enforce this flag to be respected.' - type: boolean - defaultAlwaysAvailable: - description: 'If an instance of a content type is created the always available flag is set by default to this value.' - type: boolean - defaultSortField: - description: 'Specifies which property the child Locations should be sorted on by default when created. Map for Location sort fields to their respective SortClauses - class name/identifier and modified subnode. One of the fallowing values: const SORT_FIELD_PATH = 1; const SORT_FIELD_PUBLISHED = 2; const SORT_FIELD_MODIFIED = 3; const SORT_FIELD_SECTION = 4; const SORT_FIELD_DEPTH = 5; const SORT_FIELD_PRIORITY = 8; const SORT_FIELD_NAME = 9; const SORT_FIELD_NODE_ID = 11; const SORT_FIELD_CONTENTOBJECT_ID = 12.' - enum: - - PATH - - PUBLISHED - - MODIFIED - - SECTION - - DEPTH - - PRIORITY - - NAME - - NODE_ID - - CONTENTOBJECT_ID - type: string - defaultSortOrder: - description: 'Specifies whether the sort order should be ascending or descending by default when created. Map for Location sort order to their respective Query SORT constants. Possible values: const SORT_ORDER_DESC = 0; const SORT_ORDER_ASC = 1.' - enum: - - ASC - - DESC - type: string - FieldDefinitions: - description: 'This method returns the content type Field definitions from this type.' - ContentTypeWrapper: - type: object - required: - - ContentType - properties: - ContentType: - $ref: '#/components/schemas/ContentType' - ContentTypeCreate: - description: 'This class is used to create a content type.' - type: object - required: - - identifier - - mainLanguageCode - - remoteId - - urlAliasSchema - - nameSchema - - isContainer - - defaultSortField - - defaultSortOrder - - defaultAlwaysAvailable - - names - - descriptions - properties: - identifier: - type: string - mainLanguageCode: - type: string - remoteId: - type: string - urlAliasSchema: - type: string - nameSchema: - type: string - isContainer: - type: boolean - defaultSortField: - description: 'Specifies which property the child Locations should be sorted on by default when created.' - defaultSortOrder: - description: 'Specifies whether the sort order should be ascending or descending by default when created.' - defaultAlwaysAvailable: - type: boolean - names: - $ref: '#/components/schemas/ValueObject' - descriptions: - $ref: '#/components/schemas/ValueObject' - FieldDefinition: - $ref: '#/components/schemas/FieldDefinition' - creatorId: - description: 'If set, this value overrides the current user as creator.' - creationDate: - type: string - format: date-time - ContentTypeCreateWrapper: - type: object - required: - - ContentTypeCreate - properties: - ContentTypeCreate: - $ref: '#/components/schemas/ContentTypeCreate' - ContentTypeUpdateStruct: - description: 'This class is used for updating a content type.' - type: object - properties: - identifier: - description: 'If set the unique identifier of a type is changed to this value.' - type: string - remoteId: - description: 'If set the remote ID is changed to this value.' - type: string - urlAliasSchema: - description: 'If set the URL alias schema is changed to this value.' - type: string - nameSchema: - description: 'f set the name schema is changed to this value.' - type: string - isContainer: - description: 'If set the container flag is set to this value.' - type: boolean - mainLanguageCode: - description: 'If set the main language is changed to this value.' - type: string - defaultSortField: - description: 'If set the default sort field is changed to this value.' - enum: - - PATH - - PUBLISHED - - MODIFIED - - SECTION - - DEPTH - - PRIORITY - - NAME - - NODE_ID - - CONTENTOBJECT_ID - type: string - defaultSortOrder: - description: 'If set the default sort order is set to this value.' - enum: - - ASC - - DESC - type: string - defaultAlwaysAvailable: - description: 'If set the default always available flag is set to this value.' - type: boolean - modifierId: - description: 'If set this value overrides the current User as creator.' - type: integer - modificationDate: - description: 'If set this value overrides the current time for creation.' - type: string - format: date-time - names: - description: 'If set this array of names with languageCode keys replace the complete name collection.' - descriptions: - description: 'If set this array of descriptions with languageCode keys replace the complete description collection.' - ContentTypeUpdate: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class is used to update a content type.' - type: object - properties: - identifier: - type: string - mainLanguageCode: - type: string - remoteId: - type: string - urlAliasSchema: - type: - - string - - 'null' - nameSchema: - type: string - isContainer: - type: boolean - defaultSortField: - description: 'Specifies which property the child Locations should be sorted on by default when updated.' - defaultSortOrder: - description: 'Specifies whether the sort order should be ascending or descending by default when updated.' - defaultAlwaysAvailable: - type: - - string - - boolean - names: - $ref: '#/components/schemas/ValueObject' - descriptions: - $ref: '#/components/schemas/ValueObject' - modifierId: - description: 'If set, this value overrides the current user as creator.' - modificationDate: - type: string - format: date-time - ContentTypeUpdateWrapper: - type: object - required: - - ContentTypeUpdate - properties: - ContentTypeUpdate: - $ref: '#/components/schemas/ContentTypeUpdate' - ContentTypeList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'List of content types.' - type: object - required: - - ContentType - properties: - ContentType: - type: array - items: - $ref: '#/components/schemas/ContentType' - ContentTypeListWrapper: - type: object - required: - - ContentTypeList - properties: - ContentTypeList: - $ref: '#/components/schemas/ContentTypeList' - ContentTypeInfo: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class stores content type information.' - type: object - required: - - id - - status - - identifier - - names - - descriptions - - creationDate - - modificationDate - - Creator - - Modifier - - Groups - - Draft - - remoteId - - urlAliasSchema - - nameSchema - - isContainer - - mainLanguageCode - - defaultAlwaysAvailable - - defaultSortField - - defaultSortOrder - properties: - id: - description: 'Content type ID.' - type: integer - status: - description: 'The status of the content type. Possible values: const STATUS_DEFINED = 0; Status constant for defined (aka published) Type, const STATUS_DRAFT = 1; Status constant for draft (aka temporary) Type; const STATUS_MODIFIED = 2; Status constant for modified (aka deferred for publishing) Type.' - enum: - - DEFINED - - DRAFT - - MODIFIED - - PUBLISHED - type: string - identifier: - description: 'String identifier of a content type.' - type: string - names: - description: 'Name of a content type.' - descriptions: - description: 'Description of a content type.' - creationDate: - description: 'Creation date of the content type.' - type: string - format: date-time - modificationDate: - description: 'Modification date of the content type.' - type: string - format: date-time - Creator: - description: 'Creator User of the content type.' - $ref: '#/components/schemas/BaseObject' - Modifier: - description: 'Modifier User of the content type.' - $ref: '#/components/schemas/BaseObject' - Groups: - description: 'Group User of the content type.' - $ref: '#/components/schemas/BaseObject' - Draft: - description: 'Draft of the content type.' - $ref: '#/components/schemas/BaseObject' - remoteId: - description: 'Unique remote ID of the content type.' - type: string - urlAliasSchema: - description: 'URL alias schema. If nothing is provided, $nameSchema will be used instead.' - type: - - string - - 'null' - nameSchema: - description: 'Name schema. Can be composed of FieldDefinition identifier place holders.' - type: string - isContainer: - description: 'A flag used to hint if content of this type may have children or not. It is highly recommended to respect this flag and not create/move content below non-containers. But this flag is not considered as part of the content model and the API will not in any way enforce this flag to be respected.' - type: boolean - mainLanguageCode: - description: 'Main language code.' - type: string - defaultAlwaysAvailable: - description: 'If an instance of a content type is created the always available flag is set by default to this value.' - type: boolean - defaultSortField: - description: 'Specifies which property the child Locations should be sorted on by default when created. Map for Location sort fields to their respective SortClauses - class name/identifier and modified subnode. One of the fallowing values: const SORT_FIELD_PATH = 1; const SORT_FIELD_PUBLISHED = 2; const SORT_FIELD_MODIFIED = 3; const SORT_FIELD_SECTION = 4; const SORT_FIELD_DEPTH = 5; const SORT_FIELD_PRIORITY = 8; const SORT_FIELD_NAME = 9; const SORT_FIELD_NODE_ID = 11; const SORT_FIELD_CONTENTOBJECT_ID = 12.' - enum: - - PATH - - PUBLISHED - - MODIFIED - - SECTION - - DEPTH - - PRIORITY - - NAME - - NODE_ID - - CONTENTOBJECT_ID - type: string - defaultSortOrder: - description: 'Specifies whether the sort order should be ascending or descending by default when created. Map for Location sort order to their respective Query SORT constants. Possible values: const SORT_ORDER_DESC = 0; const SORT_ORDER_ASC = 1.' - enum: - - ASC - - DESC - type: string - ContentTypeInfoWrapper: - type: object - required: - - ContentTypeInfo - properties: - ContentTypeInfo: - $ref: '#/components/schemas/ContentTypeInfo' - ContentTypeInfoList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'List of content type information.' - type: object - required: - - ContentType - properties: - ContentType: - description: 'This class stores content type information.' - type: array - items: - $ref: '#/components/schemas/ContentTypeInfo' - ContentTypeInfoListWrapper: - type: object - required: - - ContentTypeList - properties: - ContentTypeList: - $ref: '#/components/schemas/ContentTypeInfoList' - Field: - description: 'This class represents a field of a content item.' - type: object - required: - - fieldDefinitionIdentifier - - fieldValue - properties: - id: - description: 'The field ID.' - type: integer - fieldDefinitionIdentifier: - description: 'The Field definition identifier.' - type: string - languageCode: - description: 'The language code.' - type: string - fieldTypeIdentifier: - description: 'Field Type identifier.' - type: string - fieldValue: - description: 'A Field Type value or a value type which can be converted by the corresponding field type.' - FieldDefinition: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a Field definition.' - type: object - required: - - id - - identifier - - fieldType - - fieldGroup - - position - - isTranslatable - - isRequired - - isInfoCollector - - defaultValue - - isSearchable - - names - - descriptions - - fieldSettings - - validatorConfiguration - properties: - id: - description: 'The unique ID of this Field definition.' - type: integer - identifier: - description: 'Readable string identifier of a Field definition.' - type: string - fieldType: - description: 'String identifier of the field type.' - type: string - fieldGroup: - description: 'Field group name.' - type: string - position: - description: 'The position of the Field definition in the content type.' - type: integer - isTranslatable: - description: 'If the field is translatable.' - type: boolean - isRequired: - description: 'Is the field required.' - type: boolean - isInfoCollector: - description: 'The flag if this field is used for information collection.' - type: boolean - defaultValue: - description: 'Default value of the field.' - isSearchable: - description: 'Indicates if th the content is searchable by this attribute.' - type: boolean - names: - description: 'Names of content types.' - descriptions: - description: 'Descriptions of content types.' - fieldSettings: - description: 'Settings for the Field definition supported by the field type.' - validatorConfiguration: - description: 'Validator configuration of this Field definition supported by the field type.' - oneOf: - - - $ref: '#/components/schemas/StringLengthValidator' - - - $ref: '#/components/schemas/StringLengthValidatorWrapper' - - - type: array - FieldDefinitionWrapper: - type: object - required: - - FieldDefinition - properties: - FieldDefinition: - $ref: '#/components/schemas/FieldDefinition' - FieldDefinitionCreate: - $ref: '#/components/schemas/BaseObject' - FieldDefinitionCreateWrapper: - type: object - required: - - FieldDefinitionCreate - properties: - FieldDefinitionCreate: - $ref: '#/components/schemas/FieldDefinitionCreate' - FieldDefinitionUpdate: - $ref: '#/components/schemas/BaseObject' - FieldDefinitionUpdateWrapper: - type: object - required: - - FieldDefinitionUpdate - properties: - FieldDefinitionUpdate: - $ref: '#/components/schemas/FieldDefinitionUpdate' - FieldDefinitions: - type: object - required: - - FieldDefinition - properties: - FieldDefinition: - type: array - items: - $ref: '#/components/schemas/FieldDefinition' - FieldDefinitionsWrapper: - type: object - required: - - FieldDefinitions - properties: - FieldDefinitions: - $ref: '#/components/schemas/FieldDefinitions' - StringLengthValidator: - description: 'Validator for checking min. and max. length of strings.' - type: object - required: - - maxStringLength - - minStringLength - properties: - maxStringLength: - description: 'Maximum length of strings.' - type: - - integer - - 'null' - minStringLength: - description: 'Minimum length of strings.' - type: - - integer - - 'null' - StringLengthValidatorWrapper: - type: object - required: - - StringLengthValidator - properties: - StringLengthValidator: - $ref: '#/components/schemas/StringLengthValidator' - UrlAlias: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a URL alias in the Repository.' - type: object - required: - - _id - - _type - - resource - - path - - languageCodes - - alwaysAvailable - - isHistory - - forward - - custom - properties: - _id: - description: 'A unique identifier for the alias.' - xml: - attribute: true - name: id - type: string - _type: - description: 'The type of the URL Alias i.e. one of URLAlias::LOCATION=0, URLAlias::RESOURCE=1, URLAlias::VIRTUAL=2.' - enum: - - LOCATION - - RESOURCE - - VIRTUAL - xml: - attribute: true - name: type - type: string - resource: - description: 'If type = URLAlias::LOCATION it is a Location ID otherwise a string (e.g. /content/search).' - path: - description: 'The full path of the alias.' - type: string - languageCodes: - description: 'The languageCodes for which this path is valid.' - type: string - alwaysAvailable: - description: 'Fallback indicator for other languages.' - type: boolean - isHistory: - description: 'Indicates that this alias was autogenerated for an in the meanwhile archived version of the content.' - type: boolean - forward: - description: 'Indicates if the URL should be redirected.' - type: boolean - custom: - description: 'If false this alias was autogenerated otherwise manually created.' - type: boolean - UrlAliasWrapper: - type: object - required: - - UrlAlias - properties: - UrlAlias: - $ref: '#/components/schemas/UrlAlias' - UrlAliasCreate: - type: object - required: - - _type - properties: - _type: - type: string - location: - $ref: '#/components/schemas/Href' - resource: - type: string - languageCode: - type: string - alwaysAvailable: - type: - - string - - boolean - forward: - type: - - string - - boolean - UrlAliasCreateWrapper: - type: object - required: - - UrlAliasCreate - properties: - UrlAliasCreate: - $ref: '#/components/schemas/UrlAliasCreate' - UrlAliasRefList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'List of URL alias in the Repository.' - type: object - required: - - UrlAlias - properties: - UrlAlias: - type: array - items: - $ref: '#/components/schemas/Ref' - UrlAliasRefListWrapper: - type: object - required: - - UrlAliasRefList - properties: - UrlAliasRefList: - $ref: '#/components/schemas/UrlAliasRefList' - UrlWildcard: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a URL alias in the Repository.' - type: object - required: - - _id - - sourceUrl - - destinationUrl - - forward - properties: - _id: - description: 'The unique ID.' - xml: - attribute: true - name: id - type: integer - sourceUrl: - description: 'The source URL.' - type: string - destinationUrl: - description: 'The destination URL containing placeholders e.g. /destination/{1}.' - type: string - forward: - description: 'Indicates if the URL is redirected or not.' - type: boolean - UrlWildcardWrapper: - type: object - required: - - UrlWildcard - properties: - UrlWildcard: - $ref: '#/components/schemas/UrlWildcard' - UrlWildcardCreate: - description: 'Creates a new URL wildcard.' - type: object - required: - - sourceUrl - - destinationUrl - - forward - properties: - sourceUrl: - type: string - destinationUrl: - type: string - forward: - type: - - string - - boolean - UrlWildcardCreateWrapper: - type: object - required: - - URLWildcardCreate - properties: - URLWildcardCreate: - $ref: '#/components/schemas/UrlWildcardCreate' - UrlWildcardList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'List of URL alias in the Repository.' - type: object - required: - - UrlWildcard - properties: - UrlWildcard: - type: array - items: - $ref: '#/components/schemas/UrlWildcard' - UrlWildcardListWrapper: - type: object - required: - - UrlWildcardList - properties: - UrlWildcardList: - $ref: '#/components/schemas/UrlWildcardList' - Language: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a language in the Repository.' - type: object - required: - - languageId - - languageCode - - name - properties: - languageId: - description: 'The language ID (auto generated).' - type: - - string - - 'null' - languageCode: - description: 'The languageCode code.' - type: string - name: - description: 'Human readable name of the language.' - type: string - LanguageWrapper: - type: object - required: - - Language - properties: - Language: - $ref: '#/components/schemas/Language' - LanguageList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'List of languages.' - type: object - required: - - Language - properties: - Language: - type: array - items: - $ref: '#/components/schemas/Language' - LanguageListWrapper: - type: object - required: - - LanguageList - properties: - LanguageList: - $ref: '#/components/schemas/LanguageList' - ObjectState: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a Object state value.' - type: object - required: - - id - - identifier - - priority - - ObjectStateGroup - - languageCodes - - names - - descriptions - properties: - id: - description: 'Primary key.' - type: integer - identifier: - description: 'Readable string identifier of the Object state.' - type: string - priority: - description: 'Priority for ordering.' - type: integer - ObjectStateGroup: - description: 'The Object state group this Object state belongs to.' - $ref: '#/components/schemas/BaseObject' - languageCodes: - description: 'The available language codes for names an descriptions.' - type: string - names: - description: Names. - descriptions: - description: Descriptions. - ObjectStateWrapper: - type: object - required: - - ObjectState - properties: - ObjectState: - $ref: '#/components/schemas/ObjectState' - ObjectStateCreate: - description: 'This class represents a value for creating Object states.' - type: object - required: - - identifier - - priority - - defaultLanguageCode - - languageCodes - - names - - descriptions - properties: - identifier: - description: 'Readable unique string identifier of a group.' - type: string - priority: - description: 'Priority for ordering. If not set the Object state is created as the last one.' - type: string - defaultLanguageCode: - description: 'The default language code.' - type: string - languageCodes: - description: 'Language codes.' - type: string - names: - description: 'An array of names with languageCode keys. At least one name in the main language is required.' - type: object - required: - - value - properties: - value: - type: array - items: - $ref: '#/components/schemas/Value' - descriptions: - description: 'An array of descriptions with languageCode keys.' - type: object - required: - - value - properties: - value: - type: array - items: - $ref: '#/components/schemas/Value' - ObjectStateCreateWrapper: - type: object - required: - - ObjectStateCreate - properties: - ObjectStateCreate: - $ref: '#/components/schemas/ObjectStateCreate' - ObjectStateUpdate: - description: 'This class represents a value for updating Object states.' - type: object - properties: - identifier: - description: 'Readable unique string identifier of a group.' - type: string - defaultLanguageCode: - description: 'The default language code.' - type: string - names: - description: 'An array of names with languageCode keys.' - descriptions: - description: 'An array of descriptions with languageCode keys.' - ObjectStateUpdateWrapper: - type: object - required: - - ObjectStateUpdate - properties: - ObjectStateUpdate: - $ref: '#/components/schemas/ObjectStateUpdate' - ObjectStateList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'List of Object states.' - type: object - required: - - ObjectState - properties: - ObjectState: - type: array - items: - $ref: '#/components/schemas/ObjectState' - ObjectStateListWrapper: - type: object - required: - - ObjectStateList - properties: - ObjectStateList: - $ref: '#/components/schemas/ObjectStateList' - ObjectStateGroup: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents an Object state group value.' - type: object - required: - - id - - identifier - - defaultLanguageCode - - languageCodes - - ObjectStates - - names - - descriptions - properties: - id: - description: 'Primary key.' - type: integer - identifier: - description: 'Readable string identifier of a group.' - type: string - defaultLanguageCode: - description: 'The default language code.' - type: string - languageCodes: - description: 'The available language codes for names an descriptions.' - type: string - ObjectStates: - description: 'Object States.' - $ref: '#/components/schemas/BaseObject' - names: - description: 'List of names.' - descriptions: - description: 'List of descriptions.' - ObjectStateGroupWrapper: - type: object - required: - - ObjectStateGroup - properties: - ObjectStateGroup: - $ref: '#/components/schemas/ObjectStateGroup' - ObjectStateGroupCreate: - description: 'This class represents a value for creating Object state groups.' - type: object - required: - - identifier - - defaultLanguageCode - - names - - descriptions - properties: - identifier: - description: 'Readable unique string identifier of a group.' - type: string - defaultLanguageCode: - description: 'The default language code.' - type: string - names: - description: 'An array of names with languageCode keys. At least one name in the main language is required.' - descriptions: - description: 'An array of descriptions with languageCode keys.' - ObjectStateGroupCreateWrapper: - type: object - required: - - ObjectStateGroupCreate - properties: - ObjectStateGroupCreate: - $ref: '#/components/schemas/ObjectStateGroupCreate' - ObjectStateGroupUpdate: - description: 'This class represents a value for updating Object state groups.' - type: object - properties: - identifier: - description: 'Readable unique string identifier of a group.' - type: string - defaultLanguageCode: - description: 'The default language code.' - type: string - names: - description: 'An array of names with languageCode keys.' - descriptions: - description: 'An array of descriptions with languageCode keys.' - ObjectStateGroupUpdateWrapper: - type: object - required: - - ObjectStateGroupUpdate - properties: - ObjectStateGroupUpdate: - $ref: '#/components/schemas/ObjectStateGroupUpdate' - ObjectStateGroupList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'List of Object state groups.' - type: object - required: - - ObjectStateGroup - properties: - ObjectStateGroup: - description: 'This class represents an Object state group value.' - type: array - items: - $ref: '#/components/schemas/ObjectStateGroup' - ObjectStateGroupListWrapper: - type: object - required: - - ObjectStateGroupList - properties: - ObjectStateGroupList: - $ref: '#/components/schemas/ObjectStateGroupList' - CountryList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class is representing an ISO-3166 formatted list of world countries.' - type: object - required: - - Country - properties: - Country: - type: array - items: - $ref: '#/components/schemas/Country' - Country: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class is representing a country.' - type: object - required: - - _id - - name - - Alpha2 - - Alpha3 - - IDC - properties: - _id: - description: 'ID that represents a country name.' - xml: - attribute: true - name: id - type: string - name: - description: 'Name of the country.' - type: string - Alpha2: - description: 'Two-letter code that represents a country name.' - type: string - Alpha3: - description: 'Three-letter code that represents a country name.' - type: string - IDC: - description: IDC - type: integer - CountryListWrapper: - type: object - required: - - CountryList - properties: - CountryList: - $ref: '#/components/schemas/CountryList' - View: - description: View. - type: object - required: - - identifier - - User - - public - - LocationQuery - - Result - properties: - identifier: - description: 'Content identifier.' - type: string - User: - $ref: '#/components/schemas/User' - public: - type: boolean - LocationQuery: - $ref: '#/components/schemas/LocationQuery' - Result: - $ref: '#/components/schemas/BaseObject' - ViewInput: - description: 'This class represents a View input.' - type: object - required: - - identifier - - Query - properties: - identifier: - description: 'Content identifier.' - type: string - languageCode: - type: string - useAlwaysAvailable: - type: string - Query: - $ref: '#/components/schemas/Query' - ViewInputWrapper: - type: object - required: - - ViewInput - properties: - ViewInput: - $ref: '#/components/schemas/ViewInput' - Query: - description: 'This class is used to perform a Content query.' - type: object - properties: - Filter: - description: 'The Query filter. Can contain multiple criterion, as items of a logical one (by default AND).' - $ref: '#/components/schemas/Criterion' - Query: - description: 'The Query query. Can contain multiple criterion, as items of a logical one (by default AND).' - $ref: '#/components/schemas/Criterion' - sortClauses: - description: 'Query sorting clauses.' - type: array - items: - $ref: '#/components/schemas/SortClause' - facetBuilders: - description: "An array of facet builders. Search engines may ignore any, or given facet builders they don't support and will just return search result facets supported by the engine. API consumer should dynamically iterate over returned facets for further use." - type: array - items: - $ref: '#/components/schemas/FacetBuilder' - offset: - description: 'Query offset. Sets the offset for search hits, used for paging the results.' - type: integer - limit: - description: 'Query limit. Limit for number of search hits to return. If value is `0`, search query will not return any search hits, useful for doing a count.' - type: integer - spellcheck: - description: 'If true spellcheck suggestions are returned.' - type: boolean - performCount: - description: 'If true, search engine should perform count even if that means extra lookup.' - type: boolean - LocationQuery: - description: 'This class is used to perform a Location query.' - $ref: '#/components/schemas/Query' - Criterion: - description: 'Criterion implementations.' - type: object - properties: - operator: - description: 'The operator used by the Criterion.' - type: string - value: - description: 'The value(s) matched by the Criteria.' - type: array - items: - type: [] - target: - description: 'The target used by the Criteria (field, metadata...).' - type: string - valueData: - description: 'Additional value data, required by some Criteria, MapLocationDistance for instance.' - Specifications: - description: "Criterion description function. Returns the combination of the Criterion's supported operator/value, as an array of objects." - type: array - items: - $ref: '#/components/schemas/Specifications' - FacetBuilder: - description: 'This class is the base class for facet builders.' - type: object - required: - - name - - global - - filter - - limit - - minCount - properties: - name: - description: 'The name of the facet.' - type: string - global: - description: 'If true the facet runs in a global mode not restricted by the query.' - type: boolean - filter: - description: 'An additional facet filter that will further filter the documents the facet will be executed on.' - $ref: '#/components/schemas/Criterion' - limit: - description: 'Number of facets (terms) returned.' - type: integer - minCount: - description: 'Specifies the minimum count. Only facet groups with more or equal results are returned.' - type: integer - Specifications: - description: 'This class is used by Criteria to describe which operators they support. Instances of this class are returned in an array by the {@see Criterion::getSpecifications()} method.' - type: object - required: - - operator - - valueFormat - - valueTypes - - valueCount - properties: - operator: - description: 'Specified operator, as one of the Operator::* constants.' - type: string - valueFormat: - description: 'Format supported for the Criterion value, either {@see self::FORMAT_SINGLE} for single or {@see self::FORMAT_ARRAY} for multiple.' - type: string - valueTypes: - description: 'Accepted values types, specifying what type of variables are accepted as a value. Criterion input value type description constants: const TYPE_INTEGER = 1; const TYPE_STRING = 2; const TYPE_BOOLEAN = 4.' - type: integer - valueCount: - description: 'Limitation on the number of items as the value. Only usable if {@see $valueFormat} is {@see self::FORMAT_ARRAY}.' - type: integer - Role: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a role.' - type: object - required: - - identifier - - Policies - properties: - identifier: - description: 'Readable string identifier of a role.' - type: string - Policies: - description: 'Returns the list of policies of this role.' - $ref: '#/components/schemas/BaseObject' - RoleWrapper: - type: object - required: - - Role - properties: - Role: - $ref: '#/components/schemas/Role' - RoleDraft: - description: 'This class represents a draft of a role, extends Role.' - $ref: '#/components/schemas/Role' - RoleDraftWrapper: - type: object - required: - - Role - properties: - Role: - $ref: '#/components/schemas/RoleDraft' - RoleInput: - description: 'This class represents a Role input.' - type: object - required: - - identifier - properties: - identifier: - type: string - RoleInputWrapper: - type: object - required: - - RoleInput - properties: - RoleInput: - $ref: '#/components/schemas/RoleInput' - RoleList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a list roles.' - type: object - required: - - Role - properties: - Role: - type: array - items: - $ref: '#/components/schemas/Role' - RoleListWrapper: - type: object - required: - - RoleList - properties: - RoleList: - $ref: '#/components/schemas/RoleList' - Policy: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a policy value.' - type: object - required: - - id - - module - - function - properties: - id: - description: 'ID of the policy.' - type: integer - module: - description: 'Name of module, associated with the Policy e.g. content.' - type: string - function: - description: "Name of the module function Or all functions with '*' e.g. read." - type: string - limitations: - description: Limitations. - type: object - required: - - limitation - properties: - limitation: - type: array - items: { $ref: '#/components/schemas/Limitation' } - PolicyWrapper: - type: object - required: - - Policy - properties: - Policy: - $ref: '#/components/schemas/Policy' - Limitation: - description: 'This class represents a Limitation applied to a policy.' - type: object - required: - - _identifier - - values - properties: - _identifier: - description: 'Returns the limitation identifier (one of the defined constants) or a custom limitation. Constants: CONTENTTYPE = Class; LANGUAGE = Language; LOCATION = Node; OWNER = Owner; PARENTOWNER = ParentOwner; PARENTCONTENTTYPE = ParentClass; PARENTDEPTH = ParentDepth; SECTION = Section; NEWSECTION = NewSection; SITEACCESS = SiteAccess; STATE = State; NEWSTATE = NewState; SUBTREE = Subtree; USERGROUP = Group; PARENTUSERGROUP = ParentGroup; STATUS = Status.' - enum: - - ContentType - - Language - - Location - - Owner - - Parentowner - - ParentContentType - - ParentDepth - - Section - - NewSection - - SiteAccess - - State - - NewState - - Subtree - - UserGroup - - ParentUserGroup - - Status - - Class - xml: - attribute: true - name: identifier - type: string - values: - description: 'A read-only list of IDs or identifiers for which the limitation should be applied. The value of this property must conform to a hash, which means that it may only consist of array and scalar values, but must not contain objects or resources.' - type: object - required: - - $ref - properties: - ref: - type: array - items: - $ref: '#/components/schemas/Ref' - PolicyList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'List of policies.' - type: object - required: - - Policy - properties: - Policy: - type: array - items: - $ref: '#/components/schemas/Policy' - PolicyListWrapper: - type: object - required: - - PolicyList - properties: - PolicyList: - $ref: '#/components/schemas/PolicyList' - PolicyCreate: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class is used to create a Policy.' - type: object - required: - - module - - function - - Limitations - properties: - module: - description: 'Name of module associated with the Policy. For example, content.' - type: string - function: - description: "Name of the module function, or all functions with ''*''. For example, read." - type: string - Limitations: - type: array - items: - $ref: '#/components/schemas/Limitation' - PolicyCreateWrapper: - type: object - required: - - PolicyCreate - properties: - PolicyCreate: - $ref: '#/components/schemas/PolicyCreate' - PolicyUpdate: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class is used to update a Policy.' - type: object - required: - - Limitations - properties: - Limitations: - type: array - items: - $ref: '#/components/schemas/Limitation' - PolicyUpdateWrapper: - type: object - required: - - PolicyUpdate - properties: - PolicyUpdate: - $ref: '#/components/schemas/PolicyUpdate' - RoleAssignment: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This value object represents an assignment of a User or User group to a role including a limitation.' - type: object - required: - - Role - properties: - limitation: - description: 'Returns the limitation of the role assignment.' - Role: - description: 'Returns the role to which the User or User group is assigned to.' - $ref: '#/components/schemas/Ref' - RoleAssignmentWrapper: - type: object - required: - - RoleAssignment - properties: - RoleAssignment: - $ref: '#/components/schemas/RoleAssignment' - RoleAssignInput: - description: 'This class represents a Role assign input.' - type: object - required: - - Role - - limitation - properties: - Role: - description: 'Returns the Role to which the user or user group is assigned to.' - $ref: '#/components/schemas/Ref' - limitation: - description: 'Returns the Limitation of the Role assignment.' - $ref: '#/components/schemas/Limitation' - RoleAssignInputWrapper: - type: object - required: - - RoleAssignInput - properties: - RoleAssignInput: - $ref: '#/components/schemas/RoleAssignInput' - RoleAssignmentList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This value object represents a list of assignments of a User or User group to a role including a limitation.' - type: object - required: - - RoleAssignment - properties: - RoleAssignment: - type: array - items: - $ref: '#/components/schemas/RoleAssignment' - RoleAssignmentListWrapper: - type: object - required: - - RoleAssignmentList - properties: - RoleAssignmentList: - $ref: '#/components/schemas/RoleAssignmentList' - Session: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'Value for session.' - type: object - required: - - name - - identifier - - csrfToken - - User - properties: - name: - description: Name. - type: string - identifier: - description: Identifier. - type: string - csrfToken: - description: csrfToken. - type: string - User: - description: User. - $ref: '#/components/schemas/BaseObject' - SessionWrapper: - type: object - required: - - Session - properties: - Session: - $ref: '#/components/schemas/Session' - SessionInput: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a session input.' - type: object - required: - - login - - password - properties: - login: - type: string - password: - type: string - SessionInputWrapper: - type: object - required: - - SessionInput - properties: - SessionInput: - $ref: '#/components/schemas/SessionInput' - JWT: - description: 'This class represents the JWT authentication token' - type: object - required: - - token - properties: - token: - description: 'JWT authentication token' - type: string - JWTWrapper: - type: object - required: - - JWT - properties: - JWT: - $ref: '#/components/schemas/JWT' - JWTInput: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents the input for a JWT authentication token' - type: object - required: - - username - - password - properties: - username: - description: 'User name' - type: string - password: - description: 'User password' - type: string - JWTInputWrapper: - type: object - required: - - JWTInput - properties: - JWTInput: - $ref: '#/components/schemas/JWTInput' - UserGroup: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'Content ID matcher class.' - type: object - required: - - _remoteId - - _id - - ContentType - - name - - Versions - - Section - - MainLocation - - Locations - - Owner - - lastModificationDate - - mainLanguageCode - - alwaysAvailable - - Version - - ParentUserGroup - - Subgroups - - Users - - Roles - properties: - _remoteId: - description: 'Remote ID of the content type.' - xml: - attribute: true - name: remoteId - type: string - _id: - description: 'Unique ID of the content type.' - xml: - attribute: true - name: id - type: integer - ContentType: - description: 'Content type.' - $ref: '#/components/schemas/Ref' - name: - type: string - Versions: - description: 'Returns the VersionInfo for this version.' - $ref: '#/components/schemas/Ref' - Section: - description: 'The Section to which the content item is assigned to.' - $ref: '#/components/schemas/Ref' - MainLocation: - $ref: '#/components/schemas/Ref' - Locations: - description: 'Location of the content item.' - $ref: '#/components/schemas/Ref' - Owner: - description: 'The owner of the content item.' - $ref: '#/components/schemas/Ref' - lastModificationDate: - description: 'Content item modification date.' - type: string - format: date-time - mainLanguageCode: - description: 'The main language code of the content item.' - type: string - alwaysAvailable: - type: boolean - Version: - $ref: '#/components/schemas/Version' - ParentUserGroup: - $ref: '#/components/schemas/Ref' - Subgroups: - $ref: '#/components/schemas/Ref' - Users: - $ref: '#/components/schemas/Ref' - Roles: - $ref: '#/components/schemas/Ref' - UserGroupWrapper: - type: object - required: - - UserGroup - properties: - UserGroup: - $ref: '#/components/schemas/UserGroup' - UserGroupList: - description: 'This class represents a User Group list.' - $ref: '#/components/schemas/BaseObject' - UserGroupListWrapper: - type: object - required: - - UserGroupList - properties: - UserGroupList: - $ref: '#/components/schemas/UserGroupList' - UserGroupRefList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'Returns a list of the sub groups.' - type: object - required: - - UserGroup - properties: - UserGroup: - description: 'This class represents a User group.' - type: array - items: - $ref: '#/components/schemas/Ref' - UserGroupRefListWrapper: - type: object - required: - - UserGroupRefList - properties: - UserGroupRefList: - $ref: '#/components/schemas/UserGroupRefList' - UserGroupCreate: - description: 'This class is used to create a User Group.' - type: object - required: - - mainLanguageCode - - remoteId - - fields - properties: - mainLanguageCode: - type: string - remoteId: - type: string - fields: - $ref: '#/components/schemas/Fields' - UserGroupCreateWrapper: - type: object - required: - - UserGroupCreate - properties: - UserGroupCreate: - $ref: '#/components/schemas/UserGroupCreate' - UserGroupUpdate: - description: 'This class is used to update a User group in the Repository.' - type: object - required: - - Section - properties: - Section: - type: object - required: - - _href - properties: - _href: - xml: - attribute: true - name: href - type: string - UserGroupUpdateWrapper: - type: object - required: - - UserGroupUpdate - properties: - UserGroupUpdate: - $ref: '#/components/schemas/UserGroupUpdate' - UserGroupUnassign: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a User group.' - type: object - required: - - Unassign - properties: - Unassign: - $ref: '#/components/schemas/Unlink' - Unlink: - description: 'Unlink a content type group from a content type.' - type: object - required: - - _href - - _method - properties: - _href: - type: string - _method: - enum: - - DELETE - type: string - User: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a User value.' - type: object - required: - - _id - - _remoteId - - ContentType - - name - - Versions - - Section - - MainLocation - - Locations - - Groups - - Owner - - publishDate - - lastModificationDate - - mainLanguageCode - - alwaysAvailable - - Version - - login - - email - - enabled - - UserGroups - - Roles - properties: - _id: - description: 'Unique ID of the content type.' - xml: - attribute: true - name: id - type: integer - _remoteId: - description: 'Remote ID of the content type.' - xml: - attribute: true - name: remoteId - type: string - ContentType: - description: 'This class represents a content type.' - $ref: '#/components/schemas/BaseObject' - name: - description: 'Name of the domain object in a given language.' - type: string - Versions: - description: 'Returns the VersionInfo for this version.' - $ref: '#/components/schemas/BaseObject' - Section: - description: 'The Section to which the content item is assigned.' - $ref: '#/components/schemas/BaseObject' - MainLocation: - description: 'Main Location of the object.' - $ref: '#/components/schemas/BaseObject' - Locations: - description: 'Locations of the object.' - $ref: '#/components/schemas/BaseObject' - Groups: - description: 'Group User of the content type.' - $ref: '#/components/schemas/BaseObject' - Owner: - description: 'The owner of the content item.' - $ref: '#/components/schemas/BaseObject' - publishDate: - description: 'Content publication date.' - type: string - format: date-time - lastModificationDate: - description: 'Content modification date.' - type: string - format: date-time - mainLanguageCode: - description: 'The main language code of the content item.' - type: string - alwaysAvailable: - description: "Indicates if the content item is shown in the main language if it's not present in an other requested language." - type: boolean - Version: - description: 'Returns the VersionInfo for this version.' - login: - description: 'User login.' - type: string - email: - description: 'User email address.' - type: string - enabled: - description: 'Flag to Signal if User is enabled or not. User can not login if false.' - type: boolean - UserGroups: - description: 'User groups.' - $ref: '#/components/schemas/BaseObject' - Roles: - description: Roles. - $ref: '#/components/schemas/BaseObject' - UserWrapper: - type: object - required: - - User - properties: - User: - $ref: '#/components/schemas/User' - UserList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a list of users.' - type: object - required: - - User - properties: - User: - type: array - items: - $ref: '#/components/schemas/User' - UserListWrapper: - type: object - required: - - UserList - properties: - UserList: - $ref: '#/components/schemas/UserList' - UserRefList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'Returns a list of the users.' - type: object - required: - - User - properties: - User: - description: 'This class represents a User.' - type: array - items: - $ref: '#/components/schemas/BaseObject' - UserRefListWrapper: - type: object - required: - - UserRefList - properties: - UserRefList: - $ref: '#/components/schemas/UserRefList' - UserUpdate: - description: 'This class is used to update a User.' - type: object - required: - - login - properties: - login: - type: string - email: - type: string - password: - type: string - enabled: - type: boolean - maxLogin: - type: integer - ContentUpdate: - description: 'The update structure for the profile content.' - ContentMetadataUpdate: - description: 'The update structure for the profile metadata.' - UserUpdateWrapper: - type: object - required: - - UserUpdate - properties: - UserUpdate: - $ref: '#/components/schemas/UserUpdate' - UserCreate: - description: 'This class is used to create a User.' - type: object - required: - - mainLanguageCode - - remoteId - - login - - email - - password - properties: - mainLanguageCode: - type: string - remoteId: - type: string - login: - type: string - email: - type: string - password: - type: string - enabled: - type: boolean - UserCreateWrapper: - type: object - required: - - UserCreate - properties: - UserCreate: - $ref: '#/components/schemas/UserCreate' - Event: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'Calendar event.' - type: object - required: - - id - - datetime - - type - - name - - attributes - properties: - id: - description: 'The unique ID.' - type: string - datetime: - type: string - format: date-time - type: - description: 'Event type identifier or name.' - type: string - name: - description: 'Name of the calendar event.' - type: string - attributes: - description: 'List of event attributes.' - type: array - items: - $ref: '#/components/schemas/EventAttribute' - EventAttribute: - type: object - required: - - label - - value - properties: - label: - description: 'Label of the attribute.' - type: string - value: - description: 'Value of the attribute.' - type: string - EventList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'List of calendar events.' - type: object - required: - - _currentPage - - totalCount - - events - properties: - _currentPage: - description: 'Current page representation.' - xml: - attribute: true - name: currentPage - type: string - nextPage: - description: 'Next page representation.' - type: string - totalCount: - description: 'Total count of events.' - type: integer - events: - type: array - items: - $ref: '#/components/schemas/Event' - EventListWrapper: - type: object - required: - - EventList - properties: - EventList: - $ref: '#/components/schemas/EventList' - EventGroup: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'Event group.' - type: object - required: - - _currentPage - - totalCount - - events - properties: - _currentPage: - description: 'Current page representation.' - xml: - attribute: true - name: currentPage - type: string - nextPage: - description: 'Next page representation.' - type: string - groupKey: - $ref: '#/components/schemas/DateRange' - totalCount: - description: 'Total count of events.' - type: integer - events: - type: array - items: - $ref: '#/components/schemas/Event' - EventGroupList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'Grouped calendar event list.' - type: object - required: - - groups - properties: - groups: - type: array - items: - $ref: '#/components/schemas/EventGroup' - EventGroupListWrapper: - type: object - required: - - EventGroupList - properties: - EventGroupList: - $ref: '#/components/schemas/EventGroupList' - UnscheduleAction: - description: 'This class represents events to unschedule' - type: object - required: - - events - properties: - events: - description: 'list of events' - type: array - items: - type: string - UnscheduleActionWrapper: - type: object - required: - - UnscheduleAction - properties: - UnscheduleAction: - $ref: '#/components/schemas/UnscheduleAction' - AttributeGroup: - description: 'This class represents an attribute group.' - type: object - required: - - name - - identifier - - position - properties: - name: - type: string - identifier: - type: string - position: - type: integer - AttributeGroupWrapper: - type: object - required: - - AttributeGroup - properties: - AttributeGroup: - $ref: '#/components/schemas/AttributeGroup' - AttributeGroupCreate: - description: 'This class is used to create an attribute group.' - type: object - required: - - identifier - - names - - position - properties: - identifier: - type: string - names: - type: object - position: - type: integer - AttributeGroupCreateWrapper: - type: object - required: - - AttributeGroupCreate - properties: - AttributeGroupCreate: - $ref: '#/components/schemas/AttributeGroupCreate' - AttributeGroupUpdate: - description: 'This class is used to update an attribute group.' - type: object - required: - - identifier - - names - - position - properties: - identifier: - type: string - names: - type: object - position: - type: integer - AttributeGroupUpdateWrapper: - type: object - required: - - AttributeGroupUpdate - properties: - AttributeGroupUpdate: - $ref: '#/components/schemas/AttributeGroupUpdate' - AttributeGroupList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents an attribute group list.' - type: object - required: - - AttributeGroup - properties: - AttributeGroup: - type: array - items: - $ref: '#/components/schemas/AttributeGroup' - AttributeGroupListWrapper: - type: object - required: - - AttributeGroupList - properties: - AttributeGroupList: - $ref: '#/components/schemas/AttributeGroupList' - AttributeGroupListGet: - description: 'This class represents an attribute group list request.' - type: object - required: - - prefix - - offset - - limit - properties: - prefix: - type: string - offset: - type: integer - limit: - type: integer - AttributeGroupListGetWrapper: - type: object - required: - - AttributeGroupListGet - properties: - AttributeGroupListGet: - $ref: '#/components/schemas/AttributeGroupListGet' - AttributeGroupGet: - description: 'This class represents an attribute group query.' - type: object - required: - - languages - properties: - languages: - type: array - items: - type: string - AttributeGroupGetWrapper: - type: object - required: - - AttributeGroupGet - properties: - AttributeGroupGet: - $ref: '#/components/schemas/AttributeGroupGet' - AttributeGroupListResult: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - type: object - required: - - count - - AttributeGroupList - properties: - count: - type: integer - AttributeGroupList: - $ref: '#/components/schemas/AttributeGroupList' - AttributeGroupView: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents an attribute group view.' - type: object - required: - - identifier - - Result - properties: - identifier: - type: string - Result: - $ref: '#/components/schemas/AttributeGroupListResult' - AttributeGroupViewWrapper: - type: object - required: - - AttributeGroupView - properties: - AttributeGroupView: - $ref: '#/components/schemas/AttributeGroupView' - AttributeGroupViewInput: - description: 'This class represents an attribute group view input.' - xml: - name: ViewInput - type: object - required: - - identifier - - AttributeGroupQuery - properties: - identifier: - type: string - AttributeGroupQuery: - type: object - required: - - limit - - offset - - name_prefix - properties: - limit: - type: string - offset: - type: string - name_prefix: - type: string - AttributeGroupViewInputWrapper: - type: object - required: - - ViewInput - properties: - ViewInput: - $ref: '#/components/schemas/AttributeGroupViewInput' - AttributeType: - description: 'This class represents an attribute type.' - type: object - required: - - identifier - - name - properties: - identifier: - type: string - name: - type: string - AttributeTypeWrapper: - type: object - required: - - AttributeType - properties: - AttributeType: - $ref: '#/components/schemas/AttributeType' - AttributeTypeList: - description: 'This class represents an attribute type list.' - type: object - required: - - attributeTypes - properties: - attributeTypes: - type: array - items: - $ref: '#/components/schemas/AttributeType' - AttributeTypeListWrapper: - type: object - required: - - AttributeTypeList - properties: - AttributeTypeList: - $ref: '#/components/schemas/AttributeTypeList' - CartList: - type: object - Attribute: - description: 'This class represents an attribute.' - type: object - required: - - name - - identifier - - description - - type - - type_identifier - - value - - group - - position - - options - properties: - name: - type: string - identifier: - type: string - description: - type: string - type: - type: string - type_identifier: - type: string - value: - type: [] - group: - type: string - position: - type: integer - options: - type: - - object - - array - AttributeWrapper: - type: object - required: - - Attribute - properties: - Attribute: - $ref: '#/components/schemas/Attribute' - AttributeCreate: - description: 'This class is used to create an attribute.' - type: object - required: - - identifier - - type - - group - - names - - descriptions - - position - - options - properties: - identifier: - type: string - type: - type: string - group: - type: string - names: - type: object - descriptions: - type: object - position: - type: integer - options: - type: - - object - - array - AttributeCreateWrapper: - type: object - required: - - AttributeCreate - properties: - AttributeCreate: - $ref: '#/components/schemas/AttributeCreate' - AttributeUpdate: - description: 'This class is used to update an attribute.' - type: object - required: - - identifier - - names - - descriptions - - position - - options - properties: - identifier: - type: string - names: - type: object - descriptions: - type: object - position: - type: integer - options: - type: object - AttributeUpdateWrapper: - type: object - required: - - AttributeUpdate - properties: - AttributeUpdate: - $ref: '#/components/schemas/AttributeUpdate' - AttributeList: - description: 'This class represents an attribute list.' - type: object - required: - - Attribute - properties: - Attribute: - type: array - items: - $ref: '#/components/schemas/Attribute' - AttributeListWrapper: - type: object - required: - - AttributeList - properties: - AttributeList: - $ref: '#/components/schemas/AttributeList' - AttributeView: - description: 'This class represents an attribute view.' - type: object - required: - - identifier - - AttributeQuery - - Result - properties: - identifier: - type: string - AttributeQuery: - type: object - Result: - type: object - AttributeViewWrapper: - type: object - required: - - AttributeView - properties: - AttributeView: - $ref: '#/components/schemas/AttributeView' - AttributeViewInput: - description: 'This class represents an attribute view input.' - xml: - name: ViewInput - type: object - required: - - identifier - - AttributeQuery - properties: - identifier: - type: string - AttributeQuery: - type: object - AttributeViewInputWrapper: - type: object - required: - - ViewInput - properties: - ViewInput: - $ref: '#/components/schemas/AttributeViewInput' - AttributeAssignment: - type: object - required: - - is_required - - is_discriminator - - Attribute - properties: - is_required: - type: boolean - is_discriminator: - type: boolean - Attribute: - $ref: '#/components/schemas/Attribute' - Catalog: - description: 'This class represents a catalog.' - type: object - required: - - identifier - - name - - description - - created - - modified - - status - - User - - Criteria - properties: - identifier: - type: string - name: - type: string - description: - type: string - created: - type: integer - modified: - type: integer - status: - type: string - User: - $ref: '#/components/schemas/Ref' - Criteria: - type: array - items: - $ref: '#/components/schemas/Criterion' - CatalogWrapper: - type: object - required: - - Catalog - properties: - Catalog: - $ref: '#/components/schemas/Catalog' - CatalogCreate: - description: 'This class is used to create a catalog.' - type: object - required: - - identifier - - criteria - - names - - status - properties: - identifier: - type: string - criteria: - $ref: '#/components/schemas/Criterion' - names: - type: object - descriptions: - type: object - status: - type: string - creator_id: - type: integer - CatalogCreateWrapper: - type: object - required: - - CatalogCreate - properties: - CatalogCreate: - $ref: '#/components/schemas/CatalogCreate' - CatalogUpdate: - description: 'This class is used to update a catalog.' - type: object - required: - - identifier - - transition - - criteria - - names - - descriptions - properties: - identifier: - type: string - transition: - type: string - criteria: - $ref: '#/components/schemas/Criterion' - names: - type: object - descriptions: - type: object - CatalogUpdateWrapper: - type: object - required: - - CatalogUpdate - properties: - CatalogUpdate: - $ref: '#/components/schemas/CatalogUpdate' - CatalogCopy: - description: 'This class is used to copy a catalog.' - type: object - required: - - identifier - - creator_id - properties: - identifier: - type: string - creator_id: - description: Optional - type: integer - CatalogCopyWrapper: - type: object - required: - - CatalogCopy - properties: - CatalogCopy: - $ref: '#/components/schemas/CatalogCopy' - CatalogList: - description: 'This class represents a catalog list.' - type: object - required: - - Catalog - properties: - Catalog: - type: array - items: - $ref: '#/components/schemas/Catalog' - CatalogListViewResult: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - type: object - required: - - CatalogList - properties: - CatalogList: - $ref: '#/components/schemas/CatalogList' - CatalogView: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - type: object - required: - - identifier - - CatalogQuery - - Result - properties: - identifier: - type: string - CatalogQuery: - $ref: '#/components/schemas/Ref' - Result: - $ref: '#/components/schemas/CatalogListViewResult' - CatalogViewWrapper: - type: object - required: - - CatalogView - properties: - CatalogView: - $ref: '#/components/schemas/CatalogView' - CatalogViewInput: - description: 'This class represents a catalog view input.' - xml: - name: ViewInput - type: object - required: - - CatalogQuery - properties: - CatalogQuery: - type: object - CatalogViewInputWrapper: - type: object - required: - - ViewInput - properties: - ViewInput: - $ref: '#/components/schemas/CatalogViewInput' - Currency: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents currency.' - type: object - required: - - id - - code - - subunits - - enabled - properties: - id: - type: integer - code: - type: string - subunits: - type: integer - enabled: - type: boolean - CurrencyWrapper: - type: object - required: - - Currency - properties: - Currency: - $ref: '#/components/schemas/Currency' - CurrencyCreate: - description: 'This class is used to create currency.' - type: object - required: - - code - - subunits - - enabled - properties: - code: - type: string - subunits: - type: integer - enabled: - type: boolean - CurrencyCreateWrapper: - type: object - required: - - CurrencyCreate - properties: - CurrencyCreate: - $ref: '#/components/schemas/CurrencyCreate' - CurrencyUpdate: - description: 'This class is used to update currency.' - type: object - required: - - subunits - - enabled - properties: - subunits: - type: integer - enabled: - type: boolean - CurrencyUpdateWrapper: - type: object - required: - - CurrencyUpdate - properties: - CurrencyUpdate: - $ref: '#/components/schemas/CurrencyUpdate' - CurrencyView: - description: 'This class represents a currency view.' - type: object - required: - - identifier - - CurrencyQuery - - Result - properties: - identifier: - type: string - CurrencyQuery: - type: object - Result: - type: object - CurrencyViewWrapper: - type: object - required: - - CurrencyView - properties: - CurrencyView: - $ref: '#/components/schemas/CurrencyView' - CurrencyViewInput: - description: 'This class represents a currency view input.' - xml: - name: ViewInput - type: object - required: - - CurrencyQuery - properties: - CurrencyQuery: - type: object - CurrencyViewInputWrapper: - type: object - required: - - ViewInput - properties: - ViewInput: - $ref: '#/components/schemas/CurrencyViewInput' - CurrencyList: - description: 'This class represents a currency list.' - type: object - required: - - Currency - properties: - Currency: - type: array - items: - $ref: '#/components/schemas/Currency' - CurrencyListWrapper: - type: object - required: - - CurrencyList - properties: - CurrencyList: - $ref: '#/components/schemas/CurrencyList' - CustomerGroup: - description: 'This class represents a customer group.' - type: object - required: - - id - - name - - identifier - - description - - users - - global_price_rate - properties: - id: - type: integer - name: - type: string - identifier: - type: string - description: - type: string - users: - description: 'A list of users attached to the customer group.' - type: array - items: - $ref: '#/components/schemas/User' - global_price_rate: - description: 'A numeric string' - type: string - CustomerGroupWrapper: - type: object - required: - - CustomerGroup - properties: - CustomerGroup: - $ref: '#/components/schemas/CustomerGroup' - CustomerGroupCreate: - description: 'This class is used to create a customer group.' - type: object - required: - - identifier - - names - - descriptions - - global_price_rate - properties: - identifier: - type: string - names: - type: object - descriptions: - type: object - global_price_rate: - description: numeric-string - type: string - CustomerGroupCreateWrapper: - type: object - required: - - CustomerGroupCreate - properties: - CustomerGroupCreate: - $ref: '#/components/schemas/CustomerGroupCreate' - CustomerGroupUpdate: - description: 'This class is used to update a customer group.' - type: object - required: - - names - - identifier - - global_price_rate - properties: - names: - type: object - identifier: - type: string - global_price_rate: - type: string - descriptions: - type: array - items: - type: string - CustomerGroupUpdateWrapper: - type: object - required: - - CustomerGroupUpdate - properties: - CustomerGroupUpdate: - $ref: '#/components/schemas/CustomerGroupUpdate' - CustomerGroupList: - description: 'This class represents a customer group list.' - type: object - required: - - CustomerGroup - properties: - CustomerGroup: - type: array - items: - $ref: '#/components/schemas/CustomerGroup' - CustomerGroupListWrapper: - type: object - required: - - CustomerGroupList - properties: - CustomerGroupList: - $ref: '#/components/schemas/CustomerGroupList' - CustomerGroupListResult: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - type: object - required: - - CustomerGroupList - properties: - CustomerGroupList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - type: object - required: [CustomerGroup] - properties: { CustomerGroup: { type: array, items: { $ref: '#/components/schemas/CustomerGroup' } } } - CustomerGroupViewInput: - description: 'This class represents a customer group view input.' - xml: - name: ViewInput - type: object - required: - - CustomerGroupQuery - properties: - CustomerGroupQuery: - type: object - CustomerGroupViewInputWrapper: - type: object - required: - - ViewInput - properties: - ViewInput: - $ref: '#/components/schemas/CustomerGroupViewInput' - CustomerGroupView: - description: 'This class represents a customer group view.' - type: object - required: - - identifier - - CustomerGroupQuery - - Result - properties: - identifier: - type: string - CustomerGroupQuery: - type: object - Result: - $ref: '#/components/schemas/CustomerGroupListResult' - CustomerGroupViewWrapper: - type: object - required: - - CustomerGroupView - properties: - CustomerGroupView: - $ref: '#/components/schemas/CustomerGroupView' - Region: - description: 'This class represents a region.' - type: object - required: - - identifier - properties: - identifier: - type: string - RegionWrapper: - type: object - required: - - Region - properties: - Region: - $ref: '#/components/schemas/Region' - RegionList: - description: 'This class represents a region list.' - type: object - required: - - Region - properties: - Region: - type: array - items: - $ref: '#/components/schemas/Ref' - RegionListWrapper: - type: object - required: - - RegionList - properties: - RegionList: - $ref: '#/components/schemas/RegionList' - RegionView: - description: 'This class represents a region view.' - type: object - required: - - identifier - - RegionQuery - - Result - properties: - identifier: - type: string - RegionQuery: - type: object - Result: - type: object - RegionViewWrapper: - type: object - required: - - RegionView - properties: - RegionView: - $ref: '#/components/schemas/RegionView' - RegionViewInput: - description: 'This class represents a region view input.' - xml: - name: ViewInput - type: object - required: - - RegionQuery - properties: - RegionQuery: - type: object - RegionViewInputWrapper: - type: object - required: - - ViewInput - properties: - ViewInput: - $ref: '#/components/schemas/RegionViewInput' - ProductType: - description: 'This class represents a product type.' - type: object - required: - - identifier - - name - - AttributeAssignmentList - properties: - identifier: - type: string - name: - type: string - AttributeAssignmentList: - type: array - items: - $ref: '#/components/schemas/AttributeAssignment' - ProductTypeWrapper: - type: object - required: - - ProductType - properties: - ProductType: - $ref: '#/components/schemas/ProductType' - ProductTypeCreate: - description: 'This class is used to create a product type.' - type: object - required: - - ContentTypeCreateStruct - - main_language_code - - assigned_attributes - properties: - ContentTypeCreateStruct: - type: object - main_language_code: - type: string - assigned_attributes: - type: array - items: - $ref: '#/components/schemas/ProductTypeAssignedAttribute' - ProductTypeCreateWrapper: - type: object - required: - - ProductTypeCreate - properties: - ProductTypeCreate: - $ref: '#/components/schemas/ProductTypeCreate' - ProductTypeUpdate: - description: 'This class is used to update a product type.' - type: object - required: - - ContentTypeUpdateStruct - - assigned_attributes - properties: - ContentTypeUpdateStruct: - $ref: '#/components/schemas/ContentTypeUpdateStruct' - assigned_attributes: - type: array - items: - $ref: '#/components/schemas/ProductTypeAssignedAttribute' - ProductTypeUpdateWrapper: - type: object - required: - - ProductTypeUpdate - properties: - ProductTypeUpdate: - $ref: '#/components/schemas/ProductTypeUpdate' - ProductTypeUsage: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a product type usage.' - type: object - required: - - is_used - properties: - is_used: - type: boolean - ProductTypeUsageWrapper: - type: object - required: - - ProductTypeUsage - properties: - ProductTypeUsage: - $ref: '#/components/schemas/ProductTypeUsage' - ProductTypeView: - description: 'This class represents a product type view.' - type: object - required: - - identifier - - ProductTypeQuery - - Result - properties: - identifier: - type: string - ProductTypeQuery: - type: object - Result: - type: object - ProductTypeViewWrapper: - type: object - required: - - ProductTypeView - properties: - ProductTypeView: - $ref: '#/components/schemas/ProductTypeView' - ProductTypeList: - description: 'This class represents a product type list.' - type: object - required: - - ProductType - properties: - ProductType: - type: array - items: - $ref: '#/components/schemas/ProductType' - ProductTypeListWrapper: - type: object - required: - - ProductTypeList - properties: - ProductTypeList: - $ref: '#/components/schemas/ProductTypeList' - ProductTypeListGet: - description: 'This class represents a product type list query.' - type: object - required: - - name_prefix - - offset - - limit - properties: - name_prefix: - type: string - offset: - type: integer - limit: - type: integer - languages: - type: array - items: - type: string - ProductTypeListGetWrapper: - type: object - required: - - ProductTypeListGet - properties: - ProductTypeListGet: - $ref: '#/components/schemas/ProductTypeListGet' - ProductTypeViewInput: - description: 'This class represents a product type view input.' - xml: - name: ViewInput - type: object - required: - - ProductTypeQuery - properties: - ProductTypeQuery: - type: object - ProductTypeViewInputWrapper: - type: object - required: - - ViewInput - properties: - ViewInput: - $ref: '#/components/schemas/ProductTypeViewInput' - ProductTypeAssignedAttribute: - type: object - required: - - identifier - - is_required - - is_discriminator - properties: - identifier: - type: string - is_required: - type: boolean - is_discriminator: - type: boolean - ProductVariant: - description: 'This class represents a product variant.' - type: object - required: - - code - - name - - Product - - DiscriminatorAttributesList - properties: - code: - type: string - name: - type: string - Product: - $ref: '#/components/schemas/Product' - DiscriminatorAttributesList: - type: array - items: - $ref: '#/components/schemas/Attribute' - ProductVariantWrapper: - type: object - required: - - ProductVariant - properties: - ProductVariant: - $ref: '#/components/schemas/ProductVariant' - ProductVariantView: - description: 'This class represents a product variant view.' - type: object - required: - - identifier - - ProductVariantQuery - - Result - properties: - identifier: - type: string - ProductVariantQuery: - type: object - Result: - type: object - ProductVariantViewWrapper: - type: object - required: - - ProductVariantView - properties: - ProductVariantView: - $ref: '#/components/schemas/ProductVariantView' - ProductVariantViewInput: - description: 'This class represents a product variant view input.' - type: object - required: - - ProductVariantQuery - properties: - ProductVariantQuery: - type: object - ProductVariantViewInputWrapper: - type: object - required: - - ViewInput - properties: - ViewInput: - $ref: '#/components/schemas/ProductVariantViewInput' - ProductVariantCreate: - description: 'This class is used to create a product variant.' - type: object - required: - - code - - attributes - properties: - code: - type: string - attributes: - description: 'array<int|string,mixed>' - type: object - ProductVariantCreateWrapper: - type: object - required: - - ProductVariantCreate - properties: - ProductVariantCreate: - $ref: '#/components/schemas/ProductVariantCreate' - ProductVariantUpdate: - description: 'This class is used to update a product variant.' - type: object - required: - - code - - attributes - properties: - code: - type: string - attributes: - description: 'array<int|string,mixed>' - type: object - ProductVariantUpdateWrapper: - type: object - required: - - ProductVariantUpdate - properties: - ProductVariantUpdate: - $ref: '#/components/schemas/ProductVariantUpdate' - ProductVariantGenerate: - description: 'This class is used to generate a product variant.' - type: object - required: - - attributes - properties: - attributes: - description: 'array<int|string,mixed>' - type: object - ProductVariantGenerateWrapper: - type: object - required: - - ProductVariantGenerate - properties: - ProductVariantGenerate: - $ref: '#/components/schemas/ProductVariantGenerate' - ProductSortClause: - type: object - required: - - name - properties: - name: - type: string - ProductSortClauseList: - description: 'This class represents a product sort clause list.' - type: object - required: - - ProductSortClause - properties: - ProductSortClause: - type: array - items: - $ref: '#/components/schemas/ProductSortClause' - ProductSortClauseListWrapper: - type: object - required: - - ProductSortClauseList - properties: - ProductSortClauseList: - $ref: '#/components/schemas/ProductSortClauseList' - Product: - description: 'This class represents a product.' - type: object - required: - - code - - name - - ProductType - - AttributesList - properties: - isVariant: - type: boolean - isBaseProduct: - type: boolean - code: - type: string - name: - type: string - ProductType: - $ref: '#/components/schemas/ProductType' - Content: - $ref: '#/components/schemas/Content' - Thumbnail: - $ref: '#/components/schemas/Thumbnail' - created_at: - type: integer - updated_at: - type: integer - AttributesList: - type: array - items: - $ref: '#/components/schemas/Attribute' - ProductWrapper: - type: object - required: - - Product - properties: - Product: - $ref: '#/components/schemas/Product' - ProductCreate: - description: 'This class is used to create a product.' - type: object - required: - - ContentCreate - - code - - attributes - properties: - ContentCreate: - $ref: '#/components/schemas/ContentCreate' - code: - type: string - attributes: - type: object - ProductCreateWrapper: - type: object - required: - - ProductCreate - properties: - ProductCreate: - $ref: '#/components/schemas/ProductCreate' - ProductUpdate: - description: 'This class is used to update a product.' - type: object - required: - - ContentUpdate - - code - properties: - ContentUpdate: - $ref: '#/components/schemas/ContentUpdate' - code: - type: string - attributes: - type: array - items: - type: object - ProductUpdateWrapper: - type: object - required: - - ProductUpdate - properties: - ProductUpdate: - $ref: '#/components/schemas/ProductUpdate' - ProductContentUpdate: - type: object - required: - - __url - - fields - properties: - __url: - xml: - attribute: true - name: url - type: string - fields: - type: object - required: - - field - properties: - field: - type: array - items: - $ref: '#/components/schemas/Field' - ProductView: - description: 'This class represents a product view.' - type: object - required: - - identifier - - ProductQuery - - Result - properties: - identifier: - type: string - ProductQuery: - type: object - Result: - type: object - ProductViewWrapper: - type: object - required: - - ProductView - properties: - ProductView: - $ref: '#/components/schemas/ProductView' - ProductViewInput: - description: 'This class represents a product view input.' - xml: - name: ViewInput - type: object - required: - - ProductQuery - properties: - ProductQuery: - type: object - ProductViewInputWrapper: - type: object - required: - - ViewInput - properties: - ViewInput: - $ref: '#/components/schemas/ProductViewInput' - ProductList: - description: 'This class represents a product list.' - type: object - required: - - Product - properties: - Product: - type: array - items: - $ref: '#/components/schemas/Product' - ProductListWrapper: - type: object - required: - - ProductList - properties: - ProductList: - $ref: '#/components/schemas/ProductList' - ProductListGet: - description: 'This class represents a product list GET.' - type: object - required: - - offset - - limit - - languages - properties: - offset: - type: integer - limit: - type: integer - languages: - type: array - items: - type: string - ProductListGetWrapper: - type: object - required: - - ProductListGet - properties: - ProductListGet: - $ref: '#/components/schemas/ProductListGet' - ProductGet: - description: 'This class represents a product GET.' - type: object - required: - - languages - properties: - languages: - type: array - items: - type: string - ProductGetWrapper: - type: object - required: - - ProductGet - properties: - ProductGet: - $ref: '#/components/schemas/ProductGet' - ProductFilter: - type: object - required: - - name - properties: - name: - type: string - ProductFilterList: - description: 'This class represents a product filter list.' - type: object - required: - - ProductFilter - properties: - ProductFilter: - type: array - items: - $ref: '#/components/schemas/ProductFilter' - ProductFilterListWrapper: - type: object - required: - - ProductFilterList - properties: - ProductFilterList: - $ref: '#/components/schemas/ProductFilterList' - Price: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a price.' - type: object - required: - - amount - - Currency - properties: - amount: - type: string - base_amount: - type: string - Currency: - $ref: '#/components/schemas/Currency' - money: - type: string - base_money: - type: string - PriceWrapper: - type: object - required: - - Price - properties: - Price: - $ref: '#/components/schemas/Price' - PriceCreateStruct: - description: 'This class represents a price creation structure.' - type: object - required: - - amount - - currency - properties: - amount: - type: integer - currency: - type: string - PriceCreateStructWrapper: - type: object - required: - - PriceCreateStruct - properties: - PriceCreateStruct: - $ref: '#/components/schemas/PriceCreateStruct' - RestPrice: - type: object - required: - - Price - - formatted - properties: - Price: - $ref: '#/components/schemas/Price' - formatted: - type: string - RestPriceWrapper: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - type: object - required: - - RestPrice - properties: - RestPrice: - $ref: '#/components/schemas/RestPrice' - CustomPrice: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a custom price.' - type: object - required: - - amount - - base_amount - - Currency - - money - - base_money - - custom_money - - custom_amount - properties: - amount: - type: string - base_amount: - type: string - Currency: - $ref: '#/components/schemas/Currency' - money: - type: string - base_money: - type: string - custom_money: - type: string - custom_amount: - type: string - custom_rule: - type: - - string - - 'null' - CustomPriceWrapper: - type: object - required: - - CustomPrice - properties: - CustomPrice: - $ref: '#/components/schemas/CustomPrice' - CustomPriceCreateStruct: - description: 'This class represents a custom price creation structure.' - type: object - required: - - amount - - currency - - customAmount - - customerGroup - properties: - amount: - type: integer - currency: - type: string - customAmount: - type: integer - customerGroup: - type: string - CustomPriceCreateStructWrapper: - type: object - required: - - CustomPriceCreateStruct - properties: - CustomPriceCreateStruct: - $ref: '#/components/schemas/CustomPriceCreateStruct' - CustomPriceUpdateStruct: - description: 'This class represents a custom price updating structure.' - type: object - required: - - amount - - currency - - customAmount - properties: - amount: - type: integer - currency: - type: string - customAmount: - type: integer - CustomPriceUpdateStructWrapper: - type: object - required: - - CustomPriceUpdateStruct - properties: - CustomPriceUpdateStruct: - $ref: '#/components/schemas/CustomPriceUpdateStruct' - PriceUpdateStruct: - description: 'This class represents a price updating structure.' - type: object - required: - - amount - - currency - properties: - amount: - type: integer - currency: - type: string - PriceUpdateStructWrapper: - type: object - required: - - PriceUpdateStruct - properties: - PriceUpdateStruct: - $ref: '#/components/schemas/PriceUpdateStruct' - PriceList: - description: 'This class represents a price list.' - type: object - required: - - prices - properties: - prices: - type: array - items: - $ref: '#/components/schemas/Price' - PriceListWrapper: - type: object - required: - - PriceList - properties: - PriceList: - $ref: '#/components/schemas/PriceList' - Thumbnail: - description: 'This class represents a thumbnail that can be a target URL or a Base64 data.' - type: object - required: - - resource - - width - - height - - mimeType - properties: - resource: - type: string - width: - type: - - integer - - 'null' - height: - type: - - integer - - 'null' - mimeType: - type: string - VatCategory: - description: 'This class represents a VAT category.' - type: object - required: - - identifier - - region - - vatValue - properties: - identifier: - type: string - region: - type: string - vatValue: - type: - - number - - 'null' - VatCategoryWrapper: - type: object - required: - - VatCategory - properties: - VatCategory: - $ref: '#/components/schemas/VatCategory' - VatCategoryList: - description: 'This class represents a VAT category list.' - type: object - required: - - VatCategory - properties: - VatCategory: - type: array - items: - $ref: '#/components/schemas/VatCategory' - VatCategoryListWrapper: - type: object - required: - - VatCategoryList - properties: - VatCategoryList: - $ref: '#/components/schemas/VatCategoryList' - VatCategorySummary: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a VAT category summary.' - type: object - required: - - VatCategory - - RestPrice - properties: - VatCategory: - $ref: '#/components/schemas/VatCategory' - RestPrice: - $ref: '#/components/schemas/RestPrice' - TaxonomyEntry: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a taxonomy entry.' - type: object - required: - - id - - identifier - - name - - content - - taxonomy - properties: - id: - type: integer - identifier: - type: string - name: - type: string - content: - $ref: '#/components/schemas/Ref' - taxonomy: - type: string - TaxonomyEntryWrapper: - type: object - required: - - TaxonomyEntry - properties: - TaxonomyEntry: - $ref: '#/components/schemas/TaxonomyEntry' - TaxonomyEntryBulkRemove: - description: 'This class is used to bulk remove taxonomy entries.' - type: object - required: - - entries - properties: - entries: - type: array - items: - type: integer - TaxonomyEntryBulkRemoveWrapper: - type: object - required: - - TaxonomyEntryBulkRemove - properties: - TaxonomyEntryBulkRemove: - $ref: '#/components/schemas/TaxonomyEntryBulkRemove' - TaxonomyEntryMove: - type: object - required: - - entry - - sibling - - position - properties: - entry: - type: integer - sibling: - type: integer - position: - type: string - TaxonomyEntryBulkMove: - description: 'This class is used to bulk move taxonomy entries.' - type: object - required: - - entries - properties: - entries: - type: array - items: - $ref: '#/components/schemas/TaxonomyEntryMove' - TaxonomyEntryBulkMoveWrapper: - type: object - required: - - TaxonomyEntryBulkMove - properties: - TaxonomyEntryBulkMove: - $ref: '#/components/schemas/TaxonomyEntryBulkMove' - TaxonomyEntryAssignment: - description: 'This class represents a taxonomy entry assignment.' - type: object - required: - - id - - content - - entry - properties: - id: - type: integer - content: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - type: object - required: - - Content - properties: - Content: - $ref: '#/components/schemas/Content' - entry: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - type: object - required: - - TaxonomyEntry - properties: - TaxonomyEntry: - $ref: '#/components/schemas/TaxonomyEntry' - TaxonomyEntryAssignmentWrapper: - type: object - required: - - TaxonomyEntryAssignment - properties: - TaxonomyEntryAssignment: - $ref: '#/components/schemas/TaxonomyEntryAssignment' - TaxonomyEntryAssignToContent: - description: 'This class is used to assign taxonomy entry to content.' - type: object - required: - - content - - entries - properties: - content: - type: integer - entries: - type: array - items: - type: integer - TaxonomyEntryAssignToContentWrapper: - type: object - required: - - TaxonomyEntryAssignToContent - properties: - TaxonomyEntryAssignToContent: - $ref: '#/components/schemas/TaxonomyEntryAssignToContent' - TaxonomyEntryUnassignFromContent: - description: 'This class is used to unassign taxonomy entry from content.' - type: object - required: - - content - - entries - properties: - content: - type: integer - entries: - type: array - items: - type: integer - TaxonomyEntryUnassignFromContentWrapper: - type: object - required: - - TaxonomyEntryUnassignFromContent - properties: - TaxonomyEntryUnassignFromContent: - $ref: '#/components/schemas/TaxonomyEntryUnassignFromContent' - EntryAssignmentCollection: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a taxonomy assignment collection.' - type: object - required: - - content - - assignments - properties: - content: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - type: object - required: [Content] - properties: { Content: { $ref: '#/components/schemas/Content' } } - assignments: - type: array - items: - $ref: '#/components/schemas/TaxonomyEntryAssignment' - EntryAssignmentCollectionWrapper: - type: object - required: - - EntryAssignmentCollection - properties: - EntryAssignmentCollection: - $ref: '#/components/schemas/EntryAssignmentCollection' - Segment: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a segment.' - type: object - required: - - id - - identifier - - name - - SegmentGroup - properties: - id: - type: integer - identifier: - type: string - name: - type: string - SegmentGroup: - $ref: '#/components/schemas/SegmentGroup' - SegmentWrapper: - type: object - required: - - Segment - properties: - Segment: - $ref: '#/components/schemas/Segment' - SegmentList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class lists segments.' - type: object - required: - - Segment - properties: - Segment: - type: array - items: - $ref: '#/components/schemas/Segment' - SegmentListWrapper: - type: object - required: - - SegmentList - properties: - SegmentList: - $ref: '#/components/schemas/SegmentList' - SegmentGroup: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a segment group.' - type: object - required: - - id - - identifier - - name - properties: - id: - type: integer - identifier: - type: string - name: - type: string - SegmentGroupWrapper: - type: object - required: - - SegmentGroup - properties: - SegmentGroup: - $ref: '#/components/schemas/SegmentGroup' - SegmentGroupList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class lists segment groups.' - type: object - required: - - SegmentGroup - properties: - SegmentGroup: - type: array - items: - $ref: '#/components/schemas/SegmentGroup' - SegmentGroupListWrapper: - type: object - required: - - SegmentGroupList - properties: - SegmentGroupList: - $ref: '#/components/schemas/SegmentGroupList' - UserSegment: - description: "This class represents a segment and a user it's associate to." - type: object - properties: - id: - type: integer - identifier: - type: string - name: - type: string - SegmentGroup: - $ref: '#/components/schemas/Ref' - User: - $ref: '#/components/schemas/Ref' - UserSegmentList: - description: 'this class lists segments associated to users.' - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - type: object - properties: - UserSegment: - type: array - items: - $ref: '#/components/schemas/UserSegment' - UserSegmentListWrapper: - type: object - required: - - UserSegmentList - properties: - UserSegmentList: - $ref: '#/components/schemas/SegmentList' - UserSegmentAssignInput: - type: object - properties: - segments: - type: array - items: - type: string - UserSegmentAssignInputWrapper: - type: object - required: - - UserSegmentAssignInput - properties: - UserSegmentAssignInput: - $ref: '#/components/schemas/UserSegmentAssignInput' - CorporateAccountRoot: - description: 'This class represents Corporate Account Root resource information.' - type: object - required: - - links - properties: - links: - xml: - wrapped: false - type: array - items: - $ref: '#/components/schemas/Link' - CorporateAccountRootWrapper: - type: object - required: - - CorporateAccountRoot - properties: - CorporateAccountRoot: - $ref: '#/components/schemas/CorporateAccountRoot' - Link: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents REST resource information.' - type: object - required: - - _rel - properties: - _rel: - description: 'Unique identifier of a resource.' - xml: - attribute: true - name: rel - type: string - Company: - description: 'This class represents a company.' - type: object - required: - - id - - name - - Content - - billingAddress - - contactId - - salesRepresentativeId - - defaultAddressId - - addressBookId - - membersId - - MemberList - - Location - - locationPath - - isActive - properties: - id: - type: integer - name: - type: string - Content: - $ref: '#/components/schemas/Content' - billingAddress: - $ref: '#/components/schemas/BillingAddress' - contactId: - type: - - integer - - 'null' - salesRepresentativeId: - type: integer - defaultAddressId: - type: - - integer - - 'null' - addressBookId: - description: 'Address book Folder Content ID.' - type: integer - membersId: - description: 'Members Folder Content ID.' - type: integer - MemberList: - description: 'Reference to Members List resource.' - $ref: '#/components/schemas/BaseObject' - Location: - description: 'Reference to Location resource.' - $ref: '#/components/schemas/BaseObject' - locationPath: - description: 'Company content item Location path string.' - type: string - isActive: - type: boolean - CompanyWrapper: - type: object - required: - - Company - properties: - Company: - $ref: '#/components/schemas/Company' - CompanyCreate: - description: 'This class is used to create a company.' - type: object - required: - - fields - properties: - fields: - type: object - required: - - field - properties: - field: - description: 'Fields of a Company content item.' - type: array - items: - $ref: '#/components/schemas/Field' - CompanyCreateWrapper: - type: object - required: - - CompanyCreate - properties: - CompanyCreate: - $ref: '#/components/schemas/CompanyCreate' - CompanyUpdate: - description: 'This class is used to update a Company.' - type: object - required: - - fields - properties: - fields: - type: object - required: - - field - properties: - field: - description: 'Fields of a Company content item.' - type: array - items: - $ref: '#/components/schemas/Field' - CompanyUpdateWrapper: - type: object - required: - - CompanyUpdate - properties: - CompanyUpdate: - $ref: '#/components/schemas/CompanyUpdate' - CompanyList: - description: 'This class represents a list of companies.' - type: object - required: - - companies - properties: - companies: - type: array - items: - $ref: '#/components/schemas/Company' - CompanyListWrapper: - type: object - required: - - CompanyList - properties: - CompanyList: - $ref: '#/components/schemas/CompanyList' - Member: - description: 'This class represents a company member.' - type: object - required: - - id - - name - - Company - - User - - Role - properties: - id: - type: integer - name: - type: string - Company: - $ref: '#/components/schemas/Company' - User: - description: 'Underlying User object of a member.' - $ref: '#/components/schemas/User' - Role: - description: 'Reference to the member role in a Company resource.' - $ref: '#/components/schemas/BaseObject' - MemberWrapper: - type: object - required: - - Member - properties: - Member: - $ref: '#/components/schemas/Member' - MemberCreate: - description: 'This class is used to create a member.' - type: object - required: - - login - - email - - password - - Role - - fields - properties: - login: - type: string - email: - type: string - password: - type: string - Role: - description: 'Reference to a Role resource company member should be given.' - $ref: '#/components/schemas/BaseObject' - fields: - type: object - required: - - field - properties: - field: - description: 'Fields of a Member content item.' - type: array - items: - $ref: '#/components/schemas/Field' - MemberCreateWrapper: - type: object - required: - - MemberCreate - properties: - MemberCreate: - $ref: '#/components/schemas/MemberCreate' - MemberUpdate: - description: 'This class is used to update a member.' - type: object - required: - - email - - password - - enabled - - maxLogin - - Role - - fields - properties: - email: - type: string - password: - type: string - enabled: - type: boolean - maxLogin: - description: 'Max number of failed login attempts.' - type: integer - Role: - description: 'Reference to a Role resource company member should be given.' - $ref: '#/components/schemas/BaseObject' - fields: - type: object - required: - - field - properties: - field: - description: 'Fields of a Member content item.' - type: array - items: - $ref: '#/components/schemas/Field' - MemberUpdateWrapper: - type: object - required: - - MemberUpdate - properties: - MemberUpdate: - $ref: '#/components/schemas/MemberUpdate' - MemberList: - description: 'This class represents a list of company members.' - type: object - required: - - members - properties: - members: - type: array - items: - $ref: '#/components/schemas/Member' - MemberListWrapper: - type: object - required: - - MemberList - properties: - MemberList: - $ref: '#/components/schemas/MemberList' - SalesRepresentativesList: - allOf: - - - $ref: '#/components/schemas/BaseObject' - - - description: 'This class represents a list of sales representatives.' - type: object - required: - - users - properties: - users: - type: array - items: - $ref: '#/components/schemas/User' - SalesRepresentativesListWrapper: - type: object - required: - - SalesRepresentativesList - properties: - SalesRepresentativesList: - $ref: '#/components/schemas/SalesRepresentativesList' - BillingAddress: - type: object - required: - - name - - country - - fields - properties: - name: - type: - - string - - 'null' - country: - type: - - string - - 'null' - fields: - type: - - object - - array - ActivityLog: - description: 'This class represents an activity log entry.' - type: object - ActivityLogGroup: - type: object - required: - - user_id - - logged_at - - ActivityLogEntries - properties: - user_id: - description: 'The ID of the user performing the logged actions' - type: integer - logged_at: - description: 'Timestamp representing when the group has been logged' - type: integer - ActivityLogEntries: - description: 'Log entries from the group' - type: array - items: - $ref: '#/components/schemas/ActivityLog' - ActivityLogGroupListInput: - description: "This class represents the activity log group search query's criteria and sort clauses." - type: object - ActivityLogGroupListInputWrapper: - type: object - required: - - ActivityLogGroupListInput - properties: - ActivityLogGroupListInput: - $ref: '#/components/schemas/ActivityLogGroupListInput' - ActivityLogGroupList: - description: 'This class represents activity log context groups' - type: object - required: - - ActivityLogGroups - properties: - ActivityLogGroups: - type: array - items: - $ref: '#/components/schemas/ActivityLogGroup' - ActivityLogGroupListWrapper: - type: object - required: - - ActivityLogGroupList - properties: - ActivityLogGroupList: - $ref: '#/components/schemas/ActivityLogGroupList' - Cart: - description: 'This class represents a Cart' - type: object - required: - - id - - identifier - - owner - - Currency - - entries - properties: - id: - description: 'Cart ID' - type: integer - identifier: - description: 'Cart unique identifier' - type: string - owner: - description: 'User reference' - $ref: '#/components/schemas/Ref' - Currency: - $ref: '#/components/schemas/Currency' - entries: - type: array - items: - $ref: '#/components/schemas/CartEntry' - CartWrapper: - type: object - required: - - Cart - properties: - Cart: - $ref: '#/components/schemas/Cart' - CartCreate: - description: 'This class represents a new Cart to create' - type: object - required: - - name - - currencyCode - properties: - name: - description: 'the name of the new Cart' - type: string - currencyCode: - description: 'the currency code such as `EUR`' - type: string - context: - description: 'associative array of scalars describing additional, contextual data attached to the cart' - type: object - CartCreateWrapper: - type: object - required: - - CartCreate - properties: - CartCreate: - $ref: '#/components/schemas/CartCreate' - CartProduct: - description: 'This class represents a cart entry product' - type: object - required: - - code - properties: - code: - description: "product's code" - type: string - CartView: - description: 'This class represents a cart view.' - type: object - required: - - identifier - - Result - properties: - identifier: - type: string - Result: - $ref: '#/components/schemas/CartListViewResult' - CartViewWrapper: - type: object - required: - - CartView - properties: - CartView: - $ref: '#/components/schemas/CartView' - CartViewInput: - description: 'This class represents a cart view input.' - type: object - required: - - identifier - - CartQuery - properties: - identifier: - type: string - CartQuery: - $ref: '#/components/schemas/CartViewInput' - CartViewInputWrapper: - type: object - required: - - CartViewInput - properties: - CartViewInput: - $ref: '#/components/schemas/CartViewInput' - CartQuery: - type: object - required: - - offset - - limit - - ownerId - properties: - offset: - type: integer - limit: - type: integer - ownerId: - type: integer - CartEntry: - type: object - required: - - identifier - - id - - names - - quantity - - Price - properties: - identifier: - type: string - id: - type: integer - names: - type: array - items: - type: object - quantity: - type: integer - Price: - $ref: '#/components/schemas/Price' - CartEntryAdd: - description: 'This class represents a cart entry' - type: object - required: - - quantity - - Product - properties: - quantity: - description: 'the quantity of entry items' - type: integer - Product: - description: 'product data' - context: - description: 'associative array of scalars describing additional, contextual data attached to the cart entry' - type: object - CartEntryAddWrapper: - type: object - required: - - CartEntryAdd - properties: - CartEntryAdd: - $ref: '#/components/schemas/CartEntryAdd' - CartEntryUpdate: - type: object - required: - - quantity - properties: - quantity: - type: integer - context: - description: 'associative array of scalars describing additional, contextual data attached to the cart entry' - type: object - CartEntryUpdateWrapper: - type: object - required: - - CartEntryUpdate - properties: - CartEntryUpdate: - $ref: '#/components/schemas/CartEntryUpdate' - CartMetadataUpdate: - description: 'This class represents the update of cart metadata.' - type: object - required: - - identifier - - defaultLanguageCode - - names - - descriptions - properties: - identifier: - type: string - defaultLanguageCode: - type: string - names: - type: array - items: - $ref: '#/components/schemas/Value' - descriptions: - type: array - items: - $ref: '#/components/schemas/Value' - CartMetadataUpdateWrapper: - type: object - required: - - CartMetadataUpdate - properties: - CartMetadataUpdate: - $ref: '#/components/schemas/CartMetadataUpdate' - CartSummary: - description: 'This class represents a cart summary.' - type: object - required: - - id - - identifier - - name - - createdAt - - updatedAt - - Owner - - SummaryEntryCollection - - TotalPrice - - TotalPriceInclVat - - vatCategorySummary - - Currency - properties: - id: - type: integer - identifier: - type: string - name: - type: string - createdAt: - type: string - format: date-time - updatedAt: - type: string - format: date-time - Owner: - $ref: '#/components/schemas/Ref' - SummaryEntryCollection: - $ref: '#/components/schemas/SummaryEntryCollection' - TotalPrice: - $ref: '#/components/schemas/RestPriceWrapper' - TotalPriceInclVat: - $ref: '#/components/schemas/RestPriceWrapper' - vatCategorySummary: - type: array - items: - $ref: '#/components/schemas/VatCategorySummary' - Currency: - $ref: '#/components/schemas/Currency' - CartSummaryWrapper: - type: object - required: - - CartSummary - properties: - CartSummary: - $ref: '#/components/schemas/CartSummary' - CartListViewResult: - type: object - required: - - count - - Result - properties: - count: - type: integer - Result: - $ref: '#/components/schemas/CartList' - SummaryEntryCollection: - description: 'This class represents a summary entry collection.' - type: object - required: - - count - - SummaryEntry - properties: - count: - type: string - SummaryEntry: - type: array - items: - $ref: '#/components/schemas/SummaryEntry' - TimezoneDate: - type: object - required: - - date - - timezone_type - - timezone - properties: - date: - type: string - timezone_type: - type: integer - timezone: - type: string - Order: - description: 'This class represents order.' - type: object - required: - - id - - identifier - - created - - modified - - status - - OrderUser - - OrderCurrency - - OrderValue - - OrderItemsList - - context - properties: - id: - type: integer - identifier: - type: string - created: - $ref: '#/components/schemas/TimezoneDate' - modified: - $ref: '#/components/schemas/TimezoneDate' - status: - type: string - source: - type: string - OrderUser: - $ref: '#/components/schemas/OrderUser' - OrderCurrency: - $ref: '#/components/schemas/OrderCurrency' - OrderValue: - $ref: '#/components/schemas/OrderValue' - OrderCompany: - $ref: '#/components/schemas/OrderCompany' - OrderItemsList: - type: array - items: - $ref: '#/components/schemas/OrderItem' - context: - type: object - OrderWrapper: - type: object - required: - - Order - properties: - Order: - $ref: '#/components/schemas/Order' - OrderList: - description: 'This class represents an orders list.' - type: object - required: - - Order - properties: - Order: - type: array - items: - $ref: '#/components/schemas/Order' - OrderListWrapper: - type: object - required: - - OrderList - properties: - OrderList: - $ref: '#/components/schemas/OrderList' - OrderUser: - description: 'This class represents order user.' - type: object - required: - - id - - name - - email - properties: - id: - type: - - 'null' - - integer - name: - type: string - email: - type: string - OrderCurrency: - description: 'This class represents order currency.' - type: object - required: - - id - - code - properties: - id: - type: integer - code: - type: string - OrderValue: - description: 'This class represents order value.' - type: object - required: - - vat - - total_gross - - total_net - properties: - vat: - oneOf: - - - type: string - - - $ref: '#/components/schemas/OrderPrice' - total_gross: - oneOf: - - - type: string - - - $ref: '#/components/schemas/OrderPrice' - total_net: - oneOf: - - - type: string - - - $ref: '#/components/schemas/OrderPrice' - OrderCompany: - description: 'This class represents order company.' - type: object - required: - - id - - name - properties: - id: - type: integer - name: - type: string - OrderPrice: - type: object - required: - - amount - - currency - properties: - amount: - type: string - currency: - type: string - OrderCreate: - description: 'This class is used to create order.' - type: object - required: - - source - - OrderUser - - OrderCurrency - - OrderValue - - OrderCompany - - items - properties: - source: - type: string - OrderUser: - $ref: '#/components/schemas/OrderUser' - OrderCurrency: - $ref: '#/components/schemas/OrderCurrency' - OrderValue: - $ref: '#/components/schemas/OrderValue' - OrderCompany: - $ref: '#/components/schemas/OrderCompany' - items: - type: array - items: - $ref: '#/components/schemas/OrderItemWrapper' - OrderCreateWrapper: - type: object - required: - - OrderCreate - properties: - OrderCreate: - $ref: '#/components/schemas/OrderCreate' - OrderItem: - description: 'This class represents order item.' - type: object - required: - - OrderItemValue - - OrderItemProduct - properties: - OrderItemValue: - $ref: '#/components/schemas/OrderItemValue' - OrderItemProduct: - $ref: '#/components/schemas/OrderItemProduct' - quantity: - type: integer - context: - type: object - OrderItemWrapper: - type: object - required: - - OrderItem - properties: - OrderItem: - $ref: '#/components/schemas/OrderItem' - OrderItemValue: - description: 'This class represents order item value.' - type: object - required: - - unit_price_gross - - unit_price_net - - vat_rate - - subtotal_price_gross - - subtotal_price_net - properties: - unit_price_gross: - oneOf: - - - type: string - - - $ref: '#/components/schemas/OrderPrice' - unit_price_net: - oneOf: - - - type: string - - - $ref: '#/components/schemas/OrderPrice' - vat_rate: - type: string - subtotal_price_gross: - oneOf: - - - type: string - - - $ref: '#/components/schemas/OrderPrice' - subtotal_price_net: - oneOf: - - - type: string - - - $ref: '#/components/schemas/OrderPrice' - OrderItemProduct: - description: 'This class represents order item product.' - type: object - required: - - id - - code - - name - properties: - id: - type: integer - code: - type: string - name: - type: string - OrderUpdate: - description: 'This class is used to update order.' - type: object - required: - - status - - transition - properties: - status: - type: string - transition: - type: string - OrderUpdateWrapper: - type: object - required: - - OrderUpdate - properties: - OrderUpdate: - $ref: '#/components/schemas/OrderUpdate' - PaymentMethod: - type: object - required: - - id - - identifier - - enabled - - name - - description - properties: - id: - type: integer - identifier: - type: string - enabled: - type: boolean - name: - type: string - description: - type: string - PaymentMethodWrapper: - type: object - required: - - PaymentMethod - properties: - PaymentMethod: - $ref: '#/components/schemas/PaymentMethod' - PaymentMethodCreateStruct: - type: object - required: - - identifier - - type - - names - properties: - identifier: - type: string - type: - type: string - names: - description: 'If set this array of names with languageCode keys replace the complete name collection.' - type: object - descriptions: - description: 'An array of descriptions with languageCode keys.' - type: array - items: - type: string - enabled: - type: boolean - options: - type: object - PaymentMethodCreateStructWrapper: - type: object - required: - - PaymentMethodCreateStruct - properties: - PaymentMethodCreateStruct: - $ref: '#/components/schemas/PaymentMethodCreateStruct' - PaymentMethodUpdateStruct: - type: object - properties: - identifier: - type: string - names: - description: 'If set this array of names with languageCode keys replace the complete name collection.' - type: object - descriptions: - description: 'An array of descriptions with languageCode keys.' - type: array - items: - type: string - enabled: - type: boolean - options: - type: array - items: - type: [] - PaymentMethodUpdateStructWrapper: - type: object - required: - - PaymentMethodUpdateStructParser - properties: - PaymentMethodUpdateStructParser: - $ref: '#/components/schemas/PaymentMethodUpdateStruct' - PaymentMethodView: - type: object - required: - - identifier - - Result - properties: - identifier: - type: string - Result: - $ref: '#/components/schemas/PaymentMethodList' - PaymentMethodViewWrapper: - type: object - required: - - PaymentMethodView - properties: - PaymentMethodView: - $ref: '#/components/schemas/PaymentMethodView' - PaymentMethodViewInput: - type: object - required: - - identifier - - PaymentMethodQuery - properties: - identifier: - type: string - PaymentMethodQuery: - type: object - PaymentMethodViewInputWrapper: - type: object - required: - - PaymentMethodViewInput - properties: - PaymentMethodViewInput: - $ref: '#/components/schemas/PaymentMethodViewInput' - PaymentMethodList: - type: object - required: - - count - - PaymentMethodList - properties: - count: - type: integer - PaymentMethodList: - type: array - items: - $ref: '#/components/schemas/PaymentMethod' - Shipment: - description: 'This class represents a single shipment.' - type: object - required: - - id - - identifier - - status - - transitions - - Order - - Amount - - createdAt - - updatedAt - - Owner - - Method - properties: - id: - type: integer - identifier: - type: string - status: - type: string - transitions: - type: object - required: - - transitionList - properties: - transitionList: - description: 'Next steps available in the shipment workflow for the current status' - type: array - items: - type: string - Order: - $ref: '#/components/schemas/Ref' - Amount: - type: object - required: - - value - - currency - properties: - value: - type: string - currency: - type: string - createdAt: - type: string - format: date-time - updatedAt: - type: string - format: date-time - Owner: - $ref: '#/components/schemas/Ref' - Method: - $ref: '#/components/schemas/Ref' - ShipmentWrapper: - type: object - required: - - Shipment - properties: - Shipment: - $ref: '#/components/schemas/Shipment' - ShipmentRefList: - description: 'This class represents a list of Shipments' - type: object - required: - - shipmentRefList - properties: - shipmentRefList: - type: array - items: - $ref: '#/components/schemas/Ref' - ShipmentRefListWrapper: - type: object - required: - - ShipmentRefList - properties: - ShipmentRefList: - $ref: '#/components/schemas/ShipmentRefList' - ShipmentUpdate: - description: 'This class represents the update of a shipment.' - type: object - required: - - identifier - - transition - - Owner - - Context - properties: - identifier: - type: string - transition: - type: string - Owner: - $ref: '#/components/schemas/Ref' - Context: - type: object - ShipmentUpdateWrapper: - type: object - required: - - ShipmentUpdate - properties: - ShipmentUpdate: - $ref: '#/components/schemas/ShipmentUpdate' - ShipmentCreate: - description: 'This class represents the creation of a shipment.' - type: object - required: - - identifier - - ShippingMethod - - Owner - - Context - properties: - identifier: - type: string - ShippingMethod: - $ref: '#/components/schemas/Ref' - Owner: - $ref: '#/components/schemas/Ref' - Context: - type: object - ShipmentCreateWrapper: - type: object - required: - - ShipmentCreate - properties: - ShipmentCreate: - $ref: '#/components/schemas/ShipmentCreate' - ShippingMethod: - description: 'This class represents a shipping method.' - type: object - required: - - identifier - - name - - names - - description - - descriptions - - enabled - - options - - regions - - type - properties: - identifier: - type: string - name: - type: string - names: - type: object - required: - - value - properties: - value: - type: array - items: - $ref: '#/components/schemas/MultilingualValue' - description: - type: string - descriptions: - type: object - required: - - value - properties: - value: - type: array - items: - $ref: '#/components/schemas/MultilingualValue' - enabled: - type: boolean - options: - type: object - required: - - option - properties: - option: - type: array - items: - $ref: '#/components/schemas/KeyValue' - regions: - type: object - required: - - RegionRefList - properties: - RegionRefList: - type: array - items: - $ref: '#/components/schemas/Ref' - type: - $ref: '#/components/schemas/Ref' - ShippingMethodWrapper: - type: object - required: - - ShippingMethod - properties: - ShippingMethod: - $ref: '#/components/schemas/ShippingMethod' - ShippingMethodType: - description: 'This class represents a shipping method type.' - type: object - required: - - identifier - - name - properties: - identifier: - type: string - name: - type: string - ShippingMethodTypeWrapper: - type: object - required: - - ShippingMethodType - properties: - ShippingMethodType: - $ref: '#/components/schemas/ShippingMethodType' - ShippingMethodTypesList: - description: 'This class represents a list of shipping method types.' - type: object - required: - - ShippingMethodTypes - properties: - ShippingMethodTypes: - type: array - items: - $ref: '#/components/schemas/ShippingMethodType' - ShippingMethodTypesListWrapper: - type: object - required: - - ShippingMethodTypesList - properties: - ShippingMethodTypesList: - $ref: '#/components/schemas/ShippingMethodTypesList' - ShippingMethodRefList: - description: 'This class represents a list of shipping methods' - type: object - required: - - ShippingMethodRefs - properties: - ShippingMethodRefs: - type: array - items: - $ref: '#/components/schemas/Ref' - ShippingMethodRefListWrapper: - type: object - required: - - ShippingMethodRefList - properties: - ShippingMethodRefList: - $ref: '#/components/schemas/ShippingMethodRefList' - ActionType: - type: object - required: - - ActionType - properties: - ActionType: - type: object - required: - - _media-type - - identifier - - name - - inputIdentifier - - outputIdentifier - - options - properties: - _media-type: - type: string - enum: - - application/vnd.ibexa.api.ai.ActionType+json - - application/vnd.ibexa.api.ai.ActionType+xml - identifier: - type: string - name: - type: string - inputIdentifier: - type: string - outputIdentifier: - type: string - options: - type: object - additionalProperties: true - ActionTypeList: - type: object - required: - - _media-type - - _href - - ActionType - properties: - _media-type: - type: string - enum: - - application/vnd.ibexa.api.ai.ActionTypeList+json - - application/vnd.ibexa.api.ai.ActionTypeList+xml - _href: - type: string - enum: - - /api/ibexa/v2/ai/action-types - ActionType: - type: array - items: - $ref: '#/components/schemas/ActionType' - ActionConfiguration: - type: object - properties: - ActionConfiguration: - type: object - required: - - _media-type - - identifier - - name - - description - - enabled - - ActionType - - actionTypeOptions - - actionHandlerIdentifier - - actionHandlerOptions - - createdAt - - updatedAt - properties: - _media-type: - type: string - enum: - - application/vnd.ibexa.api.ai.ActionConfiguration+json - - application/vnd.ibexa.api.ai.ActionConfiguration+xml - identifier: - type: string - name: - type: string - description: - type: string - nullable: true - enabled: - type: boolean - ActionType: - $ref: '#/components/schemas/ActionType' - actionTypeOptions: - type: object - additionalProperties: true - actionHandlerIdentifier: - type: string - actionHandlerOptions: - type: object - additionalProperties: true - createdAt: - type: string - updatedAt: - type: string - ActionConfigurationList: - type: object - required: - - _media-type - - ActionConfiguration - properties: - _media-type: - type: string - enum: - - application/vnd.ibexa.api.ai.ActionConfigurationList+json - - application/vnd.ibexa.api.ai.ActionConfigurationList+xml - _href: - type: string - example: /api/ibexa/v2/ai/actions - ActionConfiguration: - type: array - items: - $ref: '#/components/schemas/ActionConfiguration' - ActionConfigurationListInput: - type: object - properties: - query: - type: string - action_type_identifier: - type: string - enabled: - type: boolean - limit: - type: integer - page: - type: integer - RuntimeContext: - type: object - additionalProperties: true - Text: - type: object - required: - - _media-type - - text - properties: - _media-type: - type: string - enum: - - application/vnd.ibexa.api.ai.Text+json - - application/vnd.ibexa.api.ai.Text+xml - text: - type: array - items: - type: string - RefineText: - type: object - required: - - Text - - RuntimeContext - properties: - _media-type: - type: string - enum: - - application/vnd.ibexa.api.ai.RefineText+json - - application/vnd.ibexa.api.ai.RefineText+xml - Text: - type: object - required: - - text - properties: - text: - type: array - items: - type: string - RuntimeContext: - $ref: '#/components/schemas/RuntimeContext' - GenerateAltText: - type: object - required: - - Image - - RuntimeContext - properties: - Image: - type: object - required: - - base64 - properties: - base64: - type: string - RuntimeContext: - $ref: '#/components/schemas/RuntimeContext' - AltText: - type: object - required: - - _media-type - - Text - properties: - _media-type: - type: string - enum: - - application/vnd.ibexa.api.ai.AltText+json - - application/vnd.ibexa.api.ai.AltText+xml - Text: - type: object - required: - - _media-type - - text - properties: - _media-type: - type: string - enum: - - application/vnd.ibexa.api.ai.Text+json - - application/vnd.ibexa.api.ai.Text+xml - text: - type: array - items: - type: string - DiscountList: - type: object - required: - - _media-type - - Discount - properties: - _media-type: - type: string - enum: - - application/vnd.ibexa.api.DiscountList+json - Discount: - type: array - items: - oneOf: - - - $ref: '#/components/schemas/Discount' - Discount: - type: object - required: - - id - - identifier - - name - - type - - label - - labelDescription - - priority - - isEnabled - - createdAt - - updatedAt - - startDate - - DiscountRule - - DiscountExpressionAware - - DiscountConditions - - DiscountTranslations - properties: - _media-type: - type: string - enum: - - application/vnd.ibexa.api.Discount+json - id: - type: integer - identifier: - type: string - name: - type: string - type: - type: string - required: true - label: - type: string - nullable: true - labelDescription: - type: string - nullable: true - priority: - type: integer - isEnabled: - type: boolean - createdAt: - type: string - format: date-time - updatedAt: - type: string - format: date-time - startDate: - type: string - format: date-time - endDate: - type: string - format: date-time - DiscountRule: - $ref: '#/components/schemas/DiscountRule' - DiscountExpressionAware: - $ref: '#/components/schemas/DiscountExpressionAware' - DiscountConditions: - type: array - items: - $ref: '#/components/schemas/DiscountCondition' - DiscountTranslations: - type: array - items: - $ref: '#/components/schemas/DiscountTranslation' - DiscountRule: - type: object - required: - - _media-type - - type - - expressionValues - properties: - _media-type: - type: string - type: - type: string - expressionValues: - type: object - additionalProperties: true - DiscountExpressionAware: - type: object - required: - - _media-type - - expressionValues - properties: - _media-type: - type: string - enum: - - application/vnd.ibexa.api.DiscountExpressionAware+json - expressionValues: - type: object - additionalProperties: true - DiscountCondition: - type: object - required: - - _media-type - - identifier - - expressionValues - properties: - _media-type: - type: string - identifier: - type: string - expressionValues: - type: object - additionalProperties: true - DiscountTranslation: - type: object - required: - - _media-type - - languageCode - - name - - description - - label - - labelDescription - properties: - _media-type: - type: string - enum: - - application/vnd.ibexa.api.DiscountTranslation+json - languageCode: - $ref: '#/components/schemas/Language' - name: - type: string - description: - type: object - nullable: true - label: - type: string - nullable: true - labelDescription: - type: string - nullable: true - DiscountCreate: - type: object - required: - - identifier - - type - - priority - - isEnabled - - userId - - rule - - translations - properties: - identifier: - type: string - minLength: 1 - type: - type: string - enum: - - cart - - catalog - priority: - type: integer - minimum: 1 - maximum: 10 - isEnabled: - type: boolean - userId: - type: integer - rule: - type: object - properties: - type: - type: string - required: true - enum: - - fixed_amount - - percentage - amount: - type: string - required: true - conditions: - type: array - items: - type: object - properties: - class: - type: string - required: true - description: 'The fully qualified class name, must implement \Ibexa\Contracts\Discounts\Value\DiscountConditionInterface' - parameters: - type: array - required: true - description: 'A list of arguments for the given class constructor' - items: [] - startDate: - type: string - format: date-time - endDate: - type: string - format: date-time - createdAt: - type: string - format: date-time - updatedAt: - type: string - format: date-time - translations: - type: array - minItems: 1 - items: - type: object - required: - - languageCode - - name - properties: - languageCode: - type: string - name: - type: string - description: - type: string - label: - type: string - labelDescription: - type: string - context: - type: object - additionalProperties: true - DiscountUpdate: - type: object - required: - - identifier - properties: - identifier: - type: string - minLength: 1 - priority: - type: integer - minimum: 1 - maximum: 10 - isEnabled: - type: boolean - userId: - type: integer - lastContributorId: - type: integer - rule: - type: object - required: - - type - - amount - properties: - type: - type: string - enum: - - fixed_amount - - percentage - amount: - type: string - conditions: - type: array - items: - type: object - required: - - class - - parameters - properties: - class: - type: string - description: 'The fully qualified class name, must implement \Ibexa\Contracts\Discounts\Value\DiscountConditionInterface' - parameters: - type: array - description: 'A list of arguments for the given class constructor' - items: [] - startDate: - type: string - format: date-time - endDate: - type: string - format: date-time - createdAt: - type: string - format: date-time - updatedAt: - type: string - format: date-time - translations: - type: array - minItems: 1 - items: - type: object - required: - - languageCode - - name - properties: - languageCode: - type: string - name: - type: string - description: - type: string - label: - type: string - labelDescription: - type: string - context: - type: object - additionalProperties: true - responses: { } - parameters: { } - examples: { } - requestBodies: { } - headers: { } - securitySchemes: { } -security: [] -tags: - - - name: Section - - - name: Objects - - - name: 'Type Groups' - - - name: Type - - - name: User - - - name: 'User Group' - - - name: 'User Role' - - - name: 'User Policy' - - - name: Language - - - name: Location - - - name: 'Object State Groups' - - - name: Trash - - - name: 'Url Wildcard' - - - name: 'Url Alias' - - - name: Views - description: 'Controller for Repository Views (Search, mostly).' - - - name: 'User Session' - - - name: Bookmark - - - name: 'User Token' - - - name: Calendar - - - name: 'Product Attribute' - - - name: 'Product Attribute Type' - - - name: 'Product Attribute Group' - - - name: 'Product Catalog' - - - name: 'Product Currency' - - - name: 'Product Customer Group' - - - name: Product - - - name: 'Product Type' - - - name: 'Product Variant' - - - name: 'Product Region' - - - name: 'Product Vat' - - - name: Taxonomy - - - name: Segmentation - - - name: 'Corporate Account' - - - name: 'Activity Log' - - - name: Cart - - - name: Orders - - - name: Payments - - - name: Shipping - - - name: 'Connector AI' - - - name: Discounts -webhooks: { } From fc929b8633ae2229dba22e7ae05dd2c50bba617f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= <mnocon@users.noreply.github.com> Date: Tue, 23 Sep 2025 13:48:57 +0200 Subject: [PATCH 4/4] Removed console logs --- tools/api_refs/redocly.hbs | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/api_refs/redocly.hbs b/tools/api_refs/redocly.hbs index d26ca0c730..adc027ee0a 100644 --- a/tools/api_refs/redocly.hbs +++ b/tools/api_refs/redocly.hbs @@ -27,9 +27,7 @@ // Apply badge styling document.querySelectorAll('.api-content [data-section-id] h2 [type="primary"]').forEach(el => { - console.log(el); const color = el.getAttribute('color'); - console.log(color); el.style.backgroundColor = "#FFF"; el.style.border = "1px solid " + color; el.style.padding = "1px 8px";