Highlights
APIs for adding highlights on accounts.
Last updated
Was this helpful?
APIs for adding highlights on accounts.
Last updated
Was this helpful?
Was this helpful?
The ID of the account that the highlight belongs to.
The HTML content for this highlight.
Optional RFC3339 timestamp of when this highlight will expire.
POST /accounts/{account_id}/highlights HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"content_html": "text",
"expires_at": "text"
}
{
"data": {
"account_id": "text",
"content_html": "text",
"created_at": "text",
"expires_at": "text",
"id": "text",
"updated_at": "text"
},
"request_id": "text"
}
The ID of the highlight to update.
The ID of the account that the highlight belongs to.
The updated HTML content for this highlight.
The updated expires at timestamp (RFC3339).
PATCH /accounts/{account_id}/highlights/{highlight_id} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"content_html": "text",
"expires_at": "text"
}
{
"data": {
"account_id": "text",
"content_html": "text",
"created_at": "text",
"expires_at": "text",
"id": "text",
"updated_at": "text"
},
"request_id": "text"
}
The ID of the account that the highlight belongs to.
The ID of the highlight to delete.
DELETE /accounts/{account_id}/highlights/{highlight_id} HTTP/1.1
Host: api.usepylon.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": {
"success": true
},
"request_id": "text"
}