Add Machine Group
curl --request POST \
--url https://qa-lynx.nayax.com/operational/v1/actor/{ActorID}/machineGroups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"MachineGroupId": 123,
"MachineGroupName": "<string>",
"MachineGroupCode": 123
}
'import requests
url = "https://qa-lynx.nayax.com/operational/v1/actor/{ActorID}/machineGroups"
payload = {
"MachineGroupId": 123,
"MachineGroupName": "<string>",
"MachineGroupCode": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({MachineGroupId: 123, MachineGroupName: '<string>', MachineGroupCode: 123})
};
fetch('https://qa-lynx.nayax.com/operational/v1/actor/{ActorID}/machineGroups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://qa-lynx.nayax.com/operational/v1/actor/{ActorID}/machineGroups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'MachineGroupId' => 123,
'MachineGroupName' => '<string>',
'MachineGroupCode' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://qa-lynx.nayax.com/operational/v1/actor/{ActorID}/machineGroups"
payload := strings.NewReader("{\n \"MachineGroupId\": 123,\n \"MachineGroupName\": \"<string>\",\n \"MachineGroupCode\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://qa-lynx.nayax.com/operational/v1/actor/{ActorID}/machineGroups")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"MachineGroupId\": 123,\n \"MachineGroupName\": \"<string>\",\n \"MachineGroupCode\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/actor/{ActorID}/machineGroups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"MachineGroupId\": 123,\n \"MachineGroupName\": \"<string>\",\n \"MachineGroupCode\": 123\n}"
response = http.request(request)
puts response.read_body{
"MachineGroupId": 123,
"ActorId": 123,
"MachineGroupName": "<string>",
"MachineGroupCode": 123,
"MachineGroupStatus": 123,
"CreatedBy": 123,
"CreatedOn": "2023-11-07T05:31:56Z",
"UpdatedOn": "2023-11-07T05:31:56Z",
"UpdatedBy": 123
}Actors
Add Machine Group
Adds a new machine group for a specific actor, identified by ActorID.
Add Machine Group
curl --request POST \
--url https://qa-lynx.nayax.com/operational/v1/actor/{ActorID}/machineGroups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"MachineGroupId": 123,
"MachineGroupName": "<string>",
"MachineGroupCode": 123
}
'import requests
url = "https://qa-lynx.nayax.com/operational/v1/actor/{ActorID}/machineGroups"
payload = {
"MachineGroupId": 123,
"MachineGroupName": "<string>",
"MachineGroupCode": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({MachineGroupId: 123, MachineGroupName: '<string>', MachineGroupCode: 123})
};
fetch('https://qa-lynx.nayax.com/operational/v1/actor/{ActorID}/machineGroups', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://qa-lynx.nayax.com/operational/v1/actor/{ActorID}/machineGroups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'MachineGroupId' => 123,
'MachineGroupName' => '<string>',
'MachineGroupCode' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://qa-lynx.nayax.com/operational/v1/actor/{ActorID}/machineGroups"
payload := strings.NewReader("{\n \"MachineGroupId\": 123,\n \"MachineGroupName\": \"<string>\",\n \"MachineGroupCode\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://qa-lynx.nayax.com/operational/v1/actor/{ActorID}/machineGroups")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"MachineGroupId\": 123,\n \"MachineGroupName\": \"<string>\",\n \"MachineGroupCode\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://qa-lynx.nayax.com/operational/v1/actor/{ActorID}/machineGroups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"MachineGroupId\": 123,\n \"MachineGroupName\": \"<string>\",\n \"MachineGroupCode\": 123\n}"
response = http.request(request)
puts response.read_body{
"MachineGroupId": 123,
"ActorId": 123,
"MachineGroupName": "<string>",
"MachineGroupCode": 123,
"MachineGroupStatus": 123,
"CreatedBy": 123,
"CreatedOn": "2023-11-07T05:31:56Z",
"UpdatedOn": "2023-11-07T05:31:56Z",
"UpdatedBy": 123
}Authorizations
Path Parameters
Body
application/json
The details of the machine group to be added.
Represents the data required to create or update a machine group associated with an actor.
Response
200 - application/json
The machine group was added successfully.
Represents the details of a machine group associated with an actor, including identification, status, and audit information.
Was this page helpful?