WebCenter Content REST API v1.1
WebCenter Content REST API
About the REST APIs
The WebCenter Content REST APIs allow you to interact with content in WebCenter Content.
REST Overview
REST, or Representational State Transfer, uses basic methods such as GET, POST, PUT, and DELETE over a standard protocol, such as HTTPS, to submit requests from a client application to operate on objects stored on a server.
A request is in the form of a uniform resource identifier (URI) that identifies the resource (such as a dDocName, dID, or GUID) on which to operate and includes any parameters necessary for the operation.
Each REST request from the client to a server contains all of the information necessary to understand the request and does not rely on the server to store information about the individual request or about any relationship between requests. Session state is stored (cached) entirely on the client.
Each REST request is translated to an IdcService
request and the results of the service are returned as a JSON response. The primary IdcService
called by each REST API is noted in the description of each API.
Getting Started
To use WebCenter Content REST APIs, install a REST client like Postman.
Authorization
The WebCenter Content REST API supports multiple authorization types. The following types are supported:
- Basic Auth
- OAuth via OAM (Bearer Token)
- Anonymous calls with no authentication
OAuth Configuration
Learn to configure WebCenter Content to use OAuth which will allow users to get an auth token that can be used to call WebCenter Content REST APIs.
The basic configuration steps are:
- Create an identity domain
- Create a resource server
- Create an OAuth Client
- Create a self-signed CA certificate
- Add the certificate to the identity domain
After completing the setup, a token can be obtained from Oracle Access Manager.
Create an Identity Domain
An identity domain can be created in Oracle Access Manager using Add a new OAuth Identity Domain in REST API for OAuth in Oracle Access Manager. For example:
curl –location ‘https://
oam_host
:7001/oam/services/rest/ssa/api/v1/oauthpolicyadmin/oauthidentitydomain’
–header ‘Content-Type: application/json’
–header ‘Authorization:auth_header
’
–data ’{ “name”:“wcc_domain_name
”, “description”:“WCC domain description”, “identityProvider”:“OID”, “refreshTokenEnabled”: true }
where:
• oam_host
is the URL to Oracle Access Manager
• auth_header
is the Authorization header for the user that can create the domain
• wcc_domain_name
is the name of your domain
Create a Resource Server
A resource server can be created in Oracle Access Manager using Add a new Resource Server in REST API for OAuth in Oracle Access Manager. For example:
curl –location ‘https://
oam_host
:7001/oam/services/rest/ssa/api/v1/oauthpolicyadmin/application’
–header ‘Content-Type: application/json’
–header ‘Authorization:auth_header
’
–data ’{“name”:“resource_server_name
”, “description”:“ResourceServer description”, “scopes”:[{“scopeName”:“wcc_opc_all”,“description”:“WCC resource”}], “idDomain”:“wcc_server_name”, “audienceClaim”:{“subjects”:[“wcc_server_host
”]}
where:
• oam_host
is the URL to Oracle Access Manager
• auth_header
is the Authorization header for the user that can create the resource
• resource_server_name
is the name of your resource server
• wcc_server_host
is the WebCenter Content server URL via WebGate
Create an OAuth Client
An OAuth client can be created in Oracle Access Manager using Add a new OAuth Client in REST API for OAuth in Oracle Access Manager. For example:
curl –location ‘https://
oam_host
:7001/oam/services/rest/ssa/api/v1/oauthpolicyadmin/client’
–header ‘Content-Type: application/json’
–header ‘Authorization:auth_header
’
–data ‘{“secret”:“oauth_client_password
”, “id”:“oauth_client_id
”, “scopes”:[“resource_server_name
.wcc_opc_all”], “clientType”:“CONFIDENTIAL_CLIENT”, “idDomain”:“wcc_domain_name
”, “description”:“Client Description”, “name”:“oauth_client_id
”, “grantTypes”:[“PASSWORD”,“CLIENT_CREDENTIALS”,“JWT_BEARER”,“REFRESH_TOKEN”,“AUTHORIZATION_CODE”], “defaultScope”:“resource_server_name
.wcc_opc_all”, “redirectURIs”:[{“url”:“wcc_server_host
”, “isHttps”:true}] }’
where:
• oam_host
is the URL to Oracle Access Manager
• auth_header
is the Authorization header for the user that can create the resource
• oauth_client_password
is the client password
• oauth_client_id
is the client id
• resource_server_name
is the name of your resource server
• wcc_domain_name
is the name of your domain
• wcc_server_host
is the WebCenter Content server URL via WebGate
An OID user MUST be created using oauth_client_id
as the username and this user MUST be a member of cn=admin,cn=Groups,dc=us,dc=oracle,dc=com
.
Create Certificate and Add to the Identity Domain
If the certificates provided by OAM have issues, you may need to generate valid signed certificates.
This sample script may assist in generating the certificates:
openssl genrsa -out cacert.key 2048 openssl req -new -nodes -key cacert.key -out csr.pem -subj "/C=US/ST=California/L=Redwood City/O=Oracle/OU=Webcenetr/CN=WCC CA - Not for General Use" openssl req -x509 -nodes -sha256 -days 3650 -key cacert.key -in csr.pem -out cacert.pem openssl x509 -inform PEM -in cacert.pem -out cacert.cer openssl genrsa -out client.key 2048 openssl req -new -key client.key -out client.csr -subj "/C=US/ST=California/L=Redwood City/O=Oracle/OU=Webcenetr/CN=WCC OAuth Signer" openssl x509 -req -days 365 -in client.csr -CA cacert.pem -CAkey cacert.key -out client.cer openssl verify -verbose -CAfile cacert.cer client.cer sed '/-----$/d' client.cer > client_public_key_text_tmp tr '\n' -d < client_public_key_text_tmp > client_public_key_text sed '/-----$/d' cacert.key > client_private_key_text_tmp tr '\n' -d < client_private_key_text_tmp > client_private_key_text
This script generates four files:
File | Description |
---|---|
cacert.cer | Certificate file for the CA |
client.cer | Certificate file for the signed certificate |
client_private_key_text | Signed certificate private key |
client_public_key_text | Signed certificate public key |
The contents of the client_private_key_text
and client_public_key_text
files will be used in the payload when adding the key pair to Oracle Access Manager using Add a new KeyPair in REST API for OAuth in Oracle Access Manager. For example:
curl –location ‘https://
oam_host
:7001/oam/services/rest/ssa/api/v1/keypairadmin/keypair’
–header ‘Content-Type: application/json’
–header ‘Authorization:auth_header
’
–data ‘[{ “aliasName”:“MyPair”,“publicKey”:“publicKey
”, “privateKey”:“privateKey
” }]’
where:
• oam_host
is the URL to Oracle Access Manager
• auth_header
is the Authorization header for the user that can create the resource
• publicKey
is the public key
• privateKey
is the private key
After creating the pair, update the domain to use the pair with Oracle Access Manager using Update an existing OAuth Identity Domain in REST API for OAuth in Oracle Access Manager. For example:
curl –location ‘https://
oam_host
:7001/oam/services/rest/ssa/api/v1/oauthpolicyadmin/oauthidentitydomain?name=wcc_domain_name
’
–header ‘Content-Type: application/json’
–header ‘Authorization:auth_header
’
–data ‘{“defaultSigningKeyPair”: “MyPair”, “keyPairRolloverDurationInHours”: “0” }’
where:
• oam_host
is the URL to Oracle Access Manager
• wcc_domain_name
is the name of your domain
Configuring OWSM
WebCenter Content REST APIs rely on OWSM (Oracle Web Service Manager) for authentication; OWSM must be configured to accept the OAuth token obtained from OAM.
Log in to Enterprise Management.
From the Domain menu, navigate to Security, and then Keystore.
If an OWSM Stripe is not available, create one by clicking Create Stripe.
Enter OWSM.
Click OK.
Select the OWSM Stripe and click the Create Keystore button.
Enter a Keystore Name.
Click OK.
Select the new Keystore and click the Manage button.
On the Manage Certificates: OWSM/KeyStore page, click Import to import Certificate Authority (CA) and client certificate as Trusted Certificate types.
A JSON Web Token Trust must be configured with these steps.
You must run the keytool command on each certificate and capture the owner information for both certificates. For example:
$ keytool -printcert -file cacert.cer
$ keytool -printcert -file client.cer
Log in to Enterprise Management.
From the Domain menu, navigate to Web Service, and then WSM Domain Configuration.
Navigate to the Authentication tab.
Under the JWT Trust section:
Add the Issuer Name.
Click Add.
After these configurations, the server must be restarted.
Getting an OAuth Token
After completing the setup, a token can be obtained from Oracle Access Manager using Create Access Token Flow in REST API for OAuth in Oracle Access Manager. The following authentication types are supported.
• Password Grant Auth
• Two-Legged Auth
• Three-Legged Auth
Using Password Grant Auth
To get a token via grant type PASSWORD, use:
curl –location ‘https://
oam_host
:14100/oauth2/rest/token’
–header ‘Content-Type: application/x-www-form-urlencoded’
–header ‘Authorization:auth_header
’
–header ‘x-oauth-identity-domain-name:wcc_domain_name
’
–data-urlencode ‘grant_type=PASSWORD’
–data-urlencode ‘username=wccuser
’
–data-urlencode ‘password=wccuserpw
’
–data-urlencode ‘scope=resource_server_name
.wcc_opc_all’
where:
• oam_host
is the URL to Oracle Access Manager
• auth_header
is the Authorization header for the user that can create the resource
• wcc_domain_name
is the name of your domain
• wccuser
is the username of a WebCenter Content administrator
• wccuserpw
is the WebCenter Content administrator user password
• resource_server_name
is the name of your resource server
Note: The wccuser
must be a valid user and a member of cn=WebcenterGroup,cn=Groups,dc=us,dc=oracle,dc=com,cn=admin,cn=Groups,dc=us,dc=oracle,dc=com
.
Using Two-Legged Auth
To get a token via CLIENT_CREDENTIALS, use:
curl –location ‘https://
oam_host
:14100/oauth2/rest/token’
–header ‘Content-Type: application/x-www-form-urlencoded’
–header ‘Authorization:auth_header
’
–header ‘x-oauth-identity-domain-name:wcc_domain_name
’
–data-urlencode ‘grant_type=CLIENT_CREDENTIALS’
–data-urlencode ‘scope=resource_server_name
.wcc_opc_all’
where:
• oam_host
is the URL to Oracle Access Manager
• auth_header
is the Authorization header for the user that can create the resource
• wcc_domain_name
is the name of your domain
• resource_server_name
is the name of your resource server
Note: The WebL OID authenticator can only resolve the subject by user search. A valid user must be created with the client id as “uid” and assigned to the admin group on OID.
Using Three-Legged Auth
To get a token via AUTHORIZATION_CODE requires additional setup. Some Oracle Access Manager resources must be routed via WebGate. The following Oracle Support notes cover additional setup.
• NOTE:2832382.1 - Oracle Access Manager (OAM) 3-Legged OAuth Series Part 1 Of 2
• NOTE:2832947.1 - Oracle Access Manager (OAM) 3-Legged OAuth Series Part 2 Of 2
After OAM is configured, preform two additional steps:
Log in to WebCenter Content (configured with OAM SSO).
Access the OAM authorize endpoint via WebGate. The following URL will return a
code
once the consent is accepted and thiscode
will be used to get the token.
https://
oam_host
:7777/oauth2/rest/authorize?response_type=code&domain=wcc_domain_name
&client_id=oauth_client_id
&scope=resource_server_name
.wcc_opc_all&state=code1234&redirect_uri=https://oam_host
:7777/&response_mode=form_post&nonce=123&prompt=consent
where:
• oam_host
is the URL to the Oracle Access Manager console
• wcc_domain_name
is the name of your domain
• oauth_client_id
is the client id
• resource_server_name
is the name of your resource server
To get a token via AUTHORIZATION_CODE, use:
curl –location ‘https://
oam_host
:14100/oauth2/rest/token’
–header ‘Content-Type: application/x-www-form-urlencoded’
–header ‘Authorization:auth_header
’
–header ‘x-oauth-identity-domain-name:wcc_domain_name
’
–data-urlencode ‘grant_type=AUTHORIZATION_CODE’
–data-urlencode ‘code=code
’ –data-urlencode ‘redirect_uri=oam_host
:7777/’
where:
• oam_host
is the URL to the Oracle Access Manager console
• auth_header
is the Authorization header for the user that can create the resource
• code
is the code from the previous step
Using an OAuth Token
After obtaining an OAuth token as described in the Getting an OAuth Token section, REST APIs can use the token by setting the Authorization
header to Authorization: Bearer token
.
Note: The dName
in the response will depend on the user that generated the token.
Request with OAuth Token
GET …/documents/wcc/api/v1.1/users/permissions
Request Header
Authorization: Bearer token
Request Body
None
HTTP Response
Status = 200
Body
Expand Body
{
"dName": "wccadmin",
"securityGroups": [
{
"dGroupName": "Public",
"privilege": "15"
},
{
"dGroupName": "RecordsGroup",
"privilege": "15"
},
{
"dGroupName": "Reservation",
"privilege": "15"
},
{
"dGroupName": "Secure",
"privilege": "15"
}
],
"userSecurityFlags": [
{
"flag": "IsAdmin",
"value": "1"
},
{
"flag": "AdminAtLeastOneGroup",
"value": "1"
},
{
"flag": "IsSubAdmin",
"value": "1"
},
{
"flag": "IsSysManager",
"value": "1"
},
{
"flag": "IsContributor",
"value": "1"
},
{
"flag": "ActAsAnonymous",
"value": "0"
}
]
}
Resource URI
A REST call includes an HTTPS method, such as POST, GET, PUT, or DELETE, and a resource identified by a Uniform Resource Identifier (URI).
The URI is in this format:
https://{WCCHost}[:WCCPort]/documents/wcc/api/version/resourcePath
For example:
https://www.example.com/documents/wcc/api/v1.1
REST Request
A REST API supports a direct URL and JSON data format for REST requests.
In general, the WebCenter Content REST APIs use parameter names similar to the IdcService names.
Path Parameters
Path parameters are resource parameters passed directly in the URI resource before the ?
character.
Query Parameters
Query parameters are resource parameters passed directly in the URI resource after the ?
character.
Body Parameters
Body parameters are resource parameters passed in the HTTP body of the REST request.
FormData Parameters
FormData parameters are used in multi-part requests and passed in the HTTP body of the REST request. WebCenter Content REST APIs make use of this when uploading files.
REST Response
The REST API supports returning the following data:
- The response may return a file.
- The response may return in the JSON format.
- The response may be empty in which case standard HTTP returns codes that provide an indication of the success or failure of a response.
In general, the responses of the WebCenter Content REST APIs use parameter names similar to the IdcService names.
HTTP Response Codes
The WebCenter Content REST APIs may return any valid HTTP response code. The most commonly returned codes are defined in the following table.
HTTP Status Code | Description |
---|---|
200 OK | The request was successfully completed. |
201 Created | The request has been fulfilled and resulted in a new resource being created. The response includes a Location header containing the canonical URI for the newly created resource. |
400 Bad Request | The request could not be processed because it contains missing or invalid information (such as a validation error on an input field or a missing required value). |
401 Unauthorized | The request is not authorized. The authentication credentials included with this request are missing or invalid. |
403 Forbidden | The user cannot be authenticated. The user does not have authorization to perform this request. |
404 Not Found | The request includes a resource URI that does not exist. |
500 Internal Server Error | The server encountered an unexpected condition that prevented it from fulfilling the request. |
Error Responses
The following table describes the fields for error messages that can be returned when an error is returned.
Name | Description |
---|---|
type | A link that describes the type of error. |
title | A brief summary error message. |
detail | Details about the error from the server; the service StatusMessage . |
errorKey | When the error comes from the service layer; the service StatusMessageKey |
o:errorCode | When the error comes from the service layer StatusCode . A negative number indicates that the service failed. |
REST API Definitions
Files
Upload Document
POST /documents/wcc/api/v1.1/files/data
Description
Upload a new file, creating a new document. (CHECKIN_UNIVERSAL)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
metadataValues | formData | The metadata to associate with this document in JSON format. Some fields are required, some are optional; this can vary based on how the server is configured. These fields are required: •dDocType – The type of document being uploaded •dDocTitle – The title of the document being uploaded •dRevLabel – The revision of the document being uploaded •dSecurityGroup – The security group of the document being uploaded Additional fields might be required. When the FrameworkFolders component is enabled, to upload to a folder include: •fParentGUID – The folder GUID of the uploaded file. |
Yes | string |
primaryFile | formData | The primary file for this document. | Yes | file |
alternateFile | formData | The alternate file for this document. | No | file |
Responses
Code | Description | Schema |
---|---|---|
201 | Document successfully uploaded. Returns Header Location which is a URI to get the metadata of the new document. |
|
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Upload a file.
Request
POST …/documents/wcc/api/v1.1/files/data
Request Body
FormData Parameters
metadataValues = {“dDocTitle”:“Rest”,“dSecurityGroup”:“Public”,“dDocType”:“Document”}
primaryFile = [filePath]
HTTP Response
Status = 201
Header
Location = …/documents/wcc/api/v1.1/files/ID14006201
Example 2
Upload a file to the Users:weblogic
folder.
Request
POST …/documents/wcc/api/v1.1/files/data
Request Body
FormData Parameters
metadataValues = {“dDocTitle”:“Rest”,“dSecurityGroup”:“Public”,“dDocType”:“Document”, “fParentGUID”:“FLD_USER:weblogic”}
primaryFile = [filePath]
HTTP Response
Status = 201
Header
Location = …/documents/wcc/api/v1.1/folders/files/5D6FC0B59C968931834B5BF2D6DAA52C
Upload Document Revision
POST /documents/wcc/api/v1.1/files/{dDocName}/data
Description
Uploads a new document as a new revision of an existing document. (CHECKIN_UNIVERSAL)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dDocName | path | The dDocName of the document to add the revision to. | Yes | string |
metadataValues | formData | The metadata to associate with this revision in JSON format. Fields that are not provided will be inherited. The dDocName field may be required depending on the server configuration. |
Yes | string |
primaryFile | formData | The primary file for this revision. | Yes | file |
alternateFile | formData | The alternate file for this revision. | No | file |
Responses
Code | Description | Schema |
---|---|---|
201 | Revision successfully uploaded. Returns Header Location which is a URI to get the metadata of the new document. |
|
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Upload a new revision with a new dDocTitle.
Request
POST …/documents/wcc/api/v1.1/files/ID14006201/data
Request Body
FormData Parameters
metadataValues = {“dDocTitle”:“Rest Update Title”}
primaryFile = [filePath]
HTTP Response
Status = 201
Header
Location = …/documents/wcc/api/v1.1/files/ID14006201
Download Document
GET /documents/wcc/api/v1.1/files/{dDocName}/data
Description
Downloads file content for the specified document as a stream. (GET_FILE)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dDocName | path | The dDocName of the document to download. | Yes | string |
version | query | The version of the document to download. If not provided, the latest released version is assumed. | No | string |
rendition | query | The rendition of the document to retrieve. If rendition is not specified, primary rendition of the document is assumed. Allowed renditions: •primary •alternate •web •rendition:T |
No | string |
Responses
Code | Description | Schema |
---|---|---|
200 | Successfully returned the complete stream of the document. | |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Download a document
Request
GET …/documents/wcc/api/v1.1/files/ID14006201/data
Request Body
None
HTTP Response
Status = 200
Body
stream of file contents as application/octet-stream
Download Revision of a Document by its dID
GET /documents/wcc/api/v1.1/files/.by.did/{dID}/data
Description
Downloads file content for the specified document revision as a stream by providing its dID. (GET_FILE)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dID | path | Revision identifier of the content item. | Yes | string |
rendition | query | The rendition of the document to download. It can be primary or alternate or web or rendition:T. If rendition is not specified, primary rendition of the document is assumed. | No | string |
Responses
Code | Description | Schema |
---|---|---|
200 | Successfully returned the complete stream of the document. | |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Download a document by dID
Request
GET …/documents/wcc/api/v1.1/files/.by.did/6205/data
Request Body
None
HTTP Response
Status = 200
Body
stream of file contents as application/octet-stream
Copy Document Revision
POST /documents/wcc/api/v1.1/files/{dDocName}/{dID}/copyRevision
Description
Create a new document by copying the revision of an existing document. (COPY_REVISION)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dDocName | path | The dDocName of the document to be used as the source of the copy. | Yes | string |
dID | path | The dID of the document to be used as the source of the copy. | Yes | string |
body | body | The metadata as JSON to apply to the newly created copy. Any field not set in the JSON will be inherited from the source file. If the dDocName used does not exist on the server, a new document is created; if the dDocName exists, a new revision is created. The dDocName field may be required depending on server configuration. |
No | MetadataChangeObjectParameter |
Responses
Code | Description | Schema |
---|---|---|
201 | Revision copy successfully created. Returns Header Location which is a URI to get the metadata of the new document. |
|
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Create a copy of ID14006201 and dID 6202 as a new content item.
Request
POST …/documents/wcc/api/v1.1/files/ID14006201/6202/copyRevision
Request Body
Set dDocName
and dDocTitle
on the new content item.
{ “dDocName”: “createCopyRevision”,
“dDocTitle”:“Rest copyRevision” }
HTTP Response
Status = 201
Body
Location = …/documents/wcc/api/v1.1/files/ID14006205
Get Document Information
GET /documents/wcc/api/v1.1/files/{dDocName}
Description
Get the document information for a document. (DOC_INFO_LATESTRELEASE or DOC_INFO_SIMPLE_BYREV)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dDocName | path | The dDocName of the document to return information. | Yes | string |
version | query | The version of the document to return information. If not provided, the latest released version is returned. | No | string |
getFullInfo | query | If true, addition arrays like docInfo , wfInfo , revisionHistory , and fileInfo may be returned. This can be used with fields parameter to further filter what is returned. |
No | boolean |
fields | query | By default, all fields that would be returned by the DOC_INFO family of services are returned. When provided, the field is a comma separated list of explicit fields returned. When used with getFullinfo=true , the format is: {array}.{fieldsName} . For example, fields=docInfo.dDocName,revisionHistory.dID,wfInfo.*,root.dDocTitle . There are 2 keywords:• root refers to the top level of the JSON being returned; fields can be referred to by using either keyword root.fieldName or without the keyword as fieldName .•The * character means all fields in an array. |
No | string |
Responses
Code | Description | Schema |
---|---|---|
200 | Successfully returned the metadata | MetadataObjectResponse |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Get the metadata for CREATECOPYREVISION.
Request
GET …/documents/wcc/api/v1.1/files/CREATECOPYREVISION
Request Body
None.
HTTP Response
Status = 200
Body
Expand Body
{
"dDocName": "CREATECOPYREVISION",
"dID": 6203,
"dDocType": "Document",
"dDocTitle": "Rest copyRevision",
"dRevLabel": "1",
"dSecurityGroup": "Public",
"dDocAuthor": "weblogic",
"dStatus": "RELEASED",
"dOriginalName": "exif-xmp.jpg",
"dFormat": "image/jpeg",
"dFileSize": 129756,
"dDocCreator": "weblogic",
"dDocLastModifier": "weblogic",
"dDocOwner": "weblogic",
"dIndexedID": 6203,
"dIsWebFormat": false,
"dCharacterSet": null,
"dRendition1": null,
"dPublishType": null,
"dRendition2": null,
"dDocClass": null,
"dInDate": "2024-05-21 16:08:00Z",
"dRevRank": "0",
"dDocID": 6405,
"dWebExtension": "jpg",
"dCheckoutUser": null,
"dLocation": null,
"dIsPrimary": false,
"dExtension": "jpg",
"dReleaseState": "Y",
"dProcessingState": "Y",
"dWorkflowState": null,
"dIndexerState": null,
"dReleaseDate": "2024-05-21 16:08:00Z",
"dFlag1": null,
"dCreateDate": "2024-05-21 16:08:00Z",
"dOutDate": null,
"dRevClassID": 6203,
"dLanguage": null,
"xExternalDataSet": null,
"dRevisionID": 1,
"dIsCheckedOut": false,
"dDocAccount": null,
"dPublishState": null,
}
Get Document Information by dID
GET /documents/wcc/api/v1.1/files/.by.did/{dID}
Description
Get the document information for a document by dID. (DOC_INFO_SIMPLE_BYREV)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dID | path | The dID/Revision identifier of the document. | Yes | string |
getFullInfo | query | If true, addition arrays like docInfo , wfInfo , revisionHistory , and fileInfo may be returned. This can be used with fields parameter to further filter what is returned. |
No | boolean |
fields | query | By default, all fields that would be returned by the DOC_INFO family of services are returned. When provided, the field is a comma separated list of explicit fields returned. When used with getFullinfo=true , the format is: {array}.{fieldsName} . For example, fields=docInfo.dDocName,revisionHistory.dID,wfInfo.*,root.dDocTitle . There are 2 keywords:• root refers to the top level of the JSON being returned; fields can be referred to by using either keyword root.fieldName or without the keyword as fieldName .•The * character means all fields in an array. |
No | string |
Responses
Code | Description | Schema |
---|---|---|
200 | Successfully returned the metadata | MetadataObjectResponse |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Get the metadata for content item with dID 6203.
Request
GET …/documents/wcc/api/v1.1/files/.by.did/6203
Request Body
None.
HTTP Response
Status = 200
Body
Expand Body
{
"dDocName": "CREATECOPYREVISION",
"dID": 6203,
"dDocType": "Document",
"dDocTitle": "Rest copyRevision",
"dRevLabel": "1",
"dSecurityGroup": "Public",
"dDocAuthor": "weblogic",
"dStatus": "RELEASED",
"dOriginalName": "exif-xmp.jpg",
"dFormat": "image/jpeg",
"dFileSize": 129756,
"dDocCreator": "weblogic",
"dDocLastModifier": "weblogic",
"dDocOwner": "weblogic",
"dIndexedID": 6203,
"dIsWebFormat": false,
"dCharacterSet": null,
"dRendition1": null,
"dPublishType": null,
"dRendition2": null,
"dDocClass": null,
"dInDate": "2024-05-21 16:08:00Z",
"dRevRank": "0",
"dDocID": 6405,
"dWebExtension": "jpg",
"dCheckoutUser": null,
"dLocation": null,
"dIsPrimary": false,
"dExtension": "jpg",
"dReleaseState": "Y",
"dProcessingState": "Y",
"dWorkflowState": null,
"dIndexerState": null,
"dReleaseDate": "2024-05-21 16:08:00Z",
"dFlag1": null,
"dCreateDate": "2024-05-21 16:08:00Z",
"dOutDate": null,
"dRevClassID": 6203,
"dLanguage": null,
"xExternalDataSet": null,
"dRevisionID": 1,
"dIsCheckedOut": false,
"dDocAccount": null,
"dPublishState": null,
}
Delete Document
DELETE /documents/wcc/api/v1.1/files/{dDocName}
Description
Deletes the document and all its revisions. (DELETE_DOC)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dDocName | path | The dDocName of the document to be deleted. | Yes | string |
version | query | The version number of the document to delete. If the version is not specified, the content item and all its versions will be deleted. | No | string |
Responses
Code | Description | Schema |
---|---|---|
204 | Successfully deleted document | |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Delete the content item with dDocName CREATECOPYREVISION.
Request
DELETE …/documents/wcc/api/v1.1/files/CREATECOPYREVISION
Request Body
None.
HTTP Response
Status = 204
Body
None.
Delete Revision of a Document by its dID
DELETE /documents/wcc/api/v1.1/files/.by.did/{dID}
Description
Deletes a document revision. (DELETE_REV_EX)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dID | path | The dID (revision) of the document to be deleted. | Yes | string |
Responses
Code | Description | Schema |
---|---|---|
204 | Successfully deleted the document. | |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Delete the content item with dID 6206.
Request
DELETE …/documents/wcc/api/v1.1/files/.by.did/6206
Request Body
None.
HTTP Response
Status = 204
Body
None.
Get Document Version Information
GET /documents/wcc/api/v1.1/files/{dDocName}/versions
Description
Get all the revision information of a document. (DOC_INFO_BY_NAME)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dDocName | path | The dDocName of the document to return revision information. | Yes | string |
fields | query | This parameter is optional. When it is not provided, all fields that would be returned by the DOC_INFO family of services are returned. When provided, the field is a comma separated list of explicit fields returned. | No | string |
Responses
Code | Description | Schema |
---|---|---|
200 | Successfully returned the metadata | MetadataVersionsResponse |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Get the metadata for all the versions of the content item with dDocName ID14006204.
Request
GET …/documents/wcc/api/v1.1/files/ID14006204/versions
Request Body
None.
HTTP Response
Status = 200
Body
Expand Body
{
"dDocName": "ID14006204",
"dRevLabelLatest": "2",
"count": 2,
"items": [
{
"dDocName": "ID14006204",
"dID": 6205,
"dDocType": "Document",
"dDocTitle": "Rest Update Title",
"dRevLabel": "2",
"dSecurityGroup": "Public",
"dDocAuthor": "weblogic",
"dStatus": "RELEASED",
"dOriginalName": "exif-xmp.jpg",
"dFormat": "image/jpeg",
"dFileSize": 129756,
"dDocCreator": "weblogic",
"dDocLastModifier": "weblogic",
"dDocOwner": "weblogic",
"dIndexedID": 6205,
"xIdcProfile": null,
"dIsWebFormat": false,
"xIsACLReadOnlyOnUI": 0,
"dCharacterSet": null,
"xComments": null,
"xDecimal": null,
"dRendition1": null,
"dPublishType": null,
"dRendition2": null,
"dDocClass": null,
"xReqText": null,
"dInDate": "2024-05-21 19:19:14Z",
"dRevRank": "0",
"dDocID": 6409,
"dMessage": null,
"dWebExtension": "jpg",
"dCheckoutUser": null,
"dLocation": null,
"xPartitionId": null,
"xWebFlag": null,
"dIsPrimary": false,
"dExtension": "jpg",
"xStorageRule": "DispByContentId",
"dReleaseState": "Y",
"dProcessingState": "Y",
"dWorkflowState": null,
"dIndexerState": null,
"xLongText": null,
"xTest": 0,
"xOptionList": null,
"xAnnotationDetails": 0,
"xMemo": "Test memo",
"dReleaseDate": "2024-05-21 19:24:05Z",
"dDocFunction": null,
"dFlag1": null,
"dCreateDate": "2024-05-21 19:19:14Z",
"dOutDate": null,
"dRevClassID": 6204,
"dLanguage": null,
"xExternalDataSet": null,
"dRevisionID": 2,
"dIsCheckedOut": false,
"dDocAccount": null,
"dPublishState": null,
"xDate": null,
"xLibraryGUID": null
},
{
"dDocName": "BB14006204",
"dID": 6204,
"dDocType": "Document",
"dDocTitle": "Rest",
"dRevLabel": "1",
"dSecurityGroup": "Public",
"dDocAuthor": "weblogic",
"dStatus": "RELEASED",
"dOriginalName": "Mugs.jpg",
"dFormat": "image/jpeg",
"dFileSize": 53834,
"dDocCreator": "weblogic",
"dDocLastModifier": "weblogic",
"dDocOwner": "weblogic",
"dIndexedID": 6205,
"xIdcProfile": null,
"dIsWebFormat": false,
"xIsACLReadOnlyOnUI": 0,
"dCharacterSet": null,
"xComments": null,
"xDecimal": null,
"dRendition1": null,
"dPublishType": null,
"dRendition2": null,
"dDocClass": null,
"xReqText": null,
"dInDate": "2024-05-21 19:18:39Z",
"dRevRank": "1",
"dDocID": 6407,
"dMessage": null,
"dWebExtension": "jpg",
"dCheckoutUser": null,
"dLocation": null,
"xPartitionId": null,
"xWebFlag": null,
"dIsPrimary": false,
"dExtension": "jpg",
"xStorageRule": "DispByContentId",
"dReleaseState": "O",
"dProcessingState": "Y",
"dWorkflowState": null,
"dIndexerState": null,
"xLongText": null,
"xTest": 0,
"xOptionList": null,
"xAnnotationDetails": 0,
"xMemo": "Test memo",
"dReleaseDate": "2024-05-21 19:18:41Z",
"dDocFunction": null,
"dFlag1": null,
"dCreateDate": "2024-05-21 19:18:39Z",
"dOutDate": null,
"dRevClassID": 6204,
"dLanguage": null,
"xExternalDataSet": null,
"dRevisionID": 1,
"dIsCheckedOut": false,
"dDocAccount": null,
"dPublishState": null,
"xDate": null,
"xLibraryGUID": null
}
]
}
Document Search
GET /documents/wcc/api/v1.1/files/search/items
Description
Search for documents in the server. (GET_SEARCH_RESULTS)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
q | query | The search query which is used to filter content items. | No | string |
fields | query | The names of metadata fields to be returned for each content item . There is a set of fields that are always returned whether or not this parameter is passed. | No | string |
orderBy | query | The sort field and sort order which will be used to arrange the filtered content items. | No | string |
limit | query | The maximum number of items listed per page. | No | integer |
offset | query | Specifies the point from which items are listed for the response. | No | integer |
Responses
Code | Description | Schema |
---|---|---|
200 | Successfully returned the search results | SearchResultsResponse |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Search for all files in the Public
security group.
Request
GET …/documents/wcc/api/v1.1/files/search/items
Request Body
query parameter q = dSecurityGroup <matches> `Public`
HTTP Response
Status = 200
Body
Expand Body
{
"totalResults": 5,
"query": "dSecurityGroup <matches> \`Public\`",
"offset": 0,
"limit": 20,
"count": 5,
"hasMore": "false",
"pageNumber": 1,
"items": [
{
"dDocName": "ID14006204",
"dID": 6205,
"dDocType": "Document",
"dDocTitle": "Rest Update Title",
"dRevLabel": "2",
"dSecurityGroup": "Public",
"dDocAuthor": "weblogic",
"dStatus": "Released",
"dOriginalName": "exif-xmp.jpg",
"dFormat": "image/jpeg",
"dFileSize": 129756,
"dDocCreatedDate": "2024-05-21 19:18:39Z",
"dDocCreator": "weblogic",
"dDocLastModifiedDate": "2024-05-21 19:24:04Z",
"dDocLastModifier": "weblogic",
"dIndexedID": 6205,
"dDocOwner": "weblogic",
"dRendition1": null,
"dPublishType": null,
"URL": "/cs/groups/public/documents/document/yje0/mda2/~edisp/id14006204.jpg",
"dRendition2": null,
"VaultFileSize": 129756,
"dDocClass": null,
"dInDate": "2024-05-21 19:19:14Z",
"dWebExtension": "jpg",
"xWebFlag": null,
"dExtension": "jpg",
"xStorageRule": "DispByContentId",
"dDocFunction": null,
"dCreateDate": "2024-05-21 19:19:14Z",
"dOutDate": null,
"dRevClassID": 6204,
"xExternalDataSet": null,
"dRevisionID": 2,
"dDocAccount": null,
},
{
"dDocName": "ID14006201",
"dID": 6202,
"dDocType": "Document",
"dDocTitle": "Rest Update Title",
"dRevLabel": "2",
"dSecurityGroup": "Public",
"dDocAuthor": "weblogic",
"dStatus": "Released",
"dOriginalName": "exif-xmp.jpg",
"dFormat": "image/jpeg",
"dFileSize": 129756,
"dDocCreatedDate": "2024-05-21 14:54:46Z",
"dDocCreator": "weblogic",
"dDocLastModifiedDate": "2024-05-21 15:49:16Z",
"dDocLastModifier": "weblogic",
"dIndexedID": 6202,
"dDocOwner": "weblogic",
"dRendition1": null,
"dPublishType": null,
"URL": "/cs/groups/public/documents/document/yje0/mda2/~edisp/id14006201.jpg",
"dRendition2": null,
"VaultFileSize": 129756,
"dDocClass": null,
"dInDate": "2024-05-21 15:49:16Z",
"dWebExtension": "jpg",
"xWebFlag": null,
"dExtension": "jpg",
"xStorageRule": "DispByContentId",
"dDocFunction": null,
"dCreateDate": "2024-05-21 15:49:16Z",
"dOutDate": null,
"dRevClassID": 6201,
"xExternalDataSet": null,
"dRevisionID": 2,
"dDocAccount": null,
},
{
"dDocName": "ID14006002",
"dID": 6002,
"dDocType": "Document",
"dDocTitle": "Rest",
"dRevLabel": "1",
"dSecurityGroup": "Public",
"dDocAuthor": "weblogic",
"dStatus": "Released",
"dOriginalName": "Mugs.jpg",
"dFormat": "image/jpeg",
"dFileSize": 53834,
"dDocCreatedDate": "2024-05-13 16:53:42Z",
"dDocCreator": "weblogic",
"dDocLastModifiedDate": "2024-05-13 16:53:42Z",
"dDocLastModifier": "weblogic",
"dIndexedID": 6002,
"dDocOwner": "weblogic",
"dRendition1": null,
"dPublishType": null,
"URL": "/cs/groups/public/documents/document/yje0/mda2/~edisp/id14006002.jpg",
"dRendition2": null,
"VaultFileSize": 53834,
"dDocClass": null,
"dInDate": "2024-05-13 16:53:42Z",
"dWebExtension": "jpg",
"xPartitionId": null,
"xWebFlag": null,
"dExtension": "jpg",
"dDocFunction": null,
"dCreateDate": "2024-05-13 16:53:42Z",
"dOutDate": null,
"dRevClassID": 6002,
"xExternalDataSet": null,
"dRevisionID": 1,
"dDocAccount": null,
},
{
"dDocName": "ID14005802",
"dID": 5802,
"dDocType": "Document",
"dDocTitle": "file",
"dRevLabel": "1",
"dSecurityGroup": "Public",
"dDocAuthor": "UserB",
"dStatus": "Released",
"dOriginalName": "Mugs.jpg",
"dFormat": "image/jpeg",
"dFileSize": 53834,
"dDocCreatedDate": "2024-05-09 16:25:20Z",
"dDocCreator": "UserB",
"dDocLastModifiedDate": "2024-05-09 16:25:20Z",
"dDocLastModifier": "UserB",
"dIndexedID": 5802,
"dDocOwner": "UserB",
"dRendition1": null,
"dPublishType": null,
"URL": "/cs/groups/public/documents/document/yje0/mda1/~edisp/id14005802.jpg",
"dRendition2": null,
"VaultFileSize": 53834,
"dDocClass": null,
"dInDate": "2024-05-09 16:24:00Z",
"dWebExtension": "jpg",
"xWebFlag": null,
"dExtension": "jpg",
"xStorageRule": "DispByContentId",
"dDocFunction": null,
"dCreateDate": "2024-05-09 16:25:20Z",
"dOutDate": null,
"dRevClassID": 5802,
"xExternalDataSet": null,
"dRevisionID": 1,
"dDocAccount": null,
},
{
"dDocName": "1715255331863",
"dID": 5801,
"dDocType": "Document",
"dDocTitle": "Copy Title",
"dRevLabel": "1",
"dSecurityGroup": "Public",
"dDocAuthor": "weblogic",
"dStatus": "Released",
"dOriginalName": "CSASampleImage.jpg",
"dFormat": "image/jpeg",
"dFileSize": 25382,
"dDocCreatedDate": "2024-05-09 11:48:53Z",
"dDocCreator": "weblogic",
"dDocLastModifiedDate": "2024-05-09 11:48:53Z",
"dDocLastModifier": "weblogic",
"dIndexedID": 5801,
"dDocOwner": "weblogic",
"dRendition1": null,
"dPublishType": null,
"URL": "/cs/groups/public/documents/document/mju1/mzmx/~edisp/1715255331863.jpg",
"dRendition2": null,
"VaultFileSize": 25382,
"dDocClass": null,
"dInDate": "2024-05-09 11:48:53Z",
"dWebExtension": "jpg",
"xPartitionId": null,
"xWebFlag": null,
"dExtension": "jpg",
"dDocFunction": null,
"dCreateDate": "2024-05-09 11:48:53Z",
"dOutDate": null,
"dRevClassID": 5801,
"xExternalDataSet": null,
"dRevisionID": 1,
"dDocAccount": null,
}
],
"sortOrder": "dInDate:Desc"
}
Resubmit a document
POST /documents/wcc/api/v1.1/files/{dDocName}/resubmitConversion
Description
Resubmit a document that failed conversion. (RESUBMIT_FOR_CONVERSION)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dDocName | path | The dDocName of the document to be resubmitted. | Yes | string |
version | query | The version number of the document to be resubmitted. If the version is not specified, the latest version will be resubmitted. | No | string |
alwaysResubmit | query | By default, only files in a failed conversion state can be resubmitted. Setting this to true allows files that were successfully converted to be resubmitted. | No | boolean |
Responses
Code | Description | Schema |
---|---|---|
202 | The file has been resubmitted. | |
401 | Unauthorized | |
409 | The file is not in a failed converted state, and could be resubmitted with the alwaysResubmit parameter. |
ResubmitConflictErrorResponse |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request. | GeneralErrorResponse |
Example
Resubmit content item ID14006204.
Request
POST …/documents/wcc/api/v1.1/files/ID14006204/resubmitConversion
Request Body
None
HTTP Response
Status = 202
Body
None.
Resubmit a document by dID
POST /documents/wcc/api/v1.1/files/.by.did/{dID}/resubmitConversion
Description
Resubmit a document that failed conversion. (RESUBMIT_FOR_CONVERSION)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dID | path | The dID of the document. | Yes | string |
Responses
Code | Description | Schema |
---|---|---|
202 | The file has been resubmitted | |
401 | Unauthorized | |
409 | The file is not in a failed converted state, and could be resubmitted with the alwaysResubmit parameter |
ResubmitConflictErrorResponse |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Resubmit revision 6205 (but it has not failed conversion).
Request
POST …/documents/wcc/api/v1.1/files/.by.did/6205/resubmitConversion
Request Body
None
HTTP Response
Status = 409
Body
{
“type”: “https://www.rfc-editor.org/rfc/rfc9110.html#name-409-conflict”,
“title”: “Resubmit Not Required”,
“detail”: “The content item is not in a failed conversion state.”,
“o:errorCode”: -1
}
Get Work in Progress
GET /documents/wcc/api/v1.1/files/workInProgress/items
Description
Returns a list of items in GENWWW or DONE status and not present in a workflow. (WORK_IN_PROGRESS)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
fields | query | The names of metadata fields to be returned for each content item. There is a set of fields that is always returned whether or not this parameter is passed. | No | string |
orderBy | query | The sort field and sort order which will be used to arrange the filtered content items. | No | string |
limit | query | The maximum number of items listed per page. | No | integer |
offset | query | Specifies the point from which items are listed for the response. | No | integer |
Responses
Code | Description | Schema |
---|---|---|
200 | Successfully returned work in progress. | WorkInProgressResponse |
204 | There is no work in progress. | |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Update Document
PUT /documents/wcc/api/v1.1/files/{dDocName}
Description
Updates the document. Update the document metadata or update a metadate file to a different file (the file can only be updated once from a metadata file). (UPDATE_DOCINFO_BYFORM & UPDATE_DOCINFO)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dDocName | path | The dDocName of the document to be updated. | Yes | string |
version | query | The version of the document to be updated. If not provided, the latest version is updated. | No | string |
createPrimaryMetaFile | query | When true, a primary metafile is checked in and the primaryFile parameter is ignored. |
No | boolean |
createAlternateMetaFile | query | When true, an alternate metafile is checked in and the alternateFile parameter is ignored. |
No | boolean |
metadataValues | body | The metadata as JSON to update. Any field set in the JSON set on the document; fields which are not present will not be updated. | Yes | MetadataChangeObjectParameter |
primaryFile | formData | The new primary file for this document (can only update from a metadata file). | No | file |
alternateFile | formData | The new alternate file for this document (can only update from a metadata file). | No | file |
Responses
Code | Description | Schema |
---|---|---|
201 | Document successfully updated. Returns Header Location which is a URI to get the metadata of the updated document. |
|
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Update the latest released version of the METADATA document to set the field xComments
to ‘my update’.
Request
PUT …/documents/wcc/api/v1.1/files/METADATA
Request Body
FormData Parameters
metadataValues = {“xComments”: “my update”}
HTTP Response
Status = 204
Header
Location = …/documents/wcc/api/v1.1/files/METADATA
Update Document by dID
PUT /documents/wcc/api/v1.1/files/.by.did/{dID}
Description
Updates the document. Update the metadata or update a metadate file to a different file (the file can only be updated once from a metadata file). (UPDATE_DOCINFO_BYFORM & UPDATE_DOCINFO)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dID | path | The dID of the document to be updated. | Yes | string |
createPrimaryMetaFile | query | When true, a primary metafile is checked in and the primaryFile parameter is ignored. |
No | boolean |
createAlternateMetaFile | query | When true, an alternate metafile is checked in and the alternateFile parameter is ignored. |
No | boolean |
metadataValues | body | The metadata as JSON to update. Any field set in the JSON set on the document; fields which are not present will not be updated. | Yes | MetadataChangeObjectParameter |
primaryFile | formData | The new primary file for this document (can only update from a metadata file). | No | file |
alternateFile | formData | The new alternate file for this document (can only update from a metadata file). | No | file |
Responses
Code | Description | Schema |
---|---|---|
201 | Document successfully updated. Returns Header Location which is a URI to get the metadata of the updated document. |
|
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Assume the file revision 7603 exists with a metadata file. This update will update the file and set the field xComments
to ‘changeFile’.
Request
PUT …/documents/wcc/api/v1.1/files/.by.did/7603
Request Body
FormData Parameters
metadataValues = {“xComments”: “changeFile”}
primaryFile = [filePath]
HTTP Response
Status = 204
Header
Location = …/documents/wcc/api/v1.1/files/ID14007635
Checkout a Document
POST /documents/wcc/api/v1.1/files/{dDocName}/.checkout
Description
Checkout the latest version of a file. (CHECKOUT_BY_NAME)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dDocName | path | The dDocName of the document to checkout. | Yes | string |
Responses
Code | Description | Schema |
---|---|---|
204 | Document successfully checked out. Returns Header Location which is a URI to get the metadata of the document. |
|
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Checkout content item ID14045102
Request
POST …/documents/wcc/api/v1.1/files/ID14045102/.checkout
Request Body
None.
HTTP Response
Status = 204
Body
None.
Header
Location = …/documents/wcc/api/v1.1/files/ID14045102
Get Content Item workflow information
GET /documents/wcc/api/v1.1/files/{dDocName}/workflow
Description
Workflow information based on the dDocName of a document in the workflow. (GET_WORKFLOW_INFO_BYNAME)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dDocName | path | The name of a document in an active workflow | Yes | string |
Responses
Code | Description | Schema |
---|---|---|
200 | Workflow information based on the dDocName of a document in the workflow. | WorkflowInfoResponse |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Get information on the workflow state for content item ID45654
.
Request
GET …documents/wcc/api/v1.1/files/ID45654/workflow
Request Body
None.
HTTP Response
Status = 200
Body
Expand Body
{
"dWfName": "criteriawf1",
"dWfStepID": 4,
"remainingStepUsers": "weblogic",
"doc_info": {
"dDocName": "ID45654",
"dID": 8446,
"dDocType": "Document",
"dDocTitle": "workflow demo",
"dRevLabel": "1",
"dSecurityGroup": "Public",
"dDocAuthor": "weblogic",
"dStatus": "REVIEW",
"dOriginalName": "Desert.jpg",
"dFormat": "image/jpeg",
"dFileSize": 845941,
"dVitalState": "Y",
"xReportType": null,
"xRecordSupersededDate": null,
"xDeleteApproveDate": null,
"xIsEditable": 1,
"xHasFixedClone": 0,
"xIsACLReadOnlyOnUI": 0,
"dCharacterSet": null,
"xComments": "criteriawf1",
"xRelatedContentTriggerDate": null,
"dRendition1": null,
"xNewRevisionDate": "5/22/24 9:34 AM",
"dRendition2": null,
"xRecordCancelledDate": null,
"xRecordCutoffDate": null,
"dLastModifiedDate": "5/22/24 9:34 AM",
"dRecordState": null,
"dRmaSegmentID": 3,
"dMessage": null,
"dWebExtension": "jpg",
"dCheckoutUser": null,
"xClassifiedMarkings": null,
"xRecordExpirationDate": null,
"xVitalPeriod": 0,
"dIsPrimary": false,
"dExtension": "jpg",
"xStorageRule": "DispByContentId",
"dProcessingState": "Y",
"xIsFrozen": 0,
"dWorkflowState": "W",
"dIndexerState": null,
"xIsRevisionable": 1,
"xSuperSupersededDate": null,
"dReleaseDate": null,
"xRecordActivationDate": null,
"dOutDate": null,
"dRevClassID": 7846,
"xIsVital": 0,
"dLanguage": null,
"xRelatedContentList": null,
"dIsCheckedOut": false,
"xIsDeletable": 1,
"xSupersededContent": null,
"xIdcProfile": null,
"dIsWebFormat": false,
"xFreezeID": 0,
"xIsSubjectToAudit": 0,
"dRmaProcessState": "Y",
"xRecordDestroyDate": null,
"xFreezeReason": null,
"dPublishType": null,
"xVitalPeriodUnits": null,
"xClbraUserList": null,
"xSource": null,
"xIsRecord": 0,
"xRecordFilingDate": "5/22/24 9:32 AM",
"xFolderID": null,
"dInDate": "2024-05-22 16:32:00Z",
"dRevRank": "0",
"xRecordReviewDate": null,
"dDocID": 13691,
"xClbraAliasList": null,
"dLocation": null,
"xSupplementalMarkings": null,
"xCpdIsTemplateEnabled": 0,
"xPartitionId": null,
"xWebFlag": null,
"dReleaseState": "E",
"xCpdIsLocked": 0,
"xRecordObsoleteDate": null,
"xAnnotationDetails": 0,
"xVitalReviewer": null,
"dFlag1": null,
"dCreateDate": "2024-05-22 16:34:00Z",
"xIsFixedClone": 0,
"xRecordRescindedDate": null,
"xExternalDataSet": null,
"xReportContentType": null,
"dRevisionID": 1,
"xLongName": null,
"xCategoryID": null,
"dPublishState": null,
"xAuditPeriod": null,
"dDocAccount": null,
"xIsCutoff": 0,
"xNoLatestRevisionDate": null,
"xLibraryGUID": null
},
"workflowInfo": {
"dWfID": 2,
"dWfName": "criteriawf1",
"dWfDescription": "Criteria Workflow1",
"dCompletionDate": null,
"dSecurityGroup": "Public",
"dWfStatus": "INPROCESS",
"dWfType": "Criteria",
"dIsCollaboration": 0
},
"wf_doc_info": {
"dWfID": 2,
"dDocName": "ID45654",
"dWfDocState": "INPROCESS",
"dWfComputed": null,
"dWfCurrentStepID": 4,
"dWfDirectory": "public"
},
"workflowStep": {
"dWfStepID": 4,
"dWfStepName": "step1",
"dWfID": 2,
"dWfStepDescription": null,
"dWfStepType": ":R:C:CE:",
"dWfStepIsAll": 0,
"dWfStepWeight": 1,
"dWfStepIsSignature": 0,
"dUsers": "weblogic",
"dHasTokens": "false"
},
"workflowSteps": [
{
"dWfStepID": 3,
"dWfStepName": "contribution",
"dWfID": 2,
"dWfStepDescription": null,
"dWfStepType": ":C:CA:CE:",
"dWfStepIsAll": 0,
"dWfStepWeight": 1,
"dWfStepIsSignature": 0
},
{
"dWfStepID": 4,
"dWfStepName": "step1",
"dWfID": 2,
"dWfStepDescription": null,
"dWfStepType": ":R:C:CE:",
"dWfStepIsAll": 0,
"dWfStepWeight": 1,
"dWfStepIsSignature": 0
}
],
"workflowActionHistory": [
{
"dWfName": "criteriawf1",
"dWfStepName": "contribution",
"wfAction": "CHECKIN",
"wfActionTs": "2024-05-22 16:34:05Z",
"wfUsers": "weblogic",
"wfMessage": null
},
{
"dWfName": "criteriawf1",
"dWfStepName": "contribution",
"wfAction": "APPROVE",
"wfActionTs": "2024-05-22 16:34:05Z",
"wfUsers": "weblogic",
"wfMessage": null
},
{
"dWfName": "criteriawf1",
"dWfStepName": "step1",
"wfAction": "WORK_NOTIFICATION",
"wfActionTs": "2024-05-22 16:34:05Z",
"wfUsers": "weblogic",
"wfMessage": "Content item 'ID45654' is ready for workflow step 'step1'.\n"
}
]
}
Approve a workflow
POST /documents/wcc/api/v1.1/files/{dDocName}/workflow/.approve
Description
Approve a content item in a workflow. (WORKFLOW_APPROVE)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dDocName | path | dDocName of the document in workflow | Yes | string |
Responses
Code | Description | Schema |
---|---|---|
204 | The content item has been approved. | |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Approve content item ID9400002010
in its workflow.
Request
POST …/documents/wcc/api/v1.1/files/ID9400002010/workflow/.approve
Request Body
None.
HTTP Response
Status = 204
Body
None.
Approve a workflow
POST /documents/wcc/api/v1.1/files/.by.did/{dID}/workflow/.approve
Description
Approve a content item revision in a workflow. (WORKFLOW_APPROVE)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dID | path | dID of a document in workflow. | Yes | string |
Responses
Code | Description | Schema |
---|---|---|
204 | The content item has been approved. | |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Approve item revision 23454323
in its workflow.
Request
POST …/documents/wcc/api/v1.1/files/.by.did/23454323/workflow/.approve
Request Body
None.
HTTP Response
Status = 204
Body
None.
Reject a workflow
POST /documents/wcc/api/v1.1/files/{dDocName}/workflow/.reject
Description
Reject a content item in a workflow. (WORKFLOW_REJECT)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dDocName | path | dDocName of the document in workflow | Yes | string |
rejectMessage | query | The rejection message. | No | string |
Responses
Code | Description | Schema |
---|---|---|
204 | The content item has been rejected. | |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Reject content item ID9400002011
in its workflow.
Request
POST …/documents/wcc/api/v1.1/files/ID9400002011/workflow/.reject
Request Body
None.
HTTP Response
Status = 204
Body
None.
Reject a workflow
POST /documents/wcc/api/v1.1/files/.by.did/{dID}/workflow/.reject
Description
Rejects content item revision in a workflow. (WORKFLOW_REJECT)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dID | path | Revision identifier of the content item in workflow. | Yes | string |
rejectMessage | query | The rejection message. | No | string |
Responses
Code | Description | Schema |
---|---|---|
204 | The content item has been rejected. | |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Reject item revision 24353523
in its workflow.
Request
POST …/documents/wcc/api/v1.1/files/.by.did/24353523/workflow/.reject
Request Body
None.
HTTP Response
Status = 204
Body
None.
Workflow
Get Workflow information
GET /documents/wcc/api/v1.1/workflows/{dWfName}
Description
Get workflow information by its name. (GET_WORKFLOW)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dWfName | path | Workflow name | Yes | string |
Responses
Code | Description | Schema |
---|---|---|
200 | Workflow information | WorkflowInformationResponse |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Get information on workflow criteriawf1
.
Request
GET …/documents/wcc/api/v1.1/workflows/criteriawf1
Request Body
None.
HTTP Response
Status = 200
Body
Expand Body
{
"workflow": {
"dWfID": 2,
"dWfName": "criteriawf1",
"dWfDescription": "Criteria Workflow1",
"dCompletionDate": null,
"dSecurityGroup": "Public",
"dWfStatus": "INPROCESS",
"dWfType": "Criteria",
"dIsCollaboration": 0
},
"workflowSteps": [
{
"dWfStepID": 3,
"dWfStepName": "contribution",
"dWfID": 2,
"dWfStepDescription": null,
"dWfStepType": ":C:CA:CE:",
"dWfStepIsAll": 0,
"dWfStepWeight": 1,
"dWfStepIsSignature": 0
},
{
"dWfStepID": 4,
"dWfStepName": "step1",
"dWfID": 2,
"dWfStepDescription": null,
"dWfStepType": ":R:C:CE:",
"dWfStepIsAll": 0,
"dWfStepWeight": 1,
"dWfStepIsSignature": 0,
"dAliases": "weblogic\tuser"
}
],
"workflowStepEvents": [
{
"dWfStepName": "step1",
"wfEntryScript": null,
"wfExitScript": null,
"wfUpdateScript": null
}
]
}
Get content item revisions in a workflow
GET /documents/wcc/api/v1.1/workflows/{dWfName}/docrevisions
Description
Get a list of content item revisions that are in the workflow. (GET_WORKFLOWDOCREVISIONS)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dWfName | path | Workflow name | Yes | string |
Responses
Code | Description | Schema |
---|---|---|
200 | Workflow information | WorkflowInformationRevisionsResponse |
204 | There are no content items in this workflow. | |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Get information on revisions in the workflow criteriawf1
.
Request
GET …documents/wcc/api/v1.1/workflows/criteriawf1/docrevisions
Request Body
None.
HTTP Response
Status = 200
Body
Expand Body
{
"wf_info": {
"dWfID": 2,
"dWfName": "criteriawf1",
"dWfDescription": "Criteria Workflow1",
"dCompletionDate": null,
"dSecurityGroup": "Public",
"dWfStatus": "INPROCESS",
"dWfType": "Criteria",
"dIsCollaboration": 0
},
"workflowSteps": [
{
"dWfStepID": 3,
"dWfStepName": "contribution",
"dWfID": 2,
"dWfStepDescription": null,
"dWfStepType": ":C:CA:CE:",
"dWfStepIsAll": 0,
"dWfStepWeight": 1,
"dWfStepIsSignature": 0,
"dHasTokens": "false"
},
{
"dWfStepID": 4,
"dWfStepName": "step1",
"dWfID": 2,
"dWfStepDescription": null,
"dWfStepType": ":R:C:CE:",
"dWfStepIsAll": 0,
"dWfStepWeight": 1,
"dWfStepIsSignature": 0,
"dUsers": "user:weblogic",
"dHasTokens": "false"
}
],
"wfDocuments": [
{
"dWfID": 2,
"dDocName": "ID45654",
"dWfDocState": "INPROCESS",
"dWfComputed": null,
"dWfCurrentStepID": 4,
"dWfDirectory": "public",
"dVitalState": "Y",
"xReportType": null,
"xIsEditable": "1",
"xHasFixedClone": 0,
"dCharacterSet": null,
"xRelatedContentTriggerDate": null,
"xRecordCutoffDate": null,
"dLastModifiedDate": "2024-05-22 16:34:18Z",
"dRecordState": null,
"dMessage": null,
"dWebExtension": "jpg",
"xClassifiedMarkings": null,
"xStorageRule": "DispByContentId",
"dIndexerState": null,
"xSuperSupersededDate": null,
"dReleaseDate": null,
"dOutDate": null,
"dRevClassID": 7846,
"xIsVital": "0",
"xRelatedContentList": null,
"xIsDeletable": "1",
"dRmaProcessState": "Y",
"xRecordDestroyDate": null,
"xVitalPeriodUnits": null,
"xSource": null,
"xRecordFilingDate": "2024-05-22 16:32:00Z",
"dStatus": "REVIEW",
"dInDate": "2024-05-22 16:32:00Z",
"xRecordReviewDate": null,
"xCpdIsTemplateEnabled": 0,
"xPartitionId": null,
"dReleaseState": "E",
"xCpdIsLocked": 0,
"xIsFixedClone": 0,
"xReportContentType": null,
"xCategoryID": null,
"dPublishState": null,
"xAuditPeriod": null,
"dID": 8446,
"xLibraryGUID": null,
"xRecordSupersededDate": null,
"xDeleteApproveDate": null,
"xIsACLReadOnlyOnUI": 0,
"xComments": "criteriawf1",
"dRendition1": null,
"xNewRevisionDate": "2024-05-22 16:34:05Z",
"dRendition2": null,
"xRecordCancelledDate": null,
"dRmaSegmentID": 3,
"dDocTitle": "workflow demo",
"dCheckoutUser": null,
"dFileSize": 845941,
"xRecordExpirationDate": null,
"xVitalPeriod": 0,
"dIsPrimary": 1,
"dExtension": "jpg",
"dProcessingState": "Y",
"xIsFrozen": "0",
"dWorkflowState": "W",
"xIsRevisionable": "1",
"dDocType": "Document",
"xRecordActivationDate": null,
"dLanguage": null,
"dIsCheckedOut": 0,
"xSupersededContent": null,
"xIdcProfile": null,
"dDocAuthor": "weblogic",
"dIsWebFormat": 0,
"xFreezeID": "0",
"xIsSubjectToAudit": "0",
"xFreezeReason": null,
"dPublishType": null,
"dFormat": "image/jpeg",
"xClbraUserList": null,
"xIsRecord": "0",
"xFolderID": null,
"dRevRank": 0,
"dDocID": 13691,
"xClbraAliasList": null,
"dLocation": null,
"xSupplementalMarkings": null,
"xWebFlag": null,
"dOriginalName": "Desert.jpg",
"xRecordObsoleteDate": null,
"xAnnotationDetails": 0,
"dSecurityGroup": "Public",
"xVitalReviewer": null,
"dFlag1": null,
"dCreateDate": "2024-05-22 16:34:05Z",
"xRecordRescindedDate": null,
"xExternalDataSet": null,
"dRevisionID": 1,
"xLongName": null,
"dRevLabel": "1",
"dDocAccount": null,
"xIsCutoff": "0",
"xNoLatestRevisionDate": null
}
]
}
Active Workflows
GET /documents/wcc/api/v1.1/workflows/active/items
Description
Get active workflows. (GET_ACTIVE_WORKFLOWS)
Responses
Code | Description | Schema |
---|---|---|
200 | The list of active workflows. | WorkflowActiveResponse |
204 | There are no active standard workflows in the system. | |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
List the active workflows.
Request
GET …/documents/wcc/api/v1.1/workflows/active/items
Request Body
None.
HTTP Response
Status = 200
Body
Expand Body
{
"count": 3,
"items": [
{
"dWfID": 2,
"dWfName": "criteriawf1",
"dWfDescription": "Criteria Workflow1",
"dCompletionDate": null,
"dSecurityGroup": "Public",
"dWfStatus": "INPROCESS",
"dWfType": "Criteria",
"dIsCollaboration": 0
},
{
"dWfID": 201,
"dWfName": "criteriawf2",
"dWfDescription": null,
"dCompletionDate": null,
"dSecurityGroup": "Public",
"dWfStatus": "INPROCESS",
"dWfType": "Criteria",
"dIsCollaboration": 0
},
{
"dWfID": 402,
"dWfName": "criteriawf4",
"dWfDescription": "Criteria 4 on Secure Group",
"dCompletionDate": null,
"dSecurityGroup": "Secure",
"dWfStatus": "INPROCESS",
"dWfType": "Criteria",
"dIsCollaboration": 0
}
]
}
Get Current Workflow Assignments
GET …/documents/wcc/api/v1.1/workflows/inqueue/items
Description
Get the user’s current workflow assignments.(GET_WORKFLOW_INQUEUE_LIST,GET_WORKFLOW_INQUEUE_LIST_EX)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
fields | query | A comma separated list of fields to be returned for each content item. By default, all fields will be returned. | No | string |
orderBy | query | The sort field and sort order which will be used to arrange the filtered content items. For example dwfQueueLastActionTs:Desc will sort the specified field in descending order. |
No | string |
limit | query | The maximum number of items listed per page. If not provided, the limit is calculated from the config setting WfInqueueMaxRows . If neither are set, the default is 20. |
No | number |
offset | query | Specifies the point from which items are listed for the response. | No | number |
doMarkSubscribed | query | When 1 adds a fIsSubscribed field in the resultset to indicate if the folder is subscribed. |
No | number |
Responses
Code | Description | Schema |
---|---|---|
200 | Workflow in queue for the user. | WorkflowInQueueResponse |
204 | The workflow in queue is empty. | |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
The user’s workflow assignments.
Request
GET …/documents/wcc/api/v1.1/workflows/inqueue/items
Request Body
None.
HTTP Response
Status = 200
Body
Expand Body
{
"count": 1,
"hasMore": false,
"numPages": 1,
"pageNumber": 1,
"totalRows": 1,
"startRow": 1,
"endRow": 1,
"items": [
{
"dUser": "weblogic",
"dDocName": "ID45654",
"dID": 8446,
"dWfID": 2,
"dWfName": "criteriawf1",
"dWfStepName": "step1",
"dwfQueueActionState": null,
"dwfQueueEnterTs": "2024-05-22 16:34:05Z",
"dwfQueueLastActionTs": "2024-05-22 16:34:05Z",
"wfMessage": null,
"dVitalState": "Y",
"xReportType": null,
"xIsEditable": "1",
"xHasFixedClone": 0,
"dCharacterSet": null,
"xRelatedContentTriggerDate": null,
"dwfMessage": null,
"xRecordCutoffDate": null,
"dLastModifiedDate": "2024-05-22 16:34:18Z",
"dWfStepType": ":R:C:CE:",
"dRecordState": null,
"dMessage": null,
"dWebExtension": "jpg",
"xClassifiedMarkings": null,
"xStorageRule": "DispByContentId",
"dIndexerState": null,
"dWfStepID": 4,
"xSuperSupersededDate": null,
"dReleaseDate": null,
"dOutDate": null,
"dRevClassID": 7846,
"xIsVital": "0",
"xRelatedContentList": null,
"xIsDeletable": "1",
"dWfStepDescription": null,
"wfQueueLastActionTs": "2024-05-22 16:34:05Z",
"dRmaProcessState": "Y",
"xRecordDestroyDate": null,
"xVitalPeriodUnits": null,
"dWfStepWeight": 1,
"xSource": null,
"xRecordFilingDate": "2024-05-22 16:32:00Z",
"dStatus": "REVIEW",
"dInDate": "2024-05-22 16:32:00Z",
"xRecordReviewDate": null,
"dWfStepIsAll": 0,
"xCpdIsTemplateEnabled": 0,
"xPartitionId": null,
"dReleaseState": "E",
"xCpdIsLocked": 0,
"xIsFixedClone": 0,
"xReportContentType": null,
"xCategoryID": null,
"dPublishState": null,
"xAuditPeriod": null,
"xLibraryGUID": null,
"xRecordSupersededDate": null,
"xDeleteApproveDate": null,
"xIsACLReadOnlyOnUI": 0,
"xComments": "criteriawf1",
"dRendition1": null,
"xNewRevisionDate": "2024-05-22 16:34:05Z",
"dRendition2": null,
"xRecordCancelledDate": null,
"wfQueueActionState": null,
"dRmaSegmentID": 3,
"dDocTitle": "workflow demo",
"dCheckoutUser": null,
"dFileSize": 845941,
"xRecordExpirationDate": null,
"xVitalPeriod": 0,
"dIsPrimary": 1,
"dExtension": "jpg",
"dProcessingState": "Y",
"xIsFrozen": "0",
"dWorkflowState": "W",
"xIsRevisionable": "1",
"dDocType": "Document",
"xRecordActivationDate": null,
"dLanguage": null,
"dIsCheckedOut": 0,
"xSupersededContent": null,
"xIdcProfile": null,
"dDocAuthor": "weblogic",
"dIsWebFormat": 0,
"xFreezeID": "0",
"xIsSubjectToAudit": "0",
"xFreezeReason": null,
"dPublishType": null,
"dFormat": "image/jpeg",
"xClbraUserList": null,
"xIsRecord": "0",
"xFolderID": null,
"dRevRank": 0,
"dDocID": 13691,
"xClbraAliasList": null,
"dLocation": null,
"xSupplementalMarkings": null,
"wfQueueEnterTs": "2024-05-22 16:34:05Z",
"xWebFlag": null,
"dOriginalName": "Desert.jpg",
"dWfStepIsSignature": 0,
"xRecordObsoleteDate": null,
"xAnnotationDetails": 0,
"dSecurityGroup": "Public",
"xVitalReviewer": null,
"dFlag1": null,
"dCreateDate": "2024-05-22 16:34:05Z",
"xRecordRescindedDate": null,
"xExternalDataSet": null,
"dRevisionID": 1,
"xLongName": null,
"dRevLabel": "1",
"dDocAccount": null,
"xIsCutoff": "0",
"xNoLatestRevisionDate": null
}
]
}
System
PING Server
GET /documents/wcc/api/v1.1/system/ping
Description
Verify the server is running (PING_SERVER).
Responses
Code | Description | Schema |
---|---|---|
204 | The server is available | |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Validate the server is responding.
Request
POST …/documents/wcc/api/v1.1/system/ping
Request Body
None.
HTTP Response
Status = 204
Body
None.
Query a Data Source
GET /documents/wcc/api/v1.1/system/{dataSource}/items
Description
Query the database via a defined data source. (GET_DATARESULTSET)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dataSource | path | The server data source to query. The server table DataSources lists the supported sources. |
Yes | string |
whereClause | query | The WHERE clause for the select query. | No | string |
orderClause | query | The ORDER clause for the select query. | No | string |
maxRows | query | Sets the maximum number of rows to be returned. | No | number |
startRow | query | The number of rows to skip when the table is returned. | No | number |
Responses
Code | Description | Schema |
---|---|---|
200 | The dataSource was successfully queried. The response depends on the data source being queried and are not explicitly defined in this documentation. | DataSourceResponse |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Folders
Browse the root folder
GET /documents/wcc/api/v1.1/folders/browse/
Description
List the content and structure of the root (FLD_ROOT) folder. (FLD_BROWSE)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
fldapp | query | Specifies the Folders Application of the location being returned | No | string |
doCombinedBrowse | query | When true, data will be returned in a combined pagination mode. | No | boolean |
foldersFirst | query | When true, folders are listed before files in the combined pagination mode. | No | boolean |
folderCount | query | The number of folders to return. | No | integer |
folderStartRow | query | The row number at which to start returning data. Used for pagination. | No | integer |
fileCount | query | The number of files to return. | No | integer |
fileStartRow | query | The row number at which to start returning data. Used for pagination. | No | integer |
combinedCount | query | The number of items (folders+files) to return. | No | integer |
combinedStartRow | query | The row number at which to start returning data. Used for pagination. | No | integer |
doRetrieveTargetInfo | query | When true, returns target folder’s information for all shortcuts retrieved in a resultset ChildTargetFolders. | No | boolean |
doMarkFavorites | query | When true, adds a ‘fIsFavorite’ field in the resultset to indicate if the folder/file is favorite. It is favorite if it has a shortcut in Favorites folder. | No | boolean |
doMarkSubscribed | query | When true, adds a ‘fIsSubscribed’ field in the resultset to indicate if the folder is subscribed. A folder is subscribed if the Subscription table has an entry for folder and the user calling the API. | No | boolean |
doRetrieveDocumentURL | query | When true, adds a URL field returned data; the web location of the document. | No | boolean |
doRetrieveUniqueLinks | query | When true, post processes array to return only unique links. For example, if folder’s shortcut and folder itself are in the array, only folder itself will be returned. | No | boolean |
foldersSortField | query | The field Name from FolderFolders table on which to sort the records. | No | string |
foldersSortOrder | query | Sort order on foldersSortField field. |
No | string |
filesSortField | query | The field name from FolderFiles table on which to sort the records. | No | string |
filesSortOrder | query | Sort order on filesSortField field. |
No | string |
combinedSortField | query | The Field name (common to both FolderFiles and FolderFolders tables) on which to sort the items. | No | string |
combinedSortOrder | query | Sort order on combinedSortField field. |
No | string |
foldersFilterParams | query | The comma separated list of filter parameters on the browse. For example foldersFilterParams=fIsContribution&fIsContribution=1 will return folders with fIsContribution=1. |
No | string |
foldersFilterQuery | query | The Standard Query syntax for filtering out the folders. This is in DATABASE engine format on FolderFolders table. For example. foldersFilterQuery=fFolderName |
No | string |
fieldName | query | The value for the specified field in foldersFilterParams and filesFilterParams |
No | string |
filesFilterParams | query | The comma separated list of filter parameters on the browse. For example, filesFilterParams=fOwner&fOwner=sysadmin will return folders with fOwner=sysadmin |
No | string |
filesFilterQuery | query | The Standard Query syntax for filtering out the files. This is in DATABASE engine format on FolderFiles table. For example, filesFilterQuery=fFileName |
No | string |
Responses
Code | Description | Schema |
---|---|---|
200 | The structure of a folder. | FolderBrowseResponse |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Browse the FLD_ROOT folder. This example shows an additional folder and file.
Request
GET …/documents/wcc/api/v1.1/folders/browse/
Request Body
None
HTTP Response
Status = 200
Body
Expand Body
{
"numFolders": 3,
"hasMoreChildFolders": 0,
"numFiles": 1,
"totalChildFoldersCount": 3,
"totalChildFilesCount": 1,
"hasMoreChildFiles": 0,
"hasMoreChildItems": 0,
"folderPath": "/",
"folderInfo": {
"fFolderGUID": "FLD_ROOT",
"fParentGUID": "idcnull",
"fFolderName": "/",
"fFolderType": "owner",
"fInhibitPropagation": 0,
"fPromptForMetadata": 0,
"fIsContribution": 1,
"fIsInTrash": 0,
"fRealItemGUID": null,
"fLibraryType": null,
"fIsLibrary": 0,
"fDocClasses": null,
"fTargetGUID": null,
"fApplication": "framework",
"fOwner": "sysadmin",
"fCreator": "sysadmin",
"fLastModifier": "sysadmin",
"fCreateDate": "2024-03-18 20:15:54Z",
"fLastModifiedDate": "2024-03-18 20:15:54Z",
"fSecurityGroup": "Public",
"fDocAccount": null,
"fClbraUserList": null,
"fClbraAliasList": null,
"fClbraRoleList": null,
"fFolderDescription": null,
"fChildFoldersCount": 5,
"fChildFilesCount": 1,
"fFolderSize": 0,
"fAllocatedFolderSize": -1,
"fAllocatorParentFolderGUID": null,
"fApplicationGUID": null,
"fIsReadOnly": 0,
"fIsACLReadOnlyOnUI": 0,
"fDisplayName": "/",
"fDisplayDescription": null,
"fIsBrokenShortcut": null,
"isLeaf": "0",
"itemType": "1",
"folderPermissions": "RWDA"
},
"childFolders": [
{
"fFolderGUID": "FLD_ENTERPRISE_LIBRARY",
"fParentGUID": "FLD_ROOT",
"fFolderName": "Enterprise Libraries",
"fFolderType": "owner",
"fInhibitPropagation": 0,
"fPromptForMetadata": 0,
"fIsContribution": 1,
"fIsInTrash": 0,
"fRealItemGUID": null,
"fLibraryType": null,
"fIsLibrary": 0,
"fDocClasses": null,
"fTargetGUID": null,
"fApplication": "framework",
"fOwner": "sysadmin",
"fCreator": "sysadmin",
"fLastModifier": "sysadmin",
"fCreateDate": "2024-03-18 20:15:54Z",
"fLastModifiedDate": "2024-03-18 20:15:54Z",
"fSecurityGroup": "Public",
"fDocAccount": null,
"fClbraUserList": null,
"fClbraAliasList": null,
"fClbraRoleList": null,
"fFolderDescription": "Enterprise Libraries",
"fChildFoldersCount": 0,
"fChildFilesCount": 0,
"fFolderSize": 0,
"fAllocatedFolderSize": -1,
"fAllocatorParentFolderGUID": null,
"fApplicationGUID": null,
"fIsReadOnly": 0,
"fIsACLReadOnlyOnUI": 0,
"fDisplayName": "Enterprise Libraries",
"fDisplayDescription": "Enterprise Libraries"
},
{
"fFolderGUID": "D6413BD3FD74C638A5ED5352AEF456C1",
"fParentGUID": "FLD_ROOT",
"fFolderName": "Folder",
"fFolderType": "owner",
"fInhibitPropagation": 0,
"fPromptForMetadata": 0,
"fIsContribution": 1,
"fIsInTrash": 0,
"fRealItemGUID": null,
"fLibraryType": null,
"fIsLibrary": 0,
"fDocClasses": null,
"fTargetGUID": null,
"fApplication": "framework",
"fOwner": "weblogic",
"fCreator": "weblogic",
"fLastModifier": "weblogic",
"fCreateDate": "2024-05-22 20:46:39Z",
"fLastModifiedDate": "2024-05-22 20:46:39Z",
"fSecurityGroup": "Public",
"fDocAccount": null,
"fClbraUserList": null,
"fClbraAliasList": null,
"fClbraRoleList": null,
"fFolderDescription": null,
"fChildFoldersCount": 0,
"fChildFilesCount": 0,
"fFolderSize": 0,
"fAllocatedFolderSize": -1,
"fAllocatorParentFolderGUID": null,
"fApplicationGUID": null,
"fIsReadOnly": 0,
"fIsACLReadOnlyOnUI": 0,
"fDisplayName": "Folder",
"fDisplayDescription": null
},
{
"fFolderGUID": "FLD_USERS",
"fParentGUID": "FLD_ROOT",
"fFolderName": "Users",
"fFolderType": "owner",
"fInhibitPropagation": 0,
"fPromptForMetadata": 0,
"fIsContribution": 1,
"fIsInTrash": 0,
"fRealItemGUID": null,
"fLibraryType": null,
"fIsLibrary": 0,
"fDocClasses": null,
"fTargetGUID": null,
"fApplication": "framework",
"fOwner": "sysadmin",
"fCreator": "sysadmin",
"fLastModifier": "sysadmin",
"fCreateDate": "2024-03-18 20:15:54Z",
"fLastModifiedDate": "2024-03-18 20:15:54Z",
"fSecurityGroup": "Public",
"fDocAccount": null,
"fClbraUserList": null,
"fClbraAliasList": null,
"fClbraRoleList": null,
"fFolderDescription": null,
"fChildFoldersCount": 0,
"fChildFilesCount": 0,
"fFolderSize": 0,
"fAllocatedFolderSize": -1,
"fAllocatorParentFolderGUID": null,
"fApplicationGUID": null,
"fIsReadOnly": 0,
"fIsACLReadOnlyOnUI": 0,
"fDisplayName": "Users",
"fDisplayDescription": "Users"
}
],
"childFiles": [
{
"fFileGUID": "D7B229794E0E9A57985D771CD070C750",
"fParentGUID": "FLD_ROOT",
"fTargetGUID": null,
"fFileName": "Mugs.jpg",
"fPublishedFileName": "Mugs.jpg",
"fFileType": "owner",
"fIsInTrash": 0,
"fRealItemGUID": null,
"fDocClass": "Base",
"fInhibitPropagation": 0,
"dDocName": "ID14006204",
"dRevisionID": 1,
"dPublishedRevisionID": 1,
"fApplication": "framework",
"fOwner": "weblogic",
"fCreator": "weblogic",
"fLastModifier": "weblogic",
"fCreateDate": "2024-05-22 20:48:40Z",
"fLastModifiedDate": "2024-05-22 20:48:40Z",
"fSecurityGroup": "Public",
"fDocAccount": null,
"fClbraUserList": null,
"fClbraAliasList": null,
"fClbraRoleList": null,
"fIsACLReadOnlyOnUI": "0",
"dID": 6207,
"dDocType": "Document",
"dDocTitle": "file",
"dDocAuthor": "weblogic",
"dRevClassID": 6205,
"dRevLabel": "1",
"dIsCheckedOut": 0,
"dCheckoutUser": null,
"dSecurityGroup": "Public",
"dCreateDate": "2024-05-22 20:48:40Z",
"dInDate": "2024-05-22 20:46:00Z",
"dOutDate": null,
"dStatus": "RELEASED",
"dReleaseState": "Y",
"dFlag1": null,
"dWebExtension": "jpg",
"dProcessingState": "Y",
"dMessage": null,
"dDocAccount": null,
"dReleaseDate": "2024-05-22 20:48:42Z",
"dRendition1": null,
"dRendition2": null,
"dIndexerState": null,
"dPublishType": null,
"dPublishState": null,
"dWorkflowState": null,
"dRevRank": 0,
"dDocID": 6413,
"dIsPrimary": 1,
"dIsWebFormat": 0,
"dLocation": null,
"dOriginalName": "Mugs.jpg",
"dFormat": "image/jpeg",
"dExtension": "jpg",
"dFileSize": 53834,
"dLanguage": null,
"dCharacterSet": null,
"xComments": null,
"xExternalDataSet": null,
"xIdcProfile": null,
"xAnnotationDetails": 0,
"xPartitionId": null,
"xWebFlag": null,
"xStorageRule": "DispByContentId",
"xTest": 0,
"xReqText": null,
"xLongText": null,
"xMemo": "Test memo",
"xDate": null,
"xDecimal": null,
"xOptionList": null,
"xLibraryGUID": null,
"xIsACLReadOnlyOnUI": 0,
"dIndexedID": 6207,
"dDocCreatedDate": "2024-05-22 20:48:40Z",
"dDocCreator": "weblogic",
"dDocLastModifiedDate": "2024-05-22 20:48:40Z",
"dDocLastModifier": "weblogic",
"dDocOwner": "weblogic",
"dDocFunction": null,
"dDocClass": null,
"fDisplayName": "Mugs.jpg"
}
]
}
Browse a folder
GET /documents/wcc/api/v1.1/folders/browse/{fFolderGUID}
Description
List the content and structure of the specified folder. (FLD_BROWSE)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
fFolderGUID | path | The folder GUID. | Yes | string |
fldapp | query | Specifies the Folders Application of the location being returned | No | string |
doCombinedBrowse | query | When true, data will be returned in a combined pagination mode. | No | boolean |
foldersFirst | query | When true, folders are listed before files in the combined pagination mode. | No | boolean |
folderCount | query | The number of folders to return. | No | integer |
folderStartRow | query | The row number at which to start returning data. Used for pagination. | No | integer |
fileCount | query | The number of files to return. | No | integer |
fileStartRow | query | The row number at which to start returning data. Used for pagination. | No | integer |
combinedCount | query | The number of items (folders+files) to return. | No | integer |
combinedStartRow | query | The row number at which to start returning data. Used for pagination. | No | integer |
doRetrieveTargetInfo | query | When true, returns target folder’s information for all shortcuts retrieved in a resultset ChildTargetFolders. | No | boolean |
doMarkFavorites | query | When true, adds a ‘fIsFavorite’ field in the resultset to indicate if the folder/file is favorite. It is favorite if it has a shortcut in Favorites folder. | No | boolean |
doMarkSubscribed | query | When true, adds a ‘fIsSubscribed’ field in the resultset to indicate if the folder is subscribed. A folder is subscribed if the Subscription table has an entry for folder and the user calling the API. | No | boolean |
doRetrieveDocumentURL | query | When true, adds a URL field returned data; the web location of the document. | No | boolean |
doRetrieveUniqueLinks | query | When true, post processes array to return only unique links. For example, if folder’s shortcut and folder itself are in the array, only folder itself will be returned. | No | boolean |
foldersSortField | query | The field Name from FolderFolders table on which to sort the records. | No | string |
foldersSortOrder | query | Sort order on foldersSortField field. |
No | string |
filesSortField | query | The field name from FolderFiles table on which to sort the records. | No | string |
filesSortOrder | query | Sort order on filesSortField field. |
No | string |
combinedSortField | query | The Field name (common to both FolderFiles and FolderFolders tables) on which to sort the items. | No | string |
combinedSortOrder | query | Sort order on combinedSortField field. |
No | string |
foldersFilterParams | query | The comma separated list of filter parameters on the browse. For example foldersFilterParams=fIsContribution&fIsContribution=1 will return folders with fIsContribution=1 |
No | string |
foldersFilterQuery | query | The Standard Query syntax for filtering out the folders. This is in DATABASE engine format on FolderFolders table. For example. foldersFilterQuery=fFolderName |
No | string |
fieldName | query | The value for the specified field in foldersFilterParams and filesFilterParams |
No | string |
filesFilterParams | query | The comma separated list of filter parameters on the browse. For example, filesFilterParams=fOwner&fOwner=sysadmin will return folders with fOwner=sysadmin |
No | string |
filesFilterQuery | query | The Standard Query syntax for filtering out the files. This is in DATABASE engine format on FolderFiles table. For example, filesFilterQuery=fFileName |
No | string |
Responses
Code | Description | Schema |
---|---|---|
200 | The structure of a folder. | FolderBrowseResponse |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Browse any folder.
Request
GET …/documents/wcc/api/v1.1/folders/browse/D6413BD3FD74C638A5ED5352AEF456C1
Request Body
None
HTTP Response
Status = 200
Body
Expand Body
{
"numFolders": 1,
"hasMoreChildFolders": 0,
"numFiles": 1,
"totalChildFoldersCount": 1,
"totalChildFilesCount": 1,
"hasMoreChildFiles": 0,
"hasMoreChildItems": 0,
"folderPath": "/Folder",
"folderInfo": {
"fFolderGUID": "D6413BD3FD74C638A5ED5352AEF456C1",
"fParentGUID": "FLD_ROOT",
"fFolderName": "Folder",
"fFolderType": "owner",
"fInhibitPropagation": 0,
"fPromptForMetadata": 0,
"fIsContribution": 1,
"fIsInTrash": 0,
"fRealItemGUID": null,
"fLibraryType": null,
"fIsLibrary": 0,
"fDocClasses": null,
"fTargetGUID": null,
"fApplication": "framework",
"fOwner": "weblogic",
"fCreator": "weblogic",
"fLastModifier": "weblogic",
"fCreateDate": "2024-05-22 20:46:39Z",
"fLastModifiedDate": "2024-05-22 20:46:39Z",
"fSecurityGroup": "Public",
"fDocAccount": null,
"fClbraUserList": null,
"fClbraAliasList": null,
"fClbraRoleList": null,
"fFolderDescription": null,
"fChildFoldersCount": 1,
"fChildFilesCount": 1,
"fFolderSize": 0,
"fAllocatedFolderSize": -1,
"fAllocatorParentFolderGUID": null,
"fApplicationGUID": null,
"fIsReadOnly": 0,
"fIsACLReadOnlyOnUI": 0,
"fDisplayName": "Folder",
"fDisplayDescription": null,
"fIsBrokenShortcut": null,
"isLeaf": "0",
"itemType": "1",
"folderPermissions": "RWDA"
},
"childFolders": [
{
"fFolderGUID": "4B4AFD71D5A999DBABB16704FEABCEBD",
"fParentGUID": "D6413BD3FD74C638A5ED5352AEF456C1",
"fFolderName": "jpgs",
"fFolderType": "owner",
"fInhibitPropagation": 17,
"fPromptForMetadata": 0,
"fIsContribution": 0,
"fIsInTrash": 0,
"fRealItemGUID": null,
"fLibraryType": null,
"fIsLibrary": 0,
"fDocClasses": null,
"fTargetGUID": null,
"fApplication": "query",
"fOwner": "weblogic",
"fCreator": "weblogic",
"fLastModifier": "weblogic",
"fCreateDate": "2024-05-22 21:01:13Z",
"fLastModifiedDate": "2024-05-22 21:01:13Z",
"fSecurityGroup": "Public",
"fDocAccount": null,
"fClbraUserList": null,
"fClbraAliasList": null,
"fClbraRoleList": null,
"fFolderDescription": null,
"fChildFoldersCount": 0,
"fChildFilesCount": 0,
"fFolderSize": 0,
"fAllocatedFolderSize": -1,
"fAllocatorParentFolderGUID": null,
"fApplicationGUID": null,
"fIsReadOnly": 0,
"fIsACLReadOnlyOnUI": 0,
"fDisplayName": "jpgs",
"fDisplayDescription": null
}
],
"childFiles": [
{
"fFileGUID": "2D09591B678E8AF05D8F6B1EB1879EA9",
"fParentGUID": "D6413BD3FD74C638A5ED5352AEF456C1",
"fTargetGUID": null,
"fFileName": "sample.txt",
"fPublishedFileName": "sample.txt",
"fFileType": "owner",
"fIsInTrash": 0,
"fRealItemGUID": null,
"fDocClass": "Base",
"fInhibitPropagation": 0,
"dDocName": "ID798656784",
"dRevisionID": 1,
"dPublishedRevisionID": 1,
"fApplication": "framework",
"fOwner": "weblogic",
"fCreator": "weblogic",
"fLastModifier": "weblogic",
"fCreateDate": "2024-05-22 21:03:08Z",
"fLastModifiedDate": "2024-05-22 21:03:08Z",
"fSecurityGroup": "Public",
"fDocAccount": null,
"fClbraUserList": null,
"fClbraAliasList": null,
"fClbraRoleList": null,
"fIsACLReadOnlyOnUI": "0",
"dID": 6208,
"dDocType": "Document",
"dDocTitle": "sample",
"dDocAuthor": "weblogic",
"dRevClassID": 6206,
"dRevLabel": "1",
"dIsCheckedOut": 0,
"dCheckoutUser": null,
"dSecurityGroup": "Public",
"dCreateDate": "2024-05-22 21:03:08Z",
"dInDate": "2024-05-22 21:01:00Z",
"dOutDate": null,
"dStatus": "RELEASED",
"dReleaseState": "Y",
"dFlag1": null,
"dWebExtension": "txt",
"dProcessingState": "Y",
"dMessage": null,
"dDocAccount": null,
"dReleaseDate": "2024-05-22 21:03:09Z",
"dRendition1": null,
"dRendition2": null,
"dIndexerState": null,
"dPublishType": null,
"dPublishState": null,
"dWorkflowState": null,
"dRevRank": 0,
"dDocID": 6415,
"dIsPrimary": 1,
"dIsWebFormat": 0,
"dLocation": null,
"dOriginalName": "sample.txt",
"dFormat": "text/plain",
"dExtension": "txt",
"dFileSize": 6,
"dLanguage": null,
"dCharacterSet": null,
"xComments": null,
"xExternalDataSet": null,
"xIdcProfile": null,
"xAnnotationDetails": 0,
"xPartitionId": null,
"xWebFlag": null,
"xStorageRule": "DispByContentId",
"xTest": 0,
"xReqText": null,
"xLongText": null,
"xMemo": "Test memo",
"xDate": null,
"xDecimal": null,
"xOptionList": null,
"xLibraryGUID": null,
"xIsACLReadOnlyOnUI": 0,
"dIndexedID": 6208,
"dDocCreatedDate": "2024-05-22 21:03:08Z",
"dDocCreator": "weblogic",
"dDocLastModifiedDate": "2024-05-22 21:03:08Z",
"dDocLastModifier": "weblogic",
"dDocOwner": "weblogic",
"dDocFunction": null,
"dDocClass": null,
"fDisplayName": "sample.txt"
}
]
}
Create Folder
POST /documents/wcc/api/v1.1/folders
Description
Create a folder or a shortcut to a folder. (FLD_CREATE_FOLDER)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
fFolderName | query | The name of the created folder. | Yes | string |
fParentGUID | query | The GUID of the parent folder where the new folder will be created. | Yes | string |
fSecurityGroup | query | The security group for the new folder. The default is Public . |
No | string |
fFolderType | query | The type of folder to create. | No | string |
fOwner | query | The owner of the folder. The default is the user making the call. | No | string |
fInhibitPropagation | query | A bitmap used to determine restrictions on files/folders from propagating values from its parent. The bitmap includes: 0 - inhibit propagation is set to none indicating values can be inherited from parent 1 - inhibit propagation for metadata indicating metadata is not inherited from parent 16 - inhibit propagation for folder security indicating folder security is not inherited from parent 17 - inhibit propagation for metadata and folder security |
No | number |
fTargetGUID | query | The GUID of the target folder when creating a folder shortcut. | No | string |
ConflictResolutionMethod | query | The method used to resolve folder name conflict: •ResolveDuplicates – The created folder will be given a unique name based on the fFolderName parameter •SkipDuplicates – The folder will not be created if the name already exists |
No | string |
isForceInheritSecurityForFolderCreation | query | When true, the folder will inherit the security from the parent folder. | No | boolean |
Responses
Code | Description | Schema |
---|---|---|
201 | Folder successfully created. Returns Header Location which is a URI to get the metadata of the new folder. |
|
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
409 | If ConflictResolutionMethod is SkipDuplicates and the folder name exists, a new folder is not created |
|
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Create a folder named RestCreatedFolder
under FLD_ROOT
Request
POST …/documents/wcc/api/v1.1/folders?fParentGUID=FLD_ROOT&fFolderName=RestCreatedFolder
Request Parameters
fParentGUID = FLD_ROOT
fFolderName = RestCreatedFolder
Request Body
None.
HTTP Response
Status = 201
Header
Location = …/documents/wcc/api/v1.1/folders/BE8851AE80FBAFAB3C2BB4AA127402C0
Get Folder Information
GET /documents/wcc/api/v1.1/folders/{fFolderGUID}
Description
Get information about the specified folder (FLD_INFO).
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
fFolderGUID | path | The folder GUID | Yes | string |
Responses
Code | Description | Schema |
---|---|---|
200 | Folder information. | FolderInfoResponse |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Get folder information for the folder with GUID D6413BD3FD74C638A5ED5352AEF456C1
.
Request
GET …/documents/wcc/api/v1.1/folders/D6413BD3FD74C638A5ED5352AEF456C1
Request Body
None
HTTP Response
Status = 200
Body
Expand Body
{
"folderPath": "/Folder",
"folderInfo": {
"fFolderGUID": "D6413BD3FD74C638A5ED5352AEF456C1",
"fParentGUID": "FLD_ROOT",
"fFolderName": "Folder",
"fFolderType": "owner",
"fInhibitPropagation": 0,
"fPromptForMetadata": 0,
"fIsContribution": 1,
"fIsInTrash": 0,
"fRealItemGUID": null,
"fLibraryType": null,
"fIsLibrary": 0,
"fDocClasses": null,
"fTargetGUID": null,
"fApplication": "framework",
"fOwner": "weblogic",
"fCreator": "weblogic",
"fLastModifier": "weblogic",
"fCreateDate": "2024-05-22 20:46:39Z",
"fLastModifiedDate": "2024-05-22 20:46:39Z",
"fSecurityGroup": "Public",
"fDocAccount": null,
"fClbraUserList": null,
"fClbraAliasList": null,
"fClbraRoleList": null,
"fFolderDescription": null,
"fChildFoldersCount": 1,
"fChildFilesCount": 1,
"fFolderSize": 0,
"fAllocatedFolderSize": -1,
"fAllocatorParentFolderGUID": null,
"fApplicationGUID": null,
"fIsReadOnly": 0,
"fIsACLReadOnlyOnUI": 0,
"fDisplayName": "Folder",
"fDisplayDescription": null,
"fIsBrokenShortcut": null,
"isLeaf": "0",
"itemType": "1",
"folderPermissions": "RWDA"
}
}
Get File Information
GET /documents/wcc/api/v1.1/folders/files/{fFileGUID}
Description
Get information about the specified file in a folder. (FLD_INFO)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
fFileGUID | path | The file GUID | Yes | string |
Responses
Code | Description | Schema |
---|---|---|
200 | File information and metadata. | FileInfoResponse |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Get file information for the file with GUID D7B229794E0E9A57985D771CD070C750
.
Request
GET …/documents/wcc/api/v1.1/folders/files/D7B229794E0E9A57985D771CD070C750
Request Body
None
HTTP Response
Status = 200
Body
Expand Body
{
"filePath": "/Mugs.jpg",
"fileInfo": {
"fFileGUID": "D7B229794E0E9A57985D771CD070C750",
"fParentGUID": "FLD_ROOT",
"fTargetGUID": null,
"fFileName": "Mugs.jpg",
"fPublishedFileName": "Mugs.jpg",
"fFileType": "owner",
"fIsInTrash": 0,
"fRealItemGUID": null,
"fDocClass": "Base",
"fInhibitPropagation": 0,
"dDocName": "ID14006204",
"dRevisionID": 1,
"dPublishedRevisionID": 1,
"fApplication": "framework",
"fOwner": "weblogic",
"fCreator": "weblogic",
"fLastModifier": "weblogic",
"fCreateDate": "2024-05-22 20:48:40Z",
"fLastModifiedDate": "2024-05-22 20:48:40Z",
"fSecurityGroup": "Public",
"fDocAccount": null,
"fClbraUserList": null,
"fClbraAliasList": null,
"fClbraRoleList": null,
"fIsACLReadOnlyOnUI": "0",
"fDisplayName": "Mugs.jpg",
"fDisplayDescription": null,
"dCharacterSet": null,
"dCheckoutUser": null,
"dCreateDate": "2024-05-22 20:48:40Z",
"dDocAccount": null,
"dDocAuthor": "weblogic",
"dDocCreatedDate": "{ts '2024-05-22 15:48:40.640'}",
"dDocCreator": "weblogic",
"dDocID": 6413,
"dDocLastModifiedDate": "{ts '2024-05-22 15:48:40.640'}",
"dDocLastModifier": "weblogic",
"dDocOwner": "weblogic",
"dDocTitle": "file",
"dDocType": "Document",
"dExtension": "jpg",
"dFileSize": 53834,
"dFlag1": null,
"dFormat": "image/jpeg",
"dID": 6207,
"dInDate": "2024-05-22 20:46:00Z",
"dIndexerState": null,
"dIsCheckedOut": 0,
"dIsPrimary": 1,
"dIsWebFormat": 0,
"dLanguage": null,
"dLocation": null,
"dMessage": null,
"dOriginalName": "Mugs.jpg",
"dOutDate": null,
"dProcessingState": "Y",
"dPublishState": null,
"dPublishType": null,
"dReleaseDate": "2024-05-22 20:48:42Z",
"dReleaseState": "Y",
"dRendition1": null,
"dRendition2": null,
"dRevClassID": 6205,
"dRevLabel": "1",
"dRevRank": 0,
"dSecurityGroup": "Public",
"dStatus": "RELEASED",
"dWebExtension": "jpg",
"dWorkflowState": null,
"fFolderType": "soft",
"isLeaf": "1",
"itemType": "2",
"xAnnotationDetails": 0,
"xComments": null,
"xDate": null,
"xDecimal": null,
"xExternalDataSet": null,
"xIdcProfile": null,
"xIsACLReadOnlyOnUI": 0,
"xLibraryGUID": null,
"xLongText": null,
"xMemo": "Test memo",
"xOptionList": null,
"xPartitionId": null,
"xReqText": null,
"xStorageRule": "DispByContentId",
"xTest": 0,
"xWebFlag": null,
"permissions": "RWDA"
}
}
Delete a File
DELETE /documents/wcc/api/v1.1/folders/files/{fFileGUID}
Description
Delete the specified file in a folder. (FLD_DELETE)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
fFileGUID | path | The file GUID | Yes | string |
permanentDelete | query | The default is false and the file is moved to trash. When true, the file is permanently deleted. | No | boolean |
Responses
Code | Description | Schema |
---|---|---|
204 | Document successfully deleted. | |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | GeneralErrorResponse |
404 | File not found | GeneralErrorResponse |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Delete the file identified by GUID 3C0A71FAA57BFA57D8CAB45097BA8D85
Request
DELETE …/documents/wcc/api/v1.1/folders/files/3C0A71FAA57BFA57D8CAB45097BA8D85
Request Body
None.
HTTP Response
Status = 204
Body
None.
Delete a Folder
DELETE /documents/wcc/api/v1.1/folders/{fFolderGUID}
Description
Delete the specified folder. (FLD_DELETE)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
fFolderGUID | path | The folder GUID | Yes | string |
permanentDelete | query | The default is false and the file is moved to trash. When true, the file is permanently deleted. | No | boolean |
Responses
Code | Description | Schema |
---|---|---|
204 | Folder successfully deleted. | |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | GeneralErrorResponse |
404 | Folder not found | GeneralErrorResponse |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Delete the folder identified by GUID 1BC11C2415A60641882C48EAF488A1E6
Request
DELETE …/documents/wcc/api/v1.1/folders/1BC11C2415A60641882C48EAF488A1E6
Request Body
None.
HTTP Response
Status = 204
Body
None.
Search Files and Folders
GET /documents/wcc/api/v1.1/folders/search/items
Description
Search for files and folders in a folder structure. (FLD_FOLDER_SEARCH)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
q | query | The search query which is used to filter content items. | No | string |
fields | query | A comma separated list of metadata fields to return. By default, metadata fields are returned. | No | string |
orderBy | query | The sort field and sort order which will be used to arrange the filtered content items. | No | string |
limit | query | The maximum number of items listed per page. | No | integer |
offset | query | Specifies the point from which items are listed for the response. | No | integer |
Responses
Code | Description | Schema |
---|---|---|
200 | Successfully returned the search results | FoldersSearchResultsResponse |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | GeneralErrorResponse |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
Search for 4 folders in the Secure
security group and only return 3 specific fields.
Request
GET …/documents/wcc/api/v1.1/folders/search/items
Request Body
Query Parameters: itemType=Folder & q=fSecurityGroup <matches> `Secure` & fields=fFolderGUID, fSecurityGroup, fCreateDate & limit=4
HTTP Response
Status = 200
Body
Expand Body
{
"itemType": "Folder",
"q": " fSecurityGroup LIKE 'Secure' AND ((fLibraryType != '2' OR fLibraryType IS NULL)) AND ((fLibraryType != '3' OR fLibraryType IS NULL)) AND ((UPPER(fFolderName) != UPPER('Trash') OR (UPPER(fFolderName) IS NULL))) AND ((UPPER(fFolderName) != UPPER('_REAL_ITEMS') OR (UPPER(fFolderName) IS NULL))) AND ((fIsInTrash != '1' OR fIsInTrash IS NULL)) ",
"count": 4,
"hasMore": true,
"totalCount": 16,
"orderBy": "fFolderName:Asc",
"offset": 0,
"limit": 4,
"startRow": 0,
"nextRow": 4,
"dataSource": "FldFolders",
"searchEngineName": "DATABASE.METADATA.FOLDERS",
"items": [
{
"fFolderGUID": "802062EE2F5EC5A3E2DAAA27B72D14CD",
"fCreateDate": "2024-07-07 12:08:50Z",
"fSecurityGroup": "Secure"
},
{
"fFolderGUID": "81D398B26CCA513DD66AC0315F3949FD",
"fCreateDate": "2024-07-07 12:08:52Z",
"fSecurityGroup": "Secure"
},
{
"fFolderGUID": "4B8EB5A37E29FA7752A58EAE2D2C0236",
"fCreateDate": "2024-07-24 06:39:40Z",
"fSecurityGroup": "Secure"
},
{
"fFolderGUID": "8FD8B4C33F4C5ACB3A7B25820AA6CFBE",
"fCreateDate": "2024-07-24 06:39:50Z",
"fSecurityGroup": "Secure"
}
]
}
Users
Get Permission Information
GET /documents/wcc/api/v1.1/users/permissions
Description
Get a list of permissions that the current user has for the securityGroups and documentAccounts. (GET_USER_PERMISSIONS)
Responses
Code | Description | Schema |
---|---|---|
200 | Successfully returned the user permissions info. | UserPermissionResponse |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
List all the permissions a user has.
Request
GET …/documents/wcc/api/v1.1/users/permissions
Request Body
None
HTTP Response
Status = 200
Body
Expand Body
{
"dName": "weblogic",
"securityGroups": [
{
"dGroupName": "Public",
"privilege": "15"
},
{
"dGroupName": "RecordsGroup",
"privilege": "15"
},
{
"dGroupName": "Reservation",
"privilege": "15"
},
{
"dGroupName": "Secure",
"privilege": "15"
}
],
"userSecurityFlags": [
{
"flag": "IsAdmin",
"value": "1"
},
{
"flag": "AdminAtLeastOneGroup",
"value": "1"
},
{
"flag": "IsSubAdmin",
"value": "1"
},
{
"flag": "IsSysManager",
"value": "1"
},
{
"flag": "IsContributor",
"value": "1"
},
{
"flag": "ActAsAnonymous",
"value": "0"
}
]
}
Pages
Get Custom Fields
GET /documents/wcc/api/v1.1/pages/displayFields
Description
Get information about custom metadata fields for different content server pages. (GET_DISPLAY_FIELDS)
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
dpAction | query | The type of action; must be one of: •CheckinNew •CheckinSel •CheckinSimilar •Info •Update •Search •FLDMetadataUpdate •FLDMetadataInfo |
Yes | string |
dID | query | Required when dpAction is: •CheckinSel •CheckinSimilar •Info •Update. |
Sometimes | integer |
fFolderGUID | query | Required when dpAction is:•FLDMetadataUpdate •FLDMetadataInfo |
Sometimes | String |
dpTriggerValue | query | The trigger value that will be used to load a profile. | No | string |
Responses
Code | Description | Schema |
---|---|---|
200 | Successfully returned the DisplayFields information. | CustomFieldsResponse |
400 | Bad request | GeneralErrorResponse |
401 | Unauthorized | |
403 | User is not allowed to take this action | |
500 | The server encountered an unexpected condition that prevented it from fulfilling the request | GeneralErrorResponse |
Example
List display fields for the Search
action.
Request
GET …/documents/wcc/api/v1.1/pages/displayFields
Request Body
Query Parameters: dpAction = Search
HTTP Response
Status = 200
Body
Expand Body
{
"displayFieldInfo": [
{
"fieldName": "dOriginalName",
"fieldType": "Text",
"fieldLabel": "Name",
"fieldLength": "255",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "1",
"requiredMsg": "Please specify a file name.",
"defaultValue": null,
"displayValue": null,
"isOptionList": null,
"isTreeOptionList": null,
"optionList": null,
"optionListType": null,
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "5",
"decimalScale": null,
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "dDocName",
"fieldType": "Text",
"fieldLabel": "Content ID",
"fieldLength": "100",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "0",
"requiredMsg": null,
"defaultValue": null,
"displayValue": null,
"isOptionList": null,
"isTreeOptionList": null,
"optionList": null,
"optionListType": null,
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "10",
"decimalScale": null,
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "dDocType",
"fieldType": "Text",
"fieldLabel": "Type",
"fieldLength": "30",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "1",
"requiredMsg": "Please specify a type.",
"defaultValue": "Document",
"displayValue": "Document - Any generic document",
"isOptionList": "1",
"isTreeOptionList": null,
"optionList": "dDocType.options",
"optionListType": "choice",
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "20",
"decimalScale": null,
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "dDocTitle",
"fieldType": "Text",
"fieldLabel": "Title",
"fieldLength": "255",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "1",
"requiredMsg": "Please specify a title.",
"defaultValue": null,
"displayValue": null,
"isOptionList": null,
"isTreeOptionList": null,
"optionList": null,
"optionListType": null,
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "30",
"decimalScale": null,
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "dDocAuthor",
"fieldType": "Text",
"fieldLabel": "Author",
"fieldLength": "200",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "1",
"requiredMsg": "Please specify an author.",
"defaultValue": "weblogic",
"displayValue": "weblogic",
"isOptionList": "1",
"isTreeOptionList": null,
"optionList": "dDocAuthor.options",
"optionListType": "choice",
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "40",
"decimalScale": null,
"isError": "0",
"errorMsg": null,
"isUserName": "1"
},
{
"fieldName": "dSecurityGroup",
"fieldType": "Text",
"fieldLabel": "Security Group",
"fieldLength": "30",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "1",
"requiredMsg": "Please specify a security group.",
"defaultValue": null,
"displayValue": null,
"isOptionList": "1",
"isTreeOptionList": null,
"optionList": "dSecurityGroup.options",
"optionListType": "choice",
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "50",
"decimalScale": null,
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "primaryFile",
"fieldType": "File",
"fieldLabel": "Primary File",
"fieldLength": null,
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "1",
"requiredMsg": "Please specify a primary file.",
"defaultValue": null,
"displayValue": null,
"isOptionList": null,
"isTreeOptionList": null,
"optionList": null,
"optionListType": null,
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "100",
"decimalScale": null,
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "alternateFile",
"fieldType": "File",
"fieldLabel": "Alternate File",
"fieldLength": null,
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "0",
"requiredMsg": null,
"defaultValue": null,
"displayValue": null,
"isOptionList": null,
"isTreeOptionList": null,
"optionList": null,
"optionListType": null,
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "110",
"decimalScale": null,
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "dRevLabel",
"fieldType": "Text",
"fieldLabel": "Revision",
"fieldLength": "10",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "1",
"requiredMsg": "Please specify a revision label.",
"defaultValue": "1",
"displayValue": "1",
"isOptionList": null,
"isTreeOptionList": null,
"optionList": null,
"optionListType": null,
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "200",
"decimalScale": null,
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "dInDate",
"fieldType": "Date",
"fieldLabel": "Release Date",
"fieldLength": "20",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "1",
"requiredMsg": "Please specify a release date.",
"defaultValue": "5/21/24 11:45 PM",
"displayValue": "5/21/24 11:45 PM",
"isOptionList": null,
"isTreeOptionList": null,
"optionList": null,
"optionListType": null,
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "1000",
"decimalScale": null,
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "dOutDate",
"fieldType": "Date",
"fieldLabel": "Expiration Date",
"fieldLength": "20",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "0",
"requiredMsg": null,
"defaultValue": null,
"displayValue": null,
"isOptionList": null,
"isTreeOptionList": null,
"optionList": null,
"optionListType": null,
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "1010",
"decimalScale": null,
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "xComments",
"fieldType": "Memo",
"fieldLabel": "Comments",
"fieldLength": "2000",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "0",
"requiredMsg": null,
"defaultValue": null,
"displayValue": null,
"isOptionList": null,
"isTreeOptionList": null,
"optionList": null,
"optionListType": null,
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "5001",
"decimalScale": null,
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "xIdcProfile",
"fieldType": "Text",
"fieldLabel": "Profile",
"fieldLength": "30",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "0",
"requiredMsg": null,
"defaultValue": null,
"displayValue": null,
"isOptionList": "1",
"isTreeOptionList": null,
"optionList": "xIdcProfile.options",
"optionListType": "choice",
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "5006",
"decimalScale": null,
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "xTemplateType",
"fieldType": "Text",
"fieldLabel": "Template Type",
"fieldLength": "30",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "0",
"requiredMsg": null,
"defaultValue": null,
"displayValue": null,
"isOptionList": "1",
"isTreeOptionList": null,
"optionList": "xTemplateType.options",
"optionListType": "choice",
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "5040",
"decimalScale": null,
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "xParentFolders",
"fieldType": "Memo",
"fieldLabel": "Parent Folder",
"fieldLength": null,
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "0",
"requiredMsg": null,
"defaultValue": null,
"displayValue": null,
"isOptionList": null,
"isTreeOptionList": null,
"optionList": null,
"optionListType": null,
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "5100",
"decimalScale": null,
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "xTestField2",
"fieldType": "Text",
"fieldLabel": "TestField2",
"fieldLength": "30",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "0",
"requiredMsg": null,
"defaultValue": null,
"displayValue": null,
"isOptionList": "1",
"isTreeOptionList": "1",
"optionList": "xTestField2.options",
"optionListType": "choice",
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": "/",
"treeNodeStorageSeparator": "/",
"order": "20010",
"decimalScale": "1",
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "xTestMetadata",
"fieldType": "Text",
"fieldLabel": "TestMetadata",
"fieldLength": "30",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "0",
"requiredMsg": null,
"defaultValue": null,
"displayValue": null,
"isOptionList": "1",
"isTreeOptionList": null,
"optionList": "xTestMetadata.options",
"optionListType": "combo",
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "20011",
"decimalScale": "1",
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "xTestRelField",
"fieldType": "Text",
"fieldLabel": "TestRelField",
"fieldLength": "30",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "0",
"requiredMsg": null,
"defaultValue": null,
"displayValue": null,
"isOptionList": "1",
"isTreeOptionList": "1",
"optionList": "xTestRelField.options",
"optionListType": "choice",
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": "/",
"treeNodeStorageSeparator": "/",
"order": "20012",
"decimalScale": "1",
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "xTestUseView",
"fieldType": "Text",
"fieldLabel": "TestUseView",
"fieldLength": "30",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "0",
"requiredMsg": null,
"defaultValue": null,
"displayValue": null,
"isOptionList": "1",
"isTreeOptionList": "1",
"optionList": "xTestUseView.options",
"optionListType": "choice",
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": "/",
"treeNodeStorageSeparator": "/",
"order": "20013",
"decimalScale": "1",
"isError": "0",
"errorMsg": null,
"isUserName": "0"
},
{
"fieldName": "xtestUseView1",
"fieldType": "Text",
"fieldLabel": "testUseView1",
"fieldLength": "30",
"isHidden": "0",
"isReadOnly": "0",
"isRequired": "0",
"requiredMsg": null,
"defaultValue": null,
"displayValue": null,
"isOptionList": "1",
"isTreeOptionList": null,
"optionList": "xtestUseView1.options",
"optionListType": "choice",
"isDependent": "0",
"dependentOnField": null,
"isPadMultiselectStorage": "0",
"multiselectStorageSeparator": null,
"multiselectDisplaySeparator": null,
"isShowSelectionPath": "0",
"isStoreSelectionPath": "0",
"treeNodeDisplaySeparator": null,
"treeNodeStorageSeparator": null,
"order": "20014",
"decimalScale": "1",
"isError": "0",
"errorMsg": null,
"isUserName": "0"
}
],
"dDocType.options": [
{
"dOption": "Application",
"dDescription": "Application - Files owned by Content Server applications"
},
{
"dOption": "Binary",
"dDescription": "Binary - Executables, zip files, etc"
},
{
"dOption": "DigitalMedia",
"dDescription": "DigitalMedia - Audio, video, and images"
},
{
"dOption": "Document",
"dDescription": "Document - Any generic document"
},
{
"dOption": "RetentionCategory",
"dDescription": "wwDocTypeDesc_RetentionCategory"
},
{
"dOption": "System",
"dDescription": "System - System configuration, templates, settings"
}
],
"xTemplateType.options": [
{
"dOption": "HC Template",
"dDescription": "HTML Conversion Template"
},
{
"dOption": "GUI Template",
"dDescription": "Classic HTML Conversion Template"
},
{
"dOption": "Layout Template",
"dDescription": "Classic HTML Conversion Layout"
},
{
"dOption": "Script Template",
"dDescription": "Script Template"
},
{
"dOption": "Viewer Cache Template",
"dDescription": "Viewer Cache Template"
}
],
"dDocAuthor.options": [
{
"dOption": "LCMUser",
"dDescription": "LCMUser"
},
{
"dOption": "OracleSystemUser",
"dDescription": "OracleSystemUser"
},
{
"dOption": "sysadmin",
"dDescription": "sysadmin"
},
{
"dOption": "weblogic",
"dDescription": "weblogic"
}
],
"dSecurityGroup.options": [
{
"dOption": "Public",
"dDescription": "Public"
},
{
"dOption": "RecordsGroup",
"dDescription": "RecordsGroup"
},
{
"dOption": "Reservation",
"dDescription": "Reservation"
},
{
"dOption": "Secure",
"dDescription": "Secure"
}
]
}
Models
GeneralErrorResponse
General error response
Name | Type | Description | Required |
---|---|---|---|
type | string | A link that describes the type of error. | No |
title | string | A brief summary error message. | No |
detail | string | Details about the error from the server. The service StatusMessage . |
No |
errorKey | string | When the error comes from the service layer, the service StatusMessageKey |
No |
o:errorCode | number | When the error comes from the service layer, the service StatusCode |
No |
ResubmitConflictErrorResponse
Resubmit Conflict 409 Response
Name | Type | Description | Required |
---|---|---|---|
type | string | https://www.rfc-editor.org/rfc/rfc9110.html#name-409-conflict | No |
title | string | Unable to resubmit. | No |
detail | string | Unable to resubmit content item. The content item is not in a failed conversion state. | No |
errorKey | string | !csUnableToResubmitItem2!csResubmitNotFailed | No |
o:errorCode | number | -1 | No |
MetadataChangeObjectParameter
The following fields are examples of what can be changed as metadata for a content item. Other fields may be allowed.
Name | Type | Description | Required |
---|---|---|---|
dDocType | string | The type of document | No |
dDocTitle | string | The title of the document | No |
dRevLabel | string | The revision of the document | No |
dSecurityGroup | string | The security group of the document | No |
dDocName | string | The id of the document | No |
dDocAuthor | string | The author of the document | No |
xComments | string | String comments about the document | No |
MetadataObjectResponse
The following fields are examples of what can be returned as metadata for a content item.
Name | Type | Description | Required |
---|---|---|---|
dDocType | string | The type of document | No |
dDocTitle | string | The title of the document | No |
dRevLabel | string | The revision of the document | No |
dSecurityGroup | string | The security group of the document | No |
dDocName | string | The id of the document | No |
dDocAuthor | string | The author of the document | No |
dStatus | string | This field is a summary field of computations from other status fields. | No |
dOriginalName | string | The document file name | No |
dFormat | string | The document mime type | No |
dFileSize | number | The document filesize (in bytes) | No |
dDocCreatedDate | string | The date and time the document was first uploaded into the server in ISO-8601 format | No |
dDocCreator | string | The user who originally created the document | No |
dDocLastModifiedDate | string | The date and time any revision of the document was last modified in ISO-8601 format | No |
dDocLastModifier | string | The last user to modify the document | No |
MetadataVersionsResponse
The response returning the metadata for all versions of a document.
Name | Type | Description | Required |
---|---|---|---|
dDocName | string | The id of the document | No |
count | number | The number of versions returned | No |
dRevLabelLatest | string | The latest revision of this document | No |
items | array MetadataObjectResponse | An array of metadata objects for each revision | No |
SearchResultsResponse
The response returning search results.
Name | Type | Description | Required |
---|---|---|---|
count | number | The number of documents returned. | No |
hasMore | boolean | When false, all the results for the search are returned. | No |
offset | number | The offset when used to return a limited number of search results. | No |
totalResults | number | The total number of documents that satisfy the search. | No |
limit | number | The maximum number of items listed. | No |
q | string | The search query used to generate this response. | No |
orderBy | string | The sort field and sort order used to generate this response. | No |
pageNumber | number | The page number of items in the response (useful in pagination). | No |
numPages | number | The total number of pages returned. | No |
totalRows | number | The total number of rows returned. | No |
startRow | number | The start row number of items returned. |
No |
endRow | number | The end row number of items returned. |
No |
items | array MetadataObjectResponse | An array of metadata objects for documents that meet the search query. | No |
WorkInProgressResponse
The response returning work in progress.
Name | Type | Description | Required |
---|---|---|---|
count | number | The number of documents returned. | No |
hasMore | boolean | When false, all the results are returned. | No |
offset | number | The offset when used to return a limited number of search results. | No |
totalResults | number | The total number of documents that satisfy the search. | No |
limit | number | The maximum number of items listed. | No |
orderBy | string | The sort field and sort order used to generate this response. | No |
pageNumber | number | The page number of items in the response (useful in pagination). | No |
repository | string | The name of the repository. | No |
computedSearchEngineName | string | The name of the search engine. | No |
items | array MetadataObjectResponse | An array of metadata objects for documents that are in work in progress. | No |
FolderBrowseResponse
The response when browsing a folder.
Name | Type | Description | Required |
---|---|---|---|
numFolders | number | The number of folders in the folder. | No |
hasMoreChildFolders | number | This is 1 if the request did not return all of the child folders. This occurs when folderCount is reached and there are additional folders that could have been returned. |
No |
numFiles | number | The number of files in the folder. | No |
totalChildFoldersCount | number | The total number of folders in the parent folder. | No |
totalChildFilesCount | number | The total number of files in the parent folder. | No |
hasMoreChildFiles | number | This is 1 if the request did not return all of the child files. This occurs when fileCount is reached and there are additional documents that could have been returned. |
No |
hasMoreChildItems | number | This is 1 if the request did not return all of the child items (folders+files). This occurs when count is reached and there are additional items that could have been returned. |
No |
folderPath | string | The path for folder. | No |
folderInfo | FileInfoObject | Information about the folder. | No |
childFolders | An array of FileInfoObject | An array of information about all folders that exist in the folder. | No |
childTargetFolders | An array of FileInfoObject | An array of information about all folder targets that exist in the folder. | No |
childFiles | FileInfoObject | Information about all files in the folder. | No |
FolderInfoResponse
The response for folder information.
Name | Type | Description | Required |
---|---|---|---|
folderPath | string | The path to the folder. | No |
targetPath | string | If the path is a shortcut, the path to the target folder. | No |
folderInfo | FolderInfoObject | The information about the folder. | No |
targetInfo | FolderInfoObject | If the path is a shortcut, the information about the target folder. | No |
FileInfoResponse
The response for file information.
Name | Type | Description | Required |
---|---|---|---|
filePath | string | The path to the file. | No |
fileInfo | FileInfoObject | The information about the file. | No |
FolderInfoObject
Folder information.
Name | Type | Description | Required |
---|---|---|---|
fFolderGUID | string | The folder GUID. | No |
fParentGUID | string | The GUID of the parent folder | No |
fFolderName | string | The folder name. | No |
fFolderType | string | The folder type. Can be owner for created folders or soft for shortcuts. |
No |
fInhibitPropagation | number | A bitmap used to determine restrictions on files/folders from propagating values from its parent. The bitmap includes: 0 - inhibit propagation is set to none indicating values can be inherited from parent 1 - inhibit propagation for metadata indicating metadata is not inherited from parent 16 - inhibit propagation for folder security indicating folder security is not inherited from parent 17 - inhibit propagation for metadata and folder security |
No |
fPromptForMetadata | number | Indicates how to prompt for metadata; if 0 then do not need to prompt for metadata. |
No |
fIsContribution | number | When 1 , items can be contributed to the folder. |
No |
fIsInTrash | number | When 1 the folder is in the trash. |
No |
fRealItemGUID | string | The folder actual GUID. | No |
fLibraryType | number | The library type. accepted values are: 0 - not a library folder 1 - enterprise library folder 2 - application library folder 3 - system library folder |
No |
fIsLibrary | number | When 1 the folder is a Library Folder. |
No |
fDocClasses | string | The list folder classes. | No |
fTargetGUID | string | If the folder is a shortcut, the target GUID | No |
fApplication | string | The folder application. | No |
fOwner | string | The owner of the folder. | No |
fCreator | string | The creator of the folder. | No |
fLastModifier | string | The last modifier on the folder | No |
fCreateDate | string | The date the folder was created in ISO-8601 format. | No |
fLastModifiedDate | string | The date the folder was modified in ISO-8601 format. | No |
fSecurityGroup | string | The folder security group. | No |
fDocAccount | string | The folder account. | No |
fClbraUserList | string | The folder collaboration user list. | No |
fClbraAliasList | string | The folder collaboration alias list. | No |
fClbraRoleList | string | The folder collaboration role list. | No |
fFolderDescription | string | The folder description. | No |
fChildFoldersCount | number | The number of folders in the folder. | No |
fChildFilesCount | number | The number of files in the folder. | No |
fFolderSize | number | The number of bytes the folder uses. | No |
fAllocatedFolderSize | number | The number of bytes allocated to the folder. If the limit was not set, -1 is used. |
No |
fAllocatorParentFolderGUID | string | The GUID of the parent folder the allocation effects. | No |
fApplicationGUID | string | The folder application GUID | No |
fIsReadOnly | number | When 1 the folder is read only. |
No |
fIsACLReadOnlyOnUI | number | When 1 the folder should be displayed as read only. |
No |
fDisplayName | string | The folder display name. | No |
fDisplayDescription | string | The folder display description. | No |
fIsBrokenShortcut | number | When 1 the shortcut broken. |
No |
isLeaf | string | When 1 the folder is a leaf. |
No |
itemType | string | The folder type; the value 1 is a folder, 2 is a file, and 3 is a document. |
No |
folderPermissions | string | The user permissions on the folder; can be none, or a combination of R ead, W rite, D elete or A ccess. |
No |
FileInfoObject
File information and the metadata associated with the file, fields from MetadataObjectResponse can be included in this object.
Name | Type | Description | Required |
---|---|---|---|
fFileGUID | string | The file GUID. | No |
fParentGUID | string | The parent GUID of the file. | No |
fTargetGUID | string | The GUID of the target file. | No |
fFileName | string | The file name of the file. | No |
fPublishedFileName | string | The file name when published. | No |
fFolderType | string | The folder type. Can be owner for created folders or soft for shortcuts. |
No |
fIsInTrash | number | When 1 the file is in the trash. |
No |
fRealItemGUID | string | The actual file GUID. | No |
fDocClass | string | The file class. | No |
fInhibitPropagation | number | A bitmap used to determine restrictions on files/folders from propagating values from its parent. The bitmap includes: 0 - inhibit propagation is set to none indicating values can be inherited from parent 1 - inhibit propagation for metadata indicating metadata is not inherited from parent 16 - inhibit propagation for folder security indicating folder security is not inherited from parent 17 - inhibit propagation for metadata and folder security |
No |
fApplication | string | The file application. | No |
fOwner | string | The owner of the file. | No |
fCreator | string | The creator of the file. | No |
fLastModifier | string | The last modifier of the file | No |
fCreateDate | string | The date the file was created in ISO-8601 format. | No |
fLastModifiedDate | string | The date the file was modified in ISO-8601 format. | No |
fSecurityGroup | string | The file security group. | No |
fDocAccount | string | The file account. | No |
fClbraUserList | string | The file collaboration user list. | No |
fClbraAliasList | string | The file collaboration alias list. | No |
fClbraRoleList | string | The file collaboration role list. | No |
fIsACLReadOnlyOnUI | number | When 1 the file should be displayed as read only. |
No |
fDisplayName | string | The file display name. | No |
fDisplayDescription | string | The file display description. | No |
fIsBrokenShortcut | number | When 1 the shortcut broken. |
No |
isLeaf | string | When 1 the folder is a leaf. |
No |
itemType | string | The folder type; the value 1 is a folder, 2 is a file, and 3 is a document. |
No |
folderPermissions | string | The user permissions on the folder; can be none, or a combination of R ead, W rite, D elete or A ccess. |
No |
WorkflowInfoResponse
The response for a content item in a workflow.
Name | Type | Description | Required |
---|---|---|---|
dWfName | string | The name of the workflow. | No |
dWfStepID | number | The unique id of a step within the workflow. | No |
remainingStepUsers | string | A list of usernames that need to act on the workflow step | No |
dName | string | The author of the document in a workflow. | No |
authorAddress | string | The E-mail address of the author. | No |
doc_info | MetadataObjectResponse | The metadata of the document. | No |
workflowInfo | WorkflowObject | The metadata of the workflow. | No |
wf_doc_info | WorkflowDocumentObject | Additional workflow metadata. | No |
workflowStep | WorkflowStepObject | The current workflow step. | No |
workflowSteps | An array of WorkflowStepObject | An array of all workflow steps for this document. | No |
workflowStepEvents | WorkflowStepEventObject | The workflow events | No |
workflowActionHistory | WorkflowActionObject | The workflow action history. | No |
WorkflowInformationResponse
The response for workflow information.
Name | Type | Description | Required |
---|---|---|---|
workflow | WorkflowObject | The metadata of the workflow. | No |
workflowSteps | An array of WorkflowStepObject | An array of all workflow steps for this workflow. | No |
workflowStepEvents | WorkflowStepEventObject | The workflow events. | No |
wfDocuments | An array of WorkflowDocumentObject | The content items associated with this workflow. | No |
WorkflowInformationRevisionsResponse
The response for content item revisions that are in the workflow.
Name | Type | Description | Required |
---|---|---|---|
wf_info | WorkflowObject | The workflow metadata. | No |
workflowSteps | An array of WorkflowStepObject | An array of all workflow steps for this document. | No |
workflowStates | An array of WorkflowStateObject | An array of workflow states. | No |
wfDocuments | An array of WorkflowMetaDocumentObject | An array of content item metadata objects in the workflow | No |
WorkflowActiveResponse
The response for active workflows.
Name | Type | Description | Required |
---|---|---|---|
count | number | The number of active workflows | No |
items | An array of WorkflowObject | An array of active workflows. | No |
WorkflowObject
The following fields describe a workflow.
Name | Type | Description | Required |
---|---|---|---|
dWfID | number | Unique counter id of the workflow. | No |
dWfName | string | User assigned name of the workflow. | No |
dWfDescription | string | Description of the Workflow. | No |
dCompletionDate | string | Date workflow last reached completion and all docs were released to web in ISO-8601 format. | No |
dSecurityGroup | string | Security Group the workflow belongs to (dSecurityGroup). | No |
dWfStatus | string | State of the workflow: INIT = not started or inactive INPROCESS = active |
No |
dWfType | string | Type of the workflow: Basic Criteria Sub-workflow |
No |
dProjectID | string | If set this workflow is a staging workflow. | No |
dIsCollaboration | number | When 1 the workflow is related to Collaboration Project. |
No |
WorkflowStepObject
The following fields describe steps in workflows.
Name | Type | Description | Required |
---|---|---|---|
dWfStepID | number | Incrementing counter used to uniquely identify step within the workflow. | No |
dWfStepName | string | The name of workflow step assigned by user. | No |
dWfID | number | Unique counter id of the workflow. | No |
dWfStepDescription | string | Description of the Workflow step. | No |
dWfStepType | string | Workflow Step type (AutoContribution, Contribution, Reviewer/Contribution, Reviewer). | No |
dWfStepIsAll | number | If requires all users to approve (1 or 0). | No |
dWfStepHasWeight | number | Enables the limited reviewer option. | No |
dWfStepWeight | number | The number of users to approve if dWfStepIsAll is false(0). | No |
dWfStepIsSignature | number | Determines whether signature is required for the current workflow step. This is “1” if signature is required (which requires “ElectronicSignatures” to be enabled), “0” otherwise. | No |
dAliases | string | The list of alias users. | No |
WorkflowStepEventObject
The following fields describe steps in workflows.
Name | Type | Description | Required |
---|---|---|---|
dWfStepName | string | Name of workflow step assigned by user. | No |
wfEntryScript | string | The step entry script. | No |
wfExitScript | string | The step exit script. Must be placed within <$ and $> delimiters. | No |
wfUpdateScript | string | The step update script. Must be placed within <$ and $> delimiters. | No |
WorkflowDocumentObject
The following fields describe documents in a workflow.
Name | Type | Description | Required |
---|---|---|---|
dWfID | number | Unique counter id of the workflow. | No |
dDocName | string | dDocName of the content item part of the workflow. | No |
dWfDocState | string | Current state of the workflow: INIT = not started or inactive INPROCESS = active |
No |
dWfComputed | string | Derived workflow information. | No |
dWfCurrentStepID | number | Unique identifier of step that the workflow is in. | No |
dWfDirectory | string | Location of the workflow document’s companion file. | No |
dClbraName | string | Collaboration Project Name. | No |
WorkflowMetaDocumentObject
The following fields describe documents in a workflow.
Name | Type | Description | Required |
---|---|---|---|
dWfID | number | Unique counter id of the workflow. | No |
dDocName | string | dDocName of the content item part of the workflow. | No |
dWfDocState | string | Current workflow state of document (INIT = workflow not active, INPROCESS = workflow active) | No |
dWfComputed | string | Derived workflow information. | No |
dWfCurrentStepID | number | Unique identifier of step that the workflow is in. | No |
dWfDirectory | string | Location of the workflow document’s companion file. | No |
dClbraName | string | Collaboration Project Name. | No |
dDocType | string | The type of document | No |
dDocTitle | string | The title of the document | No |
dRevLabel | string | The revision of the document | No |
dSecurityGroup | string | The security group of the document | No |
dDocName | string | The id of the document | No |
dDocAuthor | string | The author of the document | No |
dStatus | string | This field is a summary field of computations from other status fields. | No |
dOriginalName | string | The document file name | No |
dFormat | string | The document mime type | No |
dFileSize | number | The document filesize (in bytes) | No |
dDocCreatedDate | string | The date and time the document was first uploaded into the server in ISO-8601 format | No |
dDocCreator | string | The user who originally created the document | No |
dDocLastModifiedDate | string | The date and time any revision of the document was last modified in ISO-8601 format | No |
dDocLastModifier | string | The last user to modify the document | No |
WorkflowStateObject
The following fields describe workflow states of document.
Name | Type | Description | Required |
---|---|---|---|
dID | number | Revision Identifier of the document. | No |
dDocName | string | dDocName of the document part of the workflow. | No |
dWfID | number | Unique counter id of the workflow. | No |
dUserName | string | User that has approved document. | No |
dWfEntryTs | number | The entry timestamp(in ISO-8601 format) for a user into a particular step in the workflow. | No |
WorkflowActionObject
The following fields describe workflow action on content from corresponding HDA file in data\workflow\states
directory.
Name | Type | Description | Required |
---|---|---|---|
dWfName | string | Workflow name. | No |
dWfStepName | string | Workflow Step Name. | No |
wfAction | string | Action performed at the Step. | No |
wfActionTs | string | Action Time in ISO-8601 format. | No |
wfUsers | string | Workflow Step Users. | No |
wfMessage | string | Workflow Message at the step. | No |
WorkflowInQueueResponse
The response for the workflow in queue.
Name | Type | Description | Required |
---|---|---|---|
count | number | The number of items returned. | No |
hasMore | boolean | If false all items have been returned. |
No |
numPages | number | The number of pages the queue items can be returned. | No |
pageNumber | number | The page number of the search results returned. | No |
totalRows | number | The total number of workflow items in queue for the user. | No |
startRow | number | The start row in the workflow queue. | No |
endRow | number | The last row in the workflow queue.” | No |
items | array | Each entry is a composite of fields from WorkflowInQueueObject, WorkflowStepObject, and MetadataObjectResponse | No |
WorkflowInQueueObject
The following fields describe a workflow queue.
Name | Type | Description | Required |
---|---|---|---|
dUser | string | The user to which the document assigned in workflow. | No |
dDocName | string | The dDocName of the document in workflow. | No |
dID | number | The revision identifier of the document in workflow. | No |
dWfID | number | Unique counter id of the workflow. | No |
dWfName | string | User assigned name of the workflow. | No |
dWfStepName | string | The name of workflow step assigned by user. | No |
dwfQueueActionState | string } The workflow action state. | No | |
dwfQueueEnterTs | string | The workflow entry time in ISO-8601 format. | No |
dwfQueueLastActionTs | string | The timestamp when the last workflow action performed on the document in ISO-8601 format. | No |
wfMessage | string | The workflow message for the step. | No |
fIsFavorite | number | Indicates if the item is a favorite item. Applicable only when Frameworkfolders enabled. | No |
UserPermissionResponse
The response is used for user permissions information.
Name | Type | Description | Required |
---|---|---|---|
dName | string | The name of user. | No |
documentAccounts | An array of UserAccountObject | An array of accounts and privileges. | No |
securityGroups | An array of UserGroupObject | An array of security groups and privileges. | No |
userSecurityFlags | An array of UserSecurityFlagObject | An array of security flags. | No |
UserAccountObject
The following fields describe an account and the privilege for the account.
Name | Type | Description | Required |
---|---|---|---|
dDocAccount | string | The account the user has access to. | No |
privilege | string | The privilege level corresponding for the account. | No |
UserGroupObject
The following fields describe a group and the privilege for the security group.
Name | Type | Description | Required |
---|---|---|---|
dGroupName | string | The security group the user has access to. | No |
privilege | string | The privilege level corresponding for the security group. | No |
UserSecurityFlagObject
The following fields describe security group and values.
Name | Type | Description | Required |
---|---|---|---|
flag | string | The flags related to the security group. | No |
value | string | The value set for of this flag. | No |
CustomFieldsResponse
The response is used for display fields information.
Name | Type | Description | Required |
---|---|---|---|
displayFieldInfo | An array of DisplayFieldInfoObject | An array of custom metadata fields information. | No |
displayGroupInfo | An array of DisplayFieldGroupObject | An array showing how metadata fields can be grouped together. | No |
xFieldName.options | An array of DisplayFieldDropDownObject | An array showing how options can be used to create drop-down lists for specific fields. Note that xFieldName is the name custom metadata field, and the responses may include multiple arrays. |
No |
DisplayFieldInfoObject
The following fields describe a custom metadata field.
Name | Type | Description | Required |
---|---|---|---|
fieldName | string | The name of the field. | No |
fieldType | string | The type of field. | No |
fieldLabel | string | The display label for the field. | No |
fieldLength | string | The length of the field allowed. | No |
isHidden | string | When 1 the field should be a hidden form field. |
No |
isReadOnly | string | When 1 the field should be a non-input form field. |
No |
isRequired | string | When 1 the field should be a required form field. |
No |
requiredMsg | string | The message displayed if required field is not populated. | No |
defaultValue | string | The default value for the field. | No |
displayValue | string | The display value to be used for the defaultValue . |
No |
isOptionList | string | When 1 the field is a drop-down option list. |
No |
optionList | string | If isOptionList is set to 1 ; the name of the additional table containing the options used to create the drop-down list. |
No |
isTreeOptionList | string | When 1 the option list is using a tree. |
No |
optionListType | string | The type of option list. | No |
isDependent | string | When 1 the field is part of DCL. The value of this field depends on another field. |
No |
dependentOnField | string | When 1 the name of the field that will derive the value for this field. |
No |
isPadMultiselectStorage | string | Used by option list of type multi*. | No |
multiselectDisplaySeparator | string | Used by option list of type multi*. | No |
multiselectStorageSeparator | string | Used by option list of type multi*. | No |
isShowSelectionPath | string | When 1 show the full path. The full path appears on the Info Page. |
No |
isStoreSelectionPath | string When 1 store the full path in the database. |
No | |
treeNodeDisplaySeparator | string | The character that must be used to display the separators. | No |
treeNodeStorageSeparator | string | The character that must be used as a separator when the path is saved in the database. | No |
order | string | The order of the field. | No |
decimalScale | string | The decimalScale if the field allows decimal values. | No |
isError | string | When 1 there was an error when retrieving information about a field. |
No |
errorMsg | string | The field’s error message. | No |
DisplayFieldGroupObject
The following fields describe a custom metadata field grouping.
Name | Type | Description | Required |
---|---|---|---|
parentField | string | The name of the field that should appear first in the group. | No |
groupFieldList | string | The list of fields that should appear together with the parent field. | No |
groupHeader | string | The name of the group. | No |
defaultHide | string | When 1 the group should be collapsed by default. |
No |
DisplayFieldDropDownObject
The following fields describe the options that a custom metadata uses to create a drop-down list.
Name | Type | Description | Required |
---|---|---|---|
dOption | string | The internal value of the option. | No |
dDescription | string | The display value of the option. | No |
DataSourceResponse
The following fields describe the query of a data source.
Name | Type | Description | Required |
---|---|---|---|
copyAborted | number | When true, the request does not return all rows from the query. | No |
nextRow | number | The number of the next row in the query. | No |
count | number | The number of rows returned. | No |
items | array | The query results. The fields will vary based on the data source used. | No |
FoldersSearchResultsResponse
The response returning search results for items in folders.
Name | Type | Description | Required |
---|---|---|---|
count | number | The number of documents returned. | No |
hasMore | boolean | When false, all the results for the search were returned. | No |
offset | number | The offset when used to return a limited number of search results. | No |
totalResults | number | The total number of documents that satisfy the search. | No |
limit | number | The maximum number of items listed. | No |
q | string | The search query used to generate this response. | No |
orderBy | string | The sort field and sort order used to generate this response. | No |
startRow | number | The start row number of items returned. |
No |
endRow | number | The end row number of items returned. |
No |
nextRow | number | The number of the next row in the query. | No |
itemType | string | The item type; the value 1 is a folder, 2 is a file, and 3 is a document. |
No |
dataSource | string | The dataSource used for generating search results. | No |
searchEngineName | string | The name of search engine used. | No |
items | array of either FolderInfoObject or FileInfoObject | An array of metadata objects for documents that meet the search query. | No |
REST API for Oracle WebCenter Content
G15551-02
Last updated: February 2025
Copyright © 2025, Oracle and/or its affiliates.
Primary Author: Oracle Corporation