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

FieldData TypeDescription
nameStringName of the custom attribute.
customAttributeValues.valueStringValues of the custom attributes values.
descriptionString(Optional) Description of the custom attributes.
customAttributeValues.descriptionString(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"
}