How to create a droplet with user-data from api v1

January 14, 2015 1.8k views

Hi community,
I need create a new droplet using api v1 and pass the “user data” parameter to create it.

I am trying with:

&user-data=#!/bin/bash echo "hello" >> /var/hello.txt
&user_data=#!/bin/bash echo "hello" >> /var/hello.txt

And url encoded:


But not work.
Any help would be appreciated.

Thanks in advance.

1 Answer

Version 1 of the API does not support user-data, and it is extremely unlikely that it will be added. We haven’t set a hard date yet, but it will be deprecated in the near future. You are greatly encouraged to use version 2 of the API.

Have another answer? Share your knowledge.