Create Share Admin API
Request
Request Info
Info |
Value |
Request URL |
/admin/shares |
Request VERB |
POST |
Request Parameters
Parameter |
Type |
Description |
name |
String |
The unique name for the share. |
revisions |
Integer |
How many old versions of overwritten or updated files to keep. |
quota |
Integer |
How many MegaBytes of data to reserve for this share. |
Example Request Using Curl
cat <<EOF | curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" --user nkpIxMK9ucUUE7FvfNpdAf:x https://test.host/admin/shares
{share:
{
"name": "Project Alpha",
"revisions": 5,
"quota": 2000
}
}
or shorter
curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" --user nkpIxMK9ucUUE7FvfNpdAf:x -d '{"share":{"name":"Project Alpha", "revisions":5, "quota":2000}}' https://test.host/admin/shares
Example Response
{"share":
{
"id":"project-alpha",
"name":"Project Alpha",
"revisions":5,
"quota":2000,
"created_at":"2016-02-01T09:11:23.000Z",
"updated_at":"2016-09-29T10:54:02.000Z",
"accesses":[]
}
}