Custom Objects
Authorization: Bearer
The type slug of the custom object (e.g. "companies").
Pagination cursor for the next page.
Number of results per page. Defaults to 25, max 100.
The request was invalid or could not be completed.
An unexpected internal error occurred.
GET /custom-objects/{type} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"created_at": "text",
"custom_fields": {
"priority": {
"value": "high"
}
},
"id": "text",
"name": "text",
"relations": [
{
"object_id": "text",
"object_type": "text"
}
],
"type": "text",
"updated_at": "text"
}
],
"pagination": {
"cursor": "text",
"has_next_page": true
},
"request_id": "text"
}Authorization: Bearer
The type slug of the custom object (e.g. "companies").
The ID of the custom object.
An unexpected internal error occurred.
GET /custom-objects/{type}/{id} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": {
"created_at": "text",
"custom_fields": {
"priority": {
"value": "high"
}
},
"id": "text",
"name": "text",
"relations": [
{
"object_id": "text",
"object_type": "text"
}
],
"type": "text",
"updated_at": "text"
},
"request_id": "text"
}Authorization: Bearer
The type slug of the custom object (e.g. "companies").
The cursor to use for pagination.
The number of results to fetch. Defaults to 25, max 100.
The request was invalid or could not be completed.
An unexpected internal error occurred.
POST /custom-objects/{type}/search HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 173
{
"cursor": "text",
"filter": {
"field": "text",
"operator": "equals",
"subfilters": [
{
"field": "state",
"operator": "equals",
"value": "new"
}
],
"value": "text",
"values": [
"text"
]
},
"limit": 1
}{
"data": [
{
"created_at": "text",
"custom_fields": {
"priority": {
"value": "high"
}
},
"id": "text",
"name": "text",
"relations": [
{
"object_id": "text",
"object_type": "text"
}
],
"type": "text",
"updated_at": "text"
}
],
"pagination": {
"cursor": "text",
"has_next_page": true
},
"request_id": "text"
}Authorization: Bearer
The type slug of the custom object (e.g. "companies").
The name of the custom object.
The request was invalid or could not be completed.
An unexpected internal error occurred.
POST /custom-objects/{type} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"custom_fields": {
"account": {
"value": "account_uuid"
}
},
"name": "text"
}{
"data": {
"created_at": "text",
"custom_fields": {
"priority": {
"value": "high"
}
},
"id": "text",
"name": "text",
"relations": [
{
"object_id": "text",
"object_type": "text"
}
],
"type": "text",
"updated_at": "text"
},
"request_id": "text"
}Authorization: Bearer
The type slug of the custom object (e.g. "companies").
The ID of the custom object.
The name of the custom object.
The request was invalid or could not be completed.
An unexpected internal error occurred.
PATCH /custom-objects/{type}/{id} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"custom_fields": {
"account": {
"value": "account_uuid"
}
},
"name": "text"
}{
"data": {
"created_at": "text",
"custom_fields": {
"priority": {
"value": "high"
}
},
"id": "text",
"name": "text",
"relations": [
{
"object_id": "text",
"object_type": "text"
}
],
"type": "text",
"updated_at": "text"
},
"request_id": "text"
}Authorization: Bearer
The type slug of the custom object (e.g. "opportunity").
The IDs of the custom objects to update. Must be between 1 and 100 IDs.
The request was invalid or could not be completed.
An unexpected internal error occurred.
PATCH /custom-objects/{type} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"custom_fields": {
"priority": {
"value": "high"
}
},
"ids": [
"text"
]
}{
"request_id": "text",
"success": true,
"updated_ids": [
"text"
]
}Authorization: Bearer
The type slug of the custom object (e.g. "companies").
The ID of the custom object.
An unexpected internal error occurred.
DELETE /custom-objects/{type}/{id} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"request_id": "text"
}Last updated
Was this helpful?

