ContentRepositoryResource Resource

Resource for handling ContentRepositories

GET /contentrepositories

List available ContentRepositories

Request Parameters
name type description default constraints
page query Returned page, if paging is used. Paging starts with 1 1 int
pageSize query Page size for paging. If this is set to -1 no paging is used (all matching items are returned). Setting this to 0 will return no items. -1 int
q query Query string for filtering    
sort query Comma separated list of sorted attributes. Each attribute name may be prefixed with + for sorting in ascending order or - for sorting in descending order name  
Response Codes
code condition
200 ContentRepository list is returned.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json ContentRepositoryListResponse (JSON) List of ContentRepositories
application/xml (custom)

Example

Request
GET /contentrepositories
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "items" : [ { }, { } ],
  "hasMoreItems" : true,
  "numItems" : 12345,
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "SUCCESS",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "CRITICAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "NOTLICENSED",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

POST /contentrepositories

Create a new ContentRepository

Request Body
media type data type description
application/json ContentRepositoryModel (JSON) ContentRepository to create
application/xml (custom)
Response Codes
code condition
201 ContentRepository was created.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json ContentRepositoryResponse (JSON) created ContentRepository
application/xml (custom)

Example

Request
POST /contentrepositories
Content-Type: application/json
Accept: application/json

                
{
  "id" : 12345,
  "globalId" : "...",
  "name" : "...",
  "crType" : "cr",
  "dbType" : "...",
  "username" : "...",
  "password" : "...",
  "usePassword" : true,
  "url" : "...",
  "basepath" : "...",
  "instantPublishing" : true,
  "languageInformation" : true,
  "permissionInformation" : true,
  "permissionProperty" : "...",
  "defaultPermission" : "...",
  "diffDelete" : true,
  "elasticsearch" : {
    "page" : { },
    "folder" : { },
    "file" : { }
  },
  "projectPerNode" : true,
  "version" : "...",
  "checkDate" : 12345,
  "checkStatus" : "error",
  "checkResult" : "...",
  "statusDate" : 12345,
  "dataStatus" : "error",
  "dataCheckResult" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "contentRepository" : {
    "id" : 12345,
    "globalId" : "...",
    "name" : "...",
    "crType" : "mesh",
    "dbType" : "...",
    "username" : "...",
    "password" : "...",
    "usePassword" : true,
    "url" : "...",
    "basepath" : "...",
    "instantPublishing" : true,
    "languageInformation" : true,
    "permissionInformation" : true,
    "permissionProperty" : "...",
    "defaultPermission" : "...",
    "diffDelete" : true,
    "elasticsearch" : {
      "page" : { },
      "folder" : { },
      "file" : { }
    },
    "projectPerNode" : true,
    "version" : "...",
    "checkDate" : 12345,
    "checkStatus" : "error",
    "checkResult" : "...",
    "statusDate" : 12345,
    "dataStatus" : "unchecked",
    "dataCheckResult" : "..."
  },
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "NEUTRAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "NEUTRAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "FAILURE",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

GET /contentrepositories/{id}

Get the ContentRepository with given id

Request Parameters
name type description
id path internal or external ContentRepository ID
Response Codes
code condition
200 ContentRepository {id} exists.
404 ContentRepository {id} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json ContentRepositoryResponse (JSON) Response containing the ContentRepository
application/xml (custom)

Example

Request
GET /contentrepositories/{id}
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "contentRepository" : {
    "id" : 12345,
    "globalId" : "...",
    "name" : "...",
    "crType" : "mccr",
    "dbType" : "...",
    "username" : "...",
    "password" : "...",
    "usePassword" : true,
    "url" : "...",
    "basepath" : "...",
    "instantPublishing" : true,
    "languageInformation" : true,
    "permissionInformation" : true,
    "permissionProperty" : "...",
    "defaultPermission" : "...",
    "diffDelete" : true,
    "elasticsearch" : {
      "page" : { },
      "folder" : { },
      "file" : { }
    },
    "projectPerNode" : true,
    "version" : "...",
    "checkDate" : 12345,
    "checkStatus" : "error",
    "checkResult" : "...",
    "statusDate" : 12345,
    "dataStatus" : "queued",
    "dataCheckResult" : "..."
  },
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "MAINTENANCEMODE",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

PUT /contentrepositories/{id}

Update ContentRepository with given id

Request Parameters
name type description
id path internal or external ContentRepository ID
Request Body
media type data type description
application/json ContentRepositoryModel (JSON) updated ContentRepository
application/xml (custom)
Response Codes
code condition
201 ContentRepository {id} was updated.
404 ContentRepository {id} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json ContentRepositoryResponse (JSON) updated ContentRepository
application/xml (custom)

Example

Request
PUT /contentrepositories/{id}
Content-Type: application/json
Accept: application/json

                
{
  "id" : 12345,
  "globalId" : "...",
  "name" : "...",
  "crType" : "cr",
  "dbType" : "...",
  "username" : "...",
  "password" : "...",
  "usePassword" : true,
  "url" : "...",
  "basepath" : "...",
  "instantPublishing" : true,
  "languageInformation" : true,
  "permissionInformation" : true,
  "permissionProperty" : "...",
  "defaultPermission" : "...",
  "diffDelete" : true,
  "elasticsearch" : {
    "page" : { },
    "folder" : { },
    "file" : { }
  },
  "projectPerNode" : true,
  "version" : "...",
  "checkDate" : 12345,
  "checkStatus" : "queued",
  "checkResult" : "...",
  "statusDate" : 12345,
  "dataStatus" : "queued",
  "dataCheckResult" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "contentRepository" : {
    "id" : 12345,
    "globalId" : "...",
    "name" : "...",
    "crType" : "mesh",
    "dbType" : "...",
    "username" : "...",
    "password" : "...",
    "usePassword" : true,
    "url" : "...",
    "basepath" : "...",
    "instantPublishing" : true,
    "languageInformation" : true,
    "permissionInformation" : true,
    "permissionProperty" : "...",
    "defaultPermission" : "...",
    "diffDelete" : true,
    "elasticsearch" : {
      "page" : { },
      "folder" : { },
      "file" : { }
    },
    "projectPerNode" : true,
    "version" : "...",
    "checkDate" : 12345,
    "checkStatus" : "queued",
    "checkResult" : "...",
    "statusDate" : 12345,
    "dataStatus" : "error",
    "dataCheckResult" : "..."
  },
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "INFO",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "SUCCESS",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "MAINTENANCEMODE",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

DELETE /contentrepositories/{id}

Delete the ContentRepository with given id

Request Parameters
name type description
id path internal or external ContentRepository ID
Response Codes
code condition
204 ContentRepository {id} was deleted.
404 ContentRepository {id} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json object (JSON) response
application/xml (custom)

Example

Request
DELETE /contentrepositories/{id}
Accept: application/json

              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
...
                
              

PUT /contentrepositories/{id}/structure/check

Check the connectivity and structure of the given contentrepository

Request Parameters
name type description
id path internal or external ContentRepository ID
Response Codes
code condition
200 ContentRepository {id} exists and was checked.
404 ContentRepository {id} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json ContentRepositoryResponse (JSON) response
application/xml (custom)

Example

Request
PUT /contentrepositories/{id}/structure/check
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "contentRepository" : {
    "id" : 12345,
    "globalId" : "...",
    "name" : "...",
    "crType" : "mesh",
    "dbType" : "...",
    "username" : "...",
    "password" : "...",
    "usePassword" : true,
    "url" : "...",
    "basepath" : "...",
    "instantPublishing" : true,
    "languageInformation" : true,
    "permissionInformation" : true,
    "permissionProperty" : "...",
    "defaultPermission" : "...",
    "diffDelete" : true,
    "elasticsearch" : {
      "page" : { },
      "folder" : { },
      "file" : { }
    },
    "projectPerNode" : true,
    "version" : "...",
    "checkDate" : 12345,
    "checkStatus" : "queued",
    "checkResult" : "...",
    "statusDate" : 12345,
    "dataStatus" : "queued",
    "dataCheckResult" : "..."
  },
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "INFO",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "FAILURE",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

PUT /contentrepositories/{id}/structure/repair

Check and repair the connectivity and structure of the given contentrepository

Request Parameters
name type description
id path internal or external ContentRepository ID
Response Codes
code condition
200 ContentRepository {id} exists and was checked and repair attempted.
404 ContentRepository {id} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json ContentRepositoryResponse (JSON) response
application/xml (custom)

Example

Request
PUT /contentrepositories/{id}/structure/repair
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "contentRepository" : {
    "id" : 12345,
    "globalId" : "...",
    "name" : "...",
    "crType" : "mesh",
    "dbType" : "...",
    "username" : "...",
    "password" : "...",
    "usePassword" : true,
    "url" : "...",
    "basepath" : "...",
    "instantPublishing" : true,
    "languageInformation" : true,
    "permissionInformation" : true,
    "permissionProperty" : "...",
    "defaultPermission" : "...",
    "diffDelete" : true,
    "elasticsearch" : {
      "page" : { },
      "folder" : { },
      "file" : { }
    },
    "projectPerNode" : true,
    "version" : "...",
    "checkDate" : 12345,
    "checkStatus" : "queued",
    "checkResult" : "...",
    "statusDate" : 12345,
    "dataStatus" : "ok",
    "dataCheckResult" : "..."
  },
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "INFO",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "INVALIDDATA",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

PUT /contentrepositories/{id}/data/check

Check the data in the given contentrepository

Request Parameters
name type description
id path internal or external ContentRepository ID
Response Codes
code condition
200 ContentRepository {id} exists and was checked.
404 ContentRepository {id} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json ContentRepositoryResponse (JSON) response
application/xml (custom)

Example

Request
PUT /contentrepositories/{id}/data/check
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "contentRepository" : {
    "id" : 12345,
    "globalId" : "...",
    "name" : "...",
    "crType" : "mccr",
    "dbType" : "...",
    "username" : "...",
    "password" : "...",
    "usePassword" : true,
    "url" : "...",
    "basepath" : "...",
    "instantPublishing" : true,
    "languageInformation" : true,
    "permissionInformation" : true,
    "permissionProperty" : "...",
    "defaultPermission" : "...",
    "diffDelete" : true,
    "elasticsearch" : {
      "page" : { },
      "folder" : { },
      "file" : { }
    },
    "projectPerNode" : true,
    "version" : "...",
    "checkDate" : 12345,
    "checkStatus" : "unchecked",
    "checkResult" : "...",
    "statusDate" : 12345,
    "dataStatus" : "ok",
    "dataCheckResult" : "..."
  },
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "INFO",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "NOTFOUND",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

PUT /contentrepositories/{id}/data/repair

Check and repair the data in the given contentrepository

Request Parameters
name type description
id path internal or external ContentRepository ID
Response Codes
code condition
200 ContentRepository {id} exists and was checked and repair attempted.
404 ContentRepository {id} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json ContentRepositoryResponse (JSON) response
application/xml (custom)

Example

Request
PUT /contentrepositories/{id}/data/repair
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "contentRepository" : {
    "id" : 12345,
    "globalId" : "...",
    "name" : "...",
    "crType" : "mccr",
    "dbType" : "...",
    "username" : "...",
    "password" : "...",
    "usePassword" : true,
    "url" : "...",
    "basepath" : "...",
    "instantPublishing" : true,
    "languageInformation" : true,
    "permissionInformation" : true,
    "permissionProperty" : "...",
    "defaultPermission" : "...",
    "diffDelete" : true,
    "elasticsearch" : {
      "page" : { },
      "folder" : { },
      "file" : { }
    },
    "projectPerNode" : true,
    "version" : "...",
    "checkDate" : 12345,
    "checkStatus" : "error",
    "checkResult" : "...",
    "statusDate" : 12345,
    "dataStatus" : "running",
    "dataCheckResult" : "..."
  },
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "INFO",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "NOTLICENSED",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

PUT /contentrepositories/{id}/copy

Copy a ContentRepotiroy

Request Parameters
name type description
id path internal or external ID of the ContentRepository to copy
Response Codes
code condition
201 ContentRepository {id} was copied.
404 ContentRepository {id} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json ContentRepositoryResponse (JSON) response containing the copy
application/xml (custom)

Example

Request
PUT /contentrepositories/{id}/copy
Accept: application/json

              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "contentRepository" : {
    "id" : 12345,
    "globalId" : "...",
    "name" : "...",
    "crType" : "mccr",
    "dbType" : "...",
    "username" : "...",
    "password" : "...",
    "usePassword" : true,
    "url" : "...",
    "basepath" : "...",
    "instantPublishing" : true,
    "languageInformation" : true,
    "permissionInformation" : true,
    "permissionProperty" : "...",
    "defaultPermission" : "...",
    "diffDelete" : true,
    "elasticsearch" : {
      "page" : { },
      "folder" : { },
      "file" : { }
    },
    "projectPerNode" : true,
    "version" : "...",
    "checkDate" : 12345,
    "checkStatus" : "ok",
    "checkResult" : "...",
    "statusDate" : 12345,
    "dataStatus" : "queued",
    "dataCheckResult" : "..."
  },
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "NEUTRAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "NEUTRAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "PERMISSION",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

GET /contentrepositories/{id}/entries

Get the entries in the ContentRepository

Request Parameters
name type description default constraints
id path internal or external ID    
fragments query true to include entries from assigned fragments, false (which is the default) to only list entries of the ContentRepository itself false boolean
page query Returned page, if paging is used. Paging starts with 1 1 int
pageSize query Page size for paging. If this is set to -1 no paging is used (all matching items are returned). Setting this to 0 will return no items. -1 int
q query Query string for filtering    
sort query Comma separated list of sorted attributes. Each attribute name may be prefixed with + for sorting in ascending order or - for sorting in descending order name  
Response Codes
code condition
200 List of entries in ContentRepository {id} is returned.
404 ContentRepository {id} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json TagmapEntryListResponse (JSON) list of entries
application/xml (custom)

Example

Request
GET /contentrepositories/{id}/entries
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "items" : [ { }, { } ],
  "hasMoreItems" : true,
  "numItems" : 12345,
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "CRITICAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "NEUTRAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "MAINTENANCEMODE",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

GET /contentrepositories/{id}/entries/check

Check consistency of tagmap entries and return inconsistencies

Request Parameters
name type description
id path internal or external ID
Response Codes
code condition
200 Consistency of ContentRepository {id} was checked.
404 ContentRepository {id} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json TagmapEntryConsistencyResponse (JSON) consistency check result
application/xml (custom)

Example

Request
GET /contentrepositories/{id}/entries/check
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "items" : [ { }, { } ],
  "hasMoreItems" : true,
  "numItems" : 12345,
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "CRITICAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "CRITICAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "MAINTENANCEMODE",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

POST /contentrepositories/{id}/entries

Create a new tagmap entry

Request Parameters
name type description
id path internal or external ID of the ContentRepository
Request Body
media type data type description
application/json TagmapEntryModel (JSON) entry to create
application/xml (custom)
Response Codes
code condition
201 Entry was created.
404 ContentRepository {id} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json TagmapEntryResponse (JSON) created entry
application/xml (custom)

Example

Request
POST /contentrepositories/{id}/entries
Content-Type: application/json
Accept: application/json

                
{
  "id" : 12345,
  "globalId" : "...",
  "tagname" : "...",
  "mapname" : "...",
  "object" : 12345,
  "attributeType" : 12345,
  "targetType" : 12345,
  "multivalue" : true,
  "optimized" : true,
  "reserved" : true,
  "filesystem" : true,
  "foreignlinkAttribute" : "...",
  "foreignlinkAttributeRule" : "...",
  "category" : "...",
  "segmentfield" : true,
  "displayfield" : true,
  "urlfield" : true,
  "elasticsearch" : { },
  "fragmentName" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "entry" : {
    "id" : 12345,
    "globalId" : "...",
    "tagname" : "...",
    "mapname" : "...",
    "object" : 12345,
    "attributeType" : 12345,
    "targetType" : 12345,
    "multivalue" : true,
    "optimized" : true,
    "reserved" : true,
    "filesystem" : true,
    "foreignlinkAttribute" : "...",
    "foreignlinkAttributeRule" : "...",
    "category" : "...",
    "segmentfield" : true,
    "displayfield" : true,
    "urlfield" : true,
    "elasticsearch" : { },
    "fragmentName" : "..."
  },
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "SUCCESS",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "CRITICAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "AUTHREQUIRED",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

GET /contentrepositories/{id}/entries/{entryId}

Get a tagmap entry

Request Parameters
name type description
entryId path internal or external ID of the entry
id path internal or external ID of the ContentRepository
Response Codes
code condition
200 Entry {entryId} is returned.
404 ContentRepository {id} or Entry {entryId} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json TagmapEntryResponse (JSON) response containing the entry
application/xml (custom)

Example

Request
GET /contentrepositories/{id}/entries/{entryId}
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "entry" : {
    "id" : 12345,
    "globalId" : "...",
    "tagname" : "...",
    "mapname" : "...",
    "object" : 12345,
    "attributeType" : 12345,
    "targetType" : 12345,
    "multivalue" : true,
    "optimized" : true,
    "reserved" : true,
    "filesystem" : true,
    "foreignlinkAttribute" : "...",
    "foreignlinkAttributeRule" : "...",
    "category" : "...",
    "segmentfield" : true,
    "displayfield" : true,
    "urlfield" : true,
    "elasticsearch" : { },
    "fragmentName" : "..."
  },
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "NEUTRAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "CRITICAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "OK",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

PUT /contentrepositories/{id}/entries/{entryId}

Update tagmap entry

Request Parameters
name type description
entryId path internal or external entry ID
id path internal or external ContentRepository ID
Request Body
media type data type description
application/json TagmapEntryModel (JSON) updated entry
application/xml (custom)
Response Codes
code condition
201 Entry {entryId} was updated.
404 ContentRepository {id} or Entry {entryId} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json TagmapEntryResponse (JSON) updated entry
application/xml (custom)

Example

Request
PUT /contentrepositories/{id}/entries/{entryId}
Content-Type: application/json
Accept: application/json

                
{
  "id" : 12345,
  "globalId" : "...",
  "tagname" : "...",
  "mapname" : "...",
  "object" : 12345,
  "attributeType" : 12345,
  "targetType" : 12345,
  "multivalue" : true,
  "optimized" : true,
  "reserved" : true,
  "filesystem" : true,
  "foreignlinkAttribute" : "...",
  "foreignlinkAttributeRule" : "...",
  "category" : "...",
  "segmentfield" : true,
  "displayfield" : true,
  "urlfield" : true,
  "elasticsearch" : { },
  "fragmentName" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "entry" : {
    "id" : 12345,
    "globalId" : "...",
    "tagname" : "...",
    "mapname" : "...",
    "object" : 12345,
    "attributeType" : 12345,
    "targetType" : 12345,
    "multivalue" : true,
    "optimized" : true,
    "reserved" : true,
    "filesystem" : true,
    "foreignlinkAttribute" : "...",
    "foreignlinkAttributeRule" : "...",
    "category" : "...",
    "segmentfield" : true,
    "displayfield" : true,
    "urlfield" : true,
    "elasticsearch" : { },
    "fragmentName" : "..."
  },
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "INFO",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "NOTLICENSED",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

DELETE /contentrepositories/{id}/entries/{entryId}

Delete the tagmap entry

Request Parameters
name type description
entryId path internal or external entry ID
id path internal or external ContentRepository ID
Response Codes
code condition
204 Entry {entryId} was deleted.
404 ContentRepository {id} or Entry {entryId} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json object (JSON) response
application/xml (custom)

Example

Request
DELETE /contentrepositories/{id}/entries/{entryId}
Accept: application/json

              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
...
                
              

GET /contentrepositories/{id}/cr_fragments

Get the ContnetRepository Fragments assigned to the ContentRepository

Request Parameters
name type description default constraints
id path internal or external ID    
page query Returned page, if paging is used. Paging starts with 1 1 int
pageSize query Page size for paging. If this is set to -1 no paging is used (all matching items are returned). Setting this to 0 will return no items. -1 int
q query Query string for filtering    
sort query Comma separated list of sorted attributes. Each attribute name may be prefixed with + for sorting in ascending order or - for sorting in descending order name  
Response Codes
code condition
200 List of ContentRepository Fragments assigned to ContentRepository {id} is returned.
404 ContentRepository {id} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json ContentRepositoryFragmentListResponse (JSON) list of Cr Fragments
application/xml (custom)

Example

Request
GET /contentrepositories/{id}/cr_fragments
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "items" : [ { }, { } ],
  "hasMoreItems" : true,
  "numItems" : 12345,
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "CRITICAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "INVALIDDATA",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

GET /contentrepositories/{id}/cr_fragments/{crFragmentId}

Get a ContentRepository Fragment assigned to the ContentRepository

Request Parameters
name type description
crFragmentId path internal or external ID of the ContentRepository Fragment
id path internal or external ID of the ContentRepository
Response Codes
code condition
200 ContentRepository Fragment {crFragmentId} is returned.
404 ContentRepository {id} or ContentRepository Fragment {crFragmentId} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json ContentRepositoryFragmentResponse (JSON) response containing the ContentRepository Fragment
application/xml (custom)

Example

Request
GET /contentrepositories/{id}/cr_fragments/{crFragmentId}
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "contentRepositoryFragment" : {
    "id" : 12345,
    "name" : "...",
    "globalId" : "..."
  },
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "SUCCESS",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "NEUTRAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "PERMISSION",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

PUT /contentrepositories/{id}/cr_fragments/{crFragmentId}

Assign a ContentRepository Fragment to the ContentRepository

Request Parameters
name type description
crFragmentId path internal or external ContentRepository Fragment ID
id path internal or external ContentRepository ID
Response Codes
code condition
201 ContentRepository Fragment {crFragmentId} was assigned.
404 ContentRepository {id} or ContentRepository Fragment {crFragmentId} does not exist.
409 {crFragmentId} is already assigned to the ContentRepository {id}.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json object (JSON) Response
application/xml (custom)

Example

Request
PUT /contentrepositories/{id}/cr_fragments/{crFragmentId}
Accept: application/json

              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

DELETE /contentrepositories/{id}/cr_fragments/{crFragmentId}

Remove the ContentRepository Fragment from the ContentRepository

Request Parameters
name type description
crFragmentId path internal or external ContentRepository Fragment ID
id path internal or external ContentRepository ID
Response Codes
code condition
204 ContentRepository Fragment {crFragmentId} was removed from the ContentRepository.
404 ContentRepository {id} or ContentRepository Fragment {crFragmentId} does not exist.
401 No valid sid and session secret cookie were provided.
403 User has insufficient permissions.
Response Body
media type data type description
application/json object (JSON) response
application/xml (custom)

Example

Request
DELETE /contentrepositories/{id}/cr_fragments/{crFragmentId}
Accept: application/json

              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
...