Request Details/Distribute Software/Agent to a Device
Verb:POST
URL: {url}/device/{id}/distribution/{distributionId}
Parameters
Parameters for this request:
Field | Description | Guy | Obligatory | Possible values |
---|---|---|---|---|
Id | Represents the identifier of the device on which the action is to be executed. | Whole | Yes | - |
distributionId | Represents the ID of the distribution to be executed. | Whole | Yes | - |
Parameters for this request that must be sent in the body of the request:
Field | Description | Guy | Obligatory | Possible values |
---|---|---|---|---|
executionName | Name that will be given to the execution. If it is not submitted, the name will be the date the run is created. | Text | No | - |
Answer
- Code: 200 – Successful Answer: The following is the body of the response, where the ID of the execution is located
Field | Description | Guy |
---|---|---|
Id | Created execution ID | Whole |
setupProjectId | Distributed Project Identifier Submitted | Whole |
executionName | Name of the created run | Text |
- Code: 400 - Bad request Answer: Error Description Message
-
Code: 500 - Internal Error Server Answer: Error Description Message
- BadRequest If the device ID is not greater than 1. If the distribution ID is not greater than 0
- ValidationError If one of the required values is not sent