Custom Properties
Was this helpful?
Was this helpful?
Custom properties allow you to add custom fields to resources in your workspace. Learn more about custom properties here.
Get details of a specific custom property.
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"
]
}
Delete a custom property.
DELETE /api/v1/resource/all_v2/custom_properties/{custom_property_id} HTTP/1.1
Host: api.secoda.co
Authorization: Bearer string
Accept: */*
No content
Get all custom properties in the workspace.
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.
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"
]
}
Update an existing custom property.
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"
]
}
Update the value of a custom property for a specific entity.
The ID of the custom property
The ID of the entity
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"]
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