I'm just trying to create a space, but I can't figure out the right request. The endpoint I'm using is https://<my-company>.atlassian.net/wiki/api/v2/spaces and I'm using a POST request.
My first request had the following body:
Body = @{
key = "YTST"
name = "YuliTest"
} | ConvertTo-Jsonand that resulted in a 404. The documentation says that 404 means the user does not have permissions, but I then logged in with the user whose token I'm using and created a space through the portal, so I guess it's not a permissions issue.
Anyone have any ideas? I also tried adding a description, but that also resulted in a 404:
Body = @{
key = "YTST"
name = "YuliTest"
description = @{
value = "created by automation"
representation = "plain"
}
} | ConvertTo-Json