Attach an Application to the Domain
This method is used to attach an application instance to the Domain.
POST /api/vendor/v1/domains/{id}/applications/{application_id}.json?api_token={api_token}
Arguments
Name | Parameter Type | Data type | Required/ | Description |
---|---|---|---|---|
id | integer | path | Required | A domain ID. |
application_id | integer | path | Required | An application instance ID. |
api_token | query | string | Required | API token of the manager who perform the operation (see API Token Authentication). |
Response model
Name | Data type | Description |
---|---|---|
id | integer | A domain ID. |
subscription_id | integer | A subscription ID. |
origin_id | integer | An ordinal number of the application instance. |
origin_type | string | An internal type of the application instance, which is used as a polymorphic association. |
service_status | string | A service status of the application instance:
|
application_template_id | integer | An application template ID, on which base the application instance was created. |
created_at | data | A date and time of the application instance's creation. |
updated_at | data | A date and time, when the application instance was updated last time. |
Request example
POST http://billing.activeplatform.com:80/api/vendor/v1/domains/1918/applications/2000362.json?api_token=654321
Response example
{
"id": 2000362,
"subscription_id": 2000423,
"origin_id": 158,
"origin_type": "Aps::Application",
"service_status": "running",
"application_template_id": 56,
"created_at": "2014-12-29T12:51:57.235+03:00",
"updated_at": "2014-12-29T12:51:57.950+03:00"
}