cURL
curl --request POST \ --url https://global.thenile.dev/workspaces/{workspaceSlug}/databases/{databaseName}/credentials \ --header 'Authorization: Bearer <token>'
{ "id": "<string>", "database": { "id": "<string>", "name": "<string>", "workspace": { "id": "<string>", "name": "<string>", "slug": "<string>", "stripe_customer_id": "<string>", "created": "2023-11-07T05:31:56Z" }, "status": "PENDING", "region": "AWS_US_WEST_2", "expandable": true, "created": "2023-11-07T05:31:56Z", "deleted": "2023-11-07T05:31:56Z", "apiHost": "<string>", "dbHost": "<string>", "sharded": true }, "tenant": "<string>", "internal": true, "password": "<string>", "created": "2023-11-07T05:31:56Z" }
Generates a new secure credential for a database. The generated password is returned in the response, and is the only time the password is available in plaintext. No request body is required.”
1
Show child attributes
Was this page helpful?