Create custom attribute type and values of a tenant
This endpoint is used to create a custom attribute type and the list of values for a tenant
URL
POST https://{api-url}/api/v2/tenants/{tenantId}/customAttributes
Sample URLs
https://{api-url}/api/v2/tenants/client_1/customAttributes
https://{api-url}/api/v2/tenants/msp_1/customAttributes
Parameters
Field | Data Type | Description |
---|
name | String | Name of the custom attribute. |
customAttributeValues.value | String | Values of the custom attributes values. |
description | String | (Optional) Description of the custom attributes. |
customAttributeValues.description | String | (Optional) Values of the custom attributes values. |
Sample request
{
"name": "custom_attr_type_for_tenant",
"description": "creating custom_type for tenant-create",
"customAttributeValues": [{
"value": "test_val_1_for_custom_attr_type_for_sp_1",
"description": "creating first value for tenant create"
},
{
"value": "test_val_2_for_custom_attr_type_for_sp_2",
"description": "creating second value for s tenant update"
}
]
}
Sample response
{
"id": 1,
"name": "custom_attr_type_for_tenant",
"description": "creating custom_type for tenant-create"
}