REST Interface for BPEL-related Task Resources - Business Category Resource - POST Method

Use this method to create a new business category.

Sample method invocation

POST /rest/bpm/htm/v1/businessCategory[?parentBusinessCategory={string}][&locale={string}]

Parameters

Optional Parameters
NameValue TypeDescription
parentBusinessCategory string
Parent business category ID.
locale string
Locale for description and displayName. Valid values are either standard language, country and variant specifications (for example "en", "en-US", "en-US-WIN") or the constant "default". If this parameter is omitted then the setting from the HTTP request header is used.

Request Content

Business category definition.

The default content-type is application/json.

MIME Type: application/json


Schema
{  "description": "Business Category Definition", 
   "type": "object",
   "properties":
   {
      "customText1": {"type": "string", "optional": true, 
         "description": "The custom text specified as custom text one."
      },
      "customText2": {"type": "string", "optional": true, 
         "description": "The custom text specified as custom text two."
      },
      "customText3": {"type": "string", "optional": true, 
         "description": "The custom text specified as custom text three."
      },
      "customText4": {"type": "string", "optional": true, 
         "description": "The custom text specified as custom text four."
      },
      "customText5": {"type": "string", "optional": true, 
         "description": "The custom text specified as custom text five."
      },
      "customText6": {"type": "string", "optional": true, 
         "description": "The custom text specified as custom text six."
      },
      "customText7": {"type": "string", "optional": true, 
         "description": "The custom text specified as custom text seven."
      },
      "customText8": {"type": "string", "optional": true, 
         "description": "The custom text specified as custom text eight."
      },
      "defaultQueryTable": {"type": "string", "optional": true,
         "description": "Default Query Table for business categories."
      },
      "description": {"type": "string", "optional": true,
         "description": "Description of the business category."
      },
      "displayName": {"type": "string", "optional": true,
         "description": "Display name of the business category."
      },
      "jndiNameOfStaffPluginProvider": {"type": "string", "optional": true,
         "description": "JNDI name of a user-defined people directory configuration. Needs to be provided only if peopleAssignments are used and no global default has been set."
      },
      "name": {"type": "string",
         "description": "The name of the business category."
      },
      "peopleAssignment": {"type":
         [
            {  "assignmentReason": {"type": "string",
                  "description": "The reason for the assignment.",
                  "enum":
                  [
                     "REASON_READER"                           
                  ]
               },
               "assignmentType": {"type": "string",
                  "description": "Type of the people assignment.",
                  "enum":
                  [
                    "TYPE_GROUP_MEMBERS_AND_USERS",
                    "TYPE_ORGANIZATIONAL_ENTITY",
                    "TYPE_EVERYBODY"
                  ]
               },
               "users": {"type": ["string"], "optional": true,
                  "description": "List of assigned users."
               },
               "groups": {"type": ["string"], "optional": true,
                  "description": "List of assigned groups."
               }
            }
         ], "optional": true
      },
      "priority": {"type": "integer", "optional": true,
         "description": "The priority of the business category."
      }, 
      "substitutionPolicy": {"type": "string", "optional": true, 
         "description": "The substitution policy that takes place when people assignments are performed. The default is SUBSTITUTION_POLICY_NO_SUBSTITUTION.",
         "enum":
         [
            "SUBSTITUTION_POLICY_NO_SUBSTITUTION",
            "SUBSTITUTION_POLICY_SUBSTITUTE_IF_ABSENT",
            "SUBSTITUTION_POLICY_SELECT_USER_IF_PRESENT"
         ]
      }
   }
}

Response Content

Business category details.

The default content-type is application/json.

MIME Type: application/json

Business category.


Schema
{  "description": "Business Category", 
   "type": "object",
   "properties":
   {
      "bcid": {"type": "string",
         "description": "The ID of the business category."
      },
      "creationTime":  {"type": "string", "format": "date-time",
         "description": "Time when the business category has been created."
      },
      "customText1": {"type": "string", 
         "description": "The custom text specified as custom text one."
      },
      "customText2": {"type": "string", 
         "description": "The custom text specified as custom text two."
      },
      "customText3": {"type": "string", 
         "description": "The custom text specified as custom text three."
      },
      "customText4": {"type": "string", 
         "description": "The custom text specified as custom text four."
      },
      "customText5": {"type": "string", 
         "description": "The custom text specified as custom text five."
      },
      "customText6": {"type": "string", 
         "description": "The custom text specified as custom text six."
      },
      "customText7": {"type": "string", 
         "description": "The custom text specified as custom text seven."
      },
      "customText8": {"type": "string", 
         "description": "The custom text specified as custom text eight."
      },
      "defaultQueryTable": {"type": "string",
         "description": "Default Query Table for business categories."
      },
      "description": {"type": "string",
         "description": "Description of the business category."
      },
      "displayName": {"type": "string",
         "description": "Display name of the business category."
      },
      "jndiNameOfStaffPluginProvider": {"type": "string",
         "description": "JNDI name of a user-defined people directory configuration."
      },
      "lastModificationTime":  {"type": "string", "format": "date-time",
         "description": "Last time a property of the business category has been changed."
      },
      "name": {"type": "string",
         "description": "The name of the business category."
      },
      "parentID": {"type": "string",
         "description": "The ID of the parent the business category."
      },
      "priority": {"type": "integer",  
         "description": "The priority of the business category."
      }, 
      "substitutionPolicy": {"type": "string", 
         "description": "The substitution policy that takes place when people assignments are performed.",
         "enum":
         [
            "SUBSTITUTION_POLICY_NO_SUBSTITUTION",
            "SUBSTITUTION_POLICY_SUBSTITUTE_IF_ABSENT",
            "SUBSTITUTION_POLICY_SELECT_USER_IF_PRESENT"
         ]
      }
   }
}

Error Response Content

Detailed error information.

The default content-type is application/json.

MIME Type: application/json


Schema
{  "description": "Error Response", 
   "type": "object",
   "properties":
   {  "errorNumber": {"type": "string",
         "description": "Message ID of the exception."
      },
      "errorMessage": {"type": "string",
         "description": "Message text of the exception."
      },
      "errorMessageParameters": {"type": ["string"], "optional": true,
         "description":"Message text parameters of the exception."
      },
      "programmersDetails": {"type": "object", "optional": true,
         "description":"Additional, exception details, for example, a stack trace."
      }
   }
} 

Status codes

The method returns one of the following status codes:
CodeDescription
200 OKSuccess completion.
400 Bad RequestThe parameters are not valid or they are missing.
401 UnauthorizedThe caller is not authorized for this request.
404 Not Found
The parent business category does not exist.
406 Not AcceptableThe requested content type or content encoding is not supported.
415 Unsupported Media TypeThe content type or content encoding of the request is not supported.
500 Internal Server ErrorA severe problem has occurred. Programmer's details are provided.

Available since

7.0 Feature Pack

Parent topic: Business Category Resource