POST to the API with fields

automation & ci

// what it does

-F key=value builds a JSON body (nested via dot paths, file contents via @file), -X picks the method, and -I streams a whole JSON body from a file or stdin. Enough to script any API mutation without leaving pscale's auth.

// shell

$ pscale api organizations/{org}/databases -F 'name="scratch-db"'
$ pscale api -X DELETE organizations/{org}/databases/scratch-db

// gotcha

-F values are parsed as JSON entities — strings need embedded quotes ('name="my-database"'), or you'll send invalid JSON and get a cryptic 422.

// resources