Create Instance of a Custom Object

Creates an instance for a custom object.

 

URL

{RMUrl}/api/objects/<ObjectVariableName>

 

REQUEST METHOD

POST

 

URL PARAMETER

ObjectVariableName: This parameter is provided in the URL and does not need to be sent through POST.

 

FORM CONTENT

See the return for the Attributes call of a custom object to view which types of attributes are associated with the object in question.

Relationship-type attributes can be referenced by the ID field, the Caption field, or both. If both fields are provided, they must refer to the same object. It is recommended to use the ID field whenever possible. If it is a Relationship with Knowledge Base attribute, only the latest published version of the knowledge base should be associated. See Appendix 2: Format for Completing Attributes for the list of formats for the ID and Caption fields.

For more information on the types of attributes available for the object in question, see Modulo Risk Manager Features -> 9. Custom Objects -> List Custom Object Attributes.

 

REQUEST EXAMPLE

{RMUrl}/api/objects/book

 

FORM CONTENT EXAMPLE

Create a new instance for "book" objects:

{

"Name":"The Little Prince",

"ISBN":" 0152465030",

"Author":"Antoine de Saint-Exupery"

}

 

SUCCESS RESPONSE

The code of the new instance. Returns a guid.