How to add Custom Properties to Organization.

Appxite

Introduction

This article explains how to add custom properties to Organizations using the API. Understanding this process will help you extend Organization data with custom fields to support your business requirements and integrate with external systems.

Prerequisites

Before adding custom properties to Organizations, ensure that:

  • You have custom property templates defined with ObjectType "Organization"
  • You have the Organization ID for the target Organization
  • You have a valid Bearer token for authorization
  • You have your platform URL for the Referer header
  • You know the available template IDs and their valid values

API endpoint details

Path Variables:
  • organizationId: The ID of the Organization you would like to add custom properties for
Headers:
  • Referer: Your platform URL
  • Authorization: Bearer token
Response:

204 No Content - No response body will be returned upon successful request

Request structure

The request body should be a JSON object containing:

  • OrganizationId: The Organization ID
  • ObjectType: "Organization" (required)
  • CustomProperties: Array of custom property objects

Each custom property object includes:

  • CustomPropertiesTemplateId: The template ID for the custom property
  • Value: The value for the custom property (must match available options defined by the template)

Important requirements

When adding custom properties to Organizations, ensure the following:

1. ObjectType is required: The value "Organization" for the ObjectType field is required in all requests.
2. Valid template ID: The value for CustomPropertiesTemplateId must match an available template for this Organization.
3. Valid property value: The value for Value must be in the available options defined by the template. Not all templates allow free-form text; some require selecting from predefined options.

Example request

Scenario: You want to add custom property values for an Organization with ID 652482A2-B28B-4009-8338-8879E8F0C766. You're adding a value for a "Test List" property template and another custom property.

Request Body (JSON)
{
  "OrganizationId": "652482A2-B28B-4009-8338-8879E8F0C766",
  "ObjectType": "Organization",
  "CustomProperties": [
    {
      "CustomPropertiesTemplateId": "0AB1535A-146D-4191-9A85-03F9777FE74A",
      "Value": "Item1"
    },
    {
      "CustomPropertiesTemplateId": "{{some other template id}}",
      "Value": "{{value}}"
    }
  ]
}

In this example:

  • The first custom property uses template ID 0AB1535A-146D-4191-9A85-03F9777FE74A with value "Item1"
  • The second custom property uses a different template ID with its corresponding value
  • Both values must be valid according to their respective template definitions

Summary

To add custom properties to Organizations, send a POST request to the customproperties API endpoint with the Organization ID, ObjectType set to "Organization", and an array of custom property objects. Each custom property requires a valid CustomPropertiesTemplateId that matches an available template for the Organization, and a Value that conforms to the options defined by that template. The API returns a 204 No Content response upon success with no response body. Ensure you have custom property templates defined with ObjectType "Organization" and know the valid values for each template before making requests.

Was this article helpful?

0 out of 1 found this helpful

Add comment

Please sign in to leave a comment.