Loading ...

Create Content API - Tags within a group | Communifire Support

Home » Spaces » Communifire Support » forum » Communifire API & Developers » Create Content API - Tags within a group
Communifire Support

Leave Space :

Are you sure you want to leave this space?

Join this space:

Join this space?

Add a new tab

Add a hyperlink to the space navigation. You can link to internal or external web pages. Enter the Tab name and Tab URL. Upload or choose an icon. Then click Save.

The name that will appear in the space navigation.
The url can point to an internal or external web page.
Login to follow, share, and participate in this space.
Don’t have a support community login?Create your account now
Posted in: Communifire API & Developers

Create Content API - Tags within a group

Subscribe to RSS
  • Hi,

    I'm creating a content which can have a Tags which exists within a group. I wanted to know how can I pass this tag in the TagsCsv field while creating the content.

    Now I'm passing the tag name but this name also there in general tags so it always picks that tag. Is there any possible way to tag by ID instead of passing the name while creating the content?

    I have tags like below, division-03-concrete is also there in the general tag (ID different). Please suggest.

     

    Thanks,

    Sasi

  • Foster

    Hi Sasikala,

    Can you identify which API call specifically you are using while making these updates? 

    Thanks,
    Foster

  • I'm using API to create content  and my json will look like below

    POST: /api/content

    {
    ContentTitle: title,
    ContentBody: description,
    ContentSummary: title,
    MetaDescription: contentStub,
    SpaceID: spaceID,
    CategoryID:Cid,
    ParentCategoryID:PCid,
    AuthorID: D_userid,
    AuthorUserName: D_userName,
    UpdatedByUserDisplayName: D_userName,
    TagsCSV: tags,
    EntityType: 3
    }; 

  • Hi,

    Basically I wanted to know how can I specify a Tag within a Tag groups in TagsCsv while creating a Content.

    Thanks

  • Hi,

    I have just seen this is not working while adding/editing an article. Our problem is after creating the article/content which is tagged with a Tag Group item when we search them with tag group those are not listing.

    Please let me know if any clarification needed.

    Thanks

  • Foster

    Hi Sasikala,

    We will look further into this for you. In the meantime, is it possible to upload individual tags to the content you are modifying?

    Thanks,
    Foster

  • Hi,

    Add Tags API also not accepting the Tag Ids. Please help

    Thanks,

    Sathya

  • Hey Sasikala,

    To differentiate between tags when making the POST /api/content call, add TagsIDCSV to the content JSON. Enter a list of tag IDs that matches the order in TagsCSV.

    You can get tag group tag IDs using GET /api/taggroups/list?fetchtags=true.

    A JSON example using TagsIDCSV is below.

    {
      "EntityType": 9,
      "SpaceID": 4,
      "ContentTitle": "Jupiter Facts",
      "ContentBody": "Jupiter is the fifth planet from the Sun and the largest in the Solar System.",
      "TagsCSV": "jupiter,solar-system",
      "TagsIDCSV": "67,69"
    }

    Grace

  • Hi Grace,

    Thanks for the update! Before even raising this ticket I tried with this option but that doesn't work either.

    Could you please let me know if any other option is available?

    Thanks

  • Hi Sasikala,

    Could you share the JSON you used including TagsIDCSV which did not work for you?

    Grace

  • Hi Grace,

    Here you go 

    {

       "ContentTitle":"Test article",
       "ContentBody":"<p>Test</p>",
       "ContentSummary":"Test article",
       "MetaDescription":"Safety::false:::JobName||",
       "SpaceID":146,
       "CategoryID":830,
       "ParentCategoryID":-1,
       "AuthorID":"908",
       "AuthorUserName":"alligatortek alligatortek\n                ",
       "UpdatedByUserDisplayName":"alligatortek alligatortek\n                ",
       "TagsIDCSV":"1669,",
       "EntityType":3

    }

    Thanks

  • Hi Sasikala,

    Try using TagsCSV and TagsIDCSV. Make sure the ID list order matches the tag list order.

    Grace

  • Hi Grace, 

    I tried the same but only the Tag which was not under group gets added to the Content and not the actual id I passed.

    Please if we can have a call to discuss this further.

    POST Content Request

    {
        "ContentTitle":"Alligatortek Test",
        "ContentBody":"<p>test</p>",
        "ContentSummary":"Alligatortek Test",
        "MetaDescription":"Safety::false:::JobName||",
        "SpaceID":146,"CategoryID":830,
        "ParentCategoryID":-1,
        "AuthorID":"908",
        "AuthorUserName":"alligatortek alligatortek\n               &