/r/{repoId}/packages/installations

POST
https://sample-api.d-velop.cloud
Installing a package
The package is installed asynchronously. This means that this request only creates a job to install the package. The response will contain a "Job" resource and a URI to query the current status of the job. If the job was completed successfully, the package was also installed completely and successfully.
Parameters
repoId/string/required
The unique ID of the repository.
Responses
202
The job to install the package was created successfully.
Content
Media type: application/json
{
  "id": {
    "type": "string",
    "description": "The unique ID of the job.",
    "nullable": true,
    "readOnly": true,
    "example": "00000000-0000-0000-0000-000000000000"
  },
  "status": {
    "type": "string",
    "description": "Status of the job:\r\nCREATED: Job was created\r\nRUNNING: Job is running\r\nCOMPLETED: Job was performed successfully\r\nFAILED: Job failed",
    "nullable": true,
    "readOnly": true,
    "example": "CREATED | RUNNING | COMPLETED | FAILED"
  }
}
Media type: application/hal+json
{
  "id": {
    "type": "string",
    "description": "The unique ID of the job.",
    "nullable": true,
    "readOnly": true,
    "example": "00000000-0000-0000-0000-000000000000"
  },
  "status": {
    "type": "string",
    "description": "Status of the job:\r\nCREATED: Job was created\r\nRUNNING: Job is running\r\nCOMPLETED: Job was performed successfully\r\nFAILED: Job failed",
    "nullable": true,
    "readOnly": true,
    "example": "CREATED | RUNNING | COMPLETED | FAILED"
  }
}
Headers
Location
URI of the created job resource
string
URI of the created job resource
Show operation

Language

const options = {
  method: 'POST',
  headers: {accept: 'application/json', 'content-type': 'application/octet-stream'}
};

fetch('https://example.com/dmsconfig/r/REPOID/packages/installations', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));