Topics
List, add, update, and delete the topics that organize advocacy board content.
Topics let advocates filter and discover content that matches their interests and expertise. Content creators assign topics to messages and stories on the board, and advocates use topics to find relevant content to share on their social channels. Use these endpoints to create, manage, and organize topics for your advocacy program.
Topics work with both message-based and story-based boards.
List Topics
Retrieve all topics, optionally filtered by board or name.
GET /v2/board-topic
Parameters
Prop
Type
See Pagination for shared behavior.
Example Request
curl -X GET "https://api.oktopost.com/v2/board-topic" \
-u ACCOUNT_ID:API_KEYExample Response
{
"Result": true,
"Items": [
{
"Id": "tpc000000000001",
"Name": "Blog",
"BoardId": "brd000000000001",
"Used": 0,
"Subscribers": 0,
"LastUsedDate": "2020-11-01 07:57:07",
"CustomFields": []
},
{
"Id": "tpc000000000002",
"Name": "Canada",
"BoardId": "brd000000000001",
"Used": 0,
"Subscribers": 0,
"LastUsedDate": "2020-11-03 02:56:52",
"CustomFields": []
},
{
"Id": "tpc000000000003",
"Name": "Summer",
"BoardId": "brd000000000002",
"Used": 0,
"Subscribers": 0,
"LastUsedDate": "2020-11-07 07:10:44",
"CustomFields": []
},
{
"Id": "tpc000000000004",
"Name": "Information",
"BoardId": "brd000000000002",
"Used": 2,
"Subscribers": 2,
"LastUsedDate": "2020-10-01 23:47:31",
"CustomFields": [
{
"FieldId": "0CF000000000001",
"FieldName": "Department",
"Options": [
{
"ID": "0CO000000000001",
"Value": "Marketing"
}
]
}
]
}
],
"Total": 4
}Prop
Type
Add Topic
Add a topic to a board.
POST /v2/board-topic
When you create a topic, advocates on the board see a notification to subscribe to it the next time they log in.
Parameters
Prop
Type
Example Request
curl -X POST "https://api.oktopost.com/v2/board-topic" \
-u ACCOUNT_ID:API_KEY \
-d boardId=brd000000000001 \
-d name="Product News"Example Response
{
"Result": true,
"BoardTopic":
{
"Id": "tpc000000000005",
"Created": "2020-10-01 23:47:31",
"Modified": "2020-10-01 23:47:31",
"AccountId": "001000000000001",
"BoardId": "brd000000000001",
"CreatedBy": "00A000000000001",
"Name": "Product News",
"Color": "#2D9CDB",
"Texture": "",
"Position": 4,
"LastUsedDate": "2020-10-01 23:47:31"
}
}Update Topic
Rename a topic.
POST /v2/board-topic/:topicId
Parameters
Prop
Type
Example Request
curl -X POST "https://api.oktopost.com/v2/board-topic/tpc000000000001" \
-u ACCOUNT_ID:API_KEY \
-d name="Company Blog"Example Response
{
"Result": true,
"BoardTopic":
{
"Id": "tpc000000000001",
"Created": "2020-09-01 10:00:00",
"Modified": "2020-11-01 07:57:07",
"AccountId": "001000000000001",
"BoardId": "brd000000000001",
"CreatedBy": "00A000000000001",
"Name": "Company Blog",
"Color": "#2D9CDB",
"Texture": "",
"Position": 0,
"LastUsedDate": "2020-11-01 07:57:07"
}
}Delete Topic
Delete a topic.
DELETE /v2/board-topic/:topicId
Parameters
Prop
Type
Example Request
curl -X DELETE "https://api.oktopost.com/v2/board-topic/tpc000000000001" \
-u ACCOUNT_ID:API_KEY