Contents
Files
The Files product is no longer offered. These routes answer 410 Gone, and nothing is created or charged.
Literal response from the frozen contract
- POSTCreate the Files account
/api/v1/resources/files/user - PUTUpdate the Files account
/api/v1/resources/files/user - POSTActivate Files
/api/v1/resources/files/user/activate - POSTBuy Files storage
/api/v1/resources/files/user/storage/{amount}/{quantity}
/api/v1/resources/files/userCreate the Files account
Created the storage account of the Files product.
- Authentication
- HTTP Basic with the user API key
- Host
- https://api.cdnify.lat, https://reseller.cdnify.lat
- In CDNify
- Behaviour changed for safety or pending a decision
- Rate limited
- Yes
- API v2 equivalent
- No API v2 equivalent
Request body
Content types: application/x-www-form-urlencoded
| Field | Type | Required | Rules |
|---|---|---|---|
| server | integer | string | Yes | |
| password | string | Yes | |
| quota | number | string | No |
|
{
"server": 1,
"password": "synthetic-password",
"quota": 250
}Responses
201Createdapplication/json
Headers: X-RateLimit-Limit: 1000, X-RateLimit-Remaining: 999, X-RateLimit-Reset: 1768474800
Example []400Bad requestapplication/json
Fields (3)
Responses v1CreateFilesUser 400 Field Type Required Rules errors object Yes errors.code integer No errors.message string Yes Example: exists { "errors": { "message": "Files user already exists" } }Example: missing { "errors": { "code": 0, "message": "The required options \"password\", \"server\" are missing." } }Example: no_server { "errors": { "message": "The server requested does not exist " } }Example: inactive { "errors": { "message": "Requested server is not active or is not accepting new users" } }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
429Too many requeststext/plain
Example You have reached the rate limit
curl -X POST 'https://api.cdnify.lat/api/v1/resources/files/user' \
-u "$CDNIFY_API_KEY:x" \
--data-urlencode 'server=1' \
--data-urlencode 'password=synthetic-password' \
--data-urlencode 'quota=250'/api/v1/resources/files/userUpdate the Files account
Changed the quota or the password of the Files account.
- Authentication
- HTTP Basic with the user API key
- Host
- https://api.cdnify.lat, https://reseller.cdnify.lat
- In CDNify
- Behaviour changed for safety or pending a decision
- Rate limited
- Yes
- API v2 equivalent
- No API v2 equivalent
Request body
Content types: application/x-www-form-urlencoded
| Field | Type | Required | Rules |
|---|---|---|---|
| quota | number | string | No | |
| password | string | No |
{
"quota": 500
}Responses
200OKapplication/json
Headers: X-RateLimit-Limit: 1000, X-RateLimit-Remaining: 999, X-RateLimit-Reset: 1768474800
Fields (1)
Responses v1UpdateFilesUser 200 Field Type Required Rules message string Yes Example { "message": "Files user updated" }400Bad requestapplication/json
Fields (3)
Responses v1UpdateFilesUser 400 Field Type Required Rules errors object Yes errors.code integer No errors.message string Yes Example { "errors": { "message": "Files user does not exist" } }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
429Too many requeststext/plain
Example You have reached the rate limit
curl -X PUT 'https://api.cdnify.lat/api/v1/resources/files/user' \
-u "$CDNIFY_API_KEY:x" \
--data-urlencode 'quota=500'/api/v1/resources/files/user/activateActivate Files
Charged the one-time activation of the Files product.
- Authentication
- HTTP Basic with the user API key
- Host
- https://api.cdnify.lat, https://reseller.cdnify.lat
- In CDNify
- Behaviour changed for safety or pending a decision
- Rate limited
- Yes
- API v2 equivalent
- No API v2 equivalent
Responses
200OKapplication/json
Headers: X-RateLimit-Limit: 1000, X-RateLimit-Remaining: 999, X-RateLimit-Reset: 1768474800
Fields (1)
Responses v1ActivateFiles 200 Field Type Required Rules message string Yes Example { "message": "Payment actioned. Service will be activated when payment is confirmed" }400Bad requestapplication/json
Fields (1)
Responses v1ActivateFiles 400 Field Type Required Rules message string Yes Example { "message": "Synthetic billing provider error" }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
404Not foundapplication/json
Fields (1)
Responses v1ActivateFiles 404 Field Type Required Rules messasge string Yes Example { "messasge": "CDNify user not found" }429Too many requeststext/plain
Example You have reached the rate limit
curl -X POST 'https://api.cdnify.lat/api/v1/resources/files/user/activate' \
-u "$CDNIFY_API_KEY:x"/api/v1/resources/files/user/storage/{amount}/{quantity}Buy Files storage
Charged additional storage blocks of the Files product.
- Authentication
- HTTP Basic with the user API key
- Host
- https://api.cdnify.lat, https://reseller.cdnify.lat
- In CDNify
- Behaviour changed for safety or pending a decision
- Rate limited
- Yes
- API v2 equivalent
- No API v2 equivalent
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| amount | Path | string | Yes |
|
| quantity | Path | string | Yes |
|
Responses
200OKapplication/json
Headers: X-RateLimit-Limit: 1000, X-RateLimit-Remaining: 999, X-RateLimit-Reset: 1768474800
Fields (1)
Responses v1BuyFilesStorage 200 Field Type Required Rules message string Yes Example { "message": "Quota will be increased when payment is confirmed" }400Bad requestapplication/json
Fields (1)
Responses v1BuyFilesStorage 400 Field Type Required Rules message string Yes Example { "message": "Files user not found" }401Unauthorized
Headers: WWW-Authenticate: Basic realm="Secured Area"
404Not foundapplication/json
Fields (1)
Responses v1BuyFilesStorage 404 Field Type Required Rules messasge string Yes Example { "messasge": "CDNify user not found" }429Too many requeststext/plain
Example You have reached the rate limit
curl -X POST 'https://api.cdnify.lat/api/v1/resources/files/user/storage/20/1' \
-u "$CDNIFY_API_KEY:x"