Skip to main content
Ask a Question
APIsMigration
Frances Silva
Lead Developer
Asked a question last month

How to migrate content to your Tribe community using API?

Where am I?

In Tribe you can ask and answer questions and share your experience with others!

Hi Frances,

Thank you for your question! Please find the detailed information below: -

  1. First step would be to authenticate your access and there are several ways how that can be achieved. To know more about, please refer to our article “Authentication using Tribe API” by clicking here5.
  2. Once your access is authenticated, it will generate an access token.
  3. Once you have the access token, copy it and add it to the header. Please find the format below: -

   Key                              Value                  
 Authorization                   Bearer<space>Access token 

How to migrate content  to your Tribe community using API?

     

     4. Once added, please move to the “raw” section under Body and select JSON format. Once selected, add            the following parameters in JSON format: -

{

 "title": "The title of the post "

"content": "The content of the post "

"type": "The type of the post(post, question, discussion"

}

How to migrate content  to your Tribe community using API?

    

    5. Lastly, select “POST” as the request type and insert “https://Your-community-URL/api/v1/users”9                       (Replace “Your-community-URL” with your own community URL)  

    6. Once you hit send, and if you followed all the steps, it will create a user for you with the status “200 OK”

 

Here are some of the optional fields that you can use basis your needs : -

ParameterTypeDescription
imagesArrayAn array of urls pointing to the images attached to this post (Only works with simple post type)
filesArrayAn array of urls pointing to the files attached to this post (Only works with simple post type)
parentStringThe ID of the parent post
replyToStringThe ID of the post to reply
groupStringThe ID of the group to post


If you receive an error code, you can read about it, here- Error Codes10
 

To know about several other API endpoints, please click here3