curl --request PATCH \ --url https://app.getcensus.com/api/v1/sources/{source_id}/topics/{topic_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "NewAppUsers", "sample_message": { "name": "Jill", "id": "1", "email": "Jill@foo.com" }, "description": "Users that have signed up for our product in the last week."}'
Copy
Ask AI
{ "status": "updated", "data": { "id": 18, "name": "NewAppUsers", "description": "Users that have signed up for our product in the last week.", "created_at": "2021-10-20T02:43:07.120Z", "updated_at": "2021-10-20T02:50:35.477Z", "schema": { "name": "string", "id": "number", "email": "string" } }}
Topics
Update topic
Update certain values of a specified topic
PATCH
/
sources
/
{source_id}
/
topics
/
{topic_id}
Update topic
Copy
Ask AI
curl --request PATCH \ --url https://app.getcensus.com/api/v1/sources/{source_id}/topics/{topic_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "NewAppUsers", "sample_message": { "name": "Jill", "id": "1", "email": "Jill@foo.com" }, "description": "Users that have signed up for our product in the last week."}'
Copy
Ask AI
{ "status": "updated", "data": { "id": 18, "name": "NewAppUsers", "description": "Users that have signed up for our product in the last week.", "created_at": "2021-10-20T02:43:07.120Z", "updated_at": "2021-10-20T02:50:35.477Z", "schema": { "name": "string", "id": "number", "email": "string" } }}