Recent searches
No recent searches
How do you specify brand when creating an article via API?
Answered
Posted Oct 30, 2023
I'd like to create articles using the API but we use multi-brand and I'd like to control which brand(s) the article is published to.
If I want to target a specific brand, is it possible identify which one? It seems like you may be able to specify the brand from the section, permission, and group IDs in the URL, e.g. "/sections/098765094438?brand_id=34234789".
If you are able to create an article in a specific brand, are you able to create in two brands using an array, or would you need to use a separate call?
1
2
2 comments
mfg
Thanks Paolo - I'm using a client that was referencing only the end point, not the full URL. This is very helpful. I don't think this is included in the Dev API reference documentation under themes, it may be helpful to others to add a note about this end point / full URL difference .
0
Paolo
If you'd like to create an article depending on the brand, you can change the URL of the API request. For example, you have two brands.
Brand 1: brand1.zendesk.com (default brand)
Brand 2: brand2.zendesk.com
If you want to create an article for Brand 2, use
POST https://brand2.zendesk.com/api/v2/help_center{/locale}/sections/{section_id}/articles
As for the array, unfortunately, we do not have an endpoint for that. You will have to create separate API calls.
Best,
Paolo | Technical Support Engineer | Zendesk
1
Sign in to leave a comment.