Create application
Description
Create a new Application ID
Url
1 |
POST /api/v0/app/ |
Parameters
optional
- collection: resource uri like /v0/collection/UUID/
- name: name of your application's identifier
Example
Request
1 2 3 4 |
curl -X POST \ -H "Content-Type: application/json" \ 'http://localhost:8000/api/v0/app/?api_key=418a5ddd1810943e9e51f2238ffa0f3c8914639f' \ -d '{"name": "com.api.test.42", "collection": "/api/v0/collection/7d46f8baef92411b9539393f880b2b10/"}' |
Response
1 2 3 4 5 6 7 |
{ "collection": "/api/v0/collection/7d46f8baef92411b9539393f880b2b10/", "collections": ["/api/v0/collection/7d46f8baef92411b9539393f880b2b10/"], "name": "com.api.test.42", "resource_uri": "/api/v0/app/f0dc1ca3115040ae8a46fd1c946fe900/", "uuid": "f0dc1ca3115040ae8a46fd1c946fe900" } |
Errors
HTTP Status code: 403 Forbidden
Commercial Subscription Required
1 2 3 4 5 6 |
{ "error": { "message": "Creating AppIDs for deployment apps requires purchasing the On-Device Image Recognition SDK." "code": "COMMERCIAL_SUBSCRIPTION_REQUIRED" } } |
Plan Upgrade Required
1 2 3 4 5 6 |
{ "error": { "message": "Creating AppIDs for deployment apps requires a paid plan." "code": "PLAN_UPGRADE_REQUIRED" } } |
HTTP Status code: 400 Bad Request
Duplicated Application ID
1 2 3 4 5 6 |
{ "error": { "message": "You already have this App ID" "code": "DUPLICATE_APPID" } } |