Skip to content
Back

Unable to create Sites or Functions with custom compute via Server SDK

  • 0
  • Sites
  • Functions
  • Cloud
๐”ธ๐•๐•จ๐•’๐•ง๐•–๐Ÿ˜๐ŸŸ โœจ
29 May, 2026, 12:20

Heya, I was looking at the appwrite documentation for Sites API with the server api: https://appwrite.io/docs/references/cloud/server-nodejs/sites

I canโ€™t find the Compute options? Is it possible to have that? It would be amazing if you could

Same for functions: https://appwrite.io/docs/references/cloud/server-nodejs/functions

Maybe I am messing something.

TL;DR
Unable to create Sites or Functions with custom compute via Server SDK. To automate, use `sites.listSpecifications()`. To hard-code, copy values from Specification.php on GitHub.
๐”ธ๐•๐•จ๐•’๐•ง๐•–๐Ÿ˜๐ŸŸ โœจ
29 May, 2026, 12:20

@Meldiron Would you like to help me out?

Meldiron
29 May, 2026, 12:36

Heyy, it lives here: https://appwrite.io/docs/references/cloud/server-nodejs/sites#update Under sites.update, params:

  • buildSpecification
  • runtimeSpecification
Meldiron
29 May, 2026, 12:36

Be aware, it's PUT request, so you will need to pass all existing details (you can easily sites.get() them all

Meldiron
29 May, 2026, 12:36

Curious, what's the term you used to search by? Maybe we can improve param description to make it clearer.

๐”ธ๐•๐•จ๐•’๐•ง๐•–๐Ÿ˜๐ŸŸ โœจ
29 May, 2026, 12:48

I was looking for the term compute or specifications, it didnโ€™t mention the syntax or what it meant so I assumed it meant something else

๐”ธ๐•๐•จ๐•’๐•ง๐•–๐Ÿ˜๐ŸŸ โœจ
29 May, 2026, 12:49

Thanks for the help, if I need for example 2 CPU 2 GB ram or 4 CPU 4 GB ram what would it look like?

๐”ธ๐•๐•จ๐•’๐•ง๐•–๐Ÿ˜๐ŸŸ โœจ
29 May, 2026, 12:51

Maybe it can be more clear about what each thing means and an example

Meldiron
29 May, 2026, 13:06

cc <@822500146658017292> , valid feedback for docs

Meldiron
29 May, 2026, 13:07

You can do sites.listSpecifications(), if you need to automate this.

Or if you want to hard-code, simply copy value from here: https://github.com/appwrite/appwrite/blob/49bf24d388dced9ae3b36cbb11a9febbbc3d6b63/src/Appwrite/Platform/Modules/Compute/Specification.php#L15

๐”ธ๐•๐•จ๐•’๐•ง๐•–๐Ÿ˜๐ŸŸ โœจ
29 May, 2026, 13:17

Thanks! So it will be written as: buildSpecification: โ€™s-4vcpu-4gbโ€™, for example right?

๐”ธ๐•๐•จ๐•’๐•ง๐•–๐Ÿ˜๐ŸŸ โœจ
29 May, 2026, 21:04

Thanks, this is great!

Atharva
1 Jun, 2026, 05:43

let me see how i can make the docs more intelligent about this ๐Ÿช„

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more