Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 1

Graphql API for Topics

Hello, 

 

I'm trying to add the topic using graphql and it's not working. Can you please help me with the correct syntax. Following is the sample mutation request I'm sending. 

 

 

mutation{
acceptTopicSuggestion(input:{
name: "testing-topics",
repositoryId: "Repo-id-here"
} )
{
topic{
node{
id,
name,
relatedTopics
viewerHasStarred
}
}
}
}