Custom Properties
Custom properties allow you to add custom fields to resources in your workspace. Learn more about custom properties here.
Get all custom properties in the workspace.
List of custom properties
Internal server error
GET /api/v1/resource/all_v2/custom_properties/ HTTP/1.1
Host: api.secoda.co
Authorization: Bearer string
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"entity_types": [
"text"
]
}
]
Create a new custom property in the workspace.
Custom property created successfully
Internal server error
POST /api/v1/resource/all_v2/custom_properties/ HTTP/1.1
Host: api.secoda.co
Authorization: Bearer string
Content-Type: application/json
Accept: */*
Content-Length: 60
{
"name": "text",
"entity_types": [
"all"
],
"value_type": "string"
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"entity_types": [
"text"
]
}
Get details of a specific custom property.
Custom property details
Custom property not found
Internal server error
GET /api/v1/resource/all_v2/custom_properties/{custom_property_id} HTTP/1.1
Host: api.secoda.co
Authorization: Bearer string
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"entity_types": [
"text"
]
}
Update an existing custom property.
Custom property updated successfully
Custom property not found
Internal server error
PUT /api/v1/resource/all_v2/custom_properties/{custom_property_id} HTTP/1.1
Host: api.secoda.co
Authorization: Bearer string
Content-Type: application/json
Accept: */*
Content-Length: 60
{
"name": "text",
"entity_types": [
"all"
],
"value_type": "string"
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"entity_types": [
"text"
]
}
Delete a custom property.
Custom property deleted successfully
Custom property not found
Internal server error
DELETE /api/v1/resource/all_v2/custom_properties/{custom_property_id} HTTP/1.1
Host: api.secoda.co
Authorization: Bearer string
Accept: */*
No content
Update the value of a custom property for a specific entity.
The ID of the custom property
The ID of the entity
Custom property value updated successfully
Invalid value type
Custom property or entity not found
Internal server error
PUT /api/v1/resource/all_v2/custom_properties/{custom_property_id}/{entity_id} HTTP/1.1
Host: api.secoda.co
Authorization: Bearer string
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"value": "text"
}
No content
Update custom property values for multiple entities in a single request. To bulk delete custom property values, set their values to an empty string ("").
List of entity IDs to update
["550e8400-e29b-41d4-a716-446655440000","7c9e6679-7425-40de-944b-e07fc1f90ae7"]
Custom property values updated successfully
Invalid value type for one or more properties
User does not have permission to update entities
One or more entities or custom properties not found
Internal server error
PUT /api/v1/resource/all_v2/bulk_update/custom_properties/ HTTP/1.1
Host: api.secoda.co
Authorization: Bearer string
Content-Type: application/json
Accept: */*
Content-Length: 185
{
"entity_ids": [
"550e8400-e29b-41d4-a716-446655440000",
"7c9e6679-7425-40de-944b-e07fc1f90ae7"
],
"properties": {
"550e8400-e29b-41d4-a716-446655440000": "value1",
"My%20Custom%20Property": ""
}
}
No content
Was this helpful?