Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

creating a confluence space, using a json?

alguien sabe si existe el cuerpo en formato json para crear un espacio en confluence ?

1 answer

Hi @Victor Daniel Tobon Carrizosa 

What you need is an example of a JSON or with the parameters that must be included in it, is it enough? because on the API documentation page you have the information:

https://developer.atlassian.com/cloud/confluence/rest/api-group-space/#api-api-space-post

If it serves as an example:

{ 
"key":"MRKT",
"name":"Marketing",
"type":"global",
"description":
{
"plain":
{
"value": "Marketing Test",
"representation": "plain"
}
}
}

I hope it helps you

Greetings

Hello @Paloma Fondon Araujo

Thanks for answering, what I require is an example of the Json since I will use it to create a space automatically.

Hi @Victor Daniel Tobon Carrizosa 

As an idea, if you already have that space created in confluence, and it is the one you are going to use as a template, you can make a Rest API call and use the "GET space" method (https://your-domain.atlassian.net/wiki/rest/api/space/{spaceKey}), it will return a JSON that you can later use for that automatic creation.

I hope it helps you.
Greeting

Hi @Paloma Fondon Araujo ,

 

I managed to obtain the JSON data with the Api, which you provided, but when trying to create the space it returns the following failure 415 , do you have any suggestions?SOLICITUD.jpgPost.jpg

Hi @Victor Daniel Tobon Carrizosa 

In the POST call are you sending the ID? If so, try making the call without the ID parameter.


Greetings

HI @Paloma Fondon Araujo

Now I managed to create the confluence space, now I am putting a smart variable so that this value can be taken as the KEY for said space.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

26 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you