Create a new storage location.

POST
https://demo.azuracast.com/api/admin/storage_locations

Body

application/json
storageUsedPercentinteger | null
Example
75
isFullboolean
Example
true
uristring

The URI associated with the storage location.

Example
/var/azuracast/www
stationsArray<string> | null

The stations using this storage location, if any.

Response

200OKHasAutoIncrementId & object & HasLinks & object

Success

Response fields application/json
idintegerrequiredread only
typeStorageLocationTypesbackupstation_mediastation_recordingsstation_podcasts
adapterStorageLocationAdapterslocals3dropboxsftp
pathstring

The local path, if the local adapter is used, or path prefix for S3/remote adapters.

Example
/var/azuracast/stations/azuratest_radio/media
s3CredentialKeystring | null

The credential key for S3 adapters.

Example
your-key-here
s3CredentialSecretstring | null

The credential secret for S3 adapters.

Example
your-secret-here
s3Regionstring | null

The region for S3 adapters.

Example
your-region
s3Versionstring | null

The API version for S3 adapters.

Example
latest
s3Bucketstring | null

The S3 bucket name for S3 adapters.

Example
your-bucket-name
s3Endpointstring | null

The optional custom S3 endpoint S3 adapters.

Example
https://your-region.digitaloceanspaces.com
s3UsePathStyleboolean | null
Example
false
dropboxAppKeystring | null

The optional Dropbox App Key.

Example
dropboxAppSecretstring | null

The optional Dropbox App Secret.

Example
dropboxAuthTokenstring | null

The optional Dropbox Auth Token.

Example
sftpHoststring | null

The host for SFTP adapters

Example
127.0.0.1
sftpUsernamestring | null

The username for SFTP adapters

Example
root
sftpPasswordstring | null

The password for SFTP adapters

Example
abc123
sftpPortinteger | null

The port for SFTP adapters

Example
20
sftpPrivateKeystring | null

The private key for SFTP adapters

sftpPrivateKeyPassPhrasestring | null

The private key pass phrase for SFTP adapters

storageQuotaBytesany | null
Example
120000
storageQuotastring | null
Example
50 GB
storageUsedBytesany
Example
60000
storageUsedstring
Example
1 GB
storageAvailableBytesany | null
Example
120000
storageAvailablestring
Example
1 GB
storageUsedPercentinteger | null
Example
75
isFullboolean
Example
true
uristring

The URI associated with the storage location.

Example
/var/azuracast/www
stationsArray<string> | null

The stations using this storage location, if any.

403ForbiddenApi_Error

Access denied.

Response fields application/json
codeintegerrequired

The numeric code of the error.

Example
500
typestringrequired

The programmatic class of error.

Example
NotLoggedInException
messagestringrequired

The text description of the error.

Example
Error description.
formatted_messagestring | nullrequired

The HTML-formatted text description of the error.

Example
<b>Error description.</b><br>Detailed error text.
extra_dataArray<any>required

Stack traces and other supplemental data.

successbooleanrequired

Used for API calls that expect an \Entity\Api\Status type response.

Example
false
500Internal Server ErrorApi_Error

A generic exception has occurred.

Response fields application/json
codeintegerrequired

The numeric code of the error.

Example
500
typestringrequired

The programmatic class of error.

Example
NotLoggedInException
messagestringrequired

The text description of the error.

Example
Error description.
formatted_messagestring | nullrequired

The HTML-formatted text description of the error.

Example
<b>Error description.</b><br>Detailed error text.
extra_dataArray<any>required

Stack traces and other supplemental data.

successbooleanrequired

Used for API calls that expect an \Entity\Api\Status type response.

Example
false

Authorization

ApiKeyapiKey in header