The REST API "create space" request returns a 404 response.

I’m having trouble executing the API to create a space. Even though I’m using an API token from an account that has the necessary permissions to create spaces, the request is returning a 404 Not Found error.

create space

Here are the points I’ve already checked during my troubleshooting:

  • Whether the user is correctly specified
  • Whether the API token includes the necessary scope for creating spaces

Despite confirming these, the API still returns a 404 error.

I’m able to create spaces via the web GUI, so I’m not sure why it doesn’t work through the API.

Could someone please help me?

Hello @AtsukiSambo

A 404 Not Found error infers the request iself is invalid (IE, there is a fault with the request path / structure / parameter value etc). That error has nothing to do with whether or not the token or the user has the relevant scope or permissions; permissions faults cause 401 Unauthorized errors.

You need to provide a COMPLETE description of your problem, which includes how you’re making the request, the actual code of the request itself, what testing you’ve done with your API test tool etc, etc, etc.

Refer to the How to ask a good question thread for an overview of the minimum that’s expected.